/** * Constructor */ public function __construct() { //LOGIN if (http_request::isPost('email_admin')) { $this->email_admin = form_inputEscape::simpleClean($_POST['email_admin']); } if (http_request::isPost('passwd_admin')) { $this->passwd_admin = filter_escapeHtml::clean(filter_rsa::hashEncode('sha1', $_POST['passwd_admin'])); } if (http_request::isPost('hashtoken')) { $this->hashtoken = form_inputEscape::simpleClean($_POST['hashtoken']); } //LOSTPASSWORD if (http_request::isPost('lo_email_admin')) { $this->lo_email_admin = form_inputFilter::isMail($_POST['lo_email_admin']); } }
/** * Combine function trim and strip_tag for input * * @param string $str * @return string */ public static function tagClean($str) { return filter_escapeHtml::trim(filter_escapeHtml::clean($str)); }