function securitymessage($subject, $message, $reload = TRUE, $form = FALSE) { global $_G; $scuritylang = array('attackevasive_1_subject' => '频繁刷新限制', 'attackevasive_1_message' => '您访问本站速度过快或者刷新间隔时间小于两秒!请等待页面自动跳转 ...', 'attackevasive_2_subject' => '代理服务器访问限制', 'attackevasive_2_message' => '本站现在限制使用代理服务器访问,请去除您的代理设置,直接访问本站。', 'attackevasive_4_subject' => '页面重载开启', 'attackevasive_4_message' => '欢迎光临本站,页面正在重新载入,请稍候 ...'); $subject = $scuritylang[$subject] ? $scuritylang[$subject] : $subject; $message = $scuritylang[$message] ? $scuritylang[$message] : $message; if ($_GET['inajax']) { security_ajaxshowheader(); echo '<div id="attackevasive_1" class="popupmenu_option"><b style="font-size: 16px">' . $subject . '</b><br /><br />' . $message . '</div>'; security_ajaxshowfooter(); } else { echo '<html>'; echo '<head>'; echo '<title>' . $subject . '</title>'; echo '</head>'; echo '<body bgcolor="#FFFFFF">'; if ($reload) { echo '<script language="JavaScript">'; echo 'function reload() {'; echo ' document.location.reload();'; echo '}'; echo 'setTimeout("reload()", 1001);'; echo '</script>'; } if ($form) { echo '<form action="' . $G['PHP_SELF'] . '" method="post" autocomplete="off">'; } echo '<table cellpadding="0" cellspacing="0" border="0" width="700" align="center" height="85%">'; echo ' <tr align="center" valign="middle">'; echo ' <td>'; echo ' <table cellpadding="10" cellspacing="0" border="0" width="80%" align="center" style="font-family: Verdana, Tahoma; color: #666666; font-size: 11px">'; echo ' <tr>'; echo ' <td valign="middle" align="center" bgcolor="#EBEBEB">'; echo ' <br /><br /> <b style="font-size: 16px">' . $subject . '</b> <br /><br />'; echo $message; echo ' <br /><br />'; echo ' </td>'; echo ' </tr>'; echo ' </table>'; echo ' </td>'; echo ' </tr>'; echo '</table>'; if ($form) { echo '</form>'; } echo '</body>'; echo '</html>'; } exit; }
function securitymessage($subject, $message, $reload = TRUE, $form = FALSE) { global $_G; /* vot: $scuritylang moved to /source/language/lang_core.php: $scuritylang = array( 'attackevasive_1_subject' => 'Refresh frequency limit', 'attackevasive_1_message' => 'You visit the site too fast, less than two seconds! Please wait a little...', 'attackevasive_2_subject' => 'Access throug proxy servers is restricted', 'attackevasive_2_message' => 'Access to the site through a proxy servers is restricted for mow. Please remove your proxy setting configuration, and access to the site directly.', 'attackevasive_4_subject' => 'Open the page reload', 'attackevasive_4_message' => 'Welcome to the site, the page is re-loading, please wait ...' ); */ /*vot*/ $subject = lang('core', $subject) ? lang('core', $subject) : $subject; /*vot*/ $message = lang('core', $message) ? lang('core', $message) : $message; if ($_GET['inajax']) { security_ajaxshowheader(); echo '<div id="attackevasive_1" class="popupmenu_option"><b style="font-size: 16px">' . $subject . '</b><br /><br />' . $message . '</div>'; security_ajaxshowfooter(); } else { echo '<html>'; echo '<head>'; echo '<title>' . $subject . '</title>'; echo '</head>'; echo '<body bgcolor="#FFFFFF">'; if ($reload) { echo '<script language="JavaScript">'; echo 'function reload() {'; echo ' document.location.reload();'; echo '}'; echo 'setTimeout("reload()", 1001);'; echo '</script>'; } if ($form) { echo '<form action="' . $G['PHP_SELF'] . '" method="post" autocomplete="off">'; } echo '<table cellpadding="0" cellspacing="0" border="0" width="700" align="center" height="85%">'; echo ' <tr align="center" valign="middle">'; echo ' <td>'; echo ' <table cellpadding="10" cellspacing="0" border="0" width="80%" align="center" style="font-family: Verdana, Tahoma; color: #666666; font-size: 11px">'; echo ' <tr>'; echo ' <td valign="middle" align="center" bgcolor="#EBEBEB">'; echo ' <br /><br /> <b style="font-size: 16px">' . $subject . '</b> <br /><br />'; echo $message; echo ' <br /><br />'; echo ' </td>'; echo ' </tr>'; echo ' </table>'; echo ' </td>'; echo ' </tr>'; echo '</table>'; if ($form) { echo '</form>'; } echo '</body>'; echo '</html>'; } exit; }