Subversion Repositories ALCASAR

Rev

Rev 303 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
1 root 1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN//2.0">
2
<HTML>
13 franck 3
<!-- written by Rexy ! -->
1 root 4
<HEAD>
28 richard 5
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
1 root 6
<TITLE>menu</TITLE>
7
<link rel="stylesheet" href="css/style.css" type="text/css">
8
</HEAD>
9
<?
10
# Choice of language
11
$Language = 'en';
12
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
13
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
14
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
15
if($Language == 'fr'){
16
  $l_home = "ACCUEIL";
28 richard 17
  $l_system = "SYSTÈME";
1 root 18
  $l_auth = "AUTHENTIFICATION";
19
  $l_filter = "FILTRAGE";
20
  $l_statistics = "STATISTIQUES";
21
  $l_backup = "SAUVEGARDES";
28 richard 22
  $l_activity = "Activité";
305 richard 23
  $l_domains_filter = "Domaines et URLs";
24
  $l_network_filter = "Protocoles réseau";
59 richard 25
  $l_ldap = "Ldap/A.D.";
28 richard 26
  $l_access_nb = "Accès au centre";
27
  $l_create_user = "Créer usager";
28
  $l_edit_user = "Éditer usager";
29
  $l_create_group = "Créer groupe";
30
  $l_edit_group = "Éditer groupe";
1 root 31
  $l_import_empty = "Importer / Vider";
28 richard 32
  $l_network = "Réseau";
1 root 33
  $l_stat_user_day = "usager/jour";
34
  $l_stat_con = "connexions";
35
  $l_stat_daily ="usage journalier";
36
  $l_stat_web ="traffic WEB";
37
  $l_firewall ="parefeu";
131 richard 38
  $l_menu="Menu";
1 root 39
}
40
else {
41
  $l_home = "HOME";
42
  $l_system = "SYSTEM";
43
  $l_auth = "AUTHENTICATION";
44
  $l_filter = "FILTERING";
45
  $l_statistics = "STATISTICS";
46
  $l_backup = "BACKUPS";
47
  $l_activity = "Activity";
305 richard 48
  $l_network_filter = "Network protocols";
49
  $l_domains_filter = "Domains & URLs";
59 richard 50
  $l_ldap = "Ldap/A.D.";
28 richard 51
  $l_access_nb = "Access to center";
1 root 52
  $l_create_user = "Create user";
53
  $l_edit_user = "Edit user";
54
  $l_create_group = "Create group";
55
  $l_edit_group = "Edit group";
56
  $l_import_empty = "Import / Empty";
57
  $l_network = "Network";
58
  $l_stat_user_day = "user/day";
59
  $l_stat_con = "connections";
60
  $l_stat_daily ="daily use";
61
  $l_stat_web ="WEB traffic";
62
  $l_firewall ="firewall";
131 richard 63
  $l_menu="Main";
1 root 64
}
65
echo "
131 richard 66
	<TABLE width=168 border=0 cellspacing=0 cellpadding=0>
67
	<tr><th>$l_menu</th></tr>
51 franck 68
	<tr bgcolor=\"#FFCC66\"><td><img src=\"/images/pix.gif\" width=1 height=2></td></tr>
1 root 69
</TABLE>
131 richard 70
<TABLE width=168 border=1 cellspacing=0 cellpadding=0>
1 root 71
	<tr bgcolor=\"#666666\"><td>
72
		<TABLE width=\"100%\" border=0 cellspacing=0 cellpadding=2>
51 franck 73
			<tr><td valign=\"middle\" align=\"left\">
74
				<img src=\"images/right.gif\" height=10 width=10 border=no nosave><A HREF=\"phpsysinfo/\" TARGET=\"REXY2\">$l_home</A></td></tr>";
34 richard 75
if (isset($_GET['a'])) { $a=$_GET['a']; }
76
	else $a=0;
77
if (isset($_GET['b'])) { $b=$_GET['b']; }
78
	else $b=0;
