mirror of
https://github.com/c0de-archive/GAMA-Site.git
synced 2024-12-22 17:42:40 +00:00
Made urls shorter and better
This commit is contained in:
parent
f35debca09
commit
a1e15fe76a
@ -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";
|
||||
?>
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user