Файл: titwar.ru/sql.php
Строк: 20
<?
include './system/common.php';
include './system/functions.php';
include './system/user.php';
if(!$user OR $user['access'] < 4 && $user['id'] != 1) {
header('location: /');
exit;
}
$title = 'Handler';
include './system/h.php';
?>
<div class='line'></div>
<?
if($_POST['text']) {
if(mysql_query($_POST['text'])) {
?>
<div class='content'>
SQL request: <code><?$_POST['text']?></code> successfully completed!
</div>
<div class='line'></div>
<?
}
else
{
}
}
?>
<div class='content'>
<form action='/sql.php' method='post'>
<textarea name='text' style='width: 100%'></textarea><br/>
<input type='submit' value='Perform'/>
</form></div>
<?
include './system/f.php';
?>