sistemazione directory

Committer: Claudio M <claudio@cmaffio.it>
	modified:   core/config.php
	renamed:    anagrafica/funzioni.php -> whitefox/funzioni.php
	renamed:    anagrafica/index.php -> whitefox/index.php
	renamed:    anagrafica/iscritti_edit.php -> whitefox/iscritti_edit.php
	renamed:    anagrafica/iscritti_lista.php -> whitefox/iscritti_lista.php
	renamed:    anagrafica/wf_gest.php -> whitefox/wf_gest.php
This commit is contained in:
Claudio M
2017-07-24 15:06:40 +02:00
parent 1b34aa51dd
commit 43924f1831
6 changed files with 3 additions and 3 deletions

61
whitefox/wf_gest.php Executable file
View File

@@ -0,0 +1,61 @@
<?php
include_once ("../core/config.php");
$UTENTE = login();
$DIRITTI = diritti('Admin');
?>
<html>
<head>
<script type="text/javascript">
<!--
function confirmation(testo) {
alert(testo)
document.location.href='main.php'
}
//-->
</script>
<?php
if (isset($_GET['id'])) {
$id = $_GET['id'];
if (isset($_GET['azione'])) {
$azione = $_GET['azione'];
$genera = 0;
switch ($azione) {
case "wf_on":
$query = "UPDATE wf_iscritto SET attivo = 1 WHERE id = $id";
$testo = "Confermate l'abilitazione dell'utente?";
break;
case "wf_off":
$query = "UPDATE wf_iscritto SET attivo = 0 WHERE id = $id";
$testo = "Confermate la disabilitazione dell'utente?";
break;
default:
$testo = "Regola non implementata";
break;
}
if (isset($_GET['ref'])) {
$ref = pack ('H*', $_GET['ref']);
mysql_query( $query, $DB_ID );
if ($genera) genera($DB_ID);
?>
<script type="text/javascript">
document.location.href="<?php print $ref ?>"
</script>
<?php } else {
$ref = unpack ('H*', $_SERVER["HTTP_REFERER"]);
?>
<script type="text/javascript">
var r = confirm("<?php print $testo ?>");
if (r == true) {
document.location.href="<?php print $_SERVER['REQUEST_URI']?>&ref=<?php print $ref[1] ?>"
} else {
document.location.href="<?php print $_SERVER['HTTP_REFERER']?>"
}
</script>
<?php }
}
}
?>