if(isset($_SESSION)) {
if(isset($_SESSION["username"])) {
+ if(!gwvpmini_isUserEnabled($_SESSION["id"])) return false;
return true;
}
}
return $details["username"];
}
+function gwvpmini_isUserEnabled($id=-1)
+{
+ if($id == -1) {\r
+ if(isset($_SESSION)) if(isset($_SESSION["id"])) $id = $_SESSION["id"];\r
+ }\r
+ \r
+ if($id == -1) return false;\r
+ \r
+ $lev_t = gwvpmini_getUser(null, null, $id);
+
+ $lev = $lev_t["status"];\r
+ \r
+ if($lev == 0) return true;\r
+ \r
+ return false;\r
+
+}
+
?>
\ No newline at end of file