aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-base/www/policy/private/session/sessionAdmin-pre.php
blob: 08b5578189f64ac7d3aaf56568eba07f59012fbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>';

    }


?>