Subversion Repositories ALCASAR

Rev

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

Rev 2186 Rev 2201
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: intercept.php 2186 2017-04-26 18:12:04Z tom.houdayer $
2
# $Id: intercept.php 2201 2017-05-05 20:05:47Z 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 495... Line 495...
495
	<meta charset="utf-8">
495
	<meta charset="utf-8">
496
	<title><?= $l_loggingin ?></title>
496
	<title><?= $l_loggingin ?></title>
497
	<meta http-equiv="Cache-control" content="no-cache">
497
	<meta http-equiv="Cache-control" content="no-cache">
498
	<meta http-equiv="Pragma" content="no-cache">
498
	<meta http-equiv="Pragma" content="no-cache">
499
	<script type="text/javascript">
499
	<script type="text/javascript">
500
	var alcasar_popup = null;
-
 
501
	function popUp(URL) {
-
 
502
		if (self.name !== "alcasar_popup") {
-
 
503
			alcasar_popup = window.open(URL, 'alcasar_popup', 'width=500,height=460,directories=no,resizable=no,scrollbars=yes,location=no,toolbar=no,statusbar=no,menubar=no');
-
 
504
		}
-
 
505
	}
-
 
506
	function doOnLoad(result, userurl, redirurl, adminurl, timeleft) {
500
	function doOnLoad(result, userurl, redirurl, adminurl, timeleft) {
507
		if ((result === 1) || (result === 4)) {	//success or already
501
		if ((result === 1) || (result === 4)) {	//success or already
508
			//window.location = userurl;
502
			var url;
509
			if (alcasar_popup !== null) alcasar_popup.focus();
-
 
510
			if (adminurl !== '') {
503
			if (adminurl !== '') {
511
				window.location = adminurl;
504
				url = adminurl;
512
			} else if (redirurl !== '') {
505
			} else if (redirurl !== '') {
513
				window.location = redirurl;
506
				url = redirurl;
514
				} else if (userurl !== '') {
507
			} else if (userurl !== '') {
515
					window.location = userurl;
508
				url = userurl;
-
 
509
			}
-
 
510
 
-
 
511
			if (typeof url !== 'undefined') {
-
 
512
				var win = window.open(url, '_blank');
516
				} else {
513
				if (win !== null) {
517
				window.home();
514
					win.focus();
-
 
515
				}
518
			}
516
			}
-
 
517
 
-
 
518
			// Redirect to status page
-
 
519
			window.location = '<?= $statuspath ?>';
519
		}
520
		}
520
		if ((result === 2) || (result === 3) || result === 5) { //failed or logoff or notyet
521
		if ((result === 2) || (result === 3) || result === 5) { //failed or logoff or notyet
521
			if (alcasar_popup !== null) alcasar_popup.close();
-
 
522
			document.form1.UserName.focus();
522
			document.form1.UserName.focus();
523
		}
523
		}
524
	}
524
	}
525
	</script>
525
	</script>
526
	<link rel="stylesheet" href="/css/style_intercept.css" type="text/css">
526
	<link rel="stylesheet" href="/css/style_intercept.css" type="text/css">
Line 555... Line 555...
555
				<tr>
555
				<tr>
556
					<td align="right"><?= $l_password ?></td>
556
					<td align="right"><?= $l_password ?></td>
557
					<td align="left"><input maxLength="32" type="password" name="Password" autocomplete="off"></td>
557
					<td align="left"><input maxLength="32" type="password" name="Password" autocomplete="off"></td>
558
				</tr>
558
				</tr>
559
				<tr>
559
				<tr>
560
					<td height="23" align="left"><input value="<?= $l_boutonO ?>" type="submit" name="button" onclick="window.open('<?= $statuspath ?>', '_blank');"></td>
560
					<td height="23" align="left"><input value="<?= $l_boutonO ?>" type="submit" name="button"></td>
561
					<?php
561
					<?php
562
					$service_SMS_status = false;
562
					$service_SMS_status = false;
563
					if ($service_SMS_status): ?>
563
					if ($service_SMS_status): ?>
564
						<td><a href="./autoregistrationinfo.php"><?= $l_autoregistration ?></a></td>
564
						<td><a href="./autoregistrationinfo.php"><?= $l_autoregistration ?></a></td>
565
					<?php endif; ?>
565
					<?php endif; ?>