Rar! ϐs
"?t i <_%l@0D ଠ ⠪ 襩 CMS\index.php ܀@ ߁B`4 O ߀H E?
// ()
$nameDB = "blog";//
$nameSERVER = "localhost";//
$nameUSER = "root";//
$passUSER = "";//
mysql_select_db($nameDB, mysql_connect($nameSERVER,$nameUSER,$passUSER));
// ()
//
$header_title = " HTML";
$header_metaD = " ";
$header_metaK = " ";
if($_GET['blog'])$blog = $_GET['blog'];//, GET ,
// $blog
if($_GET['contact'])$contact = $_GET['contact'];//
//
if($contact)//
{//
include("moduls/contact.php");//
$txt = contact($contact);// ,
}
//
//
if(!$blog AND !$contact)//
{
include("moduls/news.php");
$txt = index_page();// ,
}
//
// C
if($blog)
{
include("moduls/text.php");
$txt = blog($blog);// ,
}
// C
//
include("moduls/menu.php");
$menu = menu();// ,
//
//
if($blog)
{
include("moduls/comm.php");
$comm = comm($blog);//
$txt .= $comm;
}
//
include("templates/index.html");//
?>ft r 8g@0M ଠ ⠪ 襩 CMS\moduls\contact.php ܀@ ߁B`4 O ߀H #>
//--------------
$date_day = date("d");//
$date_month = date("m");//
$date_year = date("Y");//
$date_time = date("H:i");//
$date_cont = $date_day."/".$date_month."/".$date_year." ".$date_time;//
// // :
//
if(isset($_POST['author_contact']))$author_contact = $_POST['author_contact'];
if(isset($_POST['email_contact']))$email_contact = $_POST['email_contact'];
if(isset($_POST['them_contact']))$them_contact = $_POST['them_contact'];
if(isset($_POST['txt_contact']))$txt_contact = $_POST['txt_contact'];
if($author_contact & $email_contact & $them_contact & $txt_contact)//
{
// html ( ) =)
// , ,
$author_contact = htmlspecialchars($author_contact);
$email_contact = htmlspecialchars($email_contact);
$them_contact = htmlspecialchars($them_contact);
$txt_contact = htmlspecialchars($txt_contact);
//
$author_contact = str_replace("'","'",$author_contact);
$email_contact = str_replace("'","'",$email_contact);
$them_contact = str_replace("'","'",$them_contact);
$txt_contact = str_replace("'","'",$txt_contact);
$txt_contact = str_replace("\n","
",$txt_contact);//
//
$result_add_cont = mysql_query ("INSERT INTO mess_admin (login,them,date_g,email,text)
VALUES ('$author_contact','$them_contact','$date_cont','$email_contact','$txt_contact')");
//
//
//
//$to = "test@test.ru";//
//$txt_contact = $author_contact." <".$email_contact."> : ".$txt_contact;//
//
//mail($to,$them_contact,$txt_contact);//
//
header("location: index.php?contact=2");//
exit;//
}
//--------------
function contact($contact)
{
if($contact == 1)//
{
$sm_read = file("templates/contacts.html");//...
$sm_read = implode("",$sm_read);// file() ,
}
if($contact == 2)//
$sm_read = "
";// return $sm_read;// html } ?>ot w ~\ B@0R ଠ ⠪ 襩 CMS\templates\contacts.html ܀@ ߁B`4 O ߀H 4C
, , , .