From 25b7d2aab61ae6421398d3abae5da6ffe590333d Mon Sep 17 00:00:00 2001 From: s1n Date: Sat, 28 Mar 2020 10:36:41 -0700 Subject: 3/28/2020, 10:36 --- sample-public-front-page.txt | 115 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 sample-public-front-page.txt (limited to 'sample-public-front-page.txt') diff --git a/sample-public-front-page.txt b/sample-public-front-page.txt new file mode 100644 index 0000000..7bc9b0e --- /dev/null +++ b/sample-public-front-page.txt @@ -0,0 +1,115 @@ + markup and all CSS & JS files +yourls_html_head(); + +// Display title +echo "

YOURLS - Your Own URL Shortener

\n"; + +// Display left hand menu +yourls_html_menu() ; + +// Part to be executed if FORM has been submitted +if ( isset( $_REQUEST['url'] ) && $_REQUEST['url'] != 'http://' ) { + + // Display result message of short link creation + if( isset( $message ) ) { + echo "

$message

"; + } + + if( $status == 'success' ) { + // Include the Copy box and the Quick Share box + yourls_share_box( $url, $shorturl, $title, $text ); + + // Initialize clipboard -- requires js/share.js and js/clipboard.min.js to be properly loaded in the + echo "\n"; + } + +// Part to be executed when no form has been submitted +} else { + + $site = YOURLS_SITE; + + // Display the form + echo <<Enter a new URL to shorten +
+

+

+

+

+
+HTML; + +} + +?> + +

Bookmarklets

+ +

Bookmark these links:

+ +

+ +Default + +Custom + +Popup + +Custom Popup + +

+ +

Please note

+ +

Be aware that a public interface will attract spammers. You are strongly advised to install anti spam plugins and any appropriate counter measure to deal with this issue.

+ +