GIT.Harvie.CZ
/
mirrors
/
SokoMan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Hezčí zámky
[mirrors/SokoMan.git]
/
lib
/
Sklad_Auth.class
/
common.php
diff --git
a/lib/Sklad_Auth.class/common.php
b/lib/Sklad_Auth.class/common.php
index eff35d289ef4b694bd5845943587129cbfaf3d9b..fce075f7a9a92aaf206e550da5ac676e5258b715 100755
(executable)
--- a/
lib/Sklad_Auth.class/common.php
+++ b/
lib/Sklad_Auth.class/common.php
@@
-24,11
+24,16
@@
* @author Tomas Mudrunka
*/
class Sklad_Auth_common {
* @author Tomas Mudrunka
*/
class Sklad_Auth_common {
- function get_
authorized_user_id
($die=true) {
- if(isset($this->
authorized_user_id)) return $this->authorized_user_id
;
+ function get_
user
($die=true) {
+ if(isset($this->
user)) return $this->user
;
if($die) die('No user authorized!!!');
return false;
}
if($die) die('No user authorized!!!');
return false;
}
+
+ function get_user_id($die=true) {
+ $user = $this->get_user($die);
+ return $user['id'];
+ }
}
require_once(BACKEND_AUTH.'.php');
}
require_once(BACKEND_AUTH.'.php');
This page took
0.094964 seconds
and
4
git commands to generate.