<?php 
if(!isset($_SESSION["logado"]) == 1) {
	exit('<div class="box_conteudo">Voc&ecirc; n&atilde;o pode acessar esta p&aacute;gina</div>');
}
else{
$vip = mssql_fetch_row(mssql_query("select ".colum_vip." from memb_info where memb___id='".$_SESSION["login"]."'"));
if($vip[0] < mudar_email) {
	exit('<div class="box_conteudo">Voc&ecirc; n&atilde;o tem benef&iacute;cio para acessar esta p&aacute;gina</div>');
}
else{
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<div class="about-team-page-top-wrap" style="padding-bottom: 0px; margin-top: -5px;">
    <div class="top-title" style="width: 100%;">
     
    </div>
</div>
<div class="match-list-wrap">
<br />
<br />


<table width="100%" border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td width="26%" align="right" style="color: #FFF">E-Mail antigo:</td>
    <td width="74%"><label>
      <input name="memail_antigo" type="text" id="memail_antigo" maxlength="50" />
    </label></td>
  </tr>
  <tr>
    <td align="right" style="color: #FFF">E-Mail novo:</td>
    <td><label>
      <input name="memail_novo" type="text" id="memail_novo" maxlength="50" />
    </label></td>
  </tr>
  <tr>
    <td align="right" style="color: #FFF">Repetir E-Mail novo:</td>
    <td><label>
      <input name="memail_renovo" type="text" id="memail_renovo" maxlength="50" />
    </label></td>
  </tr>
  <tr>
    <td align="right" style="color: #FFF">&nbsp;</td>
    <td><label>
      <input type="submit" name="mudar" id="mudar" onclick="loading('?go=email&mudar=true'+'&memail_antigo='+document.getElementById('memail_antigo').value+'&memail_novo='+document.getElementById('memail_novo').value+'&memail_renovo='+document.getElementById('memail_renovo').value, 'memail');" value="Mudar e-mail" />
    </label><br /><div id="memail" style="color:#FFF"></div><br />
</td>
  </tr>
</table>
</div>

<br />

</body>
</html>
<? }} ?>