591 |
stephane |
1 |
<?php
|
|
|
2 |
/*
|
592 |
stephane |
3 |
Alcasar 2.x
|
|
|
4 |
written by steweb57
|
591 |
stephane |
5 |
*/
|
592 |
stephane |
6 |
/*
|
|
|
7 |
TODO :
|
|
|
8 |
- finir la traduction
|
|
|
9 |
- sortir le CSS
|
|
|
10 |
*/
|
591 |
stephane |
11 |
require_once('includes/defines.inc.php');
|
|
|
12 |
require_once(ALCASAR_ADMIN_PATH_INC.'/session.inc.php');
|
592 |
stephane |
13 |
|
|
|
14 |
# Choice of language
|
|
|
15 |
$Language = 'en';
|
|
|
16 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
|
|
17 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
|
|
18 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
|
|
19 |
if($Language == 'fr'){
|
|
|
20 |
require_once(ALCASAR_ADMIN_PATH_LANG.'/fr/menu.lang.php');
|
|
|
21 |
}
|
|
|
22 |
else {
|
|
|
23 |
require_once(ALCASAR_ADMIN_PATH_LANG.'/en/menu.lang.php');
|
|
|
24 |
}
|
|
|
25 |
|
591 |
stephane |
26 |
?>
|
592 |
stephane |
27 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
|
28 |
"http://www.w3.org/TR/html4/loose.dtd">
|
|
|
29 |
<!--DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN//2.0"-->
|
|
|
30 |
<html>
|
|
|
31 |
<!-- written by steweb57 ! -->
|
|
|
32 |
<head>
|
|
|
33 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
34 |
<title>menu</title>
|
|
|
35 |
<link rel="stylesheet" href="<?php echo ALCASAR_ADMIN_PATH_CSS; ?>/default/default.css" type="text/css">
|
|
|
36 |
<style type="text/css">
|
|
|
37 |
|
|
|
38 |
#menu {
|
|
|
39 |
//float:left;
|
|
|
40 |
width:200px;
|
|
|
41 |
height:600px;
|
|
|
42 |
/*background-color:#FF6699;*/
|
|
|
43 |
margin-left: auto;
|
|
|
44 |
margin-right: auto;
|
|
|
45 |
}
|
|
|
46 |
</style>
|
|
|
47 |
<style type="text/css">
|
|
|
48 |
/*demo page css*/
|
|
|
49 |
/*
|
|
|
50 |
body{ font: 62.5% "Trebuchet MS", sans-serif; margin: 0px;}
|
|
|
51 |
|
|
|
52 |
.demoHeaders { margin-top: 2em; }
|
|
|
53 |
#dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
|
|
|
54 |
#dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
|
|
|
55 |
ul#icons {margin: 0; padding: 0;}
|
|
|
56 |
ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left; list-style: none;}
|
|
|
57 |
ul#icons span.ui-icon {float: left; margin: 0 4px;}
|
|
|
58 |
*/
|
|
|
59 |
</style>
|
|
|
60 |
<link type="text/css" href="<?php echo ALCASAR_ADMIN_PATH_CSS; ?>/default/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" />
|
|
|
61 |
<script type="text/javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery-1.5.min.js"></script>
|
|
|
62 |
<script type="text/javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery-ui-1.8.10.all.min.js"></script>
|
|
|
63 |
|
|
|
64 |
<script type="text/javascript">
|
|
|
65 |
$(function(){
|
|
|
66 |
|
|
|
67 |
$("a").attr("target", "content");
|
|
|
68 |
|
|
|
69 |
// Accordion
|
|
|
70 |
$("#accordion").accordion({
|
|
|
71 |
header: "h3",
|
|
|
72 |
autoHeight: false
|
|
|
73 |
});
|
|
|
74 |
$("#accordion").accordion("activate" , 0 );
|
|
|
75 |
|
|
|
76 |
$("#accordion-aide").accordion({
|
|
|
77 |
header: "h3",
|
|
|
78 |
autoHeight: false,
|
|
|
79 |
navigation: true
|
|
|
80 |
});
|
|
|
81 |
$("#accordion-acces").accordion({
|
|
|
82 |
header: "h3",
|
|
|
83 |
autoHeight: false,
|
|
|
84 |
navigation: true
|
|
|
85 |
});
|
|
|
86 |
});
|
|
|
87 |
</script>
|
|
|
88 |
</head>
|
|
|
89 |
<body>
|
|
|
90 |
|
|
|
91 |
<div id="menu">
|
|
|
92 |
<div id="accordion">
|
|
|
93 |
<div>
|
|
|
94 |
<h3><a href="#"><?php echo $l_home; ?></a></h3>
|
|
|
95 |
<div>
|
|
|
96 |
<a href="welcome.php">Accueil</a>
|
|
|
97 |
</div>
|
|
|
98 |
</div>
|
|
|
99 |
<div>
|
|
|
100 |
<h3><a href="#"><?php echo $l_system; ?></a></h3>
|
|
|
101 |
<div>
|
593 |
stephane |
102 |
<a href="configuration.php">Configuration</a><br />
|
|
|
103 |
<a href="services.php">Services</a><br />
|
|
|
104 |
<a href="network.php"><?php echo $l_network; ?></a><br />
|
|
|
105 |
<a href="activity.php"><?php echo $l_activity; ?></a><br />
|
|
|
106 |
<a href="directories.php">Annuaires</a>
|
592 |
stephane |
107 |
</div>
|
|
|
108 |
</div>
|
|
|
109 |
<div>
|
|
|
110 |
<h3><a href="#"><?php echo $l_auth; ?></a></h3>
|
|
|
111 |
<div>
|
593 |
stephane |
112 |
<a href="auth_users.php"><?php echo $l_menu_users; ?></a><br />
|
|
|
113 |
<a href="auth_groups.php"><?php echo $l_menu_groups; ?></a><br />
|
|
|
114 |
<a href="auth_admins.php"><?php echo $l_menu_admins; ?></a><br />
|
592 |
stephane |
115 |
<!--
|
|
|
116 |
<a href="manager/htdocs/user_new.php"><?php echo $l_create_user; ?></a><br />
|
|
|
117 |
<a href="manager/htdocs/find.php"><?php echo $l_edit_user; ?></a><br />
|
|
|
118 |
<a href="manager/htdocs/group_new.php"><?php echo $l_create_group; ?></a><br />
|
|
|
119 |
<a href="manager/htdocs/show_groups.php"><?php echo $l_edit_group; ?></a><br />
|
|
|
120 |
-->
|
593 |
stephane |
121 |
<a href="auth_import_users.php"><?php echo $l_import_empty; ?></a><br />
|
|
|
122 |
<a href="auth_exceptions.php">Exceptions</a>
|
592 |
stephane |
123 |
</div>
|
|
|
124 |
</div>
|
|
|
125 |
<div>
|
|
|
126 |
<h3><a href="#"><?php echo $l_filter; ?></a></h3>
|
|
|
127 |
<div>
|
593 |
stephane |
128 |
<a href="filters_domains.php"><?php echo $l_domains_filter; ?></a><br />
|
|
|
129 |
<a href="filters_networks.php"><?php echo $l_network; ?></a>
|
592 |
stephane |
130 |
</div>
|
|
|
131 |
</div>
|
|
|
132 |
<div>
|
|
|
133 |
<h3><a href="#"><?php echo $l_statistics; ?></a></h3>
|
|
|
134 |
<div>
|
|
|
135 |
<a href="welcome.php"><?php echo $l_stat_user_day; ?></a><br />
|
|
|
136 |
<a href="welcome.php"><?php echo $l_stat_con; ?></a><br />
|
|
|
137 |
<a href="welcome.php"><?php echo $l_stat_daily; ?></a><br />
|
|
|
138 |
<a href="welcome.php"><?php echo $l_stat_web; ?></a><br />
|
|
|
139 |
<a href="welcome.php"><?php echo $l_firewall; ?></a>
|
|
|
140 |
</div>
|
|
|
141 |
</div>
|
|
|
142 |
<div>
|
|
|
143 |
<h3><a href="#"><?php echo $l_backup; ?></a></h3>
|
|
|
144 |
<div>
|
593 |
stephane |
145 |
<a href="backups.php"><?php echo $l_backup; ?></a><br />
|
592 |
stephane |
146 |
</div>
|
|
|
147 |
</div>
|
|
|
148 |
</div>
|
|
|
149 |
<br />
|
|
|
150 |
<div id="accordion-aide">
|
|
|
151 |
<div>
|
|
|
152 |
<h3><a href="#">Documentations</a></h3>
|
|
|
153 |
<div>
|
|
|
154 |
<a href="docs/alcasar-2.1-presentation.pdf">Présentation</a><br />
|
|
|
155 |
<a href="docs/alcasar-2.1-installation.pdf">Installation</a><br />
|
|
|
156 |
<a href="docs/alcasar-2.1-exploitation.pdf">Exploitation</a><br />
|
|
|
157 |
</div>
|
|
|
158 |
</div>
|
|
|
159 |
</div>
|
|
|
160 |
<br />
|
|
|
161 |
<div id="accordion-acces">
|
|
|
162 |
<div>
|
|
|
163 |
<h3><a href="#"><?php echo $l_access_nb; ?></a></h3>
|
|
|
164 |
<div>
|
|
|
165 |
<? // Compteur d'accès
|
|
|
166 |
$name_fic="compteur.txt";
|
|
|
167 |
// Recuperation du nombre de visite
|
|
|
168 |
if (($fp=fopen($name_fic,"r")) == false) exit;
|
|
|
169 |
$nb=fgets($fp,10);
|
|
|
170 |
fclose($fp);
|
|
|
171 |
$nb+=1;
|
|
|
172 |
printf("%d", $nb);
|
|
|
173 |
// Ecriture du nombre de visite
|
|
|
174 |
if (($fp=fopen($name_fic,"w")) == false) exit;
|
|
|
175 |
fputs($fp, "$nb\n");
|
|
|
176 |
fclose($fp);
|
|
|
177 |
?>
|
|
|
178 |
<br>depuis le 08/10/2010<br>
|
|
|
179 |
</div>
|
|
|
180 |
</div>
|
|
|
181 |
</div>
|
|
|
182 |
</div>
|