forked from jbergler/meraki-php-excap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
success.php
33 lines (28 loc) · 843 Bytes
/
success.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
$logoutUrl = urldecode($_REQUEST['logout_url']);
$nextUrl = urldecode($_REQUEST['continue']);
setcookie("LogoutURL", $logoutUrl, 0);
if (preg_match("/^http:\/\/", $nextUrl)) {
header("Location: {$nextUrl}");
echo "You are being redirected to: {$nextUrl}";
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Successful</title>
<script type="text/javascript" src="assets/jquery-2.1.0.min.js"></script>
<link rel="stylesheet" href="assets/bootstrap.min.css">
<link rel="stylesheet" href="assets/style.css">
</head>
<body>
<div class="container">
<h2>You are now logged in!</h2>
<h4>Want to <a href="<?= $logoutUrl ?>">logout?</a></h4>
</div>
</body>
</html>