Beispiel #1
0
 public function __construct(&$params, B2JMessageBoard &$messageboard, $fieldsbuilder)
 {
     parent::__construct($params, $messageboard);
     $this->Name = "B2JAntispam";
     $this->FieldsBuilder = $fieldsbuilder;
     $this->isvalid = intval($this->ValidateForSpam($fieldsbuilder));
 }
Beispiel #2
0
 public function __construct(&$params, B2JMessageBoard &$messageboard, &$fieldsbuilder)
 {
     parent::__construct($params, $messageboard);
     $this->Name = "B2JSubmitter";
     $this->isvalid = count($_POST) > 1 && isset($_POST[$this->GetId()]);
     $this->fieldsbuilder = $fieldsbuilder;
 }
Beispiel #3
0
 public function __construct(&$params, B2JMessageBoard &$messageboard)
 {
     parent::__construct($params, $messageboard);
     $this->Name = "B2JCaptcha";
     $this->Fields['Value'] = $this->FaultTolerance(JRequest::getVar("b2jcaptcha", NULL, 'POST'));
     $jsession = JFactory::getSession();
     $this->b2jsession = new B2JSession($jsession->getId(), $this->Application->b2jcomid, $this->Application->b2jmoduleid, $this->Application->bid);
     $this->Fields['Secret'] = $this->FaultTolerance($this->b2jsession->Load('captcha_answer'));
     $this->isvalid = intval($this->Validate());
 }
Beispiel #4
0
 public function __construct(&$params, B2JMessageBoard &$messageboard, &$fieldsbuilder)
 {
     parent::__construct($params, $messageboard);
     $this->FieldsBuilder = $fieldsbuilder;
     $this->Logger = new B2JLogger();
     $jsession = JFactory::getSession();
     $this->B2JSession = new B2JSession($jsession->getId(), $this->Application->b2jcomid, $this->Application->b2jmoduleid, $this->Application->bid);
     $data = $this->B2JSession->Load('filelist');
     if ($data) {
         $this->FileList = explode("|", $data);
     } else {
         $this->FileList = array();
     }
 }
Beispiel #5
0
 public function __construct(&$params, B2JMessageBoard &$messageboard)
 {
     parent::__construct($params, $messageboard);
     $this->Name = "FAjaxFilePump";
     $this->isvalid = true;
 }
Beispiel #6
0
 public function __construct(&$params, B2JMessageBoard &$messageboard)
 {
     parent::__construct($params, $messageboard);
     $this->Name = "FFilePump";
     $this->isvalid = intval($this->DoUpload());
 }
Beispiel #7
0
 protected function LoadField($type, $number)
 {
     $name = $type . (string) $number;
     if (!parent::LoadField($type, $name)) {
         return false;
     }
     $this->Fields[$name]['Value'] = htmlspecialchars(JRequest::getVar($this->Fields[$name]['PostName'], NULL, 'POST'));
     if ($this->Fields[$name]['Value'] == $this->Fields[$name]['Name']) {
         $this->Fields[$name]['Value'] = "";
     }
     $this->Fields[$name]['IsValid'] = intval($this->ValidateField($this->Fields[$name]['Value'], $this->Fields[$name]['Display']));
     if ($type == "checkbox" && $this->Fields[$name]['Value'] == "") {
         $this->Fields[$name]['Value'] = JText::_('JNO');
     }
     return true;
 }