Файл: _gladiators2_/gladiators2/gladiators/gladiators/forum/engine.php
Строк: 29
<?
/* This file decoded and nulled by NukLeoN [AnTiSh@Re] */
  session_start ();
  $path = explode ('/', $REQUEST_URI);
  $root = $HTTP_SERVER_VARS['DOCUMENT_ROOT'];
  include $root . '/includes/std.h.php';
  include $root . '/system/config/servers.php';
  include $root . '/system/config/values.php';
  include $root . '/system/class/main_class.php';
  if (!($_SESSION['id']))
  {
    echo '<html>
<head>
<title>Ошибка доступа .::. Мир Гладиаторов</title>
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=windows-1251'>
<link rel=stylesheet href=/css/index.css>
</head>
<body bgcolor=#e5e1be>
<br><br><center>
<b>Внимание!</b> Доступ на Форум разрешен только для зарегистрированых 
участников Мира Гладиаторов.<br> Продите авторизацию с 
<a href=/><b>главной страницы</b></a> или если вы не зарегистрированы, то <a href=/reg.php><b>зарегистрируйтесь.</b></a><br><br>
© <a href=/><b>Мир Гладиаторов</b></a>, 2005-2006</center>
</body></html>';
    exit ();
  }
  $forum_list = file ($root . '/includes/forum_list.dat');
  if (!((preg_match ('/^[1-9][0-9]*[?]{0,1}[0-9]*$/', $path[2]) AND !(count ($forum_list) < $path[2]))))
  {
    $path[2] = 1;
  }
  if ($path[3])
  {
    if (!(preg_match ('/^[1-9][0-9]*(.html)[?]{0,1}[0-9]*$/', $path[3])))
    {
      $path[3] = '';
    }
  }
  include $root . '/system/modules/mod_forum.php';
  if (!($path[3]))
  {
    include $root . '/system/modules/mod_viewforum.php';
    return 1;
  }
  if ($path[3])
  {
    include $root . '/system/modules/mod_viewtopic.php';
    return 1;
  }
  header ('Location: /index.php');
?>