Вход Регистрация
Файл: neuder/sql2.php
Строк: 15
<?
    
    
include './config/func.php';
    
    
$title='SQL Manager';

 include 
'./config/header.php';

     
auth();

     if(
$user['moder'] != 4){
header('Location: /game/');
}
?>
 
<?

  
if($_POST['text']) {
  
  if(
mysql_query($_POST['text'])) {
  
?>

<div class='block center'>
SQL запрос: <code><?$_POST['text']?></code> успешно выполнен!
</div>
 <div class='stone'></div>

<?
  
  
}
  else
  {
  
  }
  
  }

?>

<div class='block'>
  Запрос: <form action='/sql.php' method='post'>
  
    <textarea name='text' style='width: 100%'></textarea><br/>
    <input type='submit' value='Выполнить'/>
  
  </form></div>
<?

include './config/footer.php';
  
?>
Онлайн: 1
Реклама