Файл: poderzka.php
Строк: 116
<? 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."sysvals");
$row=mysql_fetch_array($sql);
include("inc/usermenu.inc.php");
?>
<div align="center">
<br>
<div align="center">
<div class="s5_mod_h3_l">
<div class="s5_mod_h3_r">
<div class="s5_mod_h3_m">
<h3 class="s5_mod_h3"><span class="s5_h3_first">
<?=$lang['pod'];?>
</span></h3>
</div>
</div>
</div>
</div>
<table class="form" width="500" border="0" align="center" cellpadding="5" cellspacing="5">
<?
if($row['admin_icq']>0):
?>
<tr>
<td align="center"><?=$lang['pod2'];?><br>
<a href="http://www.icq.com/people/about_me.php?uin=<?=$row['admin_icq'];?>" target="_blank"><img src="http://status.icq.com/online.gif?icq=<?=$row['admin_icq'];?>&img=5" alt="" align="middle"/></a>
<font color="#ffffff"> ICQ</font> <a class="button1" href=""> <?=$row['admin_icq'];?></a><br>
<?=$lang['pod2'];?>
<br><br><div class="accent"><div class="accent-left"></div><div class="accent-right"></div></div><br>
</tr>
<?endif;?>
<?
$sql1=mysql_query("select*from ".$db_pref."sysvals");
$row1=mysql_fetch_array($sql1);
$ulength=strlen($row1['admin_skype']);
if($ulength>0):
?>
<tr>
<td align="center"><img src="images/skype.png" alt="" align="middle"/> <font color="#ffffff">skype</font> <a class="button1" href="skype:<?=$row['admin_skype'];?>"><?=$row['admin_skype'];?></a>
<br>
<br>
<div class="accent"><div class="accent-left"></div><div class="accent-right"></div></div><br></td>
</tr>
<?endif;?>
<tr>
<?
$sqlad4=mysql_query("select*from ".$db_pref."users where id='1'");
$rowad4=mysql_fetch_array($sqlad4);
$admin_login=$rowad4['user'];
$admin_email=$rowad4['email'];
?>
<td align="center"><?=$lang['pod3'];?> <a class="button" href="mail.php?create&to=<?=$admin_login;?>">.:: <?=$lang['pod4'];?> ::.</a>
<br><br><div class="accent"><div class="accent-left"></div><div class="accent-right"></div></div> <br>
</td>
</tr>
<tr>
<td align="center" ><?=$lang['pod5'];?> <img src="images/emailbutton.gif" alt="" align="middle"/> <a class="button1" href="sendmail.php">
<?=$admin_email;?>
</a></td>
</tr>
</table>
</div>
<?
}
}
else
{
print "<div align='center'><font color='red'><b>{$lang['error']}</b></font><br><br></div>";
}
include("footer.php");
?>