Subversion Repositories ALCASAR

Rev

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

Rev 2702 Rev 2743
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: intercept.php 2702 2019-03-05 21:55:14Z tom.houdayer $
2
# $Id: intercept.php 2743 2019-07-15 21:43:53Z rexy $
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 532... Line 532...
532
<body onLoad="javascript:doOnLoad(<?= $result ?>,'<?= $userurl ?>','<?= $redirurl ?>','<?= $adminurl ?>','<?= $timeleft ?>')">
532
<body onLoad="javascript:doOnLoad(<?= $result ?>,'<?= $userurl ?>','<?= $redirurl ?>','<?= $adminurl ?>','<?= $timeleft ?>')">
533
	<center>
533
	<center>
534
 
534
 
535
	<?php if ($result === 2 || $result === 3 || $result === 5): // failed or logoff or notyet ?>
535
	<?php if ($result === 2 || $result === 3 || $result === 5): // failed or logoff or notyet ?>
536
	<div id="logon">
536
	<div id="logon">
-
 
537
		<table id="mobile-logon-header">
-
 
538
			<tr>
-
 
539
				<td width="20%">
-
 
540
					<img id="logo-organ" class="mobile-only" src="/images/organisme.png">
-
 
541
				</td>
-
 
542
				<td width="60%">
537
		<h1><?= $organisme ?></h1>
543
					<h1><?= $organisme ?></h1>
538
		<h2><?= $l_loggedcont ?></h2>
544
					<h2><?= $l_loggedcont ?></h2>
539
		<?php if ($result === 2): // failed ?>
545
					<?php if ($result === 2): // failed ?>
540
			<h3><?= $l_loginfailed ?></h3>
546
						<h3 style="text-align: center"><?= $l_loginfailed ?></h3>
541
			<?php if ($reply): // traitement du reply ... ?>
547
						<?php if ($reply): // traitement du reply ... ?>
542
				<center><?= $reply ?><br><br></center>
548
							<center><?= $reply ?><br><br></center>
543
			<?php endif; ?>
549
						<?php endif; ?>
544
		<?php endif;
550
					<?php endif;
545
		if ($userurl === 'http://logout/') $userurl = 'http://www.google.com'; // Avoid cyclic logout
551
					if ($userurl === 'http://logout/') $userurl = 'http://www.google.com'; // Avoid cyclic logout
546
		?>
552
					?>
-
 
553
				</td>
-
 
554
				<td width="20%">
-
 
555
				</td>
-
 
556
			</tr>
-
 
557
		</table>
-
 
558
 
-
 
559
 
547
		<img id="logo-alcasar" src="/images/logo-alcasar.png">
560
		<img id="logo-alcasar" src="/images/logo-alcasar.png">
548
		<form name="form1" method="post" action="<?= $loginpath ?>">
561
		<form name="form1" method="post" action="<?= $loginpath ?>">
549
			<input type="hidden" name="challenge" value="<?= $challenge ?>">
562
			<input type="hidden" name="challenge" value="<?= $challenge ?>">
550
			<input type="hidden" name="userurl" value="<?= $userurl ?>">
563
			<input type="hidden" name="userurl" value="<?= $userurl ?>">
551
			<table id="boite-logon">
564
			<table id="boite-logon">
552
				<tr>
565
				<tr>
553
					<td width="20%" rowspan="4"><img id="logo-organ" src="/images/organisme.png"></td>
566
					<td class="desktop-only" width="20%" rowspan="4"> <img id="logo-organ" src="/images/organisme.png"></td>
554
					<td width="30%" align="right"><?= $l_user ?></td>
567
					<td class="desktop-only" width="30%" align="right"><?= $l_user ?></td>
555
					<td width="50%" align="left"><input type="text" maxLength="32" name="username" autocomplete="off"></td>
568
					<td class="desktop-only" width="50%" align="left"><input type="text" maxLength="32" name="username" autocomplete="off"></td>
-
 
569
					<td class="mobile-only" width="100%" align="center"><input type="text" maxLength="32" name="username" autocomplete="off" placeholder="<?= $l_user ?>"></td>
556
				</tr>
570
				</tr>
557
				<tr>
571
				<tr>
558
					<td align="right"><?= $l_password ?></td>
572
					<td class="desktop-only" align="right"><?= $l_password ?></td>
559
					<td align="left"><input maxLength="32" type="password" name="password" autocomplete="off"></td>
573
					<td class="desktop-only" align="left"><input maxLength="32" type="password" name="password" autocomplete="off"></td>
-
 
574
 
-
 
575
					<td class="mobile-only" width="100%" align="center"><input maxLength="32" type="password" name="password" autocomplete="off" placeholder="<?= $l_password  ?>"></td>
560
				</tr>
576
				</tr>
561
				<tr>
577
				<tr>
562
					<td height="23" align="left"><input value="<?= $l_boutonO ?>" type="submit" name="button"></td>
578
					<td height="23" id="authenticate-button" align="center"><input value="<?= $l_boutonO ?>" type="submit" name="button"></td>
563
					<?php if ($service_SMS_status): ?>
579
					<?php if ($service_SMS_status): ?>
564
						<td><a href="autoregistrationinfo.php"><?= $l_autoregistration ?></a></td>
580
						<td><a href="autoregistrationinfo.php"><?= $l_autoregistration ?></a></td>
565
					<?php endif; ?>
581
					<?php endif; ?>
566
				</tr>
582
				</tr>
567
			</table>
583
			</table>