diff --git a/modutenti.php b/core/chkpasswd.php similarity index 67% rename from modutenti.php rename to core/chkpasswd.php index 054c0b8..180174c 100755 --- a/modutenti.php +++ b/core/chkpasswd.php @@ -1,7 +1,7 @@ @@ -21,6 +21,7 @@ if (isset($_GET['id'])) { $password2 = $_POST['password2']; $admin = $_POST['admin']; $attivo = $_POST['attivo']; + $mail = $_POST['mail']; if (!$admin) $admin = 0; @@ -34,15 +35,15 @@ if (isset($_GET['id'])) { if ($id > 0) { $testo = "L'utente e' stato correttamente modificato"; - $query = "UPDATE utenti SET $querypwd admin = $admin, attivo=$attivo, modifica = NOW() WHERE `id`=$id"; + $query = "UPDATE utenti SET $querypwd admin = $admin, attivo=$attivo, modifica = NOW(), mail='$mail' WHERE `id`=$id"; } else { $testo = "L'utente e' stato correttamente inserito"; - $query = "INSERT INTO utenti SET utente = '$utente', $querypwd admin = $admin, attivo=$attivo, modifica = NOW(), creazione = NOW()"; + $query = "INSERT INTO utenti SET utente = '$utente', $querypwd admin = $admin, attivo=$attivo, modifica = NOW(), creazione = NOW(), mail='$mail'"; } ?> - - + - +
+
@@ -55,13 +56,13 @@ Non e' stato possibile eseguire l'operazione richiesta a causa di un errore:
- - - - + + + + - - - - - - -
- - - - - - - - - - - - - - - - - -
Nome Utente
- - - - - - - - - - - - - - - - -
-
-
 
-
-
-
-
-
-
- -     - -
-
- - - diff --git a/utenti.php b/utenti.php deleted file mode 100755 index 6dcb622..0000000 --- a/utenti.php +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Aggiungi utente
- - Utente attivo - - Utente non attivo - - Proprieta'AdminUtenteUtenteCreazioneUltima ModificaUltimo accessoNumero accessi - Gestione regole - Grafico Utilizzo -
- - diff --git a/utenti/index.php b/utenti/index.php new file mode 100755 index 0000000..0b8ff2a --- /dev/null +++ b/utenti/index.php @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Aggiungi utente
+ + Utente attivo + + Utente non attivo + + Proprieta'AdminUtenteUtenteCreazioneUltima ModificaUltimo accessoNumero accessi + Gestione regole + Grafico Utilizzo +
+ +