Subversion Repositories ALCASAR

Rev

Rev 28 | 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>
66
	<tr bgcolor=\"#FFCC66\"><td><img src=\"/images/pix.gif\" width=1
67
height=2></td></tr>
68
</TABLE>
28 richard 69
<TABLE width=150 border=1 cellspacing=0 cellpadding=0>
1 root 70
	<tr bgcolor=\"#666666\"><td>
71
		<TABLE width=\"100%\" border=0 cellspacing=0 cellpadding=2>
72
			<TR><TD valign=\"middle\" align=\"left\">
73
				<img src=\"images/right.gif\" height=10 width=10 border=no nosave><A HREF=\"phpsysinfo/\" TARGET=\"REXY2\">$l_home</A></TD></TR>";
34 richard 74
if (isset($_GET['a'])) { $a=$_GET['a']; }
75
	else $a=0;
76
if (isset($_GET['b'])) { $b=$_GET['b']; }
77
	else $b=0;
1 root 78
$selection[0]=$l_system;
79
$selection[1]=$l_auth;
80
$selection[2]=$l_filter;
81
$selection[3]=$l_statistics;
82
$fichier[0]="system.php";
83
$fichier[1]="auth.php";
84
$fichier[2]="filtering.php";
85
$fichier[3]="stat.php";
86
$i=0;
87
$nb1=count($selection);
88
while ($i != $nb1)
89
  {
90
	if ($a==1 AND $i==$b)
91
		{
92
		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>";
93
		include($fichier[$i]);
94
		}
95
	else
96
		{
97
		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>";
98
		}
99
	$i++;
100
  }
101
echo "
102
			<TR><TD valign=\"middle\" align=\"left\">
103
			<img src=\"images/right.gif\" height=10 width=10 border=no nosave><A HREF=\"backup/sauvegarde.php\" TARGET=\"REXY2\">$l_backup</A></TD></TR>";
104
?>
105
		</TABLE>
106
	</td></tr>
107
</TABLE>
108
<br>
28 richard 109
<TABLE width="150" border="0" cellspacing="0" cellpadding="0">
1 root 110
	<tr><th>Doc</th></tr>
111
	<tr bgcolor="#FFCC66"><td><img src="images/pix.gif" width="1"
112
height="2"></td></tr>
113
</TABLE>
28 richard 114
<TABLE width="150" border=1 cellspacing=0 cellpadding=0>
1 root 115
	<tr bgcolor="#666666"><td>
116
		<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
117
			<tr><td valign="middle" align="left"><img src="images/right.gif" height=10
28 richard 118
width=10 border=no nosave><a href="alcasar-1.8-presentation.pdf" target="_blank">Présentation</a></td></tr>
1 root 119
			<tr><td valign="middle" align="left"><img src="images/right.gif" height=10
120
width=10 border=no nosave><a href="alcasar-1.8-installation.pdf" target="_blank">Installation</a></td></tr>
121
			<tr><td valign="middle" align="left"><img src="images/right.gif" height=10
122
width=10 border=no nosave><a href="alcasar-1.8-exploitation.pdf" target="_blank">Exploitation</a></td></tr>
123
		</TABLE>
124
	</td></tr>
125
</TABLE>
126
<BR>
28 richard 127
<TABLE width="150" border="0" cellspacing="0" cellpadding="0">
128
	<tr><th><? echo "$l_access_nb"; ?></th></tr>
129
	<tr bgcolor="#FFCC66"><td><img src="images/pix.gif" width="1" height="2"></td></tr>
130
</TABLE>
131
<TABLE width="150" border=1 cellspacing=0 cellpadding=0>
132
	<tr bgcolor="#666666"><td>
133
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
134
		<tr><td valign="middle" align="center">
135
		<?				// Compteur d'accès
136
		$name_fic="compteur.txt";
137
						// Recuperation du nombre de visite
138
		if (($fp=fopen($name_fic,"r")) == false) exit;
139
		$nb=fgets($fp,10);
140
		fclose($fp);
141
		$nb+=1;
142
		printf("%d", $nb);
143
						// Ecriture du nombre de visite
144
		if (($fp=fopen($name_fic,"w")) == false) exit;
145
		fputs($fp, "$nb\n");
146
		fclose($fp);
147
		?>
148
		<br>depuis le 23/12/2009<br></center></td></tr>
1 root 149
	</TABLE>
150
</TD>
151
</TR>
152
</TABLE>
153
</BODY>
154
</HTML>