Made urls shorter and better

This commit is contained in:
alopexc0de 2012-10-07 20:34:33 -04:00
parent f35debca09
commit a1e15fe76a
2 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
<?php
$random=rand(); //your random ID key
$path="url/"; //shortening url storage folder
$pagepath = "http://unps-gama.tk/short/";
$pagetitle = "Unps-gama.tk short";
$path="."; //shortening url storage folder
$pagepath = "http://ugama.tk/short/";
$pagetitle = "Unps-gama.tk shortner";
?>

View File

@ -18,7 +18,7 @@ if($_POST["submit"])
{
if(isset($_POST['dest']))
{
$myFile = $path.$random.".html";
$myFile = $random.".html";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = '
@ -36,8 +36,8 @@ Service by '.$pagepath.'
fclose($fh);
echo '
Thanks for using '.$pagetitle.' <br>
your Link is shorten link is available here:<br>
<a href='.$pagepath.$path.$random.'>'.$pagepath.$path.$random.'</a><br>
your link is available here:<br>
<a href='.$pagepath.$random.'>'.$pagepath.$random.'</a><br>
<a href="index.php">Back to index</a><br>
<a href="http://unps-gama.tk">Home</a>