login/emulate: serve subpages instead of redirects
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 15 Oct 2019 03:17:08 +0000 (05:17 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 16 Oct 2019 16:39:14 +0000 (18:39 +0200)
login/emulate/index.php

index f240236129590766ffa79ff599f7898fe75be3e6..c3439a18c9453fbc84333bf837d222d1e24e29fe 100644 (file)
@@ -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';