Subversion Repositories ALCASAR

Rev

Rev 811 | Rev 974 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log

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