Gestione gruppi proxy

This commit is contained in:
cmaffio
2016-05-17 16:50:51 +02:00
parent 6d7923c5d5
commit d3a75524fa
15 changed files with 256 additions and 41 deletions

15
proxy/ext/chkpasswd_proxy.php Executable file → Normal file
View File

@@ -1,6 +1,6 @@
<?php
include_once ("../../core/config.php");
include_once ("function_proxy.php");
include_once ("core/config.php");
include_once ("proxy/ext/function_proxy.php");
$UTENTE = login_proxy();
view_top_proxy();
@@ -38,7 +38,7 @@ Non e' stato possibile eseguire l'operazione richiesta a causa di un errore: <?p
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="1" height="5" alt=""></td>
</tr>
<tr>
<td><input type="button" value="Ok" onclick="location.href = 'main.php';"></button></td>
<td><input type="button" value="Ok" onclick="location.href = 'main_proxy.php';"></button></td>
</tr>
<tr>
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="1" height="10" alt=""></td>
@@ -102,13 +102,6 @@ $(document).ready(function()
<td class="status" colspan="6"></td>
</tr>
<tr><td colspan="9"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="1" height="5" alt=""></td></tr>
<tr>
<td><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="30" height="1" alt=""></td>
<td class="label"><label id="lmail" for="mail">Indirizzo E-Mail</label></td>
<td class="field"><input id="mail" name="mail" type="text" value="<?php print $dato['mail']?>" maxlength="50" /></td>
<td class="status" colspan="6"></td>
</tr>
<tr><td colspan="9"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="1" height="5" alt=""></td></tr>
<tr>
<td class="col1" colspan="9">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
@@ -142,7 +135,7 @@ $(document).ready(function()
<tr><td align="center" colspan="9">
<input type="submit" value="<?php print $bottone ?>">
&nbsp;&nbsp;&nbsp;
<input type="button" value="Annulla" onclick="location.href = 'main.php';"></button>
<input type="button" value="Annulla" onclick="location.href = 'main_proxy.php';"></button>
</td></tr>
<tr><td colspan="9"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif" width="1" height="10" alt=""></td></tr>

View File

@@ -1,11 +1,11 @@
</td></tr>
<tr><td>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr bgcolor="#FFC350">
<tr bgcolor="#34c6ea">
<td nowrap class="lbottom">&nbsp;<?php print $CONF['Versione'] ?></td>
<td width="500">&nbsp;</td>
<?php if ($UTENTE['admin']) { ?>
<td class="rtop"><a class="rtop" href="main.php">Admin&nbsp;</a></td>
<td class="rtop"><a class="rtop" href="main_proxy.php">Admin&nbsp;</a></td>
<?php } else {?>
<td>&nbsp;</td>
<?php } ?>

View File

@@ -81,7 +81,7 @@ function carica_utente_proxy () {
function lista_moduli_proxy () {
global $UTENTE, $DB_ID, $CONF;
$menu[] = array("Home", "main.php",0,"Home Page",0);
$menu[] = array("Home", "main_proxy.php",0,"Home Page",0);
$menu[] = array("Cambio password", "chkpasswd_proxy.php",0,"Cambio Password");
$pezzi = preg_split('/\//', $_SERVER["PHP_SELF"], -2);

View File

@@ -1,10 +1,10 @@
<?php
include_once ("../../core/config.php");
include_once ("function_proxy.php");
include_once ("core/config.php");
include_once ("proxy/ext/function_proxy.php");
login_proxy();
session_name("authmail");
session_start();
$_SESSION['auth'] = 0;
session_destroy();
header('Location: main.php');
header('Location: main_proxy.php');
?>

View File

@@ -1,11 +1,11 @@
<?php
include_once ("../../core/config.php");
include_once ("function_proxy.php");
include_once ("core/config.php");
include_once ("proxy/ext/function_proxy.php");
$UTENTE = login_proxy();
view_top_proxy();
?>
<META HTTP-EQUIV="Refresh" CONTENT="30" URL="main.php">
<META HTTP-EQUIV="Refresh" CONTENT="30" URL="main_proxy.php">
<table cellpadding="0" cellspacing="0" border="0" width="90%">
<tr><td class="spaziov" colspan="9"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td></tr>

View File

@@ -10,7 +10,7 @@
if ($UTENTE['user'] != '') { ?>
<tr><td>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr bgcolor="#FFC350">
<tr bgcolor="#34c6ea">
<td nowrap class="ltop">Utente: <?php print $_SESSION['username'] ?></td>
<td width="200">&nbsp;</td>
<td class="rtop"><a class="rtop" href="logout_proxy.php">Logout</a></td>
@@ -23,7 +23,7 @@
lista_moduli_proxy();
} else {?>
<tr bgcolor="#FFC350"><td>&nbsp;</td></tr>
<tr bgcolor="#34c6ea"><td>&nbsp;</td></tr>
<?php } ?>
</td></tr>
<tr><td class="spaziov" colspan=2><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td></tr>