Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->_model = new Forums();
     $this->_view = new ForumsView($this->_model);
     //                $this->_view->page=new RoxGenericPage();
     $this->BW_Right = MOD_right::get();
     $this->BW_Flag = MOD_flag::get();
     $this->request = PRequest::get()->request;
     $this->forums_uri = $this->get_forums_uri();
     $this->_model->forums_uri = $this->forums_uri;
 }
Example #2
0
 /**
  * singleton getter
  * 
  * @param void
  * @return PApps
  */
 public static function get()
 {
     if (!isset(self::$_instance_flag)) {
         $c = __CLASS__;
         self::$_instance_flag = new $c();
     }
     return self::$_instance_flag;
 }
Example #3
0
 public function CaptchaNeeded($IdMember)
 {
     // In case this member is submitted to Captcha
     $ss = "select count(*) as NbTrust from comments where comments.Quality='Good' and comments.IdToMember=" . $IdMember;
     $mSender = $this->singleLookup($ss);
     $BW_Rights = new MOD_right();
     $BW_Flags = new MOD_flag();
     return $mSender->NbTrust <= 0 or $BW_Flags->HasFlag("RequireCaptchaForContact");
 }