Файл: inc/usermenu.inc.php
Строк: 150
<?
$sqladminmail=mysql_query("select*from ".$db_pref."mess where to_user='$user' and through='NO'");
$rowadminmail=mysql_num_rows($sqladminmail);
$lang['usermenu13']=str_replace("{mail}",$rowadminmail,$lang['usermenu13']);
$lang['usermenu11']=str_replace("{mail}",$rowadminmail,$lang['usermenu11']);
if($rowadminmail>0){
echo "
<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'>
<div class='error1' align='center'><a href="mail.php"><font color='red'><i>{$lang['usermenu13']} </i></font></a></div>
</span></h3>
</div>
</div>
</div>
</div>
";
}
$sqlorder=mysql_query("select*from ".$db_pref."neworders where name='$user'");
$roworder=mysql_num_rows($sqlorder);
$sqlotpusk=mysql_query("select*from ".$db_pref."rest where login='$user'");
$rowotpusk=mysql_fetch_array($sqlotpusk);
$otpusk=$rowotpusk['login'];
$sqladmin=mysql_query("select*from ".$db_pref."users where id='1'");
$rowadmin=mysql_fetch_array($sqladmin);
$admin=$rowadmin['user'];
if($stat==0){
if ($roworder >0){
?>
<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['usermenu'];?>
</span></h3>
</div>
</div>
</div>
</div>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="2">
<tr>
<td width="50%" align="center" class="form4"><a id="cursor" class="s5box_one"><?=$lang['usermenu2'];?></a></td>
<td align="center" class="form4"><a href="poderzka.php"><font color="gren"><?=$lang['usermenu5'];?></font></a></td>
</tr>
</table>
<?
}}
else{
?>
<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">
<?=$lang['usermenu'];?>
</h3>
</div>
</div>
</div>
</div>
<style>
.widthtab{
width:25%;
}
</style>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="2">
<tr>
<?if($no_ref=="NO"){?>
<td align="center" class="form4 widthtab"><a href="account.php"><?=$lang['usermenu1'];?></a></td>
<?}?>
<td align="center" class="form4"><a href="mail.php"><?=$lang['usermenu11'];?></a></td>
<td align="center" class="form4 widthtab"><? if ($roworder >0): ?><a id="cursor" class="s5box_one"><?=$lang['usermenu2'];?></a><? else: ?><a href="order.php"><?=$lang['usermenu4'];?></a><? endif; ?></td>
<td align="center" class="form4 widthtab"><a href="poderzka.php"><font color="gren"><?=$lang['usermenu5'];?></font></a></td>
</tr>
<tr>
<td align="center" class="form4 widthtab"><? if($user==$admin): ?><a href="<?=$admin_files;?>.php?stats" target="_blank"><?=$lang['usermenu6'];?></a><? else: ?><a href="profile.php?add=<?=$user;?>"><?=$lang['usermenu7'];?></a><? endif; ?></td>
<td align="center" class="form4 widthtab"><? if ($otpusk==$user): ?><a href="otpusk.php"><font color="gren"><?=$lang['usermenu8'];?></font></a><? else: ?><a href="otpusk.php"><?=$lang['usermenu9'];?></a><? endif; ?></td>
<?if($no_ref=="NO"){?>
<td align="center" class="form4 widthtab"><a href="reflinks.php"><?=$lang['usermenu3'];?></a></td>
<?}?>
<td align="center" class="form4 widthtab"><a id="cursor" class="s5box_three"><?=$lang['usermenu12'];?></a></td>
</tr>
<!--
<tr>
<td class="form4" colspan="4" align="center"><a href="bonus.php"><b><i><?=$lang['usermenu15'];?></b></i></a>
</td>
</tr>
-->
</table>
<?
}
$sqluro=mysql_query("select*from ".$db_pref."neworders where sname='$user' ");
$uro=mysql_num_rows($sqluro);
$rowuro=mysql_fetch_array($sqluro);
if($uro>0){
echo "
<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'>
<a href='new_order.php?to=".$rowuro['rang']."'><font color='gren'><i>".$lang['usermenu16']." </i></font></a>
</span></h3>
</div>
</div>
</div>
</div>
";
}
if(($sistem==multi) and ($alertpay_multi=='') || ($perfektmoney_multi=='')|| ($wmkosel=='')){
echo" <span align='center' class='alert'><a href='profile.php?add'>".$lang['usermenu17']."</a>
</span>";
}
?>