git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
login/emulate: serve subpages instead of redirects
[minimedit.git]
/
login
/
emulate
/
index.php
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
<?php
-ob_clean();
-
-$request = ltrim($Args, '/');
if ($username = @$_REQUEST['login']) {
try {
$user = new User("profile/$username");
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>';
}
}
$Place['pass'] = htmlspecialchars($password) ?: '<em>zelf ingesteld</em>';
}
-include ($request ?: 'index').'.html';