View file wapus top english version/registration.php

File size: 18.22Kb
<?php
//=============================
#Version WapuS_ToP_final
#Script By: Black1992
#Email: skyangel15@inbox.lv
#Icq: 414454754
#Url: http://WaPuS.pp.Ru
//=============================
include("config.php");
include("inc/config.inc.php");
include("inc/functions.inc.php");
ini_set('session.use_cookies', 0);
ini_set('session.use_trans_sid', 1);
session_start();
session_name('sid');
connect_to_db();

$title = "&#1056;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1103;";
include_once("head.php");

//&#1055;&#1088;&#1086;&#1074;&#1077;&#1088;&#1082;&#1072; &#1085;&#1072; &#1088;&#1072;&#1079;&#1088;&#1077;&#1096;&#1077;&#1085;&#1080;&#1077; &#1088;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1080;
if($registration_true == 0)
	{
	echo "
	<div class=\"rek3\">
	&#1056;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1103; &#1079;&#1072;&#1087;&#1088;&#1077;&#1097;&#1077;&#1085;&#1072;!
	</div>
	<div class=\"rek3\">
	&#1056;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1103; &#1074; &#1090;&#1086;&#1087;&#1077; &#1074;&#1088;&#1077;&#1084;&#1077;&#1085;&#1085;&#1086; &#1087;&#1088;&#1080;&#1086;&#1089;&#1090;&#1072;&#1085;&#1086;&#1074;&#1083;&#1077;&#1085;&#1072;. &#1042;&#1086;&#1079;&#1084;&#1086;&#1078;&#1085;&#1086; &#1072;&#1076;&#1084;&#1080;&#1085;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1103; &#1084;&#1086;&#1076;&#1077;&#1088;&#1080;&#1088;&#1091;&#1077;&#1090; &#1088;&#1077;&#1081;&#1090;&#1080;&#1085;&#1075;, &#1083;&#1080;&#1073;&#1086; &#1087;&#1088;&#1086;&#1074;&#1086;&#1076;&#1080;&#1090; &#1090;&#1077;&#1093;&#1085;&#1080;&#1095;&#1077;&#1089;&#1082;&#1080;&#1077; &#1088;&#1072;&#1073;&#1086;&#1090;&#1099;!
	<br />
	&#1055;&#1086;&#1087;&#1088;&#1086;&#1073;&#1091;&#1081;&#1090;&#1077; &#1079;&#1072;&#1081;&#1090;&#1080; &#1087;&#1086;&#1079;&#1078;&#1077;!
	</div>
	<div class=\"news\">
	<a href=\"index.php\">&#1042;&#1077;&#1088;&#1085;&#1080;&#1090;&#1077;&#1089;&#1100;</a> &#1085;&#1072;&#1079;&#1072;&#1076;.
	</div>
	";
	include("foot_code.php");
	exit;
	}

