Ever wondered how to give live stats on The Bring Back Knightmare campaign? How to find out how many people load up your graphics and how many people you send to the campaign? Fear not! The solution is now here. If you have already signed up, you can access your referers page by entering your site ID and password here:


Your site ID


Your password

No account? No problem. Just fill in the small form below and we will generate a piece of code for your site. Just insert the code on to your site and you will have access to everything you need


A one-word site ID that will serve as your login


A password


Your email address. This will not be redistributed. Please check for errors!


Your web address

END; } else if ($action == "signup") { $siteid = $_POST['siteid']; $password = $_POST['password']; $email = $_POST['email']; $url = $_POST['url']; $camefrom = $_POST['camefrom']; if ($siteid == "" || $email == "" || $url == "" || $password == "") $text = "ERROR: You must provide a name, password, email address and url"; else { $query = mysql_query("select * from linkers where name='$siteid'"); $result = mysql_num_rows($query); if ($result > 0) $text = "ERROR: Your chosen name is already taken. Please choose again"; else if (ereg("(.*) (.*)", $name)) $text = "ERROR: Your chosen name must have no space in it"; else { $result = mysql_query("insert into linkers values('','$siteid','$password','$email','$url','','','',now(''),'$camefrom')"); $text = "

Thank you. The code you require is as follows:

"; $text .= "

<SCRIPT TYPE="text/javascript" SRC="http://www.bringbackknightmare.co.uk/stats/$siteid/nothing.js"></SCRIPT>

"; } } } else if ($action == "login") { $siteid = $_POST['siteid']; $password = $_POST['password']; $email = $_POST['email']; $url = $_POST['url']; $camefrom = $_POST['camefrom']; $query = mysql_query("select * from linkers where name='$siteid' and password='$password'"); $result = mysql_fetch_row($query); if (!$result) $text = "User not found"; else { $text = "Account for user $result[1] ($result[4])
"; $text .= "Contact address: $result[3]

"; $clicks = 4*$result[6]; $signatures = 16*$result[7]; $points = $result[5] + $clicks + $signatures; $text .= "Number of site exposures @ 1 point each: $result[5] (Total: $result[5])
"; $text .= "Number of site clicks @ 4 points each: $result[6] (Total: $clicks)
"; $text .= "Number of signatures @ 16 points each: $result[7] (Total: $signatures)
"; $query = mysql_query("select * from linkers where referer='$siteid'"); while ($result2 = mysql_fetch_row($query)) { $text .= "Number of points from $result2[1]: " . Points($result2[1]) . "
"; } $text .= "

Total points: $points"; $text .= "
Code to display:
"; $text .= "<SCRIPT TYPE="text/javascript" SRC="http://www.bringbackknightmare.co.uk/stats/$result[1]/nothing.js"></SCRIPT>"; } } print << Home of the Bring Back Knightmare Campaign

Knightmare

Home of The Bring Back Knightmare Campaign
$text
$menu END; ?>