<?php 

include("inc/drepturi.php");
if(isset($_SESSION['user']) && isset($_SESSION['pass']) && $_SESSION['admin'] >=$drepturi['panou_admin'])
{
	$username = $_SESSION['user'];
$sql = mysql_query("Select * from account.account where login='".$_SESSION['user']."'");
	$acc=mysql_fetch_object($sql);

	$charss = mysql_query("Select * from player.player where account_id='".$acc->id."'");
	$chars = mysql_num_rows($charss);
?>

				<div class="postui post-title">
	<h2><span>INFORMATII ADMIN</span></h2>
</div>
<div class="postui post-con">
	<div class="con-wrap">

	<table width="100%" border="0">
	<td width="25%" valign="top">
<ul>
&raquo; Id-ul contului : <?=$acc->id?><br>
&raquo; Nume de utilizator : <?=$acc->login?><br>
&raquo; Email : <?=$acc->email?><br>
&raquo; Grad :<span id="yourEmail"> <?=$acc->web_admin?></span><br>
</ul>
</td>
<td width="25%" valign="top">
&raquo; Jucători ON : <a><b><?php mysql_select_db("player"); $exe = mysql_query("SELECT COUNT(*) as count FROM player WHERE DATE_SUB(NOW(), INTERVAL 10 MINUTE) < last_play;"); $player_online = mysql_fetch_object($exe)->count;echo "$player_online"; ?></b></a>
</td>
</table>
<br>

		</div>						
</div> 							
<div class="postui post-end"></div>

				<div class="postui post-title">
	<h2><span></span></h2>
</div>
<div class="postui post-con">
	<div class="con-wrap">

<table width="100%" border="0">
  <tr>
    <td width="25%"><h4>JUCATORI</h4>


          <?php if($_SESSION['admin'] > 9){?>
		  &raquo; <a class="btn" href="index.php?page=u_acces" >Acces website</a>
		<br>
		  &raquo; <a class="btn" href="index.php?page=adauga_admini">Acces joc</a>
		<br>
		&raquo; <a class="btn" href="index.php?page=adauga_itm">Adăugare itm itemshop</a>
		<br>
		
                                       <?php } ?>
&raquo; <a class="btn" href="index.php?page=cauta_cont">Cauta un cont</a><br>

&raquo; <a class="btn" href="index.php?page=cauta_caracter" >Cauta un caracter</a>

<?php if($_SESSION['admin'] > 8){?>
<br>
&raquo; <a class="btn" href="index.php?page=cauta_ip" >Cauta un IP</a>
<br>
&raquo; <a class="btn" href="index.php?page=cauta_vnum" >Cauta un item dupa vnum</a><br>
&raquo; 
  <a class="btn" href="index.php?page=create_item" >Creaza un item</a>
<br>
&raquo; 
  <a class="btn" href="index.php?page=a_donatii" >Donatii</a>
  <br></td>
    <td width="25%" valign="top">
    <h4>SETARI WEBSITE </h4>
&raquo; 
  <a class="btn" href="index.php?page=adauga_stiri">Stiri / prima pagina</a>
<br>
<br>
<br>
    </td>

 <?php } ?>

          <?php if($_SESSION['admin'] > 9){?>
		      <td width="25%" valign="top">
		      <h4>LOGURI</h4>
		  
			&raquo; <a class="btn" href="index.php?page=admin_comms" >Comenzi GM</a><br>
			&raquo; <a class="btn" href="index.php?page=command_log" >Comenzi GM(2)</a><br>
			&raquo; <a class="btn" href="index.php?page=ir_log" >Iteme retrase</a><br>
			&raquo; <a class="btn" href="index.php?page=ec_log" >Edit caracter</a><br>
			&raquo; <a class="btn" href="index.php?page=ic_log" >Log Create Item</a><br>
			&raquo; <a class="btn" href="index.php?page=log_monezi" >Monezi</a><br>
			&raquo; <a class="btn" href="index.php?page=ban_log" >Banuri</a><br>
			    </td>
                                         <?php } ?>



	
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>



		</div>						
</div> 							
<div class="postui post-end"></div>



<?php } else { echo error("Zona restrictionata.Drepturi de acces insuficiente.");}?>
