コード例 #1
0
 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");
     }
 }
コード例 #2
0
 /**
  * Constructor.
  */
 function ImportedUser()
 {
     $this->roles = array();
     parent::User();
 }
コード例 #3
0
ファイル: Group.php プロジェクト: sysraj86/carnivalcrm
 function Group()
 {
     parent::User();
 }
コード例 #4
0
 /**
  * Create a new PrivilegeUser instance.
  *
  * @access public
  * @since  2.0
  */
 function PrivilegeUser()
 {
     parent::User();
     $this->secure = array();
 }
コード例 #5
0
 function CurrentUser($md5)
 {
     $md5 = db_escape($md5);
     parent::User("md5 = '{$md5}' AND verified = 1");
 }
コード例 #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++;
 }
コード例 #7
0
ファイル: user.inc.php プロジェクト: BackupTheBerlios/k4bb
 function Guest()
 {
     parent::User();
     $this->info = array('name' => '', 'email' => '', 'id' => 0, 'perms' => 1, 'styleset' => '');
 }
コード例 #8
0
 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++;
 }
コード例 #9
0
 function UserSession($email, $id)
 {
     parent::User($email, $id);
     $this->session = new VisitorSession($email);
 }