Subversion Repositories ALCASAR

Rev

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

Rev 2378 Rev 2406
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: intercept.php 2378 2017-08-16 20:11:31Z tom.houdayer $
2
# $Id: intercept.php 2406 2017-09-10 16:47:59Z 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 503... Line 503...
503
			}
503
			}
504
 
504
 
505
			if (typeof url !== 'undefined') {
505
			if (typeof url !== 'undefined') {
506
				var win = window.open('<?= $statuspath ?>', '_blank');
506
				var win = window.open('<?= $statuspath ?>', '_blank');
507
 
507
 
508
				if (win === null) { // Pop-up blocked
508
				if ((win === null) || (typeof win === 'undefined')) { // Pop-up blocked
509
					window.location = '<?= $statuspath ?>';
509
					window.location = '<?= $statuspath ?>';
510
				} else {
510
				} else {
511
					window.location = url;
511
					window.location = url;
512
				}
512
				}
513
			} else {
513
			} else {