public function __construct(&$params, &$messages, $fieldsbuilder) { parent::__construct($params, $messages); $this->Name = "FAntispam"; $this->FieldsBuilder = $fieldsbuilder; $this->isvalid = intval($this->ValidateForSpam($fieldsbuilder)); }
public function __construct(&$params, FoxMessageBoard &$messageboard, &$fieldsbuilder) { parent::__construct($params, $messageboard); $this->FieldsBuilder = $fieldsbuilder; $this->logger = new FLogger(); $this->load_newsletter_config(); $this->load_newsletter_lists(); }
public function __construct(&$params, &$messages) { parent::__construct($params, $messages); $this->Name = "FSubmitter"; // count($_POST): // 0 -> no submitted // 1 -> submitted, but $_FILES exceeds server limits, and is been resetted // 1+ -> submittend. We can try to validate fields. $this->isvalid = count($_POST) > 1 && isset($_POST[$this->GetId()]); }
public function __construct(&$params, FoxMessageBoard &$messageboard) { parent::__construct($params, $messageboard); $this->Name = "FCaptcha"; // Read captcha value submitted $this->Fields['Value'] = $this->FaultTolerance(JRequest::getVar("fcaptcha", NULL, 'POST')); // Read from the session $this->Fields['Secret'] = $this->FaultTolerance($this->session->get("captcha_answer", "", $this->namespace)); // Check if the answer if correct $this->isvalid = intval($this->Validate()); }
public function __construct(&$params, FoxMessageBoard &$messageboard, &$fieldsbuilder) { //$this->Params = & $params; //$this->MessageBoard = & $messageboard; parent::__construct($params, $messageboard); /* JLog::addLogger(array( 'text_file' => 'foxcontact.log.php', "text_entry_format" => "{DATE}\t{TIME}\t{PRIORITY}\t{CATEGORY}\t{MESSAGE}" )); */ $this->FieldsBuilder = $fieldsbuilder; $this->Logger = new FLogger(); // Read attachments file list from the session $this->FileList = $this->session->get("filelist", array(), $this->namespace); }
public function __construct(&$params, &$messages) { parent::__construct($params, $messages); $this->Name = "FCaptcha"; // Read captcha value submitted $this->Fields['Value'] = $this->FaultTolerance(JRequest::getVar("fcaptcha", NULL, 'POST')); // Read captcha answer $jsession = JFactory::getSession(); $this->fsession = new FSession($jsession->getId(), $this->Application->cid, $this->Application->mid); $this->Fields['Secret'] = $this->FaultTolerance($this->fsession->Load('captcha_answer')); /* // Reset captcha solution in the session after read it, avoiding that a f****d lamer // abuse of the *same session* without request the captcha again, to send tons of email $fsession->PurgeValue("captcha_answer"); // Do not purge it any more to keep a good answer if other fields are wrong. // However, purge it after email sent, avoiding the lamer above use the same value to send other email */ // Check if the answer if correct $this->isvalid = intval($this->Validate()); }
public function __construct(&$params, FoxMessageBoard &$messageboard, &$fieldsbuilder) { parent::__construct($params, $messageboard); /* JLog::addLogger(array( 'text_file' => 'foxcontact.log.php', "text_entry_format" => "{DATE}\t{TIME}\t{PRIORITY}\t{CATEGORY}\t{MESSAGE}" )); */ $this->FieldsBuilder = $fieldsbuilder; $this->Logger = new FLogger(); // Read attachments file list from the session $jsession = JFactory::getSession(); $this->FSession = new FSession($jsession->getId(), $this->Application->cid, $this->Application->mid); $data = $this->FSession->Load('filelist'); // Read the list from the session if ($data) { $this->FileList = explode("|", $data); } else { $this->FileList = array(); } }
public function __construct(&$params, FoxMessageBoard &$messageboard) { parent::__construct($params, $messageboard); $this->Name = "FFilePump"; $this->isvalid = intval($this->DoUpload()); }
protected function LoadField($type, $number) { // Load component parameters $name = $type . (string) $number; // Example: 'text0' // If not to be displayed, it's useless to continue reading other values if (!parent::LoadField($type, $name)) { return false; } // Load data $this->Fields[$name]['Value'] = $this->JInput->post->get($this->Fields[$name]['PostName'], NULL, "string"); // Additional manipulations if ($this->Fields[$name]['Value'] == $this->Fields[$name]['Name']) { // Seems like a submission from the module without filling the field, so let's invalidate the value! $this->Fields[$name]['Value'] = ""; } // Validation after *all* fields are loaded and manipulated $this->Fields[$name]['IsValid'] = intval($this->ValidateField($this->Fields[$name]['Value'], $this->Fields[$name]['Display'])); // Checkboxes need to be manipulated after validation, otherwise a JNO value will be considered valid // Checkboxes have only JYES or empty values. Translate empty to JNO if ($type == "checkbox" && $this->Fields[$name]['Value'] == "") { $this->Fields[$name]['Value'] = JText::_('JNO'); } return true; }
public function __construct(&$params, &$messages) { parent::__construct($params, $messages); $this->Name = "FAjaxFilePump"; $this->isvalid = true; }
public function __construct(&$params, FoxMessageBoard &$messageboard) { parent::__construct($params, $messageboard); $this->Name = "FAjaxFilePump"; $this->isvalid = true; }