Ejemplo n.º 1
0
 function check_user()
 {
     //	$_SESSION['user'] = "******";
     //	$_SESSION['pw'] = "password";
     $test_access_level = new myentitydb_Access_user();
     if (!$test_access_level->access_page($_SERVER['PHP_SELF'], $_SERVER['QUERY_STRING'], 1)) {
         //echo "in SOM check user, didn't pass access page<br>";
         $this->xml_string = $test_access_level->xml_string;
         $this->xslt_file = $test_access_level->xslt_file;
         return false;
     }
     //echo "passssed";
     if (!$test_access_level->is_logged_in()) {
         //echo "hellcooo no no:".$test_access_level->is_logged_in();
         $this->xml_string = $test_access_level->xml_string;
         $this->xslt_file = $test_access_level->xslt_file;
         return false;
     }
     //	$rec_count = EntityManagementSystems::get_eid_rec_count($user_id, 7, 3);
     //	return ($rec_count == 1);
     return true;
 }