function login() { if (isset($_POST['username']) and isset($_POST['password'])) { $username = $_POST['username']; $password = $_POST['password']; if ($this->authenticate($username, $password)) { session_start(); $user = new User(); $user->User($username); $_SESSION['user'] = $user; header("Location:index.php"); exit; } else { header("Location:index.php?url=users/index/err"); } } else { header("Location:index.php?url=users/index"); } }
/** * Constructor. */ function ImportedUser() { $this->roles = array(); parent::User(); }
function Group() { parent::User(); }
/** * Create a new PrivilegeUser instance. * * @access public * @since 2.0 */ function PrivilegeUser() { parent::User(); $this->secure = array(); }
function CurrentUser($md5) { $md5 = db_escape($md5); parent::User("md5 = '{$md5}' AND verified = 1"); }
public function Client($i_FirstName, $i_SecondName, $i_Phone, $i_Email, $i_Rank) { parent::User($i_FirstName, $i_SecondName, $i_Phone, $i_Email); $this->mRank = $i_Rank; $this->mID = $s_ID++; }
function Guest() { parent::User(); $this->info = array('name' => '', 'email' => '', 'id' => 0, 'perms' => 1, 'styleset' => ''); }
public function Employee($i_FirstName, $i_SecondName, $i_Phone, $i_Email, $i_permisLevel) { parent::User($i_FirstName, $i_SecondName, $i_Phone, $i_Email); $this->permissionsLevel = $i_permisLevel; $this->mID = $s_ID++; }
function UserSession($email, $id) { parent::User($email, $id); $this->session = new VisitorSession($email); }