$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>";
<?phpif(!empty(ISQ::$general['mobile'])){echo"<script type='text/javascript'>if (screen.width <= 720) { document.location = 'mobile.php'; }</script>";}?> <!-- Redirect to mobile if screen narrower than 720px -->
<title><?phpecho$ISQtitle;?></title> <!-- Site title defined in theme settings -->
<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>
<ahref="javascript:(function()%7Bvar%20d=document,w=window,enc=encodeURIComponent,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),s2=((s.toString()=='')?s:enc(s)),f='<?php echo $page; ?>',l=d.location,p='?url='+enc(l.href)+'&title='+enc(d.title)+'&text='+s2,u=f+p;try%7Bthrow('ozhismygod');%7Dcatch(z)%7Ba=function()%7Bif(!w.open(u))l.href=u;%7D;if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();%7Dvoid(0);%7D)()"class="bookmarklet"title="Shortens the URL of the current site and opens a new tab with the details of the shortened URL.">SimpleShorten</a>
<ahref="javascript:(function()%7Bvar%20d=document,w=window,enc=encodeURIComponent,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),s2=((s.toString()=='')?s:enc(s)),f='<?php echo $page; ?>',l=d.location,k=prompt(%22Custom%20URL%22),k2=(k?'&keyword='+k:%22%22),p='?url='+enc(l.href)+'&title='+enc(d.title)+'&text='+s2+k2,u=f+p;if(k!=null)%7Btry%7Bthrow('ozhismygod');%7Dcatch(z)%7Ba=function()%7Bif(!w.open(u))l.href=u;%7D;if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();%7Dvoid(0)%7D%7D)()"class="bookmarklet"title="Opens a popup which asks for the URL you want to shorten and opens a new tab with the details of the shortened URL.">CustomShorten</a>