function try_login($user, $pass) { include_once 'backend/backend.php'; $backend = new backend(); $the_user = $backend->trylogin($user, $pass); if ($the_user[0]) { session_start(); $_SESSION[get_variable("prfx") . "_name"] = $user; $_SESSION[get_variable("prfx") . "_userid"] = $the_user[1][0]; $_SESSION[get_variable("prfx") . "_fname"] = $the_user[1][1]; return true; } return false; }