Example #1
0
 public function index()
 {
     $model = new \SKS\MODEL\UserModel();
     $this->view->title = 'Users';
     $this->view->userList = $model->userList();
     $this->view->render('user/manage_users');
 }
Example #2
0
 public function index()
 {
     \SKS\LIB\Session::checkAuthorPermission();
     $model = new \SKS\MODEL\UserModel();
     $this->view->title = 'Comments';
     $this->view->userList = $model->userList();
     $this->view->render('comment/manage_comments');
 }
Example #3
0
 public function loginCallback()
 {
     $data = \SKS\UTIL\FacebookUtil::loginCallback();
     //echo "From Logincallback";
     if ($data != null) {
         //echo "<br> data value ";
         //print_r($data);
         //update user and sent for login
         $userModel = new \SKS\MODEL\UserModel();
         $user = $userModel->updateUser($data);
         // exit("user id : " .  $user->getId());
         $this->secureLogin($user);
     } else {
         $this->view->error = "Error encountered while loggin through facebook.";
         $this->view->render("login/login");
     }
 }
Example #4
0
File: User.php Project: sks40gb/jnv
 public function sendActivationCode()
 {
     $email = $_POST["email"];
     $model = new \SKS\MODEL\UserModel();
     $code = $model->getActivationCode($email);
     if ($code == null) {
         $this->view->error = "Invalid Email : " . $email;
     } else {
         $htmlMessage = LINK_RESET_PASSWORD . $code;
         $sent = \EmailUtil::send(array($email => $email), "JNV | Reset your password", $htmlMessage);
         //\EmailUtil::contact_us(array($email=>$email), "JNV | Reset your password",$htmlMessage);
         if ($sent) {
             $this->view->message = "Reset email has been sent. Please check your email.";
         } else {
             $this->view->error = "Error encountered while sending activation code";
         }
     }
     $this->view->render('login/include/reset_password', false);
 }
Example #5
0
<table class="table table-condensed"> 
    <thead> 
        <tr> 
            <th>Action</th> 
            <th>First Name</th> 
            <th>Last Email</th> 
            <th>Role</th> 
            <th>Email</th> 
            <th>Gender</th> 
            <th>Active</th> 
            <th>FB Id</th> 
            <th>Profile</th> 
            <th>Created On</th> 
        </tr> 
    </thead> 
    <tbody> 
        <?php 
$url = URL . "userAction/ajaxUserList";
$model = new SKS\MODEL\UserModel();
$model->pagination($url);
?>
    </tbody> 
</table>