Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2137 → Rev 2138

/web/acc/backup/sauvegarde.php
15,10 → 15,11
$l_backups = "Sauvegarde";
$l_create_user_db_backup = "Créer le fichier de la base actuelle des usagers";
$l_traceability_backup = "Créer le fichier de traces de la semaine en cours";
$l_execute = "Exécuter";
$l_execute = "Exécuter";
$l_backup_files = "Fichiers disponibles pour archivage";
$l_firewall_log = "Journaux de traçabilité";
$l_users_db_backups = "Base des usagers";
$l_weekly_report = "Rapport d'activité hebdomadaire";
$l_empty = "vide";
}
else {
29,6 → 30,7
$l_backup_files = "Archive backup files";
$l_firewall_log = "Traceability log files";
$l_users_db_backups = "Users database";
$l_weekly_report = "Weekly activity report";
$l_empty = "empty";
}
function taille_fichier($fichier)
50,8 → 52,8
</TABLE>
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
<tr><td valign="middle" align="left">
<FORM action="sauvegarde.php" method=POST><b>
<select name='choix'></b>
<FORM action="sauvegarde.php" method=POST>
<select name='choix'>
<option value="traceability_backup"><?echo "$l_traceability_backup";?>
<option value="user_DB_backup"><?echo "$l_create_user_db_backup";?>
</select>
67,6 → 69,7
<TR align="center">
<TD><b><?echo "$l_firewall_log";?></b></TD>
<TD><b><?echo "$l_users_db_backups";?></b></TD>
<TD><b><?echo "$l_weekly_report";?></b></TD>
</TR><TR align="center">
<?
if (isset($_POST['choix'])){
81,6 → 84,7
}
$dir[0]="archive";
$dir[1]="base";
$dir[2]="activity_report";
$j=0;
$nb=count($dir);
while ($j != $nb)
110,7 → 114,7
echo "<a href=\"/save/$dir[$j]/$liste_f[$i]\">$liste_f[$i]</A> (";echo taille_fichier("/var/Save/".$dir[$j]."/".$liste_f[$i]);echo ")<BR>";
}
}
echo "</TD>";
echo "</TD>\n";
$j++;
}
?>
/web/acc/manager/activity_report/index.php
File deleted
/web/acc/manager/activity_report/models/Chart.report.js
1,4 → 1,4
//Création du graphe
//Création du graphe
var XXCONFXX = {
type: //line, bar, radar, pie, doughnut
'XXTYPEXX',
/web/acc/manager/auth_exceptions.php
10,8 → 10,10
/********************
* TEST CONF FILES *
*********************/
define ("DOMAIN_ALLOWED_LIST", "/usr/local/etc/alcasar-uamdomain");
define ("IP_ALLOWED_LIST", "/usr/local/etc/alcasar-uamallowed");
$domain_allowed_list="/usr/local/etc/alcasar-uamdomain";
$url_allowed_list="/usr/local/etc/alcasar-uamallowed";
define ("DOMAIN_ALLOWED_LIST", $domain_allowed_list);
define ("IP_ALLOWED_LIST", $url_allowed_list);
$conf_files=array(DOMAIN_ALLOWED_LIST,IP_ALLOWED_LIST);
foreach ($conf_files as $file){
if (!file_exists($file)){
19,8 → 21,6
if (!is_readable($file)){
exit("Can't read the file ".$file);}
}
$domain_allowed_list="/usr/local/etc/alcasar-uamdomain";
$url_allowed_list="/usr/local/etc/alcasar-uamallowed";
# Choice of language
$Language = 'en';
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
37,7 → 37,7
$l_trusted_ip = "adresses IP de confiance";
$l_trusted_equipments = "Equipements de consultation de confiance";
$l_comment = "Commentaires";
$l_trusted_domain_explain = "Gérez ici les noms de domaine Internet pouvant &ecirc;tre joints sans authentification";
$l_trusted_domain_explain = "Gérez ici les noms de domaine Internet pouvant être joints sans authentification";
$l_trusted_equipments_explain = "Pour qu'un équipement du réseau de consultation puisse accéder à Internet sans être interceptés : créer un utilisateur dont le nom de login est l'@MAC de l'équipement et le mot de passe est 'password'" ;
$l_trusted_ip_explain = "Gérez ici les adresses IP de systèmes ou de réseaux pouvant être joints sans authentification";
$l_submit = "Enregistrer";
193,11 → 193,11
<table width="100%" border=1 cellspacing=0 cellpadding=1>
<tr><td colspan=2 align="center">
<?
echo "$l_trusted_domain_explain</td></tr>";
echo "<tr><td align='center' valign='middle'>";
echo "$l_trusted_domain_explain</td></tr>\n";
echo "<tr><td align='center' valign='middle'>\n";
echo "<FORM action='$_SERVER[PHP_SELF]' method='POST'>\n";
echo "<table cellspacing=2 cellpadding=2 border=1>";
echo "<FORM action='$_SERVER[PHP_SELF]' method='POST'>";
echo "<tr align='center' bgcolor='#d0ddb0'><td>$l_domain<td>$l_comment_explain<td>$l_remove</tr>";
echo "<tr align='center' bgcolor='#d0ddb0'><td>$l_domain<td>$l_comment_explain<td>$l_remove</tr>\n";
// Read the "Domain alowed" file
$tab=file(DOMAIN_ALLOWED_LIST);
if ($tab) # the file isn't empty
216,7 → 216,7
else echo "&nbsp";
echo "<td>";
echo "<input type='checkbox' name='del-$domain[1]'>";
echo "</tr>";
echo "</tr>\n";
}
}
}
237,7 → 237,7
<td>exemple1 : mydomain<br><?echo "$l_comment_explain2";?><td></tr>
<tr><td><input type='text' name='add_uamdomain' size='20'>
<td><input type='text' name='add_domain_comment' size='15'>
<input type='hidden' name='choix' value='new_uamdomain'>
<input type='hidden' name='choix' value='new_uamdomain'></td>
<td><input type='submit' onClick="this.disabled=true; this.value='<?echo $l_load;?>';submit();" value='<?echo "$l_add_to_list";?>'>
</tr></table>
</form>
250,11 → 250,11
<table width="100%" border=1 cellspacing=0 cellpadding=1>
<tr><td colspan=2 align="center">
<?
echo "$l_trusted_ip_explain</td></tr>";
echo "<tr><td align='center' valign='middle'>";
echo "$l_trusted_ip_explain</td></tr>\n";
echo "<tr><td align='center' valign='middle'>\n";
echo "<FORM action='$_SERVER[PHP_SELF]' method='POST'>\n";
echo "<table cellspacing=2 cellpadding=2 border=1>";
echo "<FORM action='$_SERVER[PHP_SELF]' method='POST'>";
echo "<tr align='center' bgcolor='#d0ddb0'><td>$l_trusted_ip<td>$l_comment<td>$l_remove</tr>";
echo "<tr align='center' bgcolor='#d0ddb0'><td>$l_trusted_ip<td>$l_comment<td>$l_remove</tr>\n";
// Read the "ip alowed" file
$tab=file(IP_ALLOWED_LIST);
if ($tab) # the file isn't empty
272,7 → 272,7
echo trim($ip_allowed[1]);
else echo "&nbsp;";
echo "<td><input type='checkbox' name='del-$ip[1]'>";
echo "</tr>";
echo "</tr>\n";
}
}
}
292,13 → 292,12
<tr><td>exemple1 : 170.25.23.10 <br>exemple2 : 15.20.20.0/16</td>
<td>my_web_server <br>my_dmz<td></tr>
<tr><td><input type='text' name='add_ip' size='20'></td>
<td><input type='text' name='add_ip_comment' size='15'></td>
<input type='hidden' name='choix' value='new_ip'>
<td><input type='text' name='add_ip_comment' size='15'>
<input type='hidden' name='choix' value='new_ip'></td>
<td><input type='submit' onClick="this.disabled=true; this.value='<?echo $l_load;?>';submit();" value='<?echo "$l_add_to_list";?>'></td>
</tr></table>
</td></tr>
</form>
</table>
</form>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?php echo "$l_trusted_equipments";?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
/web/acc/stat.php
6,7 → 6,6
$select[3]="$l_stat_global_network";
$select[4]="$l_stat_detail_network";
$select[5]="$l_security";
$select[6]="$l_activity_report";
$fich[0]="manager/htdocs/user_stats.php";
$fich[1]="manager/htdocs/accounting.php";
$fich[2]="manager/htdocs/stats.php";
13,7 → 12,6
$fich[3]="manager/stats/index.php";
$fich[4]="manager/nfsen/nfsen.php";
$fich[5]="manager/htdocs/security.php";
$fich[6]="manager/activity_report/index.php";
$j=0;
while ($j != count($select))
{