View file superkat/xconf.php

File size: 3Kb
<?php
error_reporting(0);

$namecat = ""; // имя каталога
$DB_HOST = ""; // хост
$DB_USER = ""; // пользователь
$DB_PASS = ""; // пароль
$DB_NAME = "";  // база
$mails="[email protected]"; // пїЅпїЅпїЅпїЅ пїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅ пїЅпїЅпїЅпїЅ
$site="http://superkat.h2m.ru"; //пїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ

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 `kol` from `cool_nastr`");
$mat_per_page=mysql_result($q,"kol");
$q=mysql_query("select `activsit` from `cool_nastr`");
$active_site=mysql_result($q,"activsit");
$q=mysql_query("select `date` from `cool_pro` order by `ip` desc limit 1");


$res=mysql_query("select * from `date_sss` where dates='".$date_serv."'");
$kolvo=mysql_num_rows($res);



If ($kolvo==0){

@mysql_query("update `cool_site` set tin=0, toout=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 `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 `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;}
?>