Subversion Repositories ALCASAR

Rev

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

Rev 2258 Rev 2283
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: intercept.php 2258 2017-05-29 17:37:17Z tom.houdayer $
2
# $Id: intercept.php 2283 2017-06-20 08:06:02Z 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 497... Line 497...
497
			} else if (userurl !== '') {
497
			} else if (userurl !== '') {
498
				url = userurl;
498
				url = userurl;
499
			}
499
			}
500
 
500
 
501
			if (typeof url !== 'undefined') {
501
			if (typeof url !== 'undefined') {
502
				var win = window.open(url, '_blank');
502
				var win = window.open('<?= $statuspath ?>', '_blank');
503
				if (win !== null) {
-
 
504
					win.focus();
-
 
505
				}
-
 
506
			}
-
 
507
 
503
 
508
			// Redirect to status page
504
				if (win === null) { // Pop-up blocked
509
			window.location = '<?= $statuspath ?>';
505
					window.location = '<?= $statuspath ?>';
-
 
506
				} else {
-
 
507
					window.location = url;
-
 
508
				}
-
 
509
			} else {
-
 
510
				window.location = '<?= $statuspath ?>';
-
 
511
			}
510
		}
512
		}
511
		if ((result === 2) || (result === 3) || result === 5) { //failed or logoff or notyet
513
		if ((result === 2) || (result === 3) || result === 5) { // failed or logoff or notyet
512
			document.form1.UserName.focus();
514
			document.form1.UserName.focus();
513
		}
515
		}
514
	}
516
	}