Файл: inc/system/config.php
Строк: 90
<?
ob_start();
$months = array('дек', 'янв', 'фев', 'мар', 'апр', 'май', 'июн', 'июл', 'авг', 'сен', 'окт', 'нояб');
$m = $months[date('n')];
$time=time();
include_once $_SERVER['DOCUMENT_ROOT'].'/inc/system/start_sess.php';
include_once $_SERVER['DOCUMENT_ROOT'].'/inc/system/functions.php';
include_once $_SERVER['DOCUMENT_ROOT'].'/inc/system/head.php';
if(!isset($ku))
{
include_once $_SERVER['DOCUMENT_ROOT'].'/inc/system/no_auth.php';
}
include_once $_SERVER['DOCUMENT_ROOT'].'/inc/system/start.php';
//ТЕХНИКA
$mcu=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_collective_user` WHERE `id_user` = '".$ku['id']."'"));
$mc=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_collective` WHERE `id` = '".$mcu['id_collective']."'"));
include_once $_SERVER['DOCUMENT_ROOT'].'/inc/system/tehnika.php';
//ПЕРЕХОД НА СЛЕДУЮЩИЙ УРОВЕНЬ
include_once $_SERVER['DOCUMENT_ROOT'].'/inc/user/next_level.php';
include_once $_SERVER['DOCUMENT_ROOT'].'/inc/system/uhead.php';
include_once $_SERVER['DOCUMENT_ROOT'].'/inc/shop/shop.php';
include_once $_SERVER['DOCUMENT_ROOT'].'/inc/system/heli_all.php'; //вызов вертов
$rand= rand(0,500);
$assignmentIndex = mysql_fetch_array(mysql_query("SELECT * FROM `assignments_user` WHERE `id_user` = '".($ku['id'])."'"));
if($rand==120 || $rand==410 || $rand==23 || $rand==500 && $assignmentIndex['assignment']<1 && $ku['level']>=10)
{
echo"<div class='div'><img src='/img/assignment.png' alt='o'> Выполняй задания и получай достойную награду! <br><a href='/assignments'>Перейти к заданиям</a> </div>";
}
$action2 =mysql_fetch_array(mysql_query("SELECT * FROM `action` WHERE `id` = '1';"));
if($action2['time'] > time()){
if($rand==100 || $rand==400 || $rand==15 || $rand==450){
echo"<div class='div'><img src='/img/assignment.png' alt='o'> ".output_text($action2['text'])." <br><a href='/action/'>Перейти к акциям</a> </div>";
}
}
$set2 =mysql_fetch_array(mysql_query("SELECT * FROM `set_bonus` WHERE `id` = '1';"));
if($set2['time_col'] > time()){
if($rand==50 || $rand==300 || $rand==40 || $rand==400){
echo"<div class='div'><img src='/img/assignment.png' alt='o'> ".output_text($set2['text_col'])." <br><a href='/action/'>Перейти к акциям</a> </div>";
}
}
$set3 =mysql_fetch_array(mysql_query("SELECT * FROM `set_bonus` WHERE `id` = '1';"));
if($set3['time_zavod'] > time()){
if($rand==50 || $rand==300 || $rand==40 || $rand==400){
echo"<div class='div'><img src='/img/assignment.png' alt='o'> ".output_text($set3['text_zavod'])." <br><a href='/action/'>Перейти к акциям</a> </div>";
}
}
?>