<div class="link_back">
           <a href="main.php?page=user_cambio_pass">
		      <?php 
    echo gdrcd_filter('out', $MESSAGE['interface']['user']['link']['back']);
    ?>
		   </a>
 </div>
<?php 
}
?>


<?php 
/*Cambio pass admin*/
if (gdrcd_filter('get', $_POST['op']) == 'force') {
    if ($_SESSION['permessi'] >= MODERATOR && gdrcd_check_pass($_POST['new_pass']) === TRUE) {
        if ($_SESSION['permessi'] == SUPERUSER) {
            $query = "UPDATE personaggio SET pass = '******'new_pass']) . "', ultimo_cambiopass = NOW() WHERE nome = '" . gdrcd_filter_in($_POST['account']) . "'";
        } else {
            $query = "UPDATE personaggio SET pass = '******'new_pass']) . "', ultimo_cambiopass = NOW() WHERE nome = '" . gdrcd_filter_in($_POST['account']) . "' AND permessi < " . SUPERUSER . "";
        }
        gdrcd_query($query);
        /*Registro l'evento */
        gdrcd_query("INSERT INTO log (nome_interessato, autore, data_evento, codice_evento, descrizione_evento) VALUES ('" . gdrcd_filter_in($_POST['account']) . "','" . $_SESSION['login'] . "', NOW(), " . CHANGEDPASS . " ,'" . $_SERVER['REMOTE_ADDR'] . "')");
        ?>
    <div class="warning">
	   <?php 
        echo gdrcd_filter('out', $MESSAGE['warning']['modified']);
        ?>
	</div>
	<?php 
<!-- Titolo della pagina -->
<div class="page_title">
   <h2><?php 
echo gdrcd_filter('out', $MESSAGE['interface']['user']['delete']['page_name']);
?>
</h2>
</div>

<!-- Box principale -->
<div class="page_body">

<?php 
/*Cancella il tuo account*/
if ($_POST['op'] == 'delete') {
    if ($email == gdrcd_filter_email($_POST['email']) && gdrcd_check_pass($_POST['new_pass']) === TRUE) {
        gdrcd_query("UPDATE personaggio SET permessi = -1 WHERE nome = '" . $_SESSION['login'] . "' AND pass = '******'new_pass']) . "'");
        gdrcd_query("INSERT INTO log (nome_interessato, autore, data_evento, codice_evento, descrizione_evento) VALUES ('" . $_SESSION['login'] . "','" . $_SESSION['login'] . "', NOW(), " . DELETEPG . " ,'" . gdrcd_filter('in', $MESSAGE['interface']['user']['delete']['undeleted']) . "')");
        ?>
    <div class="warning">
	   <?php 
        echo gdrcd_filter('out', $MESSAGE['warning']['modified']);
        ?>
	</div>
	<div class="page_title">
    <h2><a href="index.php"> 
	     <?php 
        echo $PARAMETERS['info']['homepage_name'];
        ?>
    </a></h2>
    </div>