Subversion Repositories ALCASAR

Rev

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