/** * protected var for dbLayer * * @var void */ function __construct() { if (class_exists('backend_model_message')) { $this->message = new backend_model_message(); } if (magixcjquery_filter_request::isPost('passwd_admin')) { $this->passwd_admin = sha1(magixcjquery_form_helpersforms::inputClean($_POST['passwd_admin'])); } if (magixcjquery_filter_request::isPost('hashtoken')) { $this->hashtoken = magixcjquery_filter_var::escapeHTML($_POST['hashtoken']); } if (magixcjquery_filter_request::isGet('logout')) { $this->logout = magixcjquery_filter_isVar::isPostAlpha($_GET['logout']); } if (magixcjquery_filter_request::isPost('email_admin')) { $this->email_admin = magixcjquery_filter_isVar::isMail($_POST['email_admin']); } //LOSTPASSWORD if (magixcjquery_filter_request::isPost('lo_email_admin')) { $this->lo_email_admin = magixcjquery_filter_isVar::isMail($_POST['lo_email_admin']); } }
/** * create childnode url * @param URL $loc * @param void $writeImageLoc */ public function writeMakeNodeImage($loc, $imageloc, $uri = '', $forimage = false) { if ($this->validElement($loc) == true) { $this->writer->startElement('url'); // [2] Second Node $this->writer->writeElement('loc', magixcjquery_filter_isVar::isURL(magixcjquery_filter_var::escapeHTML($loc))); if ($forimage != false) { foreach ($forimage as $img) { if ($img[$imageloc] != NULL) { self::writeImageLoc($uri . $img[$imageloc]); } } } else { self::writeImageLoc($uri . $imageloc); } $this->writer->endElement(); } }
/** * Combine function trim and escapeHTML and downTextCase for input * * @param string $str * @return string */ public static function inputCleanStrolower($str) { return magixcjquery_filter_var::trimText(magixcjquery_filter_var::escapeHTML(magixcjquery_string_convert::downTextCase($str))); }