delete this code from line 181 - 223:
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
}
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}
if (isset($_POST['Log_In_group_Email'])) {
$loginUsername=$_POST['Log_In_group_Email'];
$password=$_POST['Log_In_group_Password'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "userprofile.php";
$MM_redirectLoginFailed = "login_test.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_connlive, $connlive);
$LoginRS__query=sprintf("SELECT UserID, UserEmail FROM users WHERE UserID=%s AND UserEmail=%s",
GetSQLValueString($loginUsername, "int"), GetSQLValueString($password, "text"));
$LoginRS = mysql_query($LoginRS__query, $connlive) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";
if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
?>
and this code from line 94 - 130:
if(WA_Auth_RulePasses("Log in success")){
$WA_Auth_Parameter = array(
"connection" => $connlive,
"database" => $database_connlive,
"tableName" => "users",
"columns" => explode($WA_Auth_Separator,"UserEmail"),
"columnValues" => explode($WA_Auth_Separator,"mpiasecki1@gmail.com"),
"columnTypes" => explode($WA_Auth_Separator,"text"),
"sessionColumns" => explode($WA_Auth_Separator,"UserID".$WA_Auth_Separator."UserEmail"),
"sessionNames" => explode($WA_Auth_Separator,"UserID".$WA_Auth_Separator."UserEmail"),
"successRedirect" => "userprofile.php",
"failRedirect" => "",
"gotoPreviousURL" => FALSE,
"keepQueryString" => FALSE
);
WA_AuthenticateUser($WA_Auth_Parameter);
}
if(WA_Auth_RulePasses("Logged in to users")){
$WA_Auth_Parameter = array(
"connection" => $connlive,
"database" => $database_connlive,
"tableName" => "users",
"columns" => explode($WA_Auth_Separator,"UserID"),
"columnValues" => explode($WA_Auth_Separator,"redirect_userprifile"),
"columnTypes" => explode($WA_Auth_Separator,"int"),
"sessionColumns" => explode($WA_Auth_Separator,"UserID"),
"sessionNames" => explode($WA_Auth_Separator,"UserID"),
"successRedirect" => "userprofile.php",
"failRedirect" => "",
"gotoPreviousURL" => FALSE,
"keepQueryString" => TRUE
);
WA_AuthenticateUser($WA_Auth_Parameter);
}