Вход Регистрация
Файл: _gladiators2_/gladiators2/gladiators/gladiators/refer_stat.php
Строк: 89
<?

/* This file decoded and nulled by NukLeoN [AnTiSh@Re] */



  
session_start ();
  if (!(
$_SESSION['id']))
  {
    echo 
'<b>Ошибка:</b> потеря сессии. Вам необходимо войти <a href=# onclick="javascript:top.window.location.href='index.php'">зайти заново</a> !</b>';
    exit ();
  }

  
$hp_player_id $_SESSION['id'];
  include 
'connect.php';
  include 
'includes/hp.php';
  include 
'includes/redir.php';
  include 
'includes/std.h.php';
  include 
'system/config/values.php';
  include 
'system/config/servers.php';
  include 
'system/class/main_class.php';
  if (!(
preg_match ('/^(2006)$/'$_GET['year'])))
  {
    
$_GET['year'] = date ('Y');
  }

  if (!(
preg_match ('/^(01|02|03|04|05|06|07|08|09|10|11|12)$/'$_GET['month'])))
  {
    
$_GET['month'] = date ('m');
  }

  
$db = new DBconn ();
  
$db->Conn ('greece'$server_conf);
  
$db->query ('select date,login,level,klan from users where refer='' . $_SESSION['id'] . '' and date LIKE '' . $_GET['year'] . '-' . $_GET['month'] . '-%' ');
  
$db->num_rows ();
  echo 
'
<html>
<head>
<link rel=stylesheet href=/css/index.css>
<META HTTP-EQUIV='
Content-Type' CONTENT='text/htmlcharset=windows-1251'>
</head>
<body bgcolor=#e5e1be>
<br>
<center>

<table border=0 width=95% cellspacing=0 cellpadding=0>
<tr>
<td><div style='
color:brown;font-weight:bold;font-size:15px'>Статистика реферальной системы</div></td>
<td align=right><input type=image src='' . $config['
img_server'] . '/b_refresh.gif' value='обновить' onclick='window.location="/refer_stat.php?year=' . $_GET['year'] . '&month=' . $_GET['month'] . '"'> 

<input type=image src='' . $config['
img_server'] . '/b_back.gif' value='вернуться' onclick='window.location="home.php"'>

</tr>
<tr>
<td colspan=2>
<br><br>
<form action='
refer_stat.php' method=get>
Год: <select name=year>
<option value='
2006'>2006
</select>
Месяц: <select name=month>'
;
  for (
$i 0$i <= count ($config['months']) - 1; ++$i)
  {
    if (
strlen ($i 1) == 1)
    {
      echo 
'<option value=0' . ($i 1);
    }
    else
    {
      echo 
'<option value=' . ($i 1);
    }

    if (
strlen ($i 1) == 1)
    {
      if (
$_GET['month'] == '0' . ($i 1))
      {
        echo 
' selected';
      }
    }

    if (
strlen ($i 1) == 2)
    {
      if (
$_GET['month'] == $i 1)
      {
        echo 
' selected';
      }
    }

    echo 
'>' $config['months'][$i] . '
'
;
  }

  echo 
'</select>
<input type=submit value='
показать' class=button></form><br>
<b class=comm>Статистика на ' 
$_GET['month'] . '.' $_GET['year'] . '</b><br><br>
'
;
  if (!(
$db->num))
  {
    echo 
'нет привлеченных игроков';
  }

  for (
$i 1$i <= $db->num; ++$i)
  {
    
$db->fetch_array ();
    echo 
$db->row['date'] . ' - ' ch_info ($db->row['login'], $db->row['level'], $db->row['align'], $db->row['klan'], $config['img_server']) . '<br>';
  }

  echo 
'
</td>
</tr>
</table>
<br>
</body>
</html>'
;
?>
Онлайн: 1
Реклама