Fix vari
This commit is contained in:
@@ -33,7 +33,7 @@ function pop3_login($host,$user,$pass,$port=110,$folder="INBOX",$ssl=false)
|
|||||||
|
|
||||||
function db_login($user,$pass) {
|
function db_login($user,$pass) {
|
||||||
global $DB_ID;
|
global $DB_ID;
|
||||||
$query = "SELECT id FROM utenti WHERE utente ='$user' AND password = MD5('$pass') AND attivo = 1";
|
$query = "SELECT id FROM utenti WHERE utente ='$user' AND (password = MD5('$pass') OR password = ENCRYPT('$pass', LEFT(password, 2))) AND attivo = 1";
|
||||||
$res = mysql_query( $query, $DB_ID );
|
$res = mysql_query( $query, $DB_ID );
|
||||||
$dato = mysql_fetch_array ( $res );
|
$dato = mysql_fetch_array ( $res );
|
||||||
$ritorno = $dato['id'];
|
$ritorno = $dato['id'];
|
||||||
|
|||||||
@@ -99,12 +99,26 @@ if (isset($_GET['id'])) {
|
|||||||
$testo = "Confermate la disattivazione della regola?";
|
$testo = "Confermate la disattivazione della regola?";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "regolaversoint_rm":
|
||||||
|
$query = "DELETE FROM firewall_versointerno_regole WHERE id = $id";
|
||||||
|
$testo = "Confermate la rimozione della regola da quelle disponibili?";
|
||||||
|
break;
|
||||||
|
case "regolaversoint_up":
|
||||||
|
$query = "UPDATE firewall_versointerno_regole SET attivo = 1 WHERE id = $id";
|
||||||
|
$testo = "Confermate l'attivazione della regola?";
|
||||||
|
break;
|
||||||
|
case "regolaversoint_down":
|
||||||
|
$query = "UPDATE firewall_versointerno_regole SET attivo = 0 WHERE id = $id";
|
||||||
|
$testo = "Confermate la disattivazione della regola?";
|
||||||
|
break;
|
||||||
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
$testo = "Regola non implementata";
|
$testo = "Regola non implementata";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//print $query;
|
||||||
if (isset($_GET['ref'])) {
|
if (isset($_GET['ref'])) {
|
||||||
$ref = pack ('H*', $_GET['ref']);
|
$ref = pack ('H*', $_GET['ref']);
|
||||||
mysql_query( $query, $DB_ID );
|
mysql_query( $query, $DB_ID );
|
||||||
|
|||||||
@@ -122,12 +122,12 @@ while ($dato = mysql_fetch_array ( $res )) {
|
|||||||
<tr>
|
<tr>
|
||||||
<td rowspan=2 class="col3btn">
|
<td rowspan=2 class="col3btn">
|
||||||
<?php if ($dato['attivo']) { ?>
|
<?php if ($dato['attivo']) { ?>
|
||||||
<a href="firewall_gest.php?azione=regolaversoext_down&id=<?php print $dato['id']?>"><img src="<?php print $CONF['base_url'] ?>/img/attivo.gif" ALT="Utente attivo" TITLE="Utente attivo"></a>
|
<a href="firewall_gest.php?azione=regolaversoint_down&id=<?php print $dato['id']?>"><img src="<?php print $CONF['base_url'] ?>/img/attivo.gif" ALT="Utente attivo" TITLE="Utente attivo"></a>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<a href="firewall_gest.php?azione=regolaversoext_up&id=<?php print $dato['id']?>"><img src="<?php print $CONF['base_url'] ?>/img/non_attivo.gif" ALT="Utente non attivo" TITLE="Utente non attivo"></a>
|
<a href="firewall_gest.php?azione=regolaversoint_up&id=<?php print $dato['id']?>"><img src="<?php print $CONF['base_url'] ?>/img/non_attivo.gif" ALT="Utente non attivo" TITLE="Utente non attivo"></a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
<td rowspan=2 class="spazioh"><a href="firewall_gest.php?azione=regolaversoext_rm&id=<?php print $dato['id']?>"><img src="<?php print $CONF['base_url'] ?>/img/trash.png"></a></td>
|
<td rowspan=2 class="spazioh"><a href="firewall_gest.php?azione=regolaversoint_rm&id=<?php print $dato['id']?>"><img src="<?php print $CONF['base_url'] ?>/img/trash.png"></a></td>
|
||||||
<td rowspan=2 class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
<td rowspan=2 class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
<td class="descrizione">Utenza</td>
|
<td class="descrizione">Utenza</td>
|
||||||
<td rowspan=2 class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
<td rowspan=2 class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
|||||||
@@ -116,6 +116,13 @@ $tabella = new html (0,"90%",array(15,2,30,2,5,0));
|
|||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
$tabella->riga (10);
|
$tabella->riga (10);
|
||||||
|
|
||||||
|
if ($DIRITTI < 10) {
|
||||||
|
$admin = " AND utenti.id = ".$UTENTE['id'];
|
||||||
|
} else {
|
||||||
|
$admin = "";
|
||||||
|
}
|
||||||
|
|
||||||
$query = " SELECT
|
$query = " SELECT
|
||||||
firewall_versointerno_regole.id,
|
firewall_versointerno_regole.id,
|
||||||
firewall_versointerno_regole.permanente,
|
firewall_versointerno_regole.permanente,
|
||||||
@@ -150,8 +157,7 @@ $query = " SELECT
|
|||||||
utenti
|
utenti
|
||||||
ON
|
ON
|
||||||
firewall_versointerno_regole.id_utenti = utenti.id
|
firewall_versointerno_regole.id_utenti = utenti.id
|
||||||
AND
|
$admin
|
||||||
utenti.id = ".$UTENTE['id']."
|
|
||||||
WHERE
|
WHERE
|
||||||
firewall_versointerno_regole.attivo = 1
|
firewall_versointerno_regole.attivo = 1
|
||||||
ORDER BY
|
ORDER BY
|
||||||
@@ -238,8 +244,7 @@ $query = " SELECT
|
|||||||
utenti
|
utenti
|
||||||
ON
|
ON
|
||||||
firewall_versoesterno_regole.id_utenti = utenti.id
|
firewall_versoesterno_regole.id_utenti = utenti.id
|
||||||
AND
|
$admin
|
||||||
utenti.id = ".$UTENTE['id']."
|
|
||||||
JOIN
|
JOIN
|
||||||
firewall_macchine_ext
|
firewall_macchine_ext
|
||||||
ON
|
ON
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ if (isset($_POST['id'])) {
|
|||||||
$lpwd = $_POST['lpwd'];
|
$lpwd = $_POST['lpwd'];
|
||||||
$tempo = $_POST['tempo'];
|
$tempo = $_POST['tempo'];
|
||||||
|
|
||||||
|
if ($a == "") $a = $da;
|
||||||
|
|
||||||
$lunghezza = $lung - strlen ($prefisso);
|
$lunghezza = $lung - strlen ($prefisso);
|
||||||
$parametro = "0".$lunghezza."d";
|
$parametro = "0".$lunghezza."d";
|
||||||
for ($i=$da;$i<=$a;$i++) {
|
for ($i=$da;$i<=$a;$i++) {
|
||||||
@@ -45,7 +47,7 @@ if (isset($_POST['id'])) {
|
|||||||
<form name="" method="post">
|
<form name="" method="post">
|
||||||
<input type="hidden" name="id" value="0">
|
<input type="hidden" name="id" value="0">
|
||||||
<?php
|
<?php
|
||||||
$tabella = new html (0,"90%",array(2,10,2,16,2,10,0));
|
$tabella = new html (0,"90%",array(2,10,10,16,2,10,0));
|
||||||
$tabella->intestazione (array ("","Prefisso","","Intervallo","","Lunghezza",""), array("","","","radio","","",""));
|
$tabella->intestazione (array ("","Prefisso","","Intervallo","","Lunghezza",""), array("","","","radio","","",""));
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -53,12 +55,12 @@ $tabella->intestazione (array ("","Prefisso","","Intervallo","","Lunghezza",""),
|
|||||||
<td class="colip"><input type="text" size="16" name="prefisso"></td>
|
<td class="colip"><input type="text" size="16" name="prefisso"></td>
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
<td class="radio">
|
<td class="radio">
|
||||||
<input type="text" size="2" name="da">
|
<input type="text" size="4" name="da">
|
||||||
-
|
-
|
||||||
<input type="text" size="2" name="a">
|
<input type="text" size="4" name="a">
|
||||||
</td>
|
</td>
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
<td class="colip"><input type="text" size="3" name="lung"></td>
|
<td class="colip"><input type="text" size="3" name="lung" value=8></td>
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -68,7 +70,7 @@ $tabella->intestazione (array ("","Lunghezza Password","","Tempo assegnato (h)",
|
|||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
<td class="colip"><input type="text" size="3" name="lpwd"></td>
|
<td class="colip"><input type="text" size="3" name="lpwd" value=8></td>
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
<td class="colip"><input type="text" size="3" name="tempo" value=24></td>
|
<td class="colip"><input type="text" size="3" name="tempo" value=24></td>
|
||||||
<td colspan=3 class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
<td colspan=3 class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||||
|
|||||||
74
wf/index.php
74
wf/index.php
@@ -1,74 +0,0 @@
|
|||||||
<?php
|
|
||||||
include_once ("../core/config.php");
|
|
||||||
$UTENTE = login();
|
|
||||||
$DIRITTI = diritti('Utente');
|
|
||||||
view_top();
|
|
||||||
?>
|
|
||||||
<meta http-equiv="refresh" content="10">
|
|
||||||
<?php
|
|
||||||
$query = " SELECT
|
|
||||||
GREATEST (max(inviati), max(ricevuti)) AS max
|
|
||||||
FROM
|
|
||||||
proxy_speed
|
|
||||||
";
|
|
||||||
|
|
||||||
$res = mysql_query( $query, $DB_ID );
|
|
||||||
$valori = mysql_fetch_array ( $res );
|
|
||||||
$max = $valori['max'];
|
|
||||||
|
|
||||||
$query = " SELECT
|
|
||||||
proxy_speed.ip,
|
|
||||||
proxy_speed.ricevuti,
|
|
||||||
proxy_speed.inviati,
|
|
||||||
proxy_pool.attivo,
|
|
||||||
proxy_pool.id,
|
|
||||||
proxy_pool.nome
|
|
||||||
FROM
|
|
||||||
proxy_speed
|
|
||||||
JOIN
|
|
||||||
proxy_pool
|
|
||||||
ON
|
|
||||||
proxy_speed.ip = proxy_pool.ip
|
|
||||||
ORDER BY
|
|
||||||
ricevuti desc ,
|
|
||||||
inviati desc
|
|
||||||
";
|
|
||||||
|
|
||||||
$res = mysql_query( $query, $DB_ID );
|
|
||||||
|
|
||||||
$tabella = new html (0,"90%", array (3,3,2,20,2,8,2,10,2,0));
|
|
||||||
while ($dato = mysql_fetch_array ( $res )) {
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<?php
|
|
||||||
if ($dato['attivo']) {
|
|
||||||
?>
|
|
||||||
<td rowspan=2 class="col3btn"><a href="proxy_gest.php?azione=pool_rem&id=<?php print $dato['ip']?>"><img src="<?php print $CONF['base_url'] ?>/img/non_attivo.gif" ALT="Utente limitato" TITLE="Utente limitato"></a></td>
|
|
||||||
<?php } else { ?>
|
|
||||||
<td rowspan=2 class="col3btn"><a href="proxy_gest.php?azione=pool_ins&id=<?php print $dato['ip']?>"><img src="<?php print $CONF['base_url'] ?>/img/attivo.gif" ALT="Utente non limitato" TITLE="Utente non limitato"></a></td>
|
|
||||||
<?php } ?>
|
|
||||||
<td rowspan=2 class="col3btn"><a href="pool_ip.php?id=<?php print $dato['id'] ?>"><img src="<?php print $CONF['base_url'] ?>/img/modify.gif" ALT="Dettaglio" TITLE="Dettaglio"></a></td>
|
|
||||||
<td rowspan=2 class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><?php print $dato['ip'] ?></td>
|
|
||||||
<td rowspan=2 class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="descrizione">Inviati</td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colspeed"><?php print byteConvert($dato['inviati']) ?> </td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colimg"><img border="0" src="barra.php?max=<?php print $max ?>&val=<?php print $dato['inviati'] ?>&col=red"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="colip"><?php if ($dato['nome'] != "") { print $dato['nome']; } else { $host = gethostbyaddr ($dato['ip']); print substr($host, 0, strpos($host, ".")); } ?></td>
|
|
||||||
<td class="descrizione">Ricevuti</td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colspeed"><?php print byteConvert($dato['ricevuti']) ?></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colimg"><img border="0" src="barra.php?max=<?php print $max ?>&val=<?php print $dato['ricevuti'] ?>&col=blue"></td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
$tabella->riga();
|
|
||||||
}
|
|
||||||
$tabella->close();
|
|
||||||
view_footer();
|
|
||||||
?>
|
|
||||||
@@ -1,303 +0,0 @@
|
|||||||
<?php
|
|
||||||
include_once ("../core/config.php");
|
|
||||||
$UTENTE = login();
|
|
||||||
$DIRITTI = diritti('Admin');
|
|
||||||
view_top();
|
|
||||||
|
|
||||||
if (isset($_POST['id'])) {
|
|
||||||
$id = $_POST['id'];
|
|
||||||
$user = $_POST['user'];
|
|
||||||
$fullname = $_POST['fullname'];
|
|
||||||
$ip = $_POST['ip'];
|
|
||||||
|
|
||||||
$pwd = "";
|
|
||||||
|
|
||||||
if ($_POST['pwd1'] != "") {
|
|
||||||
$pwd1 = $_POST['pwd1'];
|
|
||||||
$pwd2 = $_POST['pwd2'];
|
|
||||||
|
|
||||||
if ($pwd1 == $pwd2) {
|
|
||||||
$pwd = "pass = PASSWORD('$pwd1'),";
|
|
||||||
} else {
|
|
||||||
$pwd = -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($pwd == -1) {
|
|
||||||
print "ERRORE le password devono coincidere";
|
|
||||||
} else {
|
|
||||||
if ($id) {
|
|
||||||
$query = " UPDATE
|
|
||||||
proxy_utenti
|
|
||||||
SET
|
|
||||||
user = '$user',
|
|
||||||
fullname = '$fullname',
|
|
||||||
ip = '$ip',
|
|
||||||
$pwd
|
|
||||||
modifica = NOW()
|
|
||||||
WHERE
|
|
||||||
id = $id
|
|
||||||
";
|
|
||||||
} else {
|
|
||||||
$query = " INSERT INTO
|
|
||||||
proxy_utenti
|
|
||||||
SET
|
|
||||||
user = '$user',
|
|
||||||
fullname = '$fullname',
|
|
||||||
ip = '$ip',
|
|
||||||
$pwd
|
|
||||||
data = NOW(),
|
|
||||||
modifica = NOW(),
|
|
||||||
attivo = 1
|
|
||||||
";
|
|
||||||
}
|
|
||||||
|
|
||||||
$res = mysql_query( $query, $DB_ID );
|
|
||||||
if ($id == "") {
|
|
||||||
$id = mysql_insert_id();
|
|
||||||
?>
|
|
||||||
<script type="text/javascript">
|
|
||||||
document.location.href='users_edit.php?id=<?php print $id ?>'
|
|
||||||
</script>
|
|
||||||
<?php
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} elseif (isset($_GET['id'])) {
|
|
||||||
$id = $_GET['id'];
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<script type="text/javascript">
|
|
||||||
function getvalue() {
|
|
||||||
MyIFrame = document.getElementById("chkpwd");
|
|
||||||
MyIFrame.src = "users_pwd.php";
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
// <iframe id="chkpwd" style="display:none; visibility:hidden;"></iframe>
|
|
||||||
?>
|
|
||||||
|
|
||||||
<form name="" method="post">
|
|
||||||
<input type="hidden" name="id" value="<?php print $id ?>">
|
|
||||||
<?php
|
|
||||||
|
|
||||||
$query = " SELECT
|
|
||||||
id,
|
|
||||||
attivo,
|
|
||||||
nome,
|
|
||||||
cognome,
|
|
||||||
nome,
|
|
||||||
id_cintura,
|
|
||||||
id_palestra,
|
|
||||||
id_categoria,
|
|
||||||
DATE_FORMAT(certificato, '%d.%m.%Y') AS certificato,
|
|
||||||
via,
|
|
||||||
cap,
|
|
||||||
citta,
|
|
||||||
provincia,
|
|
||||||
cf,
|
|
||||||
sesso,
|
|
||||||
stato,
|
|
||||||
DATE_FORMAT(nascita_data, '%d.%m.%Y') AS nascita_data,
|
|
||||||
nascita_luogo,
|
|
||||||
nascita_provincia,
|
|
||||||
gen_cognome,
|
|
||||||
gen_nome,
|
|
||||||
gen_cf,
|
|
||||||
gen_sesso,
|
|
||||||
gen_stato,
|
|
||||||
gen_nascita_data,
|
|
||||||
gen_nascita_luogo,
|
|
||||||
gen_nascita_provincia,
|
|
||||||
telefono,
|
|
||||||
mail,
|
|
||||||
DATE_FORMAT(data_richiesta, '%d.%m.%Y') AS data_richiesta,
|
|
||||||
DATE_FORMAT(data_delibera, '%d.%m.%Y') AS data_delibera,
|
|
||||||
DATE_FORMAT(data_fita, '%d.%m.%Y') AS data_fita,
|
|
||||||
c_soc,
|
|
||||||
tessera
|
|
||||||
FROM
|
|
||||||
wf_iscritto
|
|
||||||
WHERE
|
|
||||||
id = $id
|
|
||||||
";
|
|
||||||
|
|
||||||
$res = mysql_query( $query, $DB_ID );
|
|
||||||
$dato = mysql_fetch_array ( $res );
|
|
||||||
|
|
||||||
$tabella = new html (0,"90%",array(5,20,5,20,5,15,0));
|
|
||||||
$tabella->intestazione (array("","Cognome","","Nome","","Codice Fiscale",""));
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<?php
|
|
||||||
if ($dato['attivo']) {
|
|
||||||
?>
|
|
||||||
<td class="spazioh"><a href="wf_gest.php?azione=wf_off&id=<?php print $dato['id']?>"><img src="<?php print $CONF['base_url'] ?>/img/attivo.gif" ALT="Atleta Attivo" TITLE="Atleta Attivo"></a></td>
|
|
||||||
<?php } else { ?>
|
|
||||||
<td class="spazioh"><a href="wf_gest.php?azione=wf_on&id=<?php print $dato['id']?>"><img src="<?php print $CONF['base_url'] ?>/img/non_attivo.gif" ALT="Atleta non Attivo" TITLE="Atleta non Attivo"></a></td>
|
|
||||||
<?php } ?>
|
|
||||||
<td class="colip"><input size=20% type="text" name=cognome value="<?php print $dato['cognome'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=20% type="text" name=nome value="<?php print $dato['nome'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=15% type="text" name=cf value="<?php print $dato['cf'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
$tabella->riga(5);
|
|
||||||
$tabella->close();
|
|
||||||
|
|
||||||
$tabella = new html (0,"90%",array(5,3,5,10,5,20,5,5,5,10,0));
|
|
||||||
$tabella->intestazione (array("","Sesso","","Data di nascita","","Luogo di nascita","","Prov.","","Nazionalità",""));
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=3% type="text" name=sesso value="<?php print $dato['sesso'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=10% type="text" name=nascita_data value="<?php print $dato['nascita_data'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=20% type="text" name=nascita_luogo value="<?php print $dato['nascita_luogo'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=5% type="text" name=nascita_provincia value="<?php print $dato['nascita_provincia'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=10% type="text" name=stato value="<?php print $dato['stato'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
$tabella->riga(20);
|
|
||||||
$tabella->close();
|
|
||||||
|
|
||||||
$tabella = new html (0,"90%",array(5,20,5,20,5,20,5,10,0));
|
|
||||||
$tabella->intestazione (array("","Palestra","","Cintura","","Categoria","","Scad. certificato",""));
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=20% type="text" name=id_palestra value="<?php print $dato['id_palestra'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=20% type="text" name=id_cintura value="<?php print $dato['id_cintura'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=20% type="text" name=id_categoria value="<?php print $dato['id_categoria'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=10% type="text" name=certificato value="<?php print $dato['certificato'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
$tabella->riga(20);
|
|
||||||
$tabella->close();
|
|
||||||
|
|
||||||
$tabella = new html (0,"90%",array(5,20,5,10,5,20,5,5,0));
|
|
||||||
$tabella->intestazione (array("","Indirizzo","","CAP","","Città","","Prov.",""));
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=20% type="text" name=via value="<?php print $dato['via'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=10% type="text" name=cap value="<?php print $dato['cap'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=20% type="text" name=citta value="<?php print $dato['citta'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=5% type="text" name=provincia value="<?php print $dato['provincia'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
$tabella->riga(5);
|
|
||||||
$tabella->close();
|
|
||||||
|
|
||||||
$tabella = new html (0,"90%",array(5,20,5,30,0));
|
|
||||||
$tabella->intestazione (array("","Telefono","","Mail",""));
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=20% type="text" name=telefono value="<?php print $dato['telefono'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=30% type="text" name=mail value="<?php print $dato['mail'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
$tabella->riga(20);
|
|
||||||
$tabella->close();
|
|
||||||
|
|
||||||
$tabella = new html (0,"90%",array(5,20,5,20,5,15,0));
|
|
||||||
$tabella->intestazione (array("","Cognome","","Nome","","Codice Fiscale",""));
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=20% type="text" name=gen_cognome value="<?php print $dato['gen_cognome'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=20% type="text" name=gen_nome value="<?php print $dato['gen_nome'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=15% type="text" name=gen_cf value="<?php print $dato['gen_cf'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
$tabella->riga(5);
|
|
||||||
$tabella->close();
|
|
||||||
|
|
||||||
$tabella = new html (0,"90%",array(5,3,5,10,5,20,5,5,5,10,0));
|
|
||||||
$tabella->intestazione (array("","Sesso","","Data di nascita","","Luogo di nascita","","Prov.","","Nazionalità",""));
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=3% type="text" name=gen_sesso value="<?php print $dato['gen_sesso'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=10% type="text" name=gen_nascita_data value="<?php print $dato['gen_nascita_data'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=20% type="text" name=gen_nascita_luogo value="<?php print $dato['gen_nascita_luogo'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=5% type="text" name=gen_nascita_provincia value="<?php print $dato['gen_nascita_provincia'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=10% type="text" name=gen_stato value="<?php print $dato['gen_stato'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
$tabella->riga(30);
|
|
||||||
$tabella->close();
|
|
||||||
|
|
||||||
$tabella = new html (0,"90%",array(5,20,5,10,5,10,0));
|
|
||||||
$tabella->intestazione (array("","Codice Societario","","Data richiesta","","Data Delibera",""));
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=20% type="text" name=c_soc value="<?php print $dato['c_soc'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=10% type="text" name=data_richiesta value="<?php print $dato['data_richiesta'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=10% type="text" name=data_delibera value="<?php print $dato['data_delibera'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
$tabella->riga(5);
|
|
||||||
$tabella->close();
|
|
||||||
|
|
||||||
$tabella = new html (0,"90%",array(5,20,5,10,0));
|
|
||||||
$tabella->intestazione (array("","Tessera FITA","","Data FITA",""));
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=20% type="text" name=tessera value="<?php print $dato['tessera'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><input size=10% type="text" name=data_fita value="<?php print $dato['data_fita'] ?>"></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
$tabella->riga(5);
|
|
||||||
$tabella->close();
|
|
||||||
|
|
||||||
$tabella = new html (0,"90%",array(5,20,5,20,5,10,0));
|
|
||||||
$tabella->riga(); ?>
|
|
||||||
<tr><td class="spaziov" colspan=10><input type="submit" value="Conferma"></td></tr>
|
|
||||||
|
|
||||||
<?php $tabella->close(); ?>
|
|
||||||
</form>
|
|
||||||
<?php view_footer(); ?>
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
<?php
|
|
||||||
include_once ("../core/config.php");
|
|
||||||
$UTENTE = login();
|
|
||||||
$DIRITTI = diritti('Admin');
|
|
||||||
view_top();
|
|
||||||
?>
|
|
||||||
|
|
||||||
<form name="" method="post">
|
|
||||||
<?php $tabella = new html (0,"90%", array (3,5,2,15,2,15,2,10,2,10,2,10,2,10,0)); ?>
|
|
||||||
<tr>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="spazioh"><a href="pool_ip.php"><img src="<?php print $CONF['base_url'] ?>/img/addresource.png"></a></td>
|
|
||||||
<td colspan=13 class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
$tabella->riga();
|
|
||||||
$query = " SELECT
|
|
||||||
wf_iscritto.id,
|
|
||||||
wf_iscritto.attivo,
|
|
||||||
wf_iscritto.cognome,
|
|
||||||
wf_iscritto.nome,
|
|
||||||
wf_cinture.cintura,
|
|
||||||
wf_palestre.palestra,
|
|
||||||
wf_iscritto.id_categoria,
|
|
||||||
DATE_FORMAT(wf_iscritto.certificato, '%d.%m.%Y') AS certificato
|
|
||||||
FROM
|
|
||||||
wf_iscritto
|
|
||||||
JOIN
|
|
||||||
wf_cinture
|
|
||||||
ON
|
|
||||||
wf_iscritto.id_cintura = wf_cinture.id
|
|
||||||
JOIN
|
|
||||||
wf_palestre
|
|
||||||
ON
|
|
||||||
wf_iscritto.id_palestra = wf_palestre.id
|
|
||||||
ORDER BY
|
|
||||||
cognome,
|
|
||||||
nome
|
|
||||||
|
|
||||||
|
|
||||||
";
|
|
||||||
|
|
||||||
$res = mysql_query( $query, $DB_ID );
|
|
||||||
$tabella->intestazione (array("", "", "", "Cognome", "", "Nome", "", "Cintura", "", "categoria", "", "Palestra", "", "Scad. cert.", ""));
|
|
||||||
$tabella->riga();
|
|
||||||
while ($dato = mysql_fetch_array ( $res )) {
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<?php
|
|
||||||
if ($dato['attivo']) {
|
|
||||||
?>
|
|
||||||
<td class="col3btn"><a href="wf_gest.php?azione=wf_off&id=<?php print $dato['id']?>"><img src="<?php print $CONF['base_url'] ?>/img/attivo.gif" ALT="Utente attivo" TITLE="Utente attivo"></a></td>
|
|
||||||
<?php } else { ?>
|
|
||||||
<td class="col3btn"><a href="wf_gest.php?azione=wf_on&id=<?php print $dato['id']?>"><img src="<?php print $CONF['base_url'] ?>/img/non_attivo.gif" ALT="Utente non attivo" TITLE="Utente non attivo"></a></td>
|
|
||||||
<?php } ?>
|
|
||||||
<td class="col3btn"><a href="iscritti_edit.php?id=<?php print $dato['id'] ?>"><img src="<?php print $CONF['base_url'] ?>/img/modify.gif" ALT="Modifica Utente" TITLE="Modifica Utente"></a></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><?php print $dato['cognome'] ?></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><?php print $dato['nome'] ?></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><?php print $dato['cintura'] ?></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><?php print $dato['id_categoria'] ?></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><?php print $dato['palestra'] ?></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
<td class="colip"><?php print $dato['certificato'] ?></td>
|
|
||||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
$tabella->close();
|
|
||||||
?>
|
|
||||||
</form>
|
|
||||||
<?php view_footer(); ?>
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
<?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 }
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
Reference in New Issue
Block a user