public function __construct(&$params, B2JMessageBoard &$messageboard, $fieldsbuilder) { parent::__construct($params, $messageboard); $this->Name = "B2JAntispam"; $this->FieldsBuilder = $fieldsbuilder; $this->isvalid = intval($this->ValidateForSpam($fieldsbuilder)); }
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; }
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()); }
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(); } }
public function __construct(&$params, B2JMessageBoard &$messageboard) { parent::__construct($params, $messageboard); $this->Name = "FAjaxFilePump"; $this->isvalid = true; }
public function __construct(&$params, B2JMessageBoard &$messageboard) { parent::__construct($params, $messageboard); $this->Name = "FFilePump"; $this->isvalid = intval($this->DoUpload()); }
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; }