<?
session_start();
//error_reporting("E_ALL");
include($_SERVER["DOCUMENT_ROOT"]."/includes/config.inc.php");
include($_SERVER["DOCUMENT_ROOT"]."/includes/functions.php");
if (empty($_GET["p"])){
$_GET["p"] = $_SERVER['QUERY_STRING'];
}
$pers = GetUser(iconv("UTF-8","Windows-1251",urldecode($_GET["p"])));
$_SESSION['referal'] = $pers['login'];
$_SESSION['referal_id'] = $pers['id'];
exit(header("Location: /index.php"));
?>