Subversion Repositories ALCASAR

Rev

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

Rev 1452 Rev 1492
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: index.php 1452 2014-09-19 13:21:07Z richard $
2
# $Id: index.php 1492 2014-11-20 10:56:35Z franck $
3
#
3
#
4
# index.php for ALCASAR captive portal
4
# index.php for ALCASAR captive portal
5
# by REXY
5
# by REXY
6
# UI & css style by stephane ERARD
6
# UI & css style by stephane ERARD
7
# The contents of this file may be used under the terms of the GNU
7
# The contents of this file may be used under the terms of the GNU
Line 42... Line 42...
42
	exit("Error opening the file ".CONF_FILE);
42
	exit("Error opening the file ".CONF_FILE);
43
}
43
}
44
fclose($ouvre);
44
fclose($ouvre);
45
$organisme = trim($conf["ORGANISM"]);
45
$organisme = trim($conf["ORGANISM"]);
46
$domainname = trim($conf["DOMAIN"]);
46
$domainname = trim($conf["DOMAIN"]);
-
 
47
$service_SMS_status = trim($conf["SMS_REGISTRATION"]);
47
$hostname = "alcasar.".$domainname;
48
$hostname = "alcasar.".$domainname;
48
$network_pb = False;
49
$network_pb = False;
49
$cert_add = "http://$hostname/certs";
50
$cert_add = "http://$hostname/certs";
50
$direct_access = False;
51
$direct_access = False;
51
$diagnostic = "can't contact the default router";
52
$diagnostic = "can't contact the default router";
Line 299... Line 300...
299
//search here in the blacklist categories (if ((! $direct_access) && (! $network_pb)){}
300
//search here in the blacklist categories (if ((! $direct_access) && (! $network_pb)){}
300
?>
301
?>
301
			</div>
302
			</div>
302
<?php
303
<?php
303
# CHECK IF the SMS service is enable
304
# CHECK IF the SMS service is enable
304
$service_SMS_status=false;
305
//$service_SMS_status="off";
305
 
-
 
-
 
306
if ($service_SMS_status == "on") || ($service_SMS_status == "On"){
306
$sms_div='	
307
$sms_div='	
307
			<div class="box_menu" id="box_acc" onmouseover="valoriserDiv5(text_acc);">
308
			<div class="box_menu" id="box_acc" onmouseover="valoriserDiv5(text_acc);">
308
				<span>'.$l_sms_access.'</span>
309
				<span>'.$l_sms_access.'</span>
309
				<img src="'.$img_rep.''.$img_sms.'">
310
				<img src="'.$img_rep.''.$img_sms.'">
310
			</div>
311
			</div>
Line 317... Line 318...
317
				<p><font color="green"><center>'.$l_service_sms.'</center></font></p>
318
				<p><font color="green"><center>'.$l_service_sms.'</center></font></p>
318
				<img src="'.$img_rep.''.$img_sms.'">
319
				<img src="'.$img_rep.''.$img_sms.'">
319
			</div>
320
			</div>
320
';
321
';
321
 
322
 
322
if(!$service_SMS_status){
-
 
323
$sms_div='	
323
$sms_div='	
324
			<div class="box_menu" id="box_acc" onmouseover="valoriserDiv5(text_acc);">
324
			<div class="box_menu" id="box_acc" onmouseover="valoriserDiv5(text_acc);">
325
				<span>'.$l_sms_access.'</span>
325
				<span>'.$l_sms_access.'</span>
326
				<img src="'.$img_rep.''.$img_sms.'">
326
				<img src="'.$img_rep.''.$img_sms.'">
327
			</div>
327
			</div>