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

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



  
session_start ($sid);
  if (!(
$_SESSION['id']))
  {
    echo 
'<script language=javascript>window.location='/index.php';</script>';
    exit ();
  }

  if (
$_SESSION['account'])
  {
    
header ('Location: account.php');
    exit ();
  }

  include 
'../connect.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';
  
$db = new DBconn ();
  
$db->Conn ('greece'$server_conf);
  include 
'../system/modules/mod_bank.php';
  
$result mysql_query ('select login,money,level,locate from users where id='' . $_SESSION['id'] . ''');
  
$row mysql_fetch_array ($result);
  
mysql_query ('update users set locate='bank' where id=' $_SESSION['id']);
  if (
$row['locate'] != 'bank')
  {
    if (
$row['locate'] != '1')
    {
      if (
preg_match ('/^[0-3]$/'$row['locate']))
      {
        
header ('Location: /map.php?pl=' $row['locate']);
      }
      else
      {
        
header ('Location: /' $row['locate'] . '.php');
      }
    }
  }

  if (
$_SESSION['room'] != 'bank')
  {
    
session_register ('room');
    
$room 'bank';
    echo 
'<script language=javascript>top.frames['online'].window.location.reload();</script>';
  }

  echo 
'<html>
    <head>
        <link rel="stylesheet" type="text/css" href="/css/index.css">
        <meta http-equiv="Content-type" Content="text/html; charset: windows-1251">

        <script language=JavaScript>

            function InsertAccount(account)
            {
                document.all('
account').value = account;
            }

        </script>

    </head>

    <body bgcolor=#e5e1be>

        <br>
        <center>
        <table border=0 width=95% cellspacing=0 cellpadding=2>
            <tr>
                <td><span style='
color:#000000;font-weight:bold' id=inr></span>
                    
<span id=imges></span>
                </
td>
            </
tr>
            <
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="index.php?act=' $_GET['act'] . '"'';
  if ($_GET['
act'])
  {
    echo '
<input type=image src='' $config['img_server'] . '/b_back.gif' value='вернуться' onclick="window.location.href='index.php'">';
  }
  else
  {
    echo '
<input type=image src='' $config['img_server'] . '/b_back.gif' value='вернуться' onclick="top.perehod('map.php?pl=1','Столичный район')">';
  }

  echo '
</td>
            </
tr>
            <
tr>
                <
td valign=top colspan=2>';
  if ($error_msg)
  {
    echo '
<br><span style='color:darkred;font-weight:bold;'>' . $error_msg . '</span>';
  }

  if ($scs_msg)
  {
    echo '
<span style='font-weight:bold;'>Внимание' . $scs_msg . '</span>';
  }

  echo '
<br><br>';
  switch ($_GET['
act'])
  {
      default:
      echo "<br><br><center>
        <table border=0 cellspacing=0 cellpadding=0 width=90%>
            <tr>
                <td width=200 valign=top>

                    <a href=?act=new>Открыть новый счёт</a><br>
                    <a href=?act=remind>Забыли пароль?</a><br><br>

                    <!--<a href=#>Помощь</a><br>-->
                </td>
                <td align=center valign=top>

                    <table border=0 cellspacing=0 cellpadding=0 width=250>

                        <form action='
index.php' method=post>
                        <input type=hidden name=do value='
enter'>

                        <tr>
                            <td colspan=2 align=center height=50><b>Авторизация</b><br>
                                <small>(заполните форму ниже)</small>
                            </td>
                        </tr>
                        <tr>
                            <td width=25%>счет: </td>
                            <td width=85%><input type=text name=account style='
width:100%'></td>
                        </tr>
                        <tr>
                            <td width=25%>пароль: </td>
                            <td> <input type=password name=passwd style='
width:100%'></td>
                        </tr>
                        <tr>
                            <td colspan=2 align=right><input type=submit value='
Войти' class=button></td>
                        </tr>

                        </form>

                    </table>

                </td>
                <td width=200 valign=top></td>
            </tr>
        </table>
                    </center>";
        break;
    case '
new':
    {
      echo '
<center>

        <
form action='index.php?act=new' method=post>
            <
input type=hidden name=do value=reg>

            <
table border=0 cellspacing=0 cellpadding=0 width=250>
                <
tr>
                    <
td colspan=2 align=center height=50><b>Регистратура</b><br>
                        <
small>(заполните форму ниже)</small>
                    </
td>
                </
tr>
                <
tr>
                    <
td width=50%>пароль:</td>
                    <
td width=50%><input type=password name=passwd style='width:100%'></td>
                </
tr>
                <
tr>
                    <
td width=50%>пароль(повтор):</td>
                    <
td><input type=password name=passwd2 style='width:100%'></td>
                </
tr>
                <
tr>
                    <
td colspan=2 align=right><input type=submit value='Открыть счет' class=button></td>
                </
tr>
            </
table>

        </
form>

        <
br>
        <
span class=comm>Стоимость открытия нового счёта <b>5.00</bзолота</span><br>
        <
span class=comm>Открытие счета возможно только по достижению 5-го уровня.</span><br><br>';
    }

    case '
remind':
    {
      echo '
<center><b>Восстановления пароля к счету:</b><br><br>

        <
table border=0 cellspacing=0 cellpadding=1>
            <
form action='index.php?act=remind' method=post>
            <
input type=hidden name=do value='remind'>
            <
tr>
                <
td>Номер счета:</td>
                <
td><input type=text name=account style='width:200px'></td>
            </
tr>
            <
tr>
                <
td>* E-mail:</td>
                <
td><input type=text name=email style='width:200px'></td>
            </
tr>
            <
tr>
                <
td colspan=2 align=right><input type=submit value='Отослать пароль на E-mail' class=button></td>
            </
tr>
            </
form>
        </
table>

        <
br><br>

        * - 
Указывайте E-mail адрес на который зарегистрирован персонаж.</center>'; }
      echo '
                
</td>
            </
tr>
        </
table>
    </
body>
</
html>';
      return 1;

  }
?>
Онлайн: 3
Реклама