<?
require('config.php');
require('funciones.php');
if (isset($_POST["password"])) {

}else{

$username=uc($_COOKIE["usNick"]);
$pazz=uc($_COOKIE["usPass"]);

$sql = "SELECT * FROM tb_users WHERE username='$username'";
$result = mysql_query($sql);        
$row = mysql_fetch_array($result);

if ($pazz != $row["password"]){ exit(); }


?>
    
<table width="100%" height="100%" border="0" cellpadding="2" cellspacing="2">
  <tr>
    <td align="center">
<b>Ccылка для привлечения рефералов:</b><br>
<input type="text" value="<? require("config.php"); echo $url; ?>/register.php?r=<?=$username ?>" style="font-family: Georgia, New York CE, utopia, serif;width:544px;text-align:center;border:none;" onMouseOver="this.select();" onFocus="this.select();" onKeyDown="return false;" />   
</td></tr>
  <tr>
    <td align="center"><b>Баннер для привлечения рефералов:</b><br>
    <img src="images/banner.png"><br>
    <textarea type="text" rows="2" style="width:540px;text-align:center;border:none;overflow:hidden;" onmouseover="this.select();" onfocus="this.select();" onkeydown="return false;">
&lt;a href="<? require("config.php"); echo $url; ?>/register.php?r=<?=$username ?>"&gt;
&lt;img src="<? require("config.php"); echo $url; ?>/images/banner.png" /&gt;&lt;/a&gt;</textarea></td></tr>

</table>



<?}
mysql_close($con);
