-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathshowme.php
39 lines (32 loc) · 932 Bytes
/
showme.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
34
35
36
37
38
39
<?php
// IF YOU HAVE NOT DONE SO, PLEASE READ THE README FILE FOR DIRECTIONS!!!
/**
* OpenID-LDAP-PHP
* An open source PHP-based OpenID IdP package using LDAP as backend.
*
* By Zdravko Stoychev <zdravko (at) 5group (dot) com> aka Dako.
* Copyright 1996-2011 by 5Group & Co. http://www.5group.com/
* See LICENSE file for more details.
*/
// This code runs if the form has been submitted
if (isset($_POST['submit'])) {
// Get username from POST request
$userid = trim($_POST['login']);
if ($userid == "") {
$userid = 'index.php';
}
// Redirect to nwe URL
header('Location: ' . $userid);
echo '<html>
<head>
<title>...</title>
<meta http-equiv="refresh" content="0;url=' . $userid . '">
</head>
<body>
<p>Redirecting to <a href="' . $userid . '">' . $userid . '</a></p>
</body>
</html>';
} else {
// Show error message
echo 'You can not use this page directly';
}