This commit is contained in:
cmaffio
2015-10-14 10:59:50 +02:00
parent a158016e78
commit 6c42d75681
53 changed files with 363 additions and 877 deletions

View File

@@ -4,60 +4,27 @@
<title>SpazioFirewall</title>
</head>
<body>
<link rel="stylesheet" type="text/css" href="../css/stile.css" />
<link rel="stylesheet" type="text/css" href="<?php print $CONF['base_url'] ?>/css/stile.css" />
<table cellpadding="0" cellspacing="0" border="0" align="center" width="1000">
<?php if ($_SESSION['auth']) { ?>
<?php
if ($UTENTE['utente'] != '') { ?>
<tr><td>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr bgcolor="#FFC350">
<td nowrap class="ltop">Utente: <?php print $_SESSION['username'] ?></td>
<td width="200">&nbsp;</td>
<?php if ($_SESSION['auth']) { ?>
<td class="rtop"><a class="rtop" href="logout.php">Logout</a></td>
<?php } else {?>
<td>&nbsp;</td>
<?php } ?>
<td class="rtop"><a class="rtop" href="<?php print $CONF['base_url'] ?>/core/logout.php">Logout</a></td>
</tr>
</table>
</td></tr>
<tr><td class="spaziov" colspan=2><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td></tr>
<tr><td align="center">
<?php
if ($UTENTE['admin']) {
$menu = array( array("Home", "main.php"),
array("Configurazione", "conf.php"),
array("Gestione utenti", "utenti.php"),
array("Cambio password", "chkpasswd.php"),
);
} else {
$menu = array( array("Cambio password", "chkpasswd.php"),
);
}
$pezzi = preg_split('/\//', $_SERVER["PHP_SELF"], -1);
$self = $pezzi[count($pezzi)-1];
?>
<tr><td class="spaziov" colspan=2><img src="../img/spazio.gif"></td></tr>
<tr><td align="center">
<table cellpadding="0" cellspacing="0" border="0" width="90%">
<tr bgcolor="#d2f4df">
<?php for ($i=0; $i<count($menu);$i++) {
if ($self == $menu[$i][1]) {
$classe = "menuatt";
} else {
$classe = "menu";
}
?>
<td class="spaziol"><img src="../img/spazio.gif"></td>
<td nowrap class="<?php echo $classe?>"><a class="<?php echo $classe?>" href="<?php print $menu[$i][1]?>"><?php print $menu[$i][0]?></a></td>
<?php } ?>
<td class="spaziol"><img src="../img/spazio.gif"></td>
</tr>
</table>
<?php } else {?>
lista_moduli();
} else {?>
<tr bgcolor="#FFC350"><td>&nbsp;</td></tr>
<?php } ?>
<?php } ?>
</td></tr>
<tr><td class="spaziov" colspan=2><img src="../img/spazio.gif"></td></tr>
<tr><td class="spaziov" colspan=2><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td></tr>
<tr><td align="center">