Subversion Repositories ALCASAR

Rev

Go to most recent revision | Details | Last modification | View Log

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