Просмотр файла book/config.php

Размер файла: 4.19Kb
<?php
// Автор: Waphak
// ICQ: 9988817
// Сайт: www.waphak.ru

$www = "WAPHAK.RU"; // ))))))

$config_book = "book"; //название папки гостевой

$config_site = "http://waphak.ru"; //ваш сайт

$config_info = "Добро пожаловать на $www !"; //надпись наверху

$config_error = "Произошла ошибка!<br> Заполните пожалуйста все поля."; //надпись выводимая при ошибке

$config_name = "<center><font color='#cc0000' size='5'>Гостевая книжка</font></center>"; //название гостевой


##########################################
####### ДАЛЬШЕ НЕ ТРОГАТЬ ! ##################


if (isset($_POST['mess'])) $mess = $_POST['mess'];
if (isset($_POST['name'])) $name = $_POST['name'];

$str1 = strlen($name);
$str2 = strlen($mess);

if($str1>15){
include('skin/index.php');
echo'Ошибка! Уж слишком длинное у тебя имя.';
include('skin/foot.php');
exit();
}

if($str2>150){
include('skin/index.php');
echo'Ошибка! Нельзя добавлят сообщение с символами больше 150 !';
include('skin/foot.php');
exit();
}

$mess = str_replace('<?','',$mess);
$mess = str_replace('?>','',$mess);
$mess = str_replace('$','',$mess);
$mess = str_replace('^','',$mess);
$mess = str_replace('*','',$mess);
$mess = str_replace('|','',$mess);
$mess = str_replace('','',$mess);
$mess = str_replace(';','',$mess);
$mess = str_replace('<a>','',$mess);
$mess = str_replace('</a>','',$mess);
$mess = str_replace('<A>','',$mess);
$mess = str_replace('</A>','',$mess);
$mess = str_replace('<br>','',$mess);
$mess = str_replace('</br>','',$mess);
$mess = str_replace('</BR>','',$mess);
$mess = str_replace('<BR>','',$mess);
$mess = str_replace('<p','',$mess);
$mess = str_replace('align','',$mess);
$mess = str_replace('html','',$mess);
$mess = str_replace('HTML','',$mess);
$mess = str_replace('echo','',$mess);
$mess = str_replace('http://','',$mess);
$mess = str_replace('wap','',$mess);
$mess = str_replace('WAP','',$mess);
$mess = str_replace('ru','',$mess);
$mess = str_replace('RU','',$mess);
$mess = str_replace('com','',$mess);
$mess = str_replace('COM','',$mess);
$mess = str_replace('h2m','',$mess);
$mess = str_replace('H2M','',$mess);
$mess = str_replace('WEN','',$mess);
$mess = str_replace('wen','',$mess);
$mess = str_replace('гu','',$mess);
$mess = str_replace('ГU','',$mess);
$mess = str_replace('HTTP://','',$mess);
$mess = str_replace('exit;','',$mess);
$mess = str_replace('EXIT','',$mess);
$mess = str_replace('exit','',$mess);
$mess = str_replace('()','',$mess);

##############################

$name = str_replace('<?','',$name);
$name = str_replace('?>','',$name);
$name = str_replace('$','',$name);
$name = str_replace('^','',$name);
$name = str_replace('*','',$name);
$name = str_replace('|','',$name);
$name = str_replace('','',$name);
$name = str_replace(';','',$name);
$name = str_replace('<a>','',$name);
$name = str_replace('</a>','',$name);
$name = str_replace('<A>','',$name);
$name = str_replace('</A>','',$name);
$name = str_replace('<br>','',$name);
$name = str_replace('</br>','',$name);
$name = str_replace('</BR>','',$name);
$name = str_replace('<BR>','',$name);
$name = str_replace('<p','',$name);
$name = str_replace('align','',$name);
$name = str_replace('html','',$name);
$name = str_replace('HTML','',$name);
$name = str_replace('echo','',$name);
$name = str_replace('http://','',$name);
$name = str_replace('wap','',$name);
$name = str_replace('WAP','',$name);
$name = str_replace('ru','',$name);
$name = str_replace('RU','',$name);
$name = str_replace('com','',$name);
$name = str_replace('COM','',$name);
$name = str_replace('h2m','',$name);
$name = str_replace('H2M','',$name);
$name = str_replace('WEN','',$name);
$name = str_replace('wen','',$name);
$name = str_replace('гu','',$name);
$name = str_replace('ГU','',$name);
$name = str_replace('HTTP://','',$name);
$name = str_replace('exit;','',$name);
$name = str_replace('EXIT','',$name);
$name = str_replace('exit','',$name);
$name = str_replace('()','',$name);

?>