Subversion Repositories ALCASAR

Rev

Rev 2239 | Rev 2257 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log

Rev 2239 Rev 2250
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: intercept.php 2239 2017-05-20 21:22:48Z tom.houdayer $
2
# $Id: intercept.php 2250 2017-05-22 22:00:03Z tom.houdayer $
3
#
3
#
4
# intercept.php for ALCASAR captive portal
4
# intercept.php for ALCASAR captive portal
5
# Copyright (C) 2003, 2004 Mondru AB.
5
# Copyright (C) 2003, 2004 Mondru AB.
6
# Modify by REXY & steweb57
6
# Modify by REXY & steweb57
7
# UI & css style by stephane ERARD
7
# UI & css style by stephane ERARD
Line 55... Line 55...
55
}
55
}
56
fclose($file_conf);
56
fclose($file_conf);
57
 
57
 
58
$organisme = $conf["ORGANISM"];
58
$organisme = $conf["ORGANISM"];
59
 
59
 
60
# Shared secret used to encrypt password with coova.
60
// Shared secret used to encrypt password with coova.
61
$uamsecret = "";
61
$uamsecret = "";
62
 
62
 
63
# URL loaded after success authenticates (let blank for browser defaults)
63
// URL loaded after success authenticates (let blank for browser defaults)
64
$adminurl = "";
64
$adminurl = "";
65
 
65
 
-
 
66
// Check if the SMS service is enable
-
 
67
$service_SMS_status = false;
-
 
68
 
66
# Our own path
69
// Our own path
67
$loginpath   = htmlspecialchars($_SERVER['PHP_SELF']);
70
$loginpath   = htmlspecialchars($_SERVER['PHP_SELF']);
68
$alcasarpath = 'http://'.$conf['HOSTNAME'].'.'.$conf['DOMAIN'];
71
$alcasarpath = 'http://'.$conf['HOSTNAME'].'.'.$conf['DOMAIN'];
69
$statuspath  = $alcasarpath.'/status.php';
72
$statuspath  = $alcasarpath.'/status.php';
70
 
73
 
71
# Choice of language
74
// Choice of language
72
$Language = 'en';
75
$Language = 'en';
73
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
76
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
74
	$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
77
	$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
75
	$Language = strtolower(substr(chop($Langue[0]),0,2));
78
	$Language = strtolower(substr(chop($Langue[0]),0,2));
76
}
79
}
Line 587... Line 590...
587
					<td align="right"><?= $l_password ?></td>
590
					<td align="right"><?= $l_password ?></td>
588
					<td align="left"><input maxLength="32" type="password" name="Password" autocomplete="off"></td>
591
					<td align="left"><input maxLength="32" type="password" name="Password" autocomplete="off"></td>
589
				</tr>
592
				</tr>
590
				<tr>
593
				<tr>
591
					<td height="23" align="left"><input value="<?= $l_boutonO ?>" type="submit" name="button"></td>
594
					<td height="23" align="left"><input value="<?= $l_boutonO ?>" type="submit" name="button"></td>
592
					<?php
-
 
593
					$service_SMS_status = false;
-
 
594
					if ($service_SMS_status): ?>
595
					<?php if ($service_SMS_status): ?>
595
						<td><a href="./autoregistrationinfo.php"><?= $l_autoregistration ?></a></td>
596
						<td><a href="autoregistrationinfo.php"><?= $l_autoregistration ?></a></td>
596
					<?php endif; ?>
597
					<?php endif; ?>
597
				</tr>
598
				</tr>
598
			</table>
599
			</table>
599
		</form>
600
		</form>
600
		<table id="boite-info" cellSpacing="0" cellPadding="0" width="80%">
601
		<table id="boite-info" cellSpacing="0" cellPadding="0" width="80%">