Файл: mobcreat.php
Строк: 94
<?
define('PROTECTOR', 1);
$headmod = 'adm_panel';//фикс. места
$textl='Админ-панель';
@include('files/db.php');
@include('files/auth.php');
@include('files/func.php');
@include('files/core.php');
@include('files/head.php');
@include('files/zag.php');
$time=time();
if($udata[prava]<4){
echo'Доступ закрыт!';
@include('files/down.php');
exit;}
if(empty($_POST[name])){
echo '<form action="mobcreat.php" method="post">';
echo"Ранг!<br/>
<input class='input' type="text" size="10" name="rang"/><br/>
Уровень<br/>
<input class='input' type="text" size="10" name="lvl"/><br/>
Имя<br/>
<input class='input' type="text" size="10" name="name"/><br/>
Место:<br/>
<input class='input' type="text" value="$_GET[id]" size="10" name="bitva"/><br/>";
echo '<input class="button" type="submit" value="Создать" /></form>';
}else{
$rang=$_POST[rang];
$hp=$rang*10+20;
$uron=$rang*8+10;
$lovk=$rang*8+10;
$zach=$rang*8+10;
$krit=$rang+25;
$ukrit=$rang+10;
$exp=$rang*5;
$money=$rang*2;
mysql_query("INSERT INTO
`mobs` SET
`rang` = '$_POST[rang]',
`name` = '$_POST[name]',
`lvl` = '$_POST[lvl]',
`hp` = '$hp',
`hpall` = '$hp',
`uron` = '$uron',
`prot` = '$zach',
`krit` = '$krit',
`ukrit` = '$ukrit',
`lovk` = '$lovk',
`money` = '$money',
`exp` = '$exp',
`status` = 'on',
`tip` = 'life',
`bitva` = '$_POST[bitva]'") or die (mysql_error());
mysql_query("INSERT INTO
`mobs` SET
`rang` = '$_POST[rang]',
`name` = '$_POST[name]*1',
`lvl` = '$_POST[lvl]',
`hp` = '$hp'+'2',
`hpall` = '$hp'+'2',
`uron` = '$uron'+'1',
`prot` = '$zach'+'1',
`krit` = '$krit'+'1',
`ukrit` = '$ukrit'+'1',
`lovk` = '$lovk'+'1',
`money` = '$money'+'2',
`exp` = '$exp'+'2',
`status` = 'on',
`tip` = 'life',
`bitva` = '$_POST[bitva]'") or die (mysql_error());
mysql_query("INSERT INTO
`mobs` SET
`rang` = '$_POST[rang]',
`name` = '$_POST[name]*2',
`lvl` = '$_POST[lvl]',
`hp` = '$hp'+'3',
`hpall` = '$hp'+'3',
`uron` = '$uron'+'1',
`prot` = '$zach'+'2',
`krit` = '$krit'+'2',
`ukrit` = '$ukrit'+'2',
`lovk` = '$lovk'+'2',
`money` = '$money'+'4',
`exp` = '$exp'+'4',
`status` = 'on',
`tip` = 'life',
`bitva` = '$_POST[bitva]'") or die (mysql_error());
mysql_query("INSERT INTO
`mobs` SET
`rang` = '$_POST[rang]',
`name` = '$_POST[name]*3',
`lvl` = '$_POST[lvl]',
`hp` = '$hp'+'4',
`hpall` = '$hp'+'4',
`uron` = '$uron'+'2',
`prot` = '$zach'+'2',
`krit` = '$krit'+'3',
`ukrit` = '$ukrit'+'3',
`lovk` = '$lovk'+'3',
`money` = '$money'+'6',
`exp` = '$exp'+'6',
`status` = 'on',
`tip` = 'life',
`bitva` = '$_POST[bitva]'") or die (mysql_error());
mysql_query("INSERT INTO
`mobs` SET
`rang` = '$_POST[rang]',
`name` = '$_POST[name]*4',
`lvl` = '$_POST[lvl]',
`hp` = '$hp'+'6',
`hpall` = '$hp'+'6',
`uron` = '$uron'+'3',
`prot` = '$zach'+'3',
`krit` = '$krit'+'4',
`ukrit` = '$ukrit'+'4',
`lovk` = '$lovk'+'4',
`money` = '$money'+'8',
`exp` = '$exp'+'8',
`status` = 'on',
`tip` = 'life',
`bitva` = '$_POST[bitva]'") or die (mysql_error());
echo'Монстры
'.$_POST[name].'</br>
'.$_POST[name].'*1</br>
'.$_POST[name].'*2</br>
'.$_POST[name].'*3</br>
'.$_POST[name].'*4</br>
Cозданы!<br/>';}
echo'<a href="javascript:history.go(-1)">Назад</a>';
@include('files/down.php');
?>