64 lines
1.9 KiB
PHP
Executable File
64 lines
1.9 KiB
PHP
Executable File
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html>
|
|
<head>
|
|
<title>SpazioFirewall</title>
|
|
</head>
|
|
<body>
|
|
<link rel="stylesheet" type="text/css" href="../css/stile.css" />
|
|
<table cellpadding="0" cellspacing="0" border="0" align="center" width="1000">
|
|
<?php if ($_SESSION['auth']) { ?>
|
|
<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"> </td>
|
|
<?php if ($_SESSION['auth']) { ?>
|
|
<td class="rtop"><a class="rtop" href="logout.php">Logout</a></td>
|
|
<?php } else {?>
|
|
<td> </td>
|
|
<?php } ?>
|
|
</tr>
|
|
</table>
|
|
</td></tr>
|
|
<?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 {?>
|
|
<tr bgcolor="#FFC350"><td> </td></tr>
|
|
<?php } ?>
|
|
</td></tr>
|
|
<tr><td class="spaziov" colspan=2><img src="../img/spazio.gif"></td></tr>
|
|
<tr><td align="center">
|
|
|
|
|