diff options
author | M.Gergo | 2019-03-08 21:20:34 +0100 |
---|---|---|
committer | M.Gergo | 2019-03-08 21:20:34 +0100 |
commit | f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 (patch) | |
tree | e13e60e4b94a3b58f1e2bfbe271102c8f04b67bd /mayor-orig/www/policy/private/session/accountInfo-pre.php | |
parent | c76a004b0135786f2742283f8d5f917106f58bd8 (diff) | |
download | mayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.tar.gz mayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.zip |
további rendrakás
Diffstat (limited to 'mayor-orig/www/policy/private/session/accountInfo-pre.php')
-rw-r--r-- | mayor-orig/www/policy/private/session/accountInfo-pre.php | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/mayor-orig/www/policy/private/session/accountInfo-pre.php b/mayor-orig/www/policy/private/session/accountInfo-pre.php deleted file mode 100644 index 9b54adf5..00000000 --- a/mayor-orig/www/policy/private/session/accountInfo-pre.php +++ /dev/null @@ -1,75 +0,0 @@ -<?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=='tokenLogout') { - - revokeTokens(); - - } elseif ($action=='userSettingsModify') { - - $changeSkinTo = readVariable($_POST['changeSkinTo'],'enum',null,$SKINSSHOW); - setUserSettings($userAccount, $toPolicy, array('skin'=>$changeSkinTo)); - - } elseif ($action=='generateEduroamId') { - $eduroamDOMAIN = readVariable($_POST['eduroamDOMAIN'],'enum',null,$eduroamDOMAINS); - $eduroamPASSWORD = @exec('pwgen'); - if (__TANAR===true) { - $eduroamAFFILIATION = 'faculty'; - } elseif (__DIAK===true) { - $eduroamAFFILIATION = 'student'; - } else { - $eduroamAFFILIATION = 'staff'; - } - createEduroamSettings(array('userAccount'=>$userAccount,'policy'=> $toPolicy, - 'eduroamUID' => $userAccount, - 'eduroamDOMAIN'=>$eduroamDOMAIN, - 'eduroamAFFILIATION'=>$eduroamAFFILIATION, - 'eduroamPASSWORD'=>$eduroamPASSWORD)); - } elseif ($action=='modoifyEduroamId') { - - } - - $userInfo = getUserInfo($userAccount, $toPolicy); // keretrendszer attribútumai - $accountInfo = getAccountInfo($userAccount, $toPolicy); // backend attribútumai - - $ADAT = getUserSettings($userAccount, $toPolicy); - $ADAT['activity'] = getMyActivity(); - - if ($toPolicy=='private' && _POLICY ==='private') { - $ADAT['eduroamAdat'] = getEduroamSettings($userAccount, $toPolicy); - // dump($ADAT); - } -?> |