Menu

API:Auth

AntifreeZZe

Auth($login,$pass) is the main authorizing function in the CCMS.
Returns type : QueryResult

Usage

$result = Auth("admin","admin");
if($result->$result == "OK"){
    //Actions with user
}
echo $result->$result . "<br>";
echo $result->$u->$name;

Note

Result of the function can have following values of $result :

  • "MySQL Error" if there is an error in connection or in MySQL Query
  • "Can't find user" if there is no such user
  • "Bad password" if the $pass is wrong

MongoDB Logo MongoDB