Location: PHPKode > projects > Modular Site Manager > htdocs/misc/activate.php
<?
chdir("../");
include "inc/functions.inc.php";
$mysql = new mysql(DB_MAIN);
$checkq = $mysql->select(PRE."members_temp", "email='".$_GET['email']."'", "id", "DESC", "1");
if(mysql_num_rows($checkq) == "0")
{
	die("No such user!");
} else {
	$checkq = mysql_fetch_array($checkq);
	$check = $checkq['actstring'];
}
if($_GET['actstring'] !== $check)
{
	die("Invalid activation string. Please email the admin at hide@address.com");
} else {
	$mysql->update(PRE."members", "active='yes'", "id='".$checkq['memid']."'");
	$mysql->delete(PRE."members_temp", "id='".$checkq['id']."'");
	header("Location: ".SITE_URL);
}
$mysql->close();
?>
Return current item: Modular Site Manager