default-notice.php 1.4 KB
Newer Older
Lukas Haemmerle's avatar
Lukas Haemmerle committed
1
<?php // Copyright (c) 2018, SWITCH ?>
haemmer's avatar
haemmer committed
2

3
<!-- Identity Provider Selection: Start -->
haemmer's avatar
haemmer committed
4
<h1><?php echo getLocalString('settings'); ?></h1> 
5
<form id="IdPList" name="IdPList" method="post" onSubmit="return checkForm()" action="<?php echo $actionURL ?>">
haemmer's avatar
haemmer committed
6
	<div id="userInputArea">
haemmer's avatar
haemmer committed
7
		<p class="promptMessage"><?php echo getLocalString('confirm_permanent_selection'); ?></p>
haemmer's avatar
haemmer committed
8
		<p><?php echo getLocalString('permanent_cookie_notice'); ?></p>
haemmer's avatar
haemmer committed
9
		<div style="text-align: center">
haemmer's avatar
haemmer committed
10 11
			<select name="permanent_user_idp" id="userIdPSelection">
				<option value="<?php echo $permanentUserIdP ?>" logo="<?php echo $permanentUserIdPLogo ?>"><?php echo $permanentUserIdPName ?></option>
haemmer's avatar
haemmer committed
12 13 14
			</select>
			<input type="submit" accesskey="c" name="clear_user_idp" value="<?php echo getLocalString('delete_permanent_cookie_button') ?>">
			<?php if (isValidShibRequest()) : ?>
15
			<br /><br />
haemmer's avatar
haemmer committed
16
			<input type="submit" accesskey="s" name="Select" name="permanent" value="<?php echo getLocalString('goto_sp') ?>">
haemmer's avatar
haemmer committed
17
			<?php endif ?>
haemmer's avatar
haemmer committed
18 19 20 21 22
			<p>
			<?php $scriptURL = "https://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'] ?>
			<?php $fullURL = "<br /><a href=".$scriptURL.">".$scriptURL."</a>" ?>
			<?php echo sprintf(getLocalString('permanent_cookie_note'), $fullURL) ?>
			</p>
haemmer's avatar
haemmer committed
23 24
		</div>
	</div>
haemmer's avatar
haemmer committed
25
</form>
26

haemmer's avatar
haemmer committed
27
<?php if (getLocalString('additional_info') != '') { ?>
haemmer's avatar
haemmer committed
28
<p><?php echo getLocalString('additional_info') ?></p>
haemmer's avatar
haemmer committed
29
<?php } ?>
30
<!-- Identity Provider Selection: End -->