1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
<?php
/*
Module: base/session
*/
if (_RIGHTS_OK !== true) die();
$userAccount = readVariable($_GET['userAccount'],'userAccount');
$toPolicy = readVariable($_POST['toPolicy'], 'enum',
readVariable($_GET['toPolicy'], 'enum', _POLICY, $POLICIES),
$POLICIES
);
if ($userAccount == '') $userAccount = _USERACCOUNT;
// Milyen kategóriába sorolható a userAccount, illetve az aktuális user
$userCategories = getAccountCategories($userAccount, $toPolicy);
if (
_POLICY == 'private' &&
(
memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup']) ||
(
memberOf(_USERACCOUNT,'diakadmin') &&
in_array('diak',$userCategories)
)
)
) define('_ACCESS_AS', _ADMIN_ACCESS);
elseif ($userAccount == _USERACCOUNT) define('_ACCESS_AS', _SELF_ACCESS);
else define('_ACCESS_AS', _OTHER_ACCESS);
list($backendAttrs, $backendAttrDef) = getBackendAttrs('Account', $toPolicy);
if ($action == 'changeSettings') {
changeAccountInfo($userAccount, $toPolicy);
} elseif ($action=='userSettingsModify') {
$changeSkinTo = readVariable($_POST['changeSkinTo'],'enum',null,$SKINSSHOW);
setUserSettings($userAccount, $toPolicy, array('skin'=>$changeSkinTo));
} elseif ($action=='generateEduroamId') {
} elseif ($action=='modoifyEduroamId') {
}
$userInfo = getUserInfo($userAccount, $toPolicy); // keretrendszer attribútumai
$accountInfo = getAccountInfo($userAccount, $toPolicy); // backend attribútumai
$ADAT = getUserSettings($userAccount, $toPolicy);
if ($toPolicy=='private' && _POLICY ==='private') {
$ADAT['eduroamAdat'] = getEduroamSettings($userAccount, $toPolicy);
// dump($ADAT);
}
?>
|