X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/621fc2f9638a1a92aa8535310e7852de5542f11e..b9757db57858fdcff8af1a6566e299559e491b17:/login/post/index.php diff --git a/login/post/index.php b/login/post/index.php index 0beb42f..442efef 100644 --- a/login/post/index.php +++ b/login/post/index.php @@ -1,4 +1,6 @@ login) { http_response_code(303); $target = urlencode($_SERVER['REQUEST_URI']); @@ -13,22 +15,22 @@ elseif ($User->admin('user') and $username = @$_REQUEST['login']) { printf('

%s

', $e->getMessage()); return; } - $Article->title = $user->login . ': ' . $Article->title; + $Page->title = $user->login . ': ' . $Page->title; } else { $user = $User; } -$Place['login/name'] = $user->name ?: 'bewoner'; -$Place['user'] = $user->login; +$Page->place['login/name'] = $user->name ?: 'bewoner'; +$Page->place['user'] = $user->login; if ( $password = trim(@file_get_contents("{$user->dir}/.passwd")) ) { if (substr($password, 0, 1) == '$') { $password = NULL; // hashed } - $Place['pass'] = htmlspecialchars($password) ?: 'zelf ingesteld'; + $Page->place['pass'] = htmlspecialchars($password) ?: 'zelf ingesteld'; } else { - $Place['pass'] = 'onbekend'; + $Page->place['pass'] = 'onbekend'; } print ''."\n";