Location: PHPKode > projects > Savage Lands > v2/verify.php
<?php $title = "Verify"; include("head.php"); ?>
<?php
if ($action == 'verify') {
	if ($id == '') {
		print "<br><center>Link is missing the verify id.<br><br>";
		include("foot.php");
		exit;
		}
		if ($pass == '') {
			print "<br><center>Link is missing the password.<br><br>";
			include("foot.php");
			exit;
			}
	$register = mysql_fetch_array(mysql_query("select * from register where userid='$id'"));
	if ($register[random] == $pass) {
	mysql_query("update players set varified='Yes' where id=$register[userid]");
	$ref = str_replace($remove_these, "", "$ref");
	$ref = htmlspecialchars($ref);
	mysql_query("update players set refs=refs+1 where id=$register[refid]");
	mysql_query("update players set buy_refs=buy_refs+1 where id=$register[refid]");
	mysql_query("delete from register where userid='$id'");
	print "<br><center>Acount has been varified, thank you for joining $gamename<br><br>";
	} else {
	print "<br><center>Link has already been used or somthing went wrong.<br><br>";
	}
}
?>

<?php include("foot.php"); ?>
Return current item: Savage Lands