Initial Commit

This commit is contained in:
2024-02-08 12:07:49 -07:00
parent 5813b1109f
commit 43077b57ed
5471 changed files with 682195 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
<?php
/*===============================================*\
|| ############################################# ||
|| # JAKWEB.CH / Version 1.1 # ||
|| # ----------------------------------------- # ||
|| # Copyright 2020 JAKWEB All Rights Reserved # ||
|| ############################################# ||
\*===============================================*/
class JAK_user
{
private $data;
private $lsvar = 0;
private $username = '';
public function __construct($row) {
$this->data = $row;
}
function jakSuperadminaccess($lsvar) {
$useridarray = explode(',', JAK_SUPERADMIN);
// check if userid exist in db.php
if (in_array($lsvar, $useridarray)) {
return true;
} else {
return false;
}
}
function getVar($lsvar) {
// Setting up an alias, so we don't have to write $this->data every time:
$d = $this->data;
if (isset($d[$lsvar])) {
return $d[$lsvar];
} else {
return false;
}
}
}
?>