Subversion Repositories ALCASAR

Rev

Rev 2843 | Rev 2898 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2843 Rev 2896
Line 1... Line 1...
1
<?php
1
<?php
2
 
-
 
3
//Fichier de gestion des langues
-
 
4
// Choix de la langue
2
// Language choice
5
$Language = 'en';
3
$Language = 'en';
6
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
4
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
7
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
5
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
8
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
6
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
9
// En fonction de la langue et de la page d'appel remplissage des variables
-
 
10
switch ($Language){
7
switch ($Language){
11
	case 'fr':
8
	case 'fr':
12
	//Français
-
 
13
		$l_monday="lundi"; $l_tuesday="mardi"; $l_wednesday="mercredi"; $l_thursday="jeudi"; $l_friday="vendredi"; $l_saturday="samedi"; $l_sunday="dimanche";
9
		$l_monday="lundi"; $l_tuesday="mardi"; $l_wednesday="mercredi"; $l_thursday="jeudi"; $l_friday="vendredi"; $l_saturday="samedi"; $l_sunday="dimanche";
14
		$l_monthly="mensuelle";$l_weekly="hebdomadaire";$l_daily="journalière";$l_by_session="par session";
10
		$l_monthly="mensuelle";$l_weekly="hebdomadaire";$l_daily="journalière";$l_by_session="par session";
15
		$l_day = "Jour";
11
		$l_day = "Jour";
16
		$l_limit="limite";
12
		$l_limit="limite";
17
		$l_daily_limit="limite journalière";
13
		$l_daily_limit="limite journalière";
Line 128... Line 124...
128
		$l_proto_2="Navigation Web + Messagerie + Accès distant";
124
		$l_proto_2="Navigation Web + Messagerie + Accès distant";
129
		$l_proto_3="Personnalisé";
125
		$l_proto_3="Personnalisé";
130
		$l_empty="Vide";
126
		$l_empty="Vide";
131
		$l_ipAddress="Adresse IP";
127
		$l_ipAddress="Adresse IP";
132
		$l_rule="Règle";
128
		$l_rule="Règle";
133
		$l_statusOpenRequired="La page de statut doit restée ouverte";
129
		$l_statusOpenRequired="Autoriser ses équipements";
134
		$l_yes="Oui";
130
		$l_yes="Oui";
135
		$l_no="Non";
131
		$l_no="Non";
136
	break;
132
	break;
-
 
133
	case 'es':
-
 
134
		$l_monday="monday"; $l_tuesday="tuesday"; $l_wednesday="wednesday"; $l_thursday="thursday"; $l_friday="friday"; $l_saturday="saturday"; $l_sunday="sunday";
-
 
135
		$l_monthly="monthly";$l_weekly="weekly";$l_daily="daily";$l_by_session="by session";
-
 
136
		$l_day = "Day";
-
 
137
		$l_limit = "limit";
-
 
138
		$l_daily_limit="daily limit";
-
 
139
		$l_used_time = "Used time";
-
 
140
		$l_last7days_status = "Last 7 days status";
-
 
141
		$l_already_exist = "already exist";
-
 
142
		$l_connections_number = "Connections number";
-
 
143
		$l_download = "Downloaded data";
-
 
144
		$l_upload = "Uploaded data";
-
 
145
		$l_average = "average";
-
 
146
		$l_user = "User";
-
 
147
		$l_users_managment = "Users managment";
-
 
148
		$l_groups_managment = "Groups managment";
-
 
149
		$l_search_filter = "Search filter";
-
 
150
		$l_search_criteria = "Search criteria";
-
 
151
		$l_search = "Start search";
-
 
152
		$l_no_user_found = "No user found";
-
 
153
		$l_special_attribute = "Special attribute";
-
 
154
		$l_attribute = "Attribute";
-
 
155
		$l_value = "Value<br>(empty = all)";
-
 
156
		$l_login = "Login";
-
 
157
		$l_password = "Password";
-
 
158
		$l_new_password = "New password";
-
 
159
		$l_passwd_gen = "generate";
-
 
160
		$l_user_create = "Create a user";
-
 
161
		$l_nb_users = "Number of users";
-
 
162
		$l_group_create = "Create a group";
-
 
163
		$l_group_select = "Select a group";
-
 
164
		$l_group = "Group";
-
 
165
		$l_created_groups = "Already created group(s)";
-
 
166
		$l_group_name = "Group name";
-
 
167
		$l_group_members = "Members of group :<br>(separate by a 'space' or a 'carriage return')";
-
 
168
		$l_group_members_remove = "Remove all members of this group";
-
 
169
		$l_group_members_to_remove = "<b>Members to remove :</b><br>The selected members will be remove from the group.<br>Use 'shift' or 'Ctrl' for multiple selection.";
-
 
170
		$l_group_members_to_add = "<b>Members to add :</b><br>Separate the members with a 'space' or a 'carriage return'.";
-
 
171
		$l_manage_selected_user= "Manage the selected user";
-
 
172
		$l_group_member = "Member of group";
-
 
173
		$l_group_empty = "The group list is empty";
-
 
174
		$l_main_group = "The current user group is highlighted in blue";
-
 
175
		$l_no_group = "No group";
-
 
176
		$l_no_open_session = "No open session";
-
 
177
		$l_opened_sessions = "opened session(s)";
-
 
178
		$l_active_accounting = "active accounting(s)";
-
 
179
		$l_want_to_close ="Do you want to close them ?";
-
 
180
		$l_yes_close ="Yes, close";
-
 
181
		$l_status ="STATUS";
-
 
182
		$l_personal_info ="PERSONAL INFORMATIONS";
-
 
183
		$l_connections ="CONNECTIONS";
-
 
184
		$l_open_sessions ="OPEN SESSIONS";
-
 
185
		$l_members ="MEMBERS";
-
 
186
		$l_attributes ="ATTRIBUTES";
-
 
187
		$l_remove ="REMOVE";
-
 
188
		$l_locked_user ="The user account is locked";
-
 
189
		$l_user_remain_login ="The user can log in during ";
-
 
190
		$l_user_expired ="The user account has expired";
-
 
191
		$l_connected ="Connected from";
-
 
192
		$l_connection_time ="Connection time";
-
 
193
		$l_total_connections_time ="Total connections time";
-
 
194
		$l_user_never_login ="This user has never logged in";
-
 
195
		$l_user_not_login_yet ="This user isn't connected yet";
-
 
196
		$l_last_login ="Last connection";
-
 
197
		$l_remain_time ="Remain connection time";
-
 
198
		$l_description ="Description";
-
 
199
		$l_name = "Surname and name";
-
 
200
		$l_email = "Email Address";	
-
 
201
		$l_homephone = "Personal phone number";
-
 
202
		$l_telephonenumber = "Office phone number";
-
 
203
		$l_mobile = "Mobile phone number";
-
 
204
		$l_lang_ticket = "Voucher language";	
-
 
205
		$l_simultaneous_use = "Number of concurent login";
-
 
206
		$l_max_all_session = "Maximum time of connection<br>(in seconds)";
-
 
207
		$l_expire_after = "Authorized period after the first connection<br>(in seconds)";
-
 
208
		$l_expiration = "Expiration date";
-
 
209
		$l_session_timeout = "Maximum time for a session<br>(in seconds)";
-
 
210
		$l_daily_timeout = "Maximum time of connection per day<br>(in seconds)";
-
 
211
		$l_monthly_timeout = "Maximum time of connection per month<br>(in seconds)";
-
 
212
		$l_login_time = "Weekly period";
-
 
213
		$l_max_input_octets = "Maximum of data uploaded<br>(in octets)";
-
 
214
		$l_max_output_octets = "Maximum of data downloaded<br>(in octets)";
-
 
215
		$l_max_total_octets = "Maximum of data exchanged<br>(in octets)";
-
 
216
		$l_max_total_octets_daily = "Maximum of data exchanged daily<br>(in octets)";
-
 
217
		$l_max_total_octets_monthly = "Maximum of data exchanged monthly<br>(in octets)";
-
 
218
		$l_max_bandwidth_up = "Maximum upload bandwidth<br>(in kbits/second)";
-
 
219
		$l_max_bandwidth_down = "Maximum download bandwidth<br>(in kbits/second)";
-
 
220
		$l_wispr_redirection = "Redirection URL";
-
 
221
		$l_click_for_help = "Click to show help about this attribute";	
-
 
222
		$l_show_profile = "Show profile";
-
 
223
		$l_are_you_sure = "Are you sure to remove";
-
 
224
		$l_yes_remove = "Yes, remove";
-
 
225
		$l_create = "Create";
-
 
226
		$l_advanced_menu = "Advanced menu";
-
 
227
		$l_simple_menu = "Simple menu";
-
 
228
		$l_change = "Change";
-
 
229
		$l_or = "Or";
-
 
230
		$l_create_ticket = "Create a ticket (voucher)";
-
 
231
		$l_create_multiple = "Create several tickets";
-
 
232
		$l_create_multiple_comment = "<br>Note: when creating multiple tickets simultaneously :<br>
-
 
233
		- username and password are randomly generated,<br>
-
 
234
		- fields \"Surname and name\" and \"Email Address\" are not use.<br> ";
-
 
235
		$l_createTicketsMSG = "Enter the number of users to create";
-
 
236
		$l_filtering = "Antivirus & domain Filtering";
-
 
237
		$l_filtering_none = "None";
-
 
238
		$l_filtering_av = "WEB Antivirus";
-
 
239
		$l_filtering_av_bl = "Blacklist + WEB antivirus";
-
 
240
		$l_filtering_av_wl = "Whitelist + WEB antivirus";
-
 
241
		$l_user_exists = "already exists !";
-
 
242
		$l_created = "has been correctly created";
-
 
243
		$l_removed = "has been removed";
-
 
244
		$l_group_desc = "<h2>Group Attributes</h2>";
-
 
245
		$l_user_desc = "<h2>User Attributes</h2>";
-
 
246
		$l_proto="Network protocols filtering";
-
 
247
		$l_proto_0="None";
-
 
248
		$l_proto_1="Web browsing (HTTP & HTTPS)";
-
 
249
		$l_proto_2="Web browsing + Mail + remote access";
-
 
250
		$l_proto_3="Customized";
-
 
251
		$l_empty="Empty";
-
 
252
		$l_ipAddress="IP address";
-
 
253
		$l_rule="Rule";
-
 
254
		$l_statusOpenRequired="Authorise its equipment";
-
 
255
		$l_yes="Yes";
-
 
256
		$l_no="No";
-
 
257
	break;
137
	default :
258
	default :
138
	//English
-
 
139
		$l_monday="monday"; $l_tuesday="tuesday"; $l_wednesday="wednesday"; $l_thursday="thursday"; $l_friday="friday"; $l_saturday="saturday"; $l_sunday="sunday";
259
		$l_monday="monday"; $l_tuesday="tuesday"; $l_wednesday="wednesday"; $l_thursday="thursday"; $l_friday="friday"; $l_saturday="saturday"; $l_sunday="sunday";
140
		$l_monthly="monthly";$l_weekly="weekly";$l_daily="daily";$l_by_session="by session";
260
		$l_monthly="monthly";$l_weekly="weekly";$l_daily="daily";$l_by_session="by session";
141
		$l_day = "Day";
261
		$l_day = "Day";
142
		$l_limit = "limit";
262
		$l_limit = "limit";
143
	       	$l_daily_limit="daily limit";
263
		$l_daily_limit="daily limit";
144
		$l_used_time = "Used time";
264
		$l_used_time = "Used time";
145
		$l_last7days_status = "Last 7 days status";
265
		$l_last7days_status = "Last 7 days status";
146
		$l_already_exist = "already exist";
266
		$l_already_exist = "already exist";
147
		$l_connections_number = "Connections number";
267
		$l_connections_number = "Connections number";
148
		$l_download = "Downloaded data";
268
		$l_download = "Downloaded data";
Line 254... Line 374...
254
		$l_proto_2="Web browsing + Mail + remote access";
374
		$l_proto_2="Web browsing + Mail + remote access";
255
		$l_proto_3="Customized";
375
		$l_proto_3="Customized";
256
		$l_empty="Empty";
376
		$l_empty="Empty";
257
		$l_ipAddress="IP address";
377
		$l_ipAddress="IP address";
258
		$l_rule="Rule";
378
		$l_rule="Rule";
259
		$l_statusOpenRequired="Status page need to stay open";
379
		$l_statusOpenRequired="Authorise its equipment";
260
		$l_yes="Yes";
380
		$l_yes="Yes";
261
		$l_no="No";
381
		$l_no="No";
262
	break;
382
	break;
263
	}
383
	}
264
?>
384
?>