//&#1055;&#1088;&#1086;&#1074;&#1077;&#1088;&#1082;&#1072; &#1085;&#1072; &#1079;&#1072;&#1087;&#1088;&#1077;&#1090; &#1088;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1080; &#1082;&#1086;&#1085;&#1089;&#1090;&#1088;&#1091;&#1082;&#1090;&#1086;&#1088;&#1086;&#1074;
if($bad_domains_off == 1)
	{
	$link = $_POST['link'];
	if(ereg("($bad_domains)", $link))
		{
		echo "
		<div class=\"rek3\">
		&#1040;&#1076;&#1088;&#1077;&#1089; $link &#1079;&#1072;&#1087;&#1088;&#1077;&#1097;&#1105;&#1085; &#1076;&#1083;&#1103; &#1088;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1080;!
		</div>
		<div class=\"rek3\">
		&#1042; &#1090;&#1086;&#1087;&#1077; &#1079;&#1072;&#1087;&#1088;&#1077;&#1097;&#1077;&#1085;&#1086; &#1088;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1080;&#1088;&#1086;&#1074;&#1072;&#1090;&#1100; &#1089;&#1072;&#1081;&#1090;&#1099; &#1074; &#1089;&#1083;&#1077;&#1076;&#1091;&#1102;&#1097;&#1080;&#1093; &#1079;&#1086;&#1085;&#1072;&#1093;:
		<br />
		<b>
		$bad_domains
		</b>
		</div>
		<div class=\"rek3\">
		&#1044;&#1086;&#1073;&#1072;&#1074;&#1083;&#1077;&#1085;&#1080;&#1077; &#1089;&#1072;&#1081;&#1090;&#1086;&#1074; &#1074; &#1079;&#1072;&#1087;&#1088;&#1077;&#1097;&#1105;&#1085;&#1099;&#1093; &#1079;&#1086;&#1085;&#1072;&#1093; &#1076;&#1086;&#1087;&#1091;&#1089;&#1082;&#1072;&#1077;&#1090;&#1089;&#1103; &#1090;&#1086;&#1083;&#1100;&#1082;&#1086; &#1072;&#1076;&#1084;&#1080;&#1085;&#1080;&#1089;&#1090;&#1088;&#1072;&#1090;&#1086;&#1088;&#1086;&#1084;. &#1045;&#1089;&#1083;&#1080; &#1091; &#1042;&#1072;&#1089; &#1076;&#1077;&#1081;&#1089;&#1090;&#1074;&#1080;&#1090;&#1077;&#1083;&#1100;&#1085;&#1086; &#1082;&#1072;&#1095;&#1077;&#1089;&#1090;&#1074;&#1077;&#1085;&#1085;&#1099;&#1081; &#1080; &#1087;&#1086;&#1089;&#1077;&#1097;&#1072;&#1077;&#1084;&#1099;&#1081; &#1089;&#1072;&#1081;&#1090;, &#1089;&#1090;&#1091;&#1095;&#1080;&#1090;&#1077; (427-958-436). &#1044;&#1086;&#1075;&#1086;&#1074;&#1086;&#1088;&#1080;&#1084;&#1089;&#1103;!
		</div>
		<div class=\"news\">
		<a href=\"registration.php\">&#1042;&#1077;&#1088;&#1085;&#1080;&#1090;&#1077;&#1089;&#1100;</a> &#1085;&#1072;&#1079;&#1072;&#1076;.
		</div>
		";
		include("foot_code.php");
		exit;
		}
	}

