Jakweb.ch stuff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
clouddesk/class/class.user.php

46 lines
1010 B

1 year ago
<?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;
}
}
}
?>