Portal

[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 ‘

Thank you for your registration. You can now log in.

‘;
}

if ($_GET[‘result’]===”reset”) {
echo ‘

A new password has been sent to your email address.

‘;
}

if ($_GET[‘result’]===”registered”) {
echo ‘

An email has been sent to your address. You must click the link in the email to confirm your registration before you will be able to log in.

‘;
}

if ($_GET[‘result’]===”fail”) {
echo ‘

Your username or password was incorrect. Please try again.

‘;
}

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.

Username (email):
Password:
 

Forgotten your password?