<div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?php
Error_Reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR);
$mysql = mysql_connect("localhost","root","");
mysql_select_db ("abk", $mysql);
mysql_query("SET NAMES CP1251");
foreach ($_POST as $k=>$v) {
$_POST[$k] = htmlspecialchars(mysql_real_escape_string($v));
}
foreach ($_GET as $k=>$v) {
$_GET[$k] = htmlspecialchars(mysql_real_escape_string($v));
}
foreach ($_REQUEST as $k=>$v) {
$_REQUEST[$k] = htmlspecialchars(mysql_real_escape_string($v));
}
if(!function_exists("format_string")) {
function format_string(&$string)
{
$string=str_replace("\\n","
",$string);
$string = addslashes(preg_replace(array('/\s+/','/,+/','/\-+/','/\0/s','/%00/'), array(' ',',','-',' ',' '),trim(stripcslashes($string
;
$string=str_replace("
","\\n",$string);
return $string;
}}
array_walk($_REQUEST,"format_string");
array_walk($_POST,"format_string");
array_walk($_GET,"format_string");
//if(date("w")<6 && date("w")>0){
if(date("w")<2 && date("w")>0){
define ("proc_exp", "100");
}else{
define ("proc_exp", "200");
}
$vr_st = mysql_fetch_array(mysql_query("SELECT honorpoints FROM `users` WHERE `id` = 3954 LIMIT 1;"));
if($vr_st['honorpoints']>0){
define("vrag", "on");
}else{
define("vrag", "off");
}
define("MEMCACHE_PATH", "/var/www/antikombatz/data/memcache");
?>