<html lang="pt">
<head>
<meta name="description" content="Lucas Thompson" />
<title></title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<? session_start();
include 'cnn.php';
include 'estilo.css';
include 'configs/conf_extras.php';
@$login = $_SESSION['login'];
@$senha = $_SESSION['senha'];
if(!isset($_SESSION['login'])) { echo "Para acessar essa pagina é preciso esta logado!"; }
else{
$vip=mssql_fetch_row(mssql_query("select vip from MEMB_INFO where memb___id='".$login."'"));
if($vip[0] <= 1) { echo "Para acessar essa pagina é preciso ser Vip Master"; }
else{?>
</head>

<body>
<table width="510" border="2" background="imagens/bg2.jpg">
  <tr>
    <th scope="col"><table width="510" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="30"><img src="imagens/mu.gif" alt="" width="30" height="30"></td>
        <td width="480" background="imagens/mu_back.png">&nbsp;&nbsp;&nbsp;<strong>Limpar Inventario</strong></td>
      </tr>
    </table>
      <br>
      <br>
      <form name="form1" method="post" action="">
        <table width="95%" border="0" cellspacing="2" cellpadding="0">
          <tr>
            <td width="20%"><label></label></td>
            <td width="80%"><input name="prossegue" type="submit" class="submit" id="prossegue" value="Limpar Bau"></td>
          </tr>
        </table>
      </form>
      <br>
      <a href="javascript:history.back(-1);"><p align="left">&lt;&lt; voltar </a></p> </th>
  </tr>
</table>
</body>
</html>
<? 
if($_POST['prossegue']) {
$vip=mssql_fetch_row(mssql_query("select vip from memb_info where memb___id='".$login."'"));
$VerificaStatus = mssql_fetch_row(mssql_query("select ConnectStat from MEMB_STAT where memb___id='".$login."'"));
if($VerificaStatus['0'] >= 1){
echo "<script>alert('Saia da conta'); 
location='javascript:history.back()'</script>";
}
else{
	if($vip['0'] <= 1) {
	echo "<script>alert('Você não é VIP'); 
	location='javascript:history.back()'</script>";
	}
	else{
	mssql_query("UPDATE warehouse SET Items=0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF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