View file visavi_top/reg.php

File size: 5.47Kb
<?
include "config2.php";

$linkkk=mysql_pconnect ($DB_HOST, $DB_USER, $DB_PASS);
mysql_select_db($DB_NAME);


function go()
{
include "../top.php";
echo "<div class=\"blue\"><font color=\"#FF0000\">VISAVI.NET</font><br/></div><div>";
};



function ending()
{
	
	
print "</div>
</body>
</html>";
};
go();
$q_u_l=@mysql_query("select title from users where title='".$title."';");
$u_l=@mysql_fetch_array($q_u_l);
//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
$bro=fopen("brow.dat", "r+");
while (!feof ($bro))
{
$brow=fgets ($bro,1024);
}
     if ($chis==$brow) {echo""; $brow =rand(1000, 9999);
$bro=fopen("brow.dat", "w+");
chmod("brow.dat", 0666);
fwrite($bro, $brow);
fclose($bro);} else {$brow =rand(1000, 9999);
$bro=fopen("brow.dat", "w+");
chmod("brow.dat", 0666);
fwrite($bro, $brow);
fclose($bro);  echo"Введенное число неправильное<br/><hr/><a href=\"rega.php\">: Вернуться</a><br/>
</div></body></html>"; exit;}
//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

if(empty($title)) $error = $error."Нет названия!<br/>";
if(empty($pass)) $error = $error."&#x412;&#x44B; &#x43D;&#x435; &#x432;&#x432;&#x435;&#x43B;&#x438; &#x43F;&#x430;&#x440;&#x43E;&#x43B;&#x44C;!<br/>";
if(empty($email)) $error = $error."&#x412;&#x44B; &#x43D;&#x435; &#x432;&#x432;&#x435;&#x43B;&#x438; e-mail!<br/>";
if(empty($link)) $error = $error."Ссылка не может быть пустой!<br/>";
if(empty($about)) $error = $error."Не введено описание сайта!<br/>";
if(empty($error))
{
		if (@MySQL_Num_rows($q_u_l)==0)
		{

	$title = htmlspecialchars(stripslashes(trim($title)));
	$pass = htmlspecialchars(stripslashes(trim($pass)));
	$email = htmlspecialchars(stripslashes(trim($email)));
	$link = htmlspecialchars(stripslashes(trim($link)));
	$about = htmlspecialchars(stripslashes(trim($about)));
	if(mysql_query("insert into users values(0,'$title','$pass','$email','$link','$about',NOW(),0,0,0,0,0,0,0,0,0,'','','','','$cin','$out','allin','allout');")) {
		print "Вы успешно зарегистрированы! &#x420;&#x430;&#x437;&#x43C;&#x435;&#x441;&#x442;&#x438;&#x442;&#x435; &#x43A;&#x43E;&#x434; &#x43E;&#x434;&#x43D;&#x43E;&#x433;&#x43E; &#x438;&#x437; &#x44D;&#x442;&#x438;&#x445; &#x441;&#x447;&#x435;&#x442;&#x447;&#x438;&#x43A;&#x43E;&#x432; &#x443; &#x432;&#x430;&#x441; &#x43D;&#x430; &#x441;&#x430;&#x439;&#x442;&#x435;:<br/><br/>";
		$query = mysql_query("select id,title from users where title='".$title."';");
		$data = mysql_fetch_array($query);
		
		
	
		print "1.<img src=\"http://top.visavi.net/c.php?id=".$data['id']."\" alt=\"\"/><br/>";
	
		print htmlspecialchars("<a href=\"http://top.visavi.net/in.php?id=".$data['id']."\"><img src=\"http://top.visavi.net/c.php?id=".$data['id']."\" alt=\"Мир скриптов\"/></a>"); print "<br/>";
		
		print 'Cкопировать 1><br/>
<input name="text"  value="&lt;a href=&quot;http://top.visavi.net/in.php?id=ВАШ ID&quot;&gt; &lt;img src=&quot;http://top.visavi.net/c.php?id=ВАШ ID &quot;alt=&quot;Мир скриптов&quot;/&gt;&lt;/a&gt;" title=""/><br/>';
		
		print "<br/>2.<img src=\"http://top.visavi.net/c.php?id=".$data['id']."&amp;img=1\" alt=\"\"/><br/>";
		
	
		print htmlspecialchars("<a href=\"http://top.visavi.net/in.php?id=".$data['id']."\"><img src=\"http://top.visavi.net/c.php?id=".$data['id']."&amp;img=1\" alt=\"Мир скриптов\"/></a>"); print "<br/>";
		
		print 'Cкопировать 2<br/>
<input name="text"  value="&lt;a href=&quot;http://top.visavi.net/in.php?id=ВАШ ID&quot;&gt; &lt;img src=&quot;http://top.visavi.net/c.php?id=ВАШ ID&amp;img=1 &quot;alt=&quot;Мир скриптов&quot;/&gt;&lt;/a&gt;" title=""/><br/>';
		
		print "<br/>3.<img src=\"http://top.visavi.net/c.php?id=".$data['id']."&amp;img=2\" alt=\"\"/><br/> ";
	
		print htmlspecialchars("<a href=\"http://top.visavi.net/in.php?id=".$data['id']."\"><img src=\"http://top.visavi.net/c.php?id=".$data['id']."&amp;img=2\" alt=\"Мир скриптов\"/></a>");  print "<br/>";
print 'Cкопировать 3<br/>
<input name="text"  value="&lt;a href=&quot;http://top.visavi.net/in.php?id=ВАШ ID&quot;&gt; &lt;img src=&quot;http://top.visavi.net/c.php?id=ВАШ ID&amp;img=2 &quot;alt=&quot;Мир скриптов&quot;/&gt;&lt;/a&gt;" title=""/><br/><br/>';

	print "<hr/>Примечание, если вы регистрируете счетчик для сайтов расположенных на конструкторах например kmx.ru wab.ru wen.ru и т.д. то вместо";
	print htmlspecialchars(" &amp; вы должны  написать просто символ &"); print "<br/><br/>";
	
	
	
		print "<br/><font color=\"#FF0000\">&#x412;&#x43D;&#x438;&#x43C;&#x430;&#x43D;&#x438;&#x435;! &#x412;&#x430;&#x448; id ".$data['id']."! <br/>Id &#x43F;&#x43E;&#x442;&#x440;&#x435;&#x431;&#x443;&#x435;&#x442;&#x441;&#x44F; &#x432;&#x430;&#x43C; &#x434;&#x43B;&#x44F; &#x438;&#x437;&#x43C;&#x435;&#x43D;&#x435;&#x43D;&#x438;&#x44F; &#x43F;&#x440;&#x43E;&#x444;&#x438;&#x43B;&#x44F;!</font><br/><br/><b><a href=\"index.php\">В рейтинг</a></b>";
	}
	} else {
	print "&#x412; &#x43D;&#x430;&#x448;&#x435;&#x439; &#x431;&#x430;&#x437;&#x435; &#x443;&#x436;&#x435; &#x435;&#x441;&#x442;&#x44C; &#x441;&#x430;&#x439;&#x442; &#x441; &#x442;&#x430;&#x43A;&#x438;&#x43C; &#x43D;&#x430;&#x437;&#x432;&#x430;&#x43D;&#x438;&#x435;&#x43C;!";
	}
}
else
{
print $error;
}
ending();
mysql_close($linkkk);
?>