Subversion Repositories ALCASAR

Rev

Rev 80 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

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