Вход Регистрация
Файл: public_html/tchat.php
Строк: 21
<?
    
    
include './system/common.php';
    
 include 
'./system/functions.php';
        
      include 
'./system/user.php';
    
if(!
$user['access']== 3) {

  
header('location: /');
    
exit;

}

    
$title 'Очистать Чат';    

include 
'./system/h.php';

?>
 <div class='line'></div>
 
<?

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

<div class='content'>
SQL запрос: <code><?$_POST['text']?></code> успешно выполнен!
Чат очищен
</div>
 <div class='line'></div>

<?
  
  
}
  else
  {
  
  }
  
  }

?>

<div class='content'>
<form action='/tchat.php' method='post'>
<input name='text' size='20' value="truncate chat"/>
    <input type='submit' value='очистать чат'/>
  
  </form></div>
<?

include './system/f.php';
  
?>
Онлайн: 0
Реклама