PHP User::User Examples

PHP User::User - 9 examples found. These are the top rated real world PHP examples of User::User extracted from open source projects. You can rate examples to help us improve the quality of examples.
 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");
     }
 }
Example #2
0
 /**
  * Constructor.
  */
 function ImportedUser()
 {
     $this->roles = array();
     parent::User();
 }
Example #3
0
 function Group()
 {
     parent::User();
 }
Example #4
0
 /**
  * Create a new PrivilegeUser instance.
  *
  * @access public
  * @since  2.0
  */
 function PrivilegeUser()
 {
     parent::User();
     $this->secure = array();
 }
Example #5
0
 function CurrentUser($md5)
 {
     $md5 = db_escape($md5);
     parent::User("md5 = '{$md5}' AND verified = 1");
 }
Example #6
0
 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++;
 }
Example #7
0
 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);
 }