Размер файла: 3.38Kb
<?php
// Автор: Waphak
// ICQ: 9988817
// Сайт: www.waphak.ru
require_once"../template/start.php";
require_once"../template/regglobals.php";
require_once"../template/config.php";
require_once"../template/functions.php";
require_once"../template/antidos.php";
require_once"../template/cookies.php";
require_once"../template/gzip.php";
require_once"../template/header.php";
require_once"../template/referer.php";
include_once"../themes/$config_themes/index.php";
include_once"../template/isset.php";
$browser=htmlspecialchars(stripslashes(getenv('HTTP_USER_AGENT')));
if (getenv("HTTP_X_FORWARDED_FOR"))
{ $ip=htmlspecialchars(stripslashes(getenv("HTTP_X_FORWARDED_FOR"))); }
else { $ip=htmlspecialchars(stripslashes($_SERVER['REMOTE_ADDR'])); }
$date = date("dго F, y/H:i");
$date = str_replace("January","января",$date);
$date = str_replace("February","февраля",$date);
$date = str_replace("March","марта",$date);
$date = str_replace("April","апреля",$date);
$date = str_replace("May","мая",$date);
$date = str_replace("June","июня",$date);
$date = str_replace("July","июля",$date);
$date = str_replace("August","августа",$date);
$date = str_replace("September","сентября",$date);
$date = str_replace("October","октября",$date);
$date = str_replace("November","ноября",$date);
$date = str_replace("December","декабря",$date);
$login = htmlspecialchars(stripslashes($login));
$imya = htmlspecialchars(stripslashes($imya));
$wmid = htmlspecialchars(stripslashes($wmid));
$ipp = htmlspecialchars(stripslashes($ipp));
$icq = htmlspecialchars(stripslashes($icq));
$cite = htmlspecialchars(stripslashes($cite));
$email = htmlspecialchars(stripslashes($email);
$phone = htmlspecialchars(stripslashes($phone));
$nation = htmlspecialchars(stripslashes($nation));
$city = htmlspecialchars(stripslashes($city));
$about = htmlspecialchars(stripslashes($about));
$history = htmlspecialchars(stripslashes($history));
if (isset($_POST['login'])) $login = $_POST['login'];
if (isset($_POST['imya'])) $imya = $_POST['imya'];
if (isset($_POST['wmid'])) $wmid = $_POST['wmid'];
if (isset($_POST['ipp'])) $ipp = $_POST['ipp'];
if (isset($_POST['cite'])) $cite = $_POST['cite'];
if (isset($_POST['email'])) $email = $_POST['email'];
if (isset($_POST['phone'])) $phone = $_POST['phone'];
if (isset($_POST['nation'])) $nation = $_POST['nation'];
if (isset($_POST['city'])) $city = $_POST['city'];
if (isset($_POST['about'])) $about = $_POST['about'];
if (isset($_POST['history'])) $history = $_POST['history'];
if (isset($_POST['icq'])) $icq = $_POST['icq'];
$date = date("d.m.y/H:i");
$text=$login.':||:'.$imya.':||:'.$wmid.':||:'.$ipp.':||:'.$icq.':||:'.$cite.':||:'.$email.':||:'.$phone.':||:'.$nation.':||:'.$city.':||:'.$about.':||:'.$history.':||:'.$date.':||:'.$browser.':||:'.$ip.':||:';
$text=str_replace("\r\n", "", $text);
$fp=fopen("info.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text\r\n");
flock($fp,LOCK_UN);
fclose($fp);
chmod ("info.dat", 0666);
echo'<b>Добавлено!</b>';
echo"<META HTTP-EQUIV='Refresh' CONTENT='0; URL=index.php'>";
echo '<img src="../images/img/homepage.gif" alt=""> <a href="../index.php?'.SID.'">На главную</a>';
include_once "../themes/$config_themes/foot.php";
?>