Просмотр файла wkat/xconf.php

Размер файла: 3.7Kb
<?
error_reporting(0);

//
$namecat = "wkat.in";// 
$namecat2 = "Wkat.In";//   Wkat.In )
$DB_HOST = "localhost"; //
$DB_USER = "wkat193_kat"; //
$DB_PASS = "pass"; // 
$DB_NAME = "wkat193_kat";  // $mails="[email protected]"; //     
$kolich=6; //  
$site="http://wkat.in"; // // :
$admin="Admin";// 
$admin_icq="853-411";// ICQ  $admin_icq2="853411";// ICQ  ICQ( 853411  - )
$admin_mail="[email protected]";//E-mail  
//:
$log_a="admin"; // 
$pass_a="admin";  //  


mysql_connect($DB_HOST,$DB_USER,$DB_PASS) or die (mysql_error());
mysql_select_db($DB_NAME);
$date_serv=date("d.m.Y");
$datecool_m=date("m.Y");
$q=mysql_query("select `activsit` from `cool_nastr`");
$active_site=mysql_result($q,"activsit");
$res=mysql_query("select * from `date_sss` where dates='".$date_serv."'");
$kolvo=mysql_num_rows($res);
If ($kolvo==0){
$prii=mysql_query("select * from `cool_site` where activ='1'");
while($data=mysql_fetch_array($prii)){
$countiz1=$countiz1+$data['tout'];
$countv1=$countv1+$data['tin'];
}
$yest=mysql_query("select * from `yest`");
$y_kol=mysql_num_rows($yest);
if ($y_kol==0) {
@mysql_query("insert into `yest` values('0','$countv1','$countiz1')");
}
else
{
@mysql_query("update `yest` set `in`=$countv1, `out`=$countiz1 ");
}
@mysql_query("update `cool_site` set tin=0, tout=0;");
@mysql_query("update `oper_in` set `0`=0, `1`=0, `2`=0, `3`=0, `4`=0, `5`=0, `6`=0, `7`=0, `8`=0, `9`=0, `10`=0, `11`=0, `12`=0, `13`=0, `14`=0, `15`=0, `16`=0, `17`=0, `18`=0, `19`=0, `20`=0, `21`=0, `22`=0, `23`=0, `24`=0, `25`=0, `31`=0, `32`=0, `33`=0, `34`=0, `35`=0, `36`=0, `37`=0, `38`=0, `39`=0, `40`=0, `41`=0, `42`=0, `44`=0, `45`=0, `46`=0, `47`=0, `48`=0, `49`=0, `50`=0, `51`=0, `52`=0, `53`=0, `54`=0 ");
@mysql_query("delete from `cool_pro`");
@mysql_query("delete from `kods`");
@mysql_query("delete from `ips`");
@mysql_query("delete from `ipz`");
@mysql_query("delete from `agents`");
@mysql_query("insert into `cool_pro` values('0','$datecool','5','5','5')");
@mysql_query("insert into `date_sss` values('0','$date_serv')");
}
$resss=mysql_query("select * from `month` where date_m='".$datecool_m."'");
$kolvos=mysql_num_rows($resss);
If ($kolvos==0){
@mysql_query("update `opers` set `0`=0, `1`=0, `2`=0, `3`=0, `4`=0, `5`=0, `6`=0, `7`=0, `8`=0, `9`=0, `10`=0, `11`=0, `12`=0, `13`=0, `14`=0, `15`=0, `16`=0, `17`=0, `18`=0, `19`=0, `20`=0, `21`=0, `22`=0, `23`=0, `24`=0, `25`=0, `31`=0, `32`=0, `33`=0, `34`=0, `35`=0, `36`=0, `37`=0, `38`=0, `39`=0, `40`=0, `41`=0, `42`=0, `44`=0, `45`=0, `46`=0, `47`=0, `48`=0, `49`=0, `50`=0, `51`=0, `52`=0, `53`=0, `54`=0 ");
@mysql_query("update `cool_site` set ins=0, outs=0;");
@mysql_query("insert into `month` values('0','$datecool_m')");
}
function coding_cool($value){
$value1=array("&","$","'","\"","<",">");
$value2=array("&amp;","$$","&#x27;","&quot;","&lt;","&gt;");
$value=str_replace($value1,$value2,$value);
if(get_magic_quotes_gpc()){
$value = stripslashes($value);}
$value = mysql_real_escape_string($value);
return $value;}
function translit_cool($value){
$value1=array("Jo","Zh","Ch","Sh","Sch","Je","Yu","Ya","jo","zh","ch","sh","sch","je","yu","ya","''","A","B","V","G","D","E","Z","I","J","K","L","M","N","O","P","R","S","T","U","F","H","C","Y","a","b","v","g","d","e","z","i","j","k","l","m","n","o","p","r","s","t","u","f","h","c","y","'");
$value2=array("Ё","Ж","Ч","Ш","Щ","Э","Ю","Я","ё","ж","ч","ш","щ","э","ю","я","ъ","А","Б","В","Г","Д","Е","З","И","Й","К","Л","М","Н","О","П","Р","С","Т","У","Ф","Х","Ц","Ы","а","б","в","г","д","е","з","и","й","к","л","м","н","о","п","р","с","т","у","ф","х","ц","ы","ь");
$value=str_replace($value1,$value2,$value);
return $value;}
?>