Вход Регистрация
Файл: first.php
Строк: 96
<?php
include ("foto/config.inc.php");
    if (
$module_comment==1)
    {
    function 
cutty ($string)
        {
        
$string = trim($string);
        
$string = stripslashes($string);
        
$string = str_replace ("<", "&lt;", $string);
        
$string = str_replace (">", "&gt;", $string);
        
$string = ereg_replace ('\"', "&quot;", $string);
        
$string = ereg_replace ("\'", "&quot;", $string);
        
$string = ereg_replace ("&quot;", "&quot;", $string);
        
$string = ereg_replace ("'", "'", $string);
        
$string = ereg_replace ("'", "`", $string);
        
$string = str_replace ("r", "", $string);
        
$string = str_replace ("n", "<br>", $string);
        
$string = str_replace ("%", "&#37;", $string);
        
$string = str_replace ("!", "&#33;", $string);
        
$string = str_replace ("^ +", "", $string);
        
$string = str_replace (" +$", "", $string);
        
$string = str_replace (":", "&#58;", $string);
        return (
$string);
        }
    function 
cutty2 ($string)
        {
        
$string = trim($string);
        
$string = stripslashes($string);
        
$string = str_replace ("<", "", $string);
        
$string = str_replace (">", "", $string);
        
$string = ereg_replace ('\"', "", $string);
        
$string = ereg_replace ("\'", "", $string);
        
$string = ereg_replace ("&quot;", "", $string);
        
$string = ereg_replace ("'", "", $string);
        
$string = ereg_replace ("'", "", $string);
        
$string = str_replace ("r", "", $string);
        
$string = str_replace ("n", "", $string);
        
$string = str_replace ("%", "", $string);
        
$string = str_replace ("!", "", $string);
        
$string = str_replace ("^ +", "", $string);
        
$string = str_replace (" +$", "", $string);
        return (
$string);
        }
if (isset(
$namee_) and $namee_ != "") { setcookie("cooknamess",cutty($namee_),time()+15552000);}
if (isset(
$mail_) and $mail_ != "") { setcookie("cookmailss",cutty($mail_),time()+15552000);}
if (isset(
$url_) and $url_ != "") { setcookie("cookurlss",cutty2($url_),time()+15552000);}
if (isset(
$city_) and $city_ != "") { setcookie("cookcityss",cutty($city_),time()+15552000);}
if (isset(
$mess_) and $mess_ != "") {setcookie("cookmessee", str_replace ("<br>", "n", $mess_), time()+3600);}

if (!isset(
$add)):
        if (!isset(
$cooknamess)) { $cooknamess = ""; }
        if (!isset(
$cookmailss)) { $cookmailss = ""; }
        if (!isset(
$cookurlss)) { $cookurlss = ""; }
        if (!isset(
$cookcityss)) { $cookcityss = ""; }
        if (!isset(
$namee_) or $namee_ == "") { $namee_ = $cooknamess;}
        if (!isset(
$mail_) or $mail_ == "") { $mail_ = $cookmailss;}
        if (!isset(
$url_) or $url_ == "") { $url_ = $cookurlss;}
        if (!isset(
$city_) or $city_ == "") { $city_ = $cookcityss;}
        if (!isset(
$mess_) or $mess_ == "")
            {
                if (isset(
$_COOKIE['cookmessee'])&&$messref==1)
                {
                    
$mess_ = $_COOKIE['cookmessee'];
                    
$_COOKIE['cookmessee'] = "";
                }
            }
endif;
}
?>
Онлайн: 2
Реклама