File size: 2.9Kb
<?php
/**********************************
* @year: 2018 *
* @author: Klubv *
* @icq: 611940693 *
* @link: http://baz23.ru *
**********************************/
error_reporting(1);
session_name('SID') . session_start();
header('Cache-Control: private, max-age=3600');
include (dirname(__FILE__) . '/config.php');
mysql_connect(HOST, USER, PASS) or exit('Немогу подключиться к серверу');
mysql_select_db(BASE) or exit('Немогу подключиться к базе');
mysql_query("set names 'utf8'");
mysql_query("set charset 'utf8'");
mysql_query("set SESSION collation_connection = 'utf8_general_ci'");
include (dirname(__FILE__) . '/function.php');
include (dirname(__FILE__) . '/antidos.php');
$id = isset($_GET['id']) ? val($_GET['id'], 1) : false;
$act = isset($_GET['act']) ? utf($_GET['act']) : false;
mysql_query("delete from `reklama` where `date`<='".time()."'");
//mysql_query("update `reklama` set `count`='0'");
$title = empty($title) ? 'Мой сад!' : $title;
header("Content-type:text/html; charset=utf-8");
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru"><head>';
echo '<title>'.$title.'</title>';
echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
echo '<link rel="shortcut icon" href="'.ROOT.'/favicon.ico" />';
echo '<link rel="stylesheet" href="'.ROOT.'/style.css" type="text/css" />';
echo '<meta name="keywords" content="Инвестиции,Заработок,Пирамида,Мой сад,Игра" />';
echo '<meta name="description" content="Заработок на инвестициях в игру" />';
echo '<meta name="generator" content="EXTRA HIDE STUDIO" />';
echo '</head><body>';
echo'<div class="head"><img src="'.ROOT.'/img/logo.png" width="48" height="48" alt="" /></div>';
// echo '<div class="head"><a href="http://vk.com/megsad"> - Мы ВКонтакте</a><br></div>';
if($active){
echo ($count_mail_new > 0) ? '<div class="menu"><img src="'.ROOT.'/img/mails.png" width="16" height="16" class="left" />
<a href="'.ROOT.'/str/mail.php?act=in">Свежая почта</a> ('.$count_mail_new.')</div>' : false;
}
//mysql_query("DELETE FROM `guest` WHERE `date`<".(time() - 3600)."");
/* Бан система юзеров */
mysql_query("DELETE FROM `ban` WHERE `date`<".time()."");
if($active){
if(mysql_num_rows(mysql_query("SELECT who FROM `ban` WHERE `who`='".win($user['login'])."' "))!=0){
$res = mysql_fetch_array(mysql_query("SELECT * FROM `ban` WHERE `who`='".win($user['login'])."' LIMIT 1"));
echo '<div class="menu"><center>Bнимaниe! Baш aккayнт зaбaнeн!<br/>Пpичинa бaнa: '.utf($res['reason']).'<br/>Koнeц бaнa: '.date('G:i:s d.m.Y',$res['date']).'</center></div>';
include (dirname(__FILE__) . '/foot.php');
exit;}}