git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54e0061
)
login/emulate: serve subpages instead of redirects
author
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 15 Oct 2019 03:17:08 +0000
(
05:17
+0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 16 Oct 2019 16:39:14 +0000
(18:39 +0200)
login/emulate/index.php
patch
|
blob
|
history
diff --git
a/login/emulate/index.php
b/login/emulate/index.php
index f240236129590766ffa79ff599f7898fe75be3e6..c3439a18c9453fbc84333bf837d222d1e24e29fe 100644
(file)
--- a/
login/emulate/index.php
+++ b/
login/emulate/index.php
@@
-1,7
+1,4
@@
<?php
-ob_clean();
-
-$request = ltrim($Args, '/');
if ($username = @$_REQUEST['login']) {
try {
$user = new User("profile/$username");
@@
-24,4
+21,3
@@
if ( $password = trim(@file_get_contents("{$user->dir}/.passwd")) ) {
}
$Place['pass'] = htmlspecialchars($password) ?: '<em>zelf ingesteld</em>';
}
-include ($request ?: 'index').'.html';