<?php
require("config.php");
require("includes/debug.php");
require("includes/functions.php");
require("includes/logincheck.php");
require("includes/settings.php");
require("includes/admincheck.php");

if (isset($_GET["id"]) <> "") {
	$profileid = $_GET["id"];
} else {
	header( "Location: profiles.php" );
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=<?php print($charset); ?>" />
<title><?php print($longtitle); ?></title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="apple-touch-icon" href="favicon.png">
   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link href="css/main.css" rel="stylesheet" type="text/css">
</head>

<body>
<!--<table width="780" border="0" align="center" valign="top" cellpadding="0" cellspacing="0" style="border-left: 1px solid #DDDDDD; border-right: 1px solid #DDDDDD; text-align: left;">
  <tr bgcolor="#FFFFFF">
    <td height="22" colspan="6">&nbsp;</td>
  </tr>
  <tr bgcolor="#0066FF">
    <td width="15" bgcolor="#808080">&nbsp;</td>
    <td width="751" height="120" bgcolor="#808080"><?php //require("includes/header.php"); ?></td>
    <td width="15" bgcolor="#808080">&nbsp;</td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td height="18">&nbsp;</td>
    <td height="18"><center><?php //require("includes/menu.php"); ?></center></td>
    <td height="18">&nbsp;</td>
  </tr>
    <tr bgcolor="#FFFFFF">
    <td height="18">&nbsp;</td>
    <td height="18">&nbsp;</td>
    <td height="18">&nbsp;</td>
  </tr>
</table>-->
<?php require_once 'topo.php';?>
<table width="980" height="20" border="0" align="center" valign="top" cellpadding="0" cellspacing="0" style="border-left: 1px solid #DDDDDD; border-right: 1px solid #DDDDDD; text-align: left;">
  <tr >
    <td width="15" height="20">&nbsp;</td>
    <td height="20" colspan="4">
    <?php
	$profileid = $_GET["id"];
	$conn = @mysql_connect($dbhost,$dbuser,$dbpass) or sqlerror();
	mysql_select_db($dbname, $conn);
	$sql = mysql_query("SELECT * FROM cmum_profiles WHERE id='".$profileid."'") or sqlerror();
	$line=mysql_fetch_array($sql);
	mysql_close($conn);
	?>
    <form name="delprofile" action="profiles.php" method="post">
    <fieldset>
    <legend>Deletar profile</legend>
    <input type="hidden" name="profileid" value="<?php print($profileid); ?>">
    <input type="hidden" name="profilename" value="<?php print($line["name"]); ?>">
    Tem certeza de que deseja excluir profile <strong><?php print($line["name"]); ?></strong>?&nbsp;&nbsp;<input type="submit" name="baction" value="Yes" id="submit">&nbsp;<input type="submit" name="baction" value="Nao" id="submit">
    </fieldset>
    </form>
    </td>
    <td width="15" height="20">&nbsp;</td>
  </tr>
</table>
<table width="980" height="20" border="0" align="center" valign="top" cellpadding="0" cellspacing="0" style="border-left: 1px solid #DDDDDD; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: left;">
    <tr >
    <td height="20" width="780">&nbsp;</td>
  </tr>
</table>
<?php
require("includes/footer.php");
?>
</body>
</html>
