diff options
Diffstat (limited to 'mayor-orig/www/policy/private/session/sessionAdmin-pre.php')
-rw-r--r-- | mayor-orig/www/policy/private/session/sessionAdmin-pre.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mayor-orig/www/policy/private/session/sessionAdmin-pre.php b/mayor-orig/www/policy/private/session/sessionAdmin-pre.php new file mode 100644 index 00000000..08b55781 --- /dev/null +++ b/mayor-orig/www/policy/private/session/sessionAdmin-pre.php @@ -0,0 +1,24 @@ +<?php + + if (_RIGHTS_OK !== true) die(); + + if (_POLICY != 'private' || !memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup'])) { + $_SESSION['alert'][] = 'page:insufficient_access'; + } else { + + if ($action == 'deleteSession') { + + $policy = readVariable($_POST['delPolicy'], 'enum', null, $POLICIES); + $userAccount = readVariable($_POST['delSessionID'], 'string', null); + if (isset($policy) && isset($userAccount)) { + deleteSession($userAccount, $policy); + } else { $_SESSION['alert'][] = 'message:wrong_data:userAccount,policy:'.$policy.':'.$userAccount; } + + } + $ADAT['session'] = getSessions(); +//echo '<pre>'; var_dump($ADAT); echo '</pre>'; + + } + + +?> |