Added rudimentary support for UID/GID
[mirrors/SokoMan.git] / lib / Sklad_Auth.class / common.php
index eff35d289ef4b694bd5845943587129cbfaf3d9b..fce075f7a9a92aaf206e550da5ac676e5258b715 100755 (executable)
 * @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;
        }
+
+       function get_user_id($die=true) {
+               $user = $this->get_user($die);
+               return $user['id'];
+       }
 }
 
 require_once(BACKEND_AUTH.'.php');
This page took 0.11194 seconds and 4 git commands to generate.