Example #1
0
 function render_after($data)
 {
     $data['user_ip'] = $this->get_user_ip();
     if ($this->_user) {
         $data['user'] = $this->_user->render();
     }
 }
Example #2
0
 /**
  * Check acls
  * 
  * @param mixed $section
  * @param mixed $id
  * @param mixed $op
  * @param mixed $is_submitted
  */
 function check_acls($section, $id, $op)
 {
     if (!$this->user->is_allow($section, $id, $op)) {
         core::dprint(array("Access denied %s %s %s", $section, $id, $op));
         throw new acl_exception(sprintf("Access denied %s %s %s", $section, $id, $op));
     }
 }
Example #3
0
 /**
  * To template
  */
 public function render()
 {
     $data = $this->user->render();
     $data['logged_in'] = $this->_logged_in;
     $data['useragent'] = $this->get_ua();
     $data['session_sid'] = $this->_session_id;
     return $data;
 }
Example #4
0
 function __construct($container)
 {
     parent::__construct($container, false);
     $this->nick = 'Anonymous';
     $this->login = '******';
     $this->id = users_collection::ANONYMOUS;
     $this->active = false;
     $this->gender = 0;
     $this->level = 0;
     $this->gid = 0;
     $this->payd_user = false;
     // $this->set_container($container);
 }