Share on Facebook"; } if (!empty(ISQ::$social['twitter'])) { $ISQtwitter = "Tweet"; } if (!empty(ISQ::$social['plus'])) { $ISQplus = "Share on Google+"; } if (!empty(ISQ::$social['linkedin'])) { $ISQlinkedin = ""; } if (!empty(ISQ::$general['qr'])) { $ISQqr = "

QR code

\n

Share your code with external devices

\nQR code"; } $ISQtitle = ISQ::$general['name']; $ISQname_1= ISQ::$links['name_1']; $ISQurl_1= ISQ::$links['url_1']; $ISQname_2= ISQ::$links['name_2']; $ISQurl_2= ISQ::$links['url_2']; $ISQname_3= ISQ::$links['name_3']; $ISQurl_3= ISQ::$links['url_3']; $ISQname_4= ISQ::$links['name_4']; $ISQurl_4= ISQ::$links['url_4']; $ISQname_5= ISQ::$links['name_5']; $ISQurl_5= ISQ::$links['url_5']; $ISQname_6= ISQ::$links['name_6']; $ISQurl_6= ISQ::$links['url_6']; $ISQname_7= ISQ::$links['name_7']; $ISQurl_7= ISQ::$links['url_7']; $ISQname_8= ISQ::$links['name_8']; $ISQurl_8= ISQ::$links['url_8']; $ISQname_9= ISQ::$links['name_9']; $ISQurl_9= ISQ::$links['url_9']; $ISQname_10= ISQ::$links['name_10']; $ISQurl_10= ISQ::$links['url_10']; // Error definitions if ( $message = $url. "added to database") { $error = "

URL shortened successfully

\n

View the details of your short URL below.

"; } elseif ( $message = $url. "already exists in database") { $error = "

An error has occured :(

\n

This URL already exists in this database. This website does not allow a single URL to have multiple short links.

"; } elseif ( $message = "Short URL" .$url. "already exists in database or is reserved") { $error = "

An error has occured :(

\n

This short URL already exists in this database or is reserved. This website does not allow a single URL to have multiple short links. It could've also been reserved by the admin.

"; } elseif ( $message = "Missing URL input") { $error = "

An error has occured :(

\n

You did not enter the URL you want to shorten or the server lost it. Please try again.

"; } elseif ( $message = "URL is a short URL") { $error = "

An error has occured :(

\n

You cannot shorten a short URL!

"; } ?> <?php echo $ISQtitle; ?>

Original URL: $url

Short URL: $shorturl

Stats: $shorturl+

$ISQqr

Share

Share your short URL

$ISQfacebook $ISQtwitter $ISQplus $ISQlinkedin RESULT; // Part to be executed when no form has been submitted } else { $site = YOURLS_SITE; echo <<Enter a new URL to shorten

Hover over the labels to see more information

HTML; } ?>

The bookmarklets

To use the bookmarklets drag them to your bookmark bar or simply right click on them and select the appropriate option.

Instant Shorten

Custom Keyword Shorten