[hi_php]
$wp_session = WP_Session::get_instance();
if (strlen($wp_session[‘esrgroup_user_id’]) > 3) {
header(“Location: “.BASE_URL.”portal/account”);
exit();
}
if ($_GET[‘result’]===”confirmed”) {
echo ‘
‘;
}
if ($_GET[‘result’]===”reset”) {
echo ‘
‘;
}
if ($_GET[‘result’]===”registered”) {
echo ‘
‘;
}
if ($_GET[‘result’]===”fail”) {
echo ‘
‘;
}
if ($_POST) {
//check if email address is valid
connect_db();
$result = mysql_query(“SELECT * FROM reg_users WHERE status=’1’ AND Email='”.mysql_real_escape_string(strtolower($_POST[‘username’])).”‘”) or die(“Cannot check user”);
close_db();
if (mysql_num_rows($result) > 0) {
//now check the password
$row = mysql_fetch_array($result);
if (crypt($_POST[‘password’], $row[‘password’]) == $row[‘password’]) {
$wp_session = WP_Session::get_instance();
$wp_session[‘esrgroup_user_id’] = “USR”. $row[‘id’];
header(“Location: “.BASE_URL.”portal/account”);
exit();
} else {
$wp_session = WP_Session::get_instance();
unset($wp_session[‘esrgroup_user_id’]);
header(“Location: “.BASE_URL.”portal/?result=fail”);
exit();
}
} else {
header(“Location: “.BASE_URL.”portal/?result=fail”);
exit();
}
}
[/hi_php]
Log into the Conference Portal to see your registration and submit abstracts.
