Subversion Repositories ALCASAR

Rev

Rev 40 | 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é";
1 root 23
  $l_services = "Services";
24
  $l_network = "Réseau";
25
  $l_ldap = "Ldap";
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";
38
}
39
else {
40
  $l_home = "HOME";
41
  $l_system = "SYSTEM";
42
  $l_auth = "AUTHENTICATION";
43
  $l_filter = "FILTERING";
44
  $l_statistics = "STATISTICS";
45
  $l_backup = "BACKUPS";
46
  $l_activity = "Activity";
47
  $l_services = "Services";
48
  $l_network = "Network";
49
  $l_ldap = "Ldap";
28 richard 50
  $l_access_nb = "Access to center";
1 root 51
  $l_create_user = "Create user";
52
  $l_edit_user = "Edit user";
53
  $l_create_group = "Create group";
54
  $l_edit_group = "Edit group";
55
  $l_import_empty = "Import / Empty";
56
  $l_network = "Network";
57
  $l_stat_user_day = "user/day";
58
  $l_stat_con = "connections";
59
  $l_stat_daily ="daily use";
60
  $l_stat_web ="WEB traffic";
61
  $l_firewall ="firewall";
62
}
63
echo "
28 richard 64
<TABLE width=150 border=0 cellspacing=0 cellpadding=0>
1 root 65
	<tr><th>Menu</th></tr>
51 franck 66
	<tr bgcolor=\"#FFCC66\"><td><img src=\"/images/pix.gif\" width=1 height=2></td></tr>
1 root 67
</TABLE>
28 richard 68
<TABLE width=150 border=1 cellspacing=0 cellpadding=0>
1 root 69
	<tr bgcolor=\"#666666\"><td>
70
		<TABLE width=\"100%\" border=0 cellspacing=0 cellpadding=2>
51 franck 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>";
34 richard 73
if (isset($_GET['a'])) { $a=$_GET['a']; }
74
	else $a=0;
75
if (isset($_GET['b'])) { $b=$_GET['b']; }
76
	else $b=0;
1 root 77
$selection[0]=$l_system;
78
$selection[1]=$l_auth;
79
$selection[2]=$l_filter;
80
$selection[3]=$l_statistics;
81
$fichier[0]="system.php";
82
$fichier[1]="auth.php";
83
$fichier[2]="filtering.php";
84
$fichier[3]="stat.php";
85
$i=0;
86
$nb1=count($selection);
87
while ($i != $nb1)
88
  {
89
	if ($a==1 AND $i==$b)
90
		{
51 franck 91
		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 92
		include($fichier[$i]);
93
		}
94
	else
95
		{
51 franck 96
		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 97
		}
98
	$i++;
99
  }
100
echo "
51 franck 101
			<tr><td valign=\"middle\" align=\"left\">
102
			<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 103
?>
104
		</TABLE>
105
	</td></tr>
106
</TABLE>
107
<br>
28 richard 108
<TABLE width="150" border="0" cellspacing="0" cellpadding="0">
1 root 109
	<tr><th>Doc</th></tr>
110
	<tr bgcolor="#FFCC66"><td><img src="images/pix.gif" width="1"
111
height="2"></td></tr>
112
</TABLE>
28 richard 113
<TABLE width="150" border=1 cellspacing=0 cellpadding=0>
1 root 114
	<tr bgcolor="#666666"><td>
115
		<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
116
			<tr><td valign="middle" align="left"><img src="images/right.gif" height=10
28 richard 117
width=10 border=no nosave><a href="alcasar-1.8-presentation.pdf" target="_blank">Présentation</a></td></tr>
1 root 118
			<tr><td valign="middle" align="left"><img src="images/right.gif" height=10
119
width=10 border=no nosave><a href="alcasar-1.8-installation.pdf" target="_blank">Installation</a></td></tr>
120
			<tr><td valign="middle" align="left"><img src="images/right.gif" height=10
121
width=10 border=no nosave><a href="alcasar-1.8-exploitation.pdf" target="_blank">Exploitation</a></td></tr>
122
		</TABLE>
123
	</td></tr>
124
</TABLE>
125
<BR>
28 richard 126
<TABLE width="150" border="0" cellspacing="0" cellpadding="0">
127
	<tr><th><? echo "$l_access_nb"; ?></th></tr>
128
	<tr bgcolor="#FFCC66"><td><img src="images/pix.gif" width="1" height="2"></td></tr>
129
</TABLE>
130
<TABLE width="150" border=1 cellspacing=0 cellpadding=0>
131
	<tr bgcolor="#666666"><td>
132
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
133
		<tr><td valign="middle" align="center">
134
		<?				// Compteur d'accès
135
		$name_fic="compteur.txt";
136
						// Recuperation du nombre de visite
137
		if (($fp=fopen($name_fic,"r")) == false) exit;
138
		$nb=fgets($fp,10);
139
		fclose($fp);
140
		$nb+=1;
141
		printf("%d", $nb);
142
						// Ecriture du nombre de visite
143
		if (($fp=fopen($name_fic,"w")) == false) exit;
144
		fputs($fp, "$nb\n");
145
		fclose($fp);
146
		?>
147
		<br>depuis le 23/12/2009<br></center></td></tr>
1 root 148
	</TABLE>
51 franck 149
	</td></tr>
1 root 150
</TABLE>
51 franck 151
<BR>
152
<TABLE width="150" border="0" cellspacing="0" cellpadding="0">
153
	<tr><th><? echo "$l_access_nb"; ?></th></tr>
154
	<tr bgcolor="#FFCC66"><td><img src="images/pix.gif" width="1" height="2"></td></tr>
155
</TABLE>
156
<TABLE width="150" border=1 cellspacing=0 cellpadding=0>
157
	<tr bgcolor="#666666"><td>
158
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
159
		<tr><td valign="middle" align="center">
160
		<?				// Version disponible en ligne
161
		$name_fic="VERSION-ONLINE";
162
						// Recuperation de la valeur issue de l'Internet (version.alcasar.info)
163
						// et affichage si MAJ
164
		if (($fp=fopen($name_fic,"r")) == false) exit;
165
		$nb=fgets($fp,30);
166
		fclose($fp);
167
		printf("%d", $nb);
168
 
169
		?>
170
		<br>depuis le --- <br></center></td></tr>
171
	</TABLE>
172
	</td></tr>
173
</TABLE>
1 root 174
</BODY>
175
</HTML>