Файл: 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 ("<", "<", $string);
$string = str_replace (">", ">", $string);
$string = ereg_replace ('\"', """, $string);
$string = ereg_replace ("\'", """, $string);
$string = ereg_replace (""", """, $string);
$string = ereg_replace ("'", "'", $string);
$string = ereg_replace ("'", "`", $string);
$string = str_replace ("r", "", $string);
$string = str_replace ("n", "<br>", $string);
$string = str_replace ("%", "%", $string);
$string = str_replace ("!", "!", $string);
$string = str_replace ("^ +", "", $string);
$string = str_replace (" +$", "", $string);
$string = str_replace (":", ":", $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 (""", "", $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;
}
?>