authenticate user server behavior
in my admin section, i want 2 levels of admin, normal admin and super admin.
on my admin login page, i have added a security assist server behavior which compares username , password and userlevel.
the generated code works fine for a single admin level, but how do i use an OR ?
at present, the authentication checks for userlevel 99, whereas i want to check for level 99 OR 100
<?php
if($_SERVER["REQUEST_METHOD"] == "POST"){
$WA_Auth_Parameter = array(
"connection" => $connection,
"database" => $database_connection,
"tableName" => "tablename",
"columns" => explode($WA_Auth_Separator,"EmailAddress".$WA_Auth_Separator."AccountPassword".$WA_Auth_Separator."UserLevel"),
"columnValues" => explode($WA_Auth_Separator,"".((isset($_POST["username"]))?$_POST["username"]:"") ."".$WA_Auth_Separator."".((isset($_POST["userpassword"]))?$_POST["userpassword"]:"") ."".$WA_Auth_Separator."99 "),
"columnTypes" => explode($WA_Auth_Separator,"text".$WA_Auth_Separator."text".$WA_Auth_Separator."int"),
"sessionColumns" => explode($WA_Auth_Separator,"AccountID".$WA_Auth_Separator."UserLevel"),
"sessionNames" => explode($WA_Auth_Separator,"AccountID".$WA_Auth_Separator."UserLevel"),
"successRedirect" => "home.php",
"failRedirect" => "",
"gotoPreviousURL" => TRUE,
"keepQueryString" => TRUE
);
WA_AuthenticateUser($WA_Auth_Parameter);
}
?>