Файл: reflinks.php
Строк: 124
<?
include("header.php");
$urlpage='Реф-ссылки';
require("inc/connect.inc.php");
if (isset($_COOKIE['id']) and isset($_COOKIE['hash']))
{
$query = mysql_query("SELECT *,INET_NTOA(login_ip) as login_ip FROM ".$db_pref."users WHERE id = '".intval($_COOKIE['id'])."' LIMIT 1");
$userdata = mysql_fetch_assoc($query);
if(($userdata['hash'] !== $_COOKIE['hash']) or ($userdata['id'] !== $_COOKIE['id'])
or (($userdata['login_ip'] !== $_SERVER['REMOTE_ADDR']) and ($userdata['login_ip'] !== "0.0.0.0")))
{
echo "<div align='center'><font color='red'><br><b>".$lang['error16']."</b></font><br><br></div>";
}
else
{
?>
<?
$sql=mysql_query("select*from ".$db_pref."users where user='$user'");
$row12=mysql_fetch_array($sql);
$ad12=$row12['ad'];
$sql=mysql_query("select*from ".$db_pref."sysvals");
$row=mysql_fetch_array($sql);
$selectedprefactive=$row['ref_active'];
include("inc/usermenu.inc.php");
?>
<br><div align="center">
<table class="form" width="95%" border="0" align="center" cellpadding="2" cellspacing="2">
<tr>
<td align="center">
<h2 align="center"><i><?=$lang['reflinks'];?></i></h2><br>
</td>
</tr>
<tr>
<td align="center" class="form1"><a href="<?=$row['site_url'];?>/?ref=<?=$user;?>" target="_blank"><?=$row['site_url'];?>/?ref=<?=$user;?></a></td>
</tr>
<tr>
<td align="center" class="<?=$form;?>">Links to open the site immediately to the English .</td>
</tr>
<tr>
<td align="center" class="form1"><a href="<?=$row['site_url'];?>/?language=en&ref=<?=$user;?>" target="_blank"><?=$row['site_url'];?>/?language=en&ref=<?=$user;?></a></td>
</tr>
<tr>
<td align="center" class="form1"><?=$lang['reflinks1'];?> <font color="gren"><i><?=$ad12;?></i></font></td>
</tr>
</table>
<br>
</div>
<? if($selectedprefactive==YES):?>
<div align="center" class="form">
<h2><i><?=$lang['reflinks2'];?> 468 x 60</i></h2><br>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><a href="<?=$row['site_url'];?>/?ref=<?=$user;?>" target="_blank"><img style="padding:5px;border: 1px solid #252525" src="<?=$row['site_url'];?>/banners/468x60.gif" alt="<?=$row2['head_title'];?>" width="468" height="60" border="0"></a><br><br></td>
</tr>
<tr>
<td align="center" ><textarea class="form" cols="70" rows="5" readonly><a href="<?=$row['site_url'];?>/?ref=<?=$user;?>" target="_blank"><img src="<?=$row['site_url'];?>/banners/468x60.gif" alt="<?=$row2['head_title'];?>" width="468" height="60" border="0"></a></textarea></td>
</tr>
</table></div>
<br>
<div align="center" class="form">
<h2><i><?=$lang['reflinks2'];?> 100 x 100</i></h2><br>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" ><a href="<?=$row['site_url'];?>/?ref=<?=$user;?>" target="_blank"><img style="padding:5px;border: 1px solid #252525" src="<?=$row['site_url'];?>/banners/100x100.gif" alt="<?=$row2['head_title'];?>" width="100" height="100" border="0"></a><br><br></td>
</tr>
<tr>
<td align="center" class="table"><textarea class="form" cols="70" rows="5" readonly><a href="<?=$row['site_url'];?>/?ref=<?=$user;?>" target="_blank"><img src="<?=$row['site_url'];?>/banners/100x100.gif" alt="<?=$row2['head_title'];?>" width="100" height="100" border="0"></a></textarea></td>
</tr>
</table></div>
<br>
<div align="center" class="form">
<h2><i><?=$lang['reflinks3'];?> 88 x 31</i></h2><br>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><a href="<?=$row['site_url'];?>/?ref=<?=$user;?>" target="_blank"><img style="padding:5px;border: 1px solid #252525" src="<?=$row['site_url'];?>/banners/88x31.gif" alt="<?=$row2['head_title'];?>" width="88" height="31" border="0"></a><br><br></td>
</tr>
<tr>
<td align="center" ><textarea class="form" cols="70" rows="5" readonly><a href="<?=$row['site_url'];?>/?ref=<?=$user;?>" target="_blank"><img src="<?=$row['site_url'];?>/banners/88x31.gif" alt="<?=$row2['head_title'];?>" width="88" height="31" border="0"></a></textarea></td>
</tr>
</table></div>
<?
endif;
}
}
else
{
print "<div align='center'><font color='red'><br><b>{$lang['error']}</b></font><br><br></div>";
}
include("footer.php");
?>