if (!empty($_POST['siteName']) && !empty($_POST['razdel']) && !empty($_POST['link']) && !empty($_POST['admin']) && !empty($_POST['email']) && !empty($_POST['info']) && !empty($_POST['pass']))
{
 // &#1087;&#1086;&#1083;&#1091;&#1095;&#1077;&#1085;&#1080;&#1077; &#1076;&#1072;&#1085;&#1085;&#1099;&#1093;
 $siteName = addslashes($_POST['siteName']);
 $link = $_POST['link'];
 $razdel = addslashes($_POST['razdel']);
 $admin = addslashes($_POST['admin']);
 $email = $_POST['email'];
 $info = addslashes($_POST['info']);
 $date = time();
 $passTrue = $_POST['pass'];
 $chislo = $_POST['chislo'];
 $pass = md5($passTrue);

 $razdel_data = @mysql_query("select COUNT(`id`) from `razdels` where `id`=$razdel;");
 $razdel_count = mysql_result($razdel_data, 0);
 if($razdel_count == 0) //&#1077;&#1089;&#1083;&#1080; &#1074;&#1099;&#1073;&#1088;&#1072;&#1085;&#1085;&#1086;&#1075;&#1086; &#1088;&#1072;&#1079;&#1076;&#1077;&#1083;&#1072; &#1085;&#1077; &#1089;&#1091;&#1097;&#1077;&#1089;&#1090;&#1074;&#1091;&#1077;&#1090;
 {
  echo "<div class=\"rek3\">\n";
  echo "&#1053;&#1077;&#1074;&#1077;&#1088;&#1085;&#1099;&#1081; &#1088;&#1072;&#1079;&#1076;&#1077;&#1083;!\n";
  echo "<a href='registration.php'>&laquo; &#1085;&#1072;&#1079;&#1072;&#1076;</a><br/>\n";
  echo "</div>\n";

echo "
<div class=\"news\">
<a href=\"" . $rating_url. "index.php\">$rating_name</a>
<img src=\"/img/gt.gif\" alt=\"&gt;\" />&#1056;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1103;
</div>
";
include("foot_code.php");

  @session_unregister('pswd');
  exit;
 }

 // &#1087;&#1088;&#1086;&#1074;&#1077;&#1088;&#1082;&#1072; &#1079;&#1072;&#1097;&#1080;&#1090;&#1085;&#1086;&#1075;&#1086; &#1095;&#1080;&#1089;&#1083;&#1072;
 if ($_SESSION['pswd']!=$chislo)
 {
  echo "<div class=\"rek3\">\n";
  echo "&#1055;&#1088;&#1086;&#1074;&#1077;&#1088;&#1086;&#1095;&#1085;&#1086;&#1077; &#1095;&#1080;&#1089;&#1083;&#1086; &#1080; &#1042;&#1072;&#1096;&#1077; &#1085;&#1077; &#1089;&#1086;&#1074;&#1087;&#1072;&#1076;&#1072;&#1102;&#1090;!<br/>\n";
  echo "<a href='registration.php'>&laquo; &#1085;&#1072;&#1079;&#1072;&#1076;</a><br/>\n";
  echo "</div>\n";

echo "
<div class=\"news\">
<a href=\"" . $rating_url. "index.php\">$rating_name</a>
<img src=\"/img/gt.gif\" alt=\"&gt;\" />&#1056;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1103;
</div>
";
include("foot_code.php");

  @session_unregister('pswd');
  exit;
 }

 //  &#1087;&#1088;&#1086;&#1074;&#1077;&#1088;&#1082;&#1072; &#1087;&#1088;&#1072;&#1074;&#1080;&#1083;&#1100;&#1085;&#1086;&#1089;&#1090;&#1080; &#1079;&#1072;&#1087;&#1086;&#1083;&#1085;&#1077;&#1085;&#1080;&#1103; &#1084;&#1099;&#1083;&#1072;
 if (!verify_addr ($email))
 {
  echo "<div class=\"rek3\">\n";
  echo "&#1053;&#1077;&#1074;&#1077;&#1088;&#1085;&#1099;&#1081; E-Mail, &#1087;&#1086;&#1078;&#1072;&#1083;&#1091;&#1081;&#1089;&#1090;&#1072; &#1091;&#1082;&#1072;&#1078;&#1080;&#1090;&#1077; &#1080;&#1084;&#1077;&#1085;&#1085;&#1086; &#1042;&#1072;&#1096; &#1087;&#1086;&#1095;&#1090;&#1086;&#1074;&#1099;&#1081; &#1103;&#1097;&#1080;&#1082;, &#1090;&#1072;&#1082; &#1082;&#1072;&#1082; &#1085;&#1072; &#1085;&#1077;&#1075;&#1086; &#1073;&#1091;&#1076;&#1077;&#1090; &#1087;&#1088;&#1080;&#1089;&#1083;&#1072;&#1085; &#1082;&#1086;&#1076; &#1089;&#1095;&#1077;&#1090;&#1095;&#1080;&#1082;&#1072;!<br/>\n";
  echo "<a href='registration.php'>&laquo; &#1085;&#1072;&#1079;&#1072;&#1076;</a><br/>\n";
  echo "</div>\n";

echo "
<div class=\"news\">
<a href=\"" . $rating_url. "index.php\">$rating_name</a>
<img src=\"/img/gt.gif\" alt=\"&gt;\" />&#1056;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1103;
</div>
";
include("foot_code.php");

  @session_unregister('pswd');
  exit;
 }

 $pcre = '%\b((http|https|ftp|file)://[^\s]+?)(.*)%U';
 if ( !preg_match( $pcre, $link ))
 {
  echo "<div class=\"rek3\">\n";
  echo "&#1053;&#1077;&#1074;&#1077;&#1088;&#1085;&#1086; &#1091;&#1082;&#1072;&#1079;&#1072;&#1085;&#1085;&#1072; &#1089;&#1089;&#1099;&#1083;&#1082;&#1072; &#1085;&#1072; &#1074;&#1072;&#1096; &#1089;&#1072;&#1081;&#1090;!<br/>";
  echo "<a href='registration.php'>&laquo; &#1085;&#1072;&#1079;&#1072;&#1076;</a><br/>\n";
  echo "</div>\n";

echo "
<div class=\"news\">
<a href=\"" . $rating_url. "index.php\">$rating_name</a>
<img src=\"/img/gt.gif\" alt=\"&gt;\" />&#1056;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1103;
</div>
";
include("foot_code.php");

  @session_unregister('pswd');
  exit;
 }

 // &#1087;&#1088;&#1086;&#1074;&#1077;&#1088;&#1082;&#1072; &#1041;&#1072;&#1085;&#1072; &#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1090;&#1077;&#1083;&#1103;
 $ban_link = parse_url($link);
 $ban_link = $ban_link['host'];
 $result = mysql_query("SELECT `uid` FROM `ban_user` WHERE `link`='$ban_link'");
 $row=mysql_fetch_row($result);
 if (!empty($row[0]))
 {
  echo "<div class=\"rek3\">\n";
  echo "&#1042;&#1099; &#1085;&#1077; &#1084;&#1086;&#1078;&#1077;&#1090;&#1077; &#1091;&#1095;&#1072;&#1089;&#1090;&#1074;&#1086;&#1074;&#1072;&#1090;&#1100; &#1074; &#1088;&#1077;&#1081;&#1090;&#1080;&#1085;&#1075;&#1077;!<br/>&#1042;&#1072;&#1096; &#1089;&#1072;&#1081;&#1090; &#1073;&#1083;&#1086;&#1082;&#1080;&#1088;&#1086;&#1074;&#1072;&#1085; (&#1079;&#1072; &#1085;&#1072;&#1082;&#1088;&#1091;&#1090;&#1082;&#1091; &#1080;&#1083;&#1080; &#1087;&#1088;&#1086;&#1095;&#1080;&#1077; &#1085;&#1072;&#1088;&#1091;&#1096;&#1077;&#1085;&#1080;&#1103; &#1087;&#1088;&#1072;&#1074;&#1080;&#1083; &#1058;&#1054;&#1055;&#1072;)!<br/>";
  echo "<a href='registration.php'>&laquo; &#1085;&#1072;&#1079;&#1072;&#1076;</a><br/>\n";
  echo "</div>\n";

echo "
<div class=\"news\">
<a href=\"" . $rating_url. "index.php\">$rating_name</a>
<img src=\"/img/gt.gif\" alt=\"&gt;\" />&#1056;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1103;
</div>
";
include("foot_code.php");

  @session_unregister('pswd');
  exit;
 }

 // &#1087;&#1088;&#1086;&#1074;&#1077;&#1088;&#1082;&#1072; &#1089;&#1091;&#1097;&#1077;&#1089;&#1090;&#1074;&#1086;&#1074;&#1072;&#1085;&#1080;&#1103; &#1091;&#1095;&#1077;&#1090;&#1085;&#1086;&#1081; &#1079;&#1072;&#1087;&#1080;&#1089;&#1080;
 $result = mysql_query("SELECT uid FROM users WHERE link='$link'");
 $row=mysql_fetch_row($result);
 if (!empty($row[0]))
 {
  echo "<div class=\"rek3\">\n";
  echo "&#1042;&#1099; &#1091;&#1078;&#1077; &#1088;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1080;&#1088;&#1086;&#1074;&#1072;&#1083;&#1080;&#1089;&#1100; &#1074; &#1088;&#1077;&#1081;&#1090;&#1080;&#1085;&#1075;&#1077;!<br/>";
  echo "<a href='registration.php'>&laquo; &#1085;&#1072;&#1079;&#1072;&#1076;</a><br/>\n";
  echo "</div>\n";

echo "
<div class=\"news\">
<a href=\"" . $rating_url. "index.php\">$rating_name</a>
<img src=\"/img/gt.gif\" alt=\"&gt;\" />&#1056;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1103;
</div>
";
include("foot_code.php");

  @session_unregister('pswd');
  exit;
 }

 //&#1047;&#1072;&#1087;&#1080;&#1089;&#1100; &#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1090;&#1077;&#1083;&#1103; &#1074; &#1073;&#1072;&#1079;&#1091;
 $sql="INSERT INTO users VALUES ('','$date','$siteName','$link','$admin','$email','$info','$razdel','$date','$pass',4,1)";
 @mysql_query($sql);
 $uid = mysql_insert_id();
 

 
 if ($uid == 0)
 {
  echo "<div class=\"rek3\">\n";
  echo "&#1054;&#1096;&#1080;&#1073;&#1082;&#1072;!<br/>\n";
  echo "<a href='registration.php'>&laquo; &#1085;&#1072;&#1079;&#1072;&#1076;</a><br/>\n";
  echo "</div>\n";

echo "
<div class=\"news\">
<a href=\"" . $rating_url. "index.php\">$rating_name</a>
<img src=\"/img/gt.gif\" alt=\"&gt;\" />&#1056;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1103;
</div>
";
include("foot_code.php");

  @session_unregister('pswd');
  exit;
 }

 // &#1091;&#1074;&#1077;&#1076;&#1086;&#1084;&#1083;&#1077;&#1085;&#1080;&#1077; &#1087;&#1086; &#1087;&#1086;&#1095;&#1090;&#1077;
 $text = "&#1047;&#1076;&#1088;&#1072;&#1074;&#1089;&#1090;&#1074;&#1091;&#1081;&#1090;&#1077;!\n&#1056;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1103; &#1042;&#1072;&#1096;&#1077;&#1075;&#1086; &#1089;&#1072;&#1081;&#1090;&#1072; &#1074; &#1088;&#1077;&#1081;&#1090;&#1080;&#1085;&#1075;&#1077; $site_name &#1087;&#1088;&#1086;&#1096;&#1083;&#1072; &#1091;&#1089;&#1087;&#1077;&#1096;&#1085;&#1086;!\n&#1050;&#1086;&#1076; &#1074;&#1072;&#1096;&#1077;&#1075;&#1086; &#1089;&#1095;&#1077;&#1090;&#1095;&#1080;&#1082;&#1072;\n<a href=\"$rating_url?uid=$uid\"><img src=\"".$rating_url."count.php?uid=$uid\" alt=\"$site_name\"/></a>\n&#1056;&#1072;&#1079;&#1084;&#1077;&#1089;&#1090;&#1080;&#1090;&#1077; &#1077;&#1075;&#1086; &#1085;&#1072; &#1089;&#1090;&#1088;&#1072;&#1085;&#1080;&#1094;&#1072;&#1093; &#1042;&#1072;&#1096;&#1077;&#1075;&#1086; &#1089;&#1072;&#1081;&#1090;&#1072;.\n&#1042;&#1072;&#1096; &#1087;&#1072;&#1088;&#1086;&#1083;&#1100;: $passTrue\n&#1057;&#1087;&#1072;&#1089;&#1080;&#1073;&#1086; &#1095;&#1090;&#1086; &#1074;&#1099;&#1073;&#1088;&#1072;&#1083;&#1080; &#1085;&#1072;&#1089;!\n--------\n&#1040;&#1076;&#1084;&#1080;&#1085;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1103; &#1089;&#1072;&#1081;&#1090;&#1072; $site_name\n$rating_url";
 $subject="$site_name Rating - &#1055;&#1086;&#1076;&#1090;&#1074;&#1077;&#1088;&#1078;&#1076;&#1077;&#1085;&#1080;&#1077; &#1086; &#1088;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1080;";
 $text=utf8_win ($text);
 $subject=utf8_win ($subject);
 $headers = "MIME-Version: 1.0\r\n"."Content-type: text/plain; charset=Windows-1251\r\n".'From: top@'.$_SERVER['SERVER_NAME']."\r\n".'Reply-To: top@'.$_SERVER['SERVER_NAME']."\r\n".'X-Mailer: PHP/'.phpversion();
 @mail($email, $subject, $text, $headers);

 echo "<div class=\"main\"><b>&#1047;&#1072;&#1088;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1080;&#1088;&#1086;&#1074;&#1072;&#1085;&#1086;!</b></div>\n";
 echo "<div class=\"rek3\">\n";
 echo "&#1050;&#1086;&#1076; &#1074;&#1072;&#1096;&#1077;&#1075;&#1086; &#1089;&#1095;&#1077;&#1090;&#1095;&#1080;&#1082;&#1072; (&#1088;&#1072;&#1079;&#1084;&#1077;&#1097;&#1077;&#1085;&#1080;&#1077; &#1085;&#1072; &#1075;&#1083;&#1072;&#1074;&#1085;&#1086;&#1081; &#1089;&#1090;&#1088;&#1072;&#1085;&#1080;&#1094;&#1077; &#1086;&#1073;&#1103;&#1079;&#1072;&#1090;&#1077;&#1083;&#1100;&#1085;&#1086;, &#1085;&#1091; &#1080; &#1087;&#1086; &#1078;&#1077;&#1083;&#1072;&#1085;&#1080;&#1102; &#1085;&#1072; &#1086;&#1089;&#1090;&#1072;&#1083;&#1100;&#1085;&#1099;&#1093;):<br/>\n
      <input type=\"text\" value='&lt;a href=\"$rating_url?uid=$uid\"&gt;&lt;img src=\"".$rating_url."count.php?uid=$uid\" alt=\"$site_name\"/&gt;&lt;/a&gt;'/>\n";
 echo "<br/>&lt;a href=\"$rating_url?uid=$uid\"&gt;&lt;img src=\"".$rating_url."count.php?uid=$uid\" alt=\"$site_name\"/&gt;&lt;/a&gt;";
 echo "<br/>&#1044;&#1083;&#1103; &#1085;&#1072;&#1076;&#1077;&#1078;&#1085;&#1086;&#1089;&#1090;&#1080; &#1086;&#1085; &#1042;&#1072;&#1084; &#1074;&#1099;&#1089;&#1083;&#1072;&#1085; &#1085;&#1072; &#1091;&#1082;&#1072;&#1079;&#1072;&#1085;&#1085;&#1099;&#1081; &#1042;&#1072;&#1084;&#1080; &#1087;&#1086;&#1095;&#1090;&#1086;&#1074;&#1099;&#1081; &#1103;&#1097;&#1080;&#1082;!<br/></div>\n";
 echo "<div class=rek3><a href='admin.php?uid=$uid&p=$pass'>&#1042;&#1086;&#1081;&#1090;&#1080; &#1074; &#1072;&#1076;&#1084;&#1080;&#1085; &#1087;&#1072;&#1085;&#1077;&#1083;&#1100;!</a><br/>";
 echo "<a href=\"index.php\">&#1055;&#1077;&#1088;&#1077;&#1081;&#1090;&#1080; &#1074; &#1058;&#1054;&#1055;</a></div>";
 

echo "
<div class=\"news\">
<a href=\"" . $rating_url. "index.php\">$rating_name</a>
<img src=\"/img/gt.gif\" alt=\"&gt;\" />&#1056;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1103;
</div>
";
include("foot_code.php");

 @session_unregister('pswd');
 exit;
}
else
{
$err="Please fill in all the fields!";
}
// Please fill in all registration fields!;
@session_unregister('pswd');
echo "<div class=\"main\">\n";
echo "Please read the rules;
<a href=\"help/rules.php\">Rules;</a>.<br/>\n";
echo "</div>";

