function ewiki_mpi_honeypot($action, $args, &$iii, &$s) { global $ewiki_data, $ewiki_config; $ewiki_config["@"] = 1; $ewiki_config["feedbots_badguys"] = "@" . str_replace("\n", ",@", trim($ewiki_data["refs"])); return ewiki_email_protect_feedbots(20); }
function ewiki_email_protect_form($id, $data = 0, $action = 0, $text = "PROTE1", $url = "") { if ($url || ($email = @$_REQUEST[EWIKI_UP_ENCEMAIL])) { $html = "<h3>" . ewiki_t("PROTE0") . "</h3>\n"; if (empty($_REQUEST[EWIKI_UP_NOSPAMBOT])) { #// from GET,POST,COOKIE empty($url) and $url = ewiki_script("", EWIKI_PAGE_EMAIL); $html .= ewiki_t($text) . "<br /><br /><br />\n"; $html .= '<form action="' . $url . '" method="POST" enctype="multipart/form-data" encoding="iso-8859-1">'; $html .= '<fieldset class="invisiblefieldset">'; $html .= '<input type="hidden" name="' . EWIKI_UP_ENCEMAIL . '" value="' . $email . '" />'; foreach (array_merge($_GET, $_POST) as $var => $value) { if ($var != "id" && $var != EWIKI_UP_ENCEMAIL && $var != EWIKI_UP_NOSPAMBOT) { $html .= '<input type="hidden" name="' . s($var) . '" value="' . s($value) . '" />'; } } $html .= '<input type="checkbox" name="' . EWIKI_UP_NOSPAMBOT . '" value="true" /> ' . ewiki_t("PROTE4") . '<br /><br />'; $html .= '<input type="submit" name="go" /></fieldset></form><br /><br />'; if (EWIKI_FAKE_EMAIL_LOOP) { $html .= "\n" . ewiki_t("PROTE7") . "<br />\n"; $html .= ewiki_email_protect_feedbots(); } } else { $email = ewiki_email_protect_encode($email, -1); $html .= ewiki_t("PROTE6") . "<br />"; $html .= '<a href="mailto:' . $email . '">' . $email . '</a>'; if (EWIKI_HTTP_HEADERS && empty($_COOKIE[EWIKI_UP_NOSPAMBOT])) { setcookie(EWIKI_UP_NOSPAMBOT, "grant_access", time() + 7 * 24 * 3600, "/"); } } } return $html; }
function ewiki_email_protect_form($id, $data = 0, $action = 0, $text = "PROTE1", $url = "") { global $ewiki_config; $html = "<h3>" . ewiki_t("PROTE0") . "</h3>\n"; #-- get encoded-email parameter if ($url || ($email = @$_REQUEST[EWIKI_UP_ENCEMAIL])) { #-- check for unlock cookie / post variable if (empty($_REQUEST[EWIKI_UP_NOSPAMBOT])) { if (empty($url)) { $url = ewiki_script("", EWIKI_PAGE_EMAIL); } $html .= ewiki_t($text) . "<br /><br /><br />\n"; $html .= '<form action="' . $url . '" method="POST" enctype="multipart/form-data" encoding="iso-8859-1">'; $html .= '<input type="hidden" name="' . EWIKI_UP_ENCEMAIL . '" value="' . $email . '">'; foreach (array_merge($_GET, $_POST) as $var => $value) { if ($var != "id" && $var != EWIKI_UP_ENCEMAIL && $var != EWIKI_UP_NOSPAMBOT) { $html .= '<input type="hidden" name="' . htmlentities($var) . '" value="' . htmlentities($value) . '">'; } } $html .= '<input type="checkbox" name="' . EWIKI_UP_NOSPAMBOT . '" value="true" id="no_spambot_checkbox"><label for="no_spambot_checkbox"> ' . ewiki_t("PROTE4") . '</label><br /><br />'; $html .= '<input type="submit" name="go"></form><br /><br />'; if (EWIKI_FAKE_EMAIL_LOOP) { $html .= "\n" . ewiki_t("PROTE7") . "<br />\n"; $html .= ewiki_email_protect_feedbots(); } } else { $email = ewiki_email_protect_encode($email, -1); $html .= ewiki_t("PROTE6") . "<br />"; $html .= '<a href="mailto:' . $email . '">' . $email . '</a>'; if (EWIKI_HTTP_HEADERS && empty($_COOKIE[EWIKI_UP_NOSPAMBOT])) { setcookie(EWIKI_UP_NOSPAMBOT, "grant_access", time() + 7 * 24 * 3600, "/"); } #-- must disable the page plugin mangling filter manually $ewiki_config["@"] = 0; // flag value doesn't matter here } } else { // $html .= "This page makes no sense standalone."; $html .= "No encoded email address given in parameters."; } return $html; }