Esempio n. 1
0
 public function login($login, $password, $request = "")
 {
     if (!isset($this->lms_user)) {
         // PORTAL NOT INITIALIZED YET
         $this->initialize();
     }
     if (!$this->lms_user->login($login, $password)) {
         return FALSE;
     }
     $_SESSION["LMS_USER"] = $this->lms_user;
     language_support::choose_language(lms_steam::get_user_language());
     if (empty($request)) {
         header("Location: " . PATH_URL . "home/");
     } else {
         header("Location: " . PATH_SERVER . $request);
     }
 }