Subversion Repositories ALCASAR

Rev

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

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