accesslevel != 'Admin') {
header('Location: ../login.php');
exit;
}
$database = new Database(DB_HOST, DB_NAME, DB_USER, DB_PASS, DB_PORT, DB_SCMA);
$dbconn = $database->getConn();
$obj = new user_Class($dbconn, $_SESSION['user']->id);
$users = $obj->getRows();
$myuser_result = $obj->getById($_SESSION['user']->id);
$myuser = pg_fetch_assoc($myuser_result);
pg_free_result($myuser_result);
$acc_obj = new access_group_Class($dbconn, $_SESSION['user']->id);
$acc_grps = $acc_obj->getRowsArr();
?>
ID |
name |
Email |
Password |
FTP User |
Access Level |
Access Groups |
Actions |
=$user->id?> |
= $user->name?> |
= $user->email?> |
= $user->password?> |
= $user->ftp_user?> |
=$user->accesslevel?> |
getByUserId($user->id);
$grp_ids = implode(',',array_keys($usr_acc_grps));
$grp_names = implode(',',array_values($usr_acc_grps));
?>
=$grp_names?> |
|
×
Note: Your personal FTP login username is
=$myuser['ftp_user']?>. For password use your login password.