if(!empty(ISQ::$general['qr'])){$ISQqr="<h2>QR code</h2>\n<p>Share your code with external devices</p>\n<img class='qr' src='https://chart.googleapis.com/chart?cht=qr&chs=150x150&chl=$shorturl&chld=L|0' alt='QR code' />";}
$ISQtitle=ISQ::$general['name'];
$ISQname_1=ISQ::$links['name_1'];
$ISQname_1=ISQ::$links['url_1'];
$ISQname_2=ISQ::$links['name_2'];
$ISQname_2=ISQ::$links['url_2'];
$ISQname_3=ISQ::$links['name_3'];
$ISQname_3=ISQ::$links['url_3'];
$ISQname_4=ISQ::$links['name_4'];
$ISQname_4=ISQ::$links['url_4'];
$ISQname_5=ISQ::$links['name_5'];
$ISQname_5=ISQ::$links['url_5'];
$ISQname_6=ISQ::$links['name_6'];
$ISQname_6=ISQ::$links['url_6'];
$ISQname_7=ISQ::$links['name_7'];
$ISQname_7=ISQ::$links['url_7'];
$ISQname_8=ISQ::$links['name_8'];
$ISQname_8=ISQ::$links['url_8'];
$ISQname_9=ISQ::$links['name_9'];
$ISQname_9=ISQ::$links['url_9'];
$ISQname_10=ISQ::$links['name_10'];
$ISQname_10=ISQ::$links['url_10'];
// Error definitions
if($message=$url."added to database"){
$error="<h2>URL shortened successfully</h2>\n<p>View the details of your short URL below.</p>";
}elseif($message=$url."already exists in database"){
$error="<h2 class='error'>An error has occured :(</h2>\n<p class='error'>This URL already exists in this database. This website does not allow a single URL to have multiple short links.</p>";
}elseif($message="Short URL".$url."already exists in database or is reserved"){
$error="<h2 class='error'>An error has occured :(</h2>\n<p class='error'>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.</p>";
}elseif($message="Missing URL input"){
$error="<h2 class='error'>An error has occured :(</h2>\n<p class='error'>You did not enter the URL you want to shorten or the server lost it. Please try again.</p>";
}elseif($message="URL is a short URL"){
$error="<h2 class='error'>An error has occured :(</h2>\n<p class='error'>You cannot shorten a short URL!</p>";
<p><labelfor="url"title="Paste the long URL here">LongURL(required):</label><inputtype="text"id="url"class="right"name="url"/></p>
<p><labelfor="keyword"title="A keyword replaces the default short string">Customkeyword:</label><inputtype="text"id="keyword"class="right"name="keyword"/></p>
<p><labelfor="title"title="Optional title used when sharing a link from YOURLS">Optionaltitle:</label><inputtype="text"id="title"class="right"name="title"/></p>