예제 #1
0
 /**
  * Initializes the User session
  */
 public static function init($id = 0)
 {
     if ($id) {
         $_SESSION['User'] = new PHPWS_User($id);
         $_SESSION['User']->setLogged(true);
         Current_User::updateLastLogged();
         Current_User::getLogin();
     } else {
         $_SESSION['User'] = new PHPWS_User();
     }
 }