Файл: region_clean/us.php
Строк: 6
<?php
#######################################
## Mod By KoT (borispol) [76-75-072] ##
#######################################
require_once 'inc.php';
$myday = date("d");
mysql_query("Select `klu4` from setting WHERE myday = '".$myday."' LIMIT 1;");
if (mysql_affected_rows() == 0) {
mysql_query("update users set posts=posts-'".wtraf."', visit=visit where dayp='0' and posts > '".wtraf."'");
mysql_query("update users set dayp='0', daya='0', visit=visit");
mysql_query("update setting set myday='".$myday."'");
}
?>