You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

56 lines
1.5 KiB

<?php
session_start();
@include '../cgi-bin/conn.conn';
@include '../cgi-bin/functions.inc';
@include '../cgi-bin/params.inc';
$GLOBALS['conn'];
$conn=@mysqli_connect($DATAhst,$DATAusr,$DATApwd,$DATAdtb)or die("CONNECTION ERROR");
mysqli_set_charset($conn, "utf8");
?>
<!DOCTYPE html>
<html>
<head>
<title>Ordine dei Farmacisti della Provincia di Salerno</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="<?php echo $BASE_URL;?>/">
<link href="<?php echo $BASE_URL;?>/css/styles.css" rel="stylesheet" type="text/css"/>
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="row no-gutters py-4">
<?php
if($_GET['delid']){
$q=mysqli_query($conn, "UPDATE board SET
usr='',
pwd='',
enabled=0,
privacy=0,
newsletter=0
WHERE id='".$_SESSION['AUTH']['id']."'
");
echo "<div class=\"col-10 text-center mx-auto\">".
"<p><i class=\"fa fa-check-circle font-alert p-4\"></i></p>".
"<b>Account eliminato correttamente.</b><br>".
"</div>";
echo "<script>parent.location='".$BASE_URL."';</script>";
unset($_SESSION['AUTH']);
session_destroy();
}
?>
</div>
</body>
</html>