2) { $subNodeFound = false; for ($i = 0; $i < count($acceptedSubNodes); $i++) { if ($_GET["node2"] == $acceptedSubNodes[$i]) { $subNodeFound = true; break; } } if (!$subNodeFound) { include("../404.php"); exit; } } // check if entries system is running include_once("utils/template.php"); systemCheck(); // check session session_start(); include_once("utils/sessionsupports.php"); if (!isset($_SESSION['uid']) ) session_defaults(); $user = new User(); // if still logged in, bounce to the overview page if ($user->_checkSession()) { header("Location: /entries/"); } $errorMessage = " "; if (isset($_POST["email"])) { // validation -- if ($user->_checkLogin(mysql_real_escape_string(strtolower($_POST["email"])), mysql_real_escape_string($_POST["password"]), false)) { header("Location: /entries/"); } else { if (count($emailsAllowed)>0) { $emailNotAllowed=true; foreach ($emailsAllowed as $allowedEmail) { if (strtolower($allowedEmail)==strtolower($_POST["email"])) { $emailNotAllowed=false; break; } } } else { $emailNotAllowed=false; } if ($emailNotAllowed) { $errorMessage = "Unable to log in with the email address."; header("Location: /entries/closed/"); } else { $query = "SELECT * FROM cuz WHERE email='".mysql_real_escape_string(strtolower($_POST["email"]))."' AND status=0;"; $result = mysql_query($query); if (mysql_num_rows($result) > 0) { $errorMessage = "Log in failed. Tip: You account does not seem to be activated."; } else { $errorMessage = "The email address or password is incorrect. Please try again."; } } } // -- validation } ?> "); runTemplateTop("Log In", null, "layout1", "reg", "
"); ?>If you have not yet registered for the inaugural Campaign Photo Awards 2010 please click here.
Click here to register for one
Please contact Steven Lewis at steven.lewis@campaignbigawards.com,
or alternately call +44 (0)20 8267 4161.