echo "<div class=\"rek3\">\n";
echo "<form action=\"registration.php?".session_name()."=".session_id()."\" method=\"post\">\n";
echo "<b>$err</b><br/>";
echo "<div class=\"ifield\">Site Name:</div>Your site name.<br />";
echo "<input type=\"text\" name=\"siteName\" maxlength=\"20\"/>\n";
echo "<div class=\"ifield\">Category:</div>Choose a category which is relevant to your site.<br />\n";
echo "<select name=\"razdel\">";
$razdel_data = mysql_query("SELECT id,name FROM `razdels`;");
while ($razdel_data_row = mysql_fetch_array($razdel_data)) //&#1087;&#1091;&#1089;&#1082;&#1072;&#1077;&#1084; &#1094;&#1080;&#1082;&#1083; &#1080; &#1074;&#1099;&#1074;&#1086;&#1076;&#1080;&#1084;
{
 echo "<option value=\"".$razdel_data_row['id']."\">".htmlspecialchars(base64_decode($razdel_data_row['name']))."</option>";
}
echo "</select>\n";
echo "<div class=\"ifield\">Choose password:</div>Remember!Simple passwords are easy to hack!<br />";
echo "<input type=\"text\" name=\"pass\" maxlength=\"10\"/>\n";
echo "<div class=\"ifield\">Email:</div>Use your real email important information will be sent to it!<br />";
echo "<input type=\"text\" name=\"email\" value=\"@\" maxlength=\"30\"/>\n";
echo "<div class=\"ifield\">Site Address:</div>Your site address/url!<br />";
echo "<input type=\"text\" name=\"link\" maxlength=\"36\" value=\"http://\"/>\n";
echo "<div class=\"ifield\">Your name:</div>Please use your real name as it will be used to refer to you.<br />";
echo "<input type=\"text\" name=\"admin\" maxlength=\"10\"/>\n";
echo "<div class=\"ifield\">Site description:</div>A short desription of your site/NO VULGAR DESCRIPTIONS PLEASE!!<br />";
echo "<input type=\"text\" name=\"info\" maxlength=\"140\"/>\n";
echo "<div class=\"ifield\">Capture code:</div>Enter the numbers and click register to complete sign up.<br />";
$_SESSION['pswd']=rand(10000,99999);
echo "<b>".$_SESSION['pswd']."</b><br />";
echo "<input name=\"chislo\" value=\"\" type=\"text\" maxlength=\"5\"/>\n";
echo "<br/><br/><input class=\"btn\" type=\"submit\" value=\"Register\"/>\n";
echo "</div></form>\n";

echo "
<div class=\"news\">
<a href=\"" . $rating_url. "index.php\">$rating_name</a>
<img src=\"/img/gt.gif\" alt=\"&gt;\" />Home;
</div>
";
include("foot_code.php");

?>