1 root 79
$selection[0]=$l_system;
80
$selection[1]=$l_auth;
81
$selection[2]=$l_filter;
82
$selection[3]=$l_statistics;
83
$fichier[0]="system.php";
84
$fichier[1]="auth.php";
85
$fichier[2]="filtering.php";
86
$fichier[3]="stat.php";
87
$i=0;
88
$nb1=count($selection);
89
while ($i != $nb1)
90
  {
91
	if ($a==1 AND $i==$b)
92
		{
51 franck 93
		echo "<tr><td valign=\"middle\" align=\"left\"><img src=\"images/down2.gif\" height=10 width=10 border=no nosave><a href=\"menu.php?a=0&b=0\"><font color=\"black\"><b>$selection[$i]</b></font></a></td></tr>";
1 root 94
		include($fichier[$i]);
95
		}
96
	else
97
		{
51 franck 98
		echo "<tr><td valign=\"middle\" align=\"left\"><img src=\"images/right.gif\" height=10 width=10 border=no nosave><a href=\"menu.php?a=1&b=$i\">$selection[$i]</a></td></tr>";
1 root 99
		}
100
	$i++;
101
  }
102
echo "
51 franck 103
			<tr><td valign=\"middle\" align=\"left\">
104
			<img src=\"images/right.gif\" height=10 width=10 border=no nosave><A HREF=\"backup/sauvegarde.php\" TARGET=\"REXY2\">$l_backup</A></td></tr>";
1 root 105
?>
106
		</TABLE>
107
	</td></tr>
108
</TABLE>
109
<br>
28 richard 110
<TABLE width="150" border="0" cellspacing="0" cellpadding="0">
1 root 111
	<tr><th>Doc</th></tr>
112
	<tr bgcolor="#FFCC66"><td><img src="images/pix.gif" width="1"
113
height="2"></td></tr>
114
</TABLE>
28 richard 115
<TABLE width="150" border=1 cellspacing=0 cellpadding=0>
1 root 116
	<tr bgcolor="#666666"><td>
117
		<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
118
			<tr><td valign="middle" align="left"><img src="images/right.gif" height=10
161 richard 119
width=10 border=no nosave><a href="alcasar-1.9-presentation.pdf" target="_blank">Présentation</a></td></tr>
1 root 120
			<tr><td valign="middle" align="left"><img src="images/right.gif" height=10
161 richard 121
width=10 border=no nosave><a href="alcasar-1.9-installation.pdf" target="_blank">Installation</a></td></tr>
1 root 122
			<tr><td valign="middle" align="left"><img src="images/right.gif" height=10
161 richard 123
width=10 border=no nosave><a href="alcasar-1.9-exploitation.pdf" target="_blank">Exploitation</a></td></tr>
1 root 124
		</TABLE>
125
	</td></tr>
126
</TABLE>
127
<BR>
28 richard 128
<TABLE width="150" border="0" cellspacing="0" cellpadding="0">
129
	<tr><th><? echo "$l_access_nb"; ?></th></tr>
130
	<tr bgcolor="#FFCC66"><td><img src="images/pix.gif" width="1" height="2"></td></tr>
131
</TABLE>
132
<TABLE width="150" border=1 cellspacing=0 cellpadding=0>
133
	<tr bgcolor="#666666"><td>
134
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
135
		<tr><td valign="middle" align="center">
136
		<?				// Compteur d'accès
137
		$name_fic="compteur.txt";
138
						// Recuperation du nombre de visite
139
		if (($fp=fopen($name_fic,"r")) == false) exit;
140
		$nb=fgets($fp,10);
141
		fclose($fp);
142
		$nb+=1;
143
		printf("%d", $nb);
144
						// Ecriture du nombre de visite
145
		if (($fp=fopen($name_fic,"w")) == false) exit;
146
		fputs($fp, "$nb\n");
147
		fclose($fp);
148
		?>
303 richard 149
		<br>depuis le 08/10/2010<br></center></td></tr>
1 root 150
	</TABLE>
51 franck 151
	</td></tr>
1 root 152
</TABLE>
153
</BODY>
154
</HTML>