Размер файла: 706B
<?php
require_once 'includes/start.php';
require_once 'includes/functions.php';
require_once 'includes/db.php';
require_once 'includes/avt.php';
require_once 'includes/head.php';
if($user_inf['dol']!='admin'){echo'
ПОШОЛНАХУЙОТСЮДА!!!';require('includes/foot.php');exit;}
$error='';
if(($_POST['pol'])==1){$pol='1';}else{$pol='0';}
if($error==''){
if(!empty($_POST['name'])){$name=mysql_escape_string(htmlspecialchars(trim($_POST['name'])));}else{$name='';}
mysql_query('INSERT INTO `forums` SET `name`="'.$name.'",`stels`="'.$pol.'";');
echo'Добавлен форум!';
echo'<br><a href="index.php">In forum</a>';}
require_once 'includes/foot.php';
?>