diff options
author | M.Gergo | 2018-07-06 11:14:41 +0200 |
---|---|---|
committer | M.Gergo | 2018-07-06 11:14:41 +0200 |
commit | 43de9af71f7f4ca5731b94a06d688ae8412ba427 (patch) | |
tree | 54835de1dfcda504c02da261f0dc26885aed2e89 /mayor-orig/www/include/modules/session/accountInfo.php | |
parent | 50310b0e4513ee3fcce67351ae61e8fff851130e (diff) | |
download | mayor-43de9af71f7f4ca5731b94a06d688ae8412ba427.tar.gz mayor-43de9af71f7f4ca5731b94a06d688ae8412ba427.zip |
2018/Feb/28 -i állapot hozzáadva, mint a módosítások kiindulási állapota
Diffstat (limited to 'mayor-orig/www/include/modules/session/accountInfo.php')
-rw-r--r-- | mayor-orig/www/include/modules/session/accountInfo.php | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/mayor-orig/www/include/modules/session/accountInfo.php b/mayor-orig/www/include/modules/session/accountInfo.php new file mode 100644 index 00000000..4b1521d0 --- /dev/null +++ b/mayor-orig/www/include/modules/session/accountInfo.php @@ -0,0 +1,48 @@ +<?php +/* + Modules: base/session + + share --> function getAccountInfo($userAccount, $toPolicy = '') { + share --> function getUserInfo($userAccount, $toPolicy = '') { + function changeAccountInfo($userAccount, $toPolicy = '') { +*/ + + require('include/share/session/accountInfo.php'); + +########################################################### +# changeAccountInfo - felhasználói információk módosítása +########################################################### + + function changeAccountInfo($userAccount, $toPolicy = _POLICY) { + + global $AUTH; + + require_once('include/backend/'.$AUTH[$toPolicy]['backend'].'/session/accountInfo.php'); + $func = $AUTH[$toPolicy]['backend'].'ChangeAccountInfo'; + return $func($userAccount, $toPolicy); + + + } + + function getUserSettings($userAccount,$toPolicy = _POLICY) { + + $q = "SELECT * FROM settings WHERE userAccount='%s' AND policy='%s'"; + $res = db_query($q, array('modul'=>'login','values'=>array($userAccount,$toPolicy), 'result'=>'record')); + return $res; + + } + + function setUserSettings($userAccount,$toPolicy,$ADAT) { + + if (!isset($ADAT['skin']) || $ADAT['skin']=='') { + $q = "UPDATE settings SET skin=NULL WHERE userAccount='%s' AND policy='%s'"; + $res = db_query($q, array('modul'=>'login','values'=>array($userAccount,$toPolicy))); + } else { + $q = "UPDATE settings SET skin='%s' WHERE userAccount='%s' AND policy='%s'"; + $res = db_query($q, array('modul'=>'login','values'=>array($ADAT['skin'],$userAccount,$toPolicy))); + } + return $res; + + } + +?> |