mirror of
https://github.com/c0de-archive/GAMA-Site.git
synced 2025-01-03 14:32:39 +00:00
changed redirect pages to php & added logging for clicks
This commit is contained in:
parent
5efda512ba
commit
c056cd8b59
@ -54,14 +54,23 @@ if($_POST["submit"])
|
|||||||
{
|
{
|
||||||
if(isset($_POST['dest']) && $dest != "")
|
if(isset($_POST['dest']) && $dest != "")
|
||||||
{
|
{
|
||||||
$myFile = $random.".html";
|
$myFile = $random.".php";
|
||||||
$fh = fopen($myFile, 'w') or die("can't open file");
|
$fh = fopen($myFile, 'w') or die("can't open file");
|
||||||
$stringData = '
|
$stringData = '
|
||||||
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head><title>'.$random.'</title>
|
||||||
|
<?php
|
||||||
|
$currentFile = $_SERVER["PHP_SELF"];
|
||||||
|
$parts = Explode(\'/\', $currentFile);
|
||||||
|
|
||||||
|
$myFile = "log/".$parts[count($parts) - 1].".log";
|
||||||
|
$fh = fopen($myFile, \'a\') or die("can\'t open file");
|
||||||
|
$string = $_SERVER[\'REMOTE_ADDR\'];
|
||||||
|
fwrite($fh, $string);
|
||||||
|
fclose($fh);
|
||||||
|
?>
|
||||||
<meta http-equiv="REFRESH" content="0;url='.$dest.'"></HEAD>
|
<meta http-equiv="REFRESH" content="0;url='.$dest.'"></HEAD>
|
||||||
<BODY>
|
<BODY>
|
||||||
Service by '.$pagepath.'
|
Service by '.$pagepath.'
|
||||||
|
Loading…
Reference in New Issue
Block a user