";
print " self.location='default.php';";
print "";
}
else {
// no result
// authentication failed
echo "
";
}
// free result set memory
mysql_free_result($result);
// close connection
mysql_close($connection);
}
else {
// no submission
// display login form
include("members/includes/dbconnect.php");
$_GET['sourceid'];
$_GET['state'];
$_GET['pg'];
$pageinfo=$_GET['pg'];
if (empty($sourceid)) {
$sourceid='default';
}
if (empty($state)) {
$state='default';
}
$query = mysql_query("SELECT * FROM pages WHERE(id='1')");
$pagi = mysql_fetch_array($query);
$query = mysql_query("SELECT * FROM admin WHERE(id='1')");
$admin = mysql_fetch_array($query);
if(!$pagi) {
$pagierrorcontent='
404 ERROR
Page does not exist
or has moved, please goto the site map to find the
page you are looking for. If you continue to have problems
contact us.
';
$pagi['meta']='404 Not Found';
}
$pagicontent=$pagi['content'];
$pagicontent=str_replace ("XXXX",$state,$pagicontent);
$pagicontent=str_replace ("OOOO",$sourceid,$pagicontent);
$query = mysql_query("SELECT * FROM banners ORDER BY RAND()");
$banner = mysql_fetch_array($query);
$user=mysql_query("UPDATE banners SET impressions=impressions+1 WHERE (id='" . $banner['id'] . "')");
?>
}
?>