git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
page: read file during article object initialisation
[minimedit.git]
/
login
/
index.php
diff --git
a/login/index.php
b/login/index.php
index 8b4c223914bf31d8befcf26a814d75ca7db80e2c..5cfbdedf8d322d00fd171a1436e48a238a6812f4 100644
(file)
--- a/
login/index.php
+++ b/
login/index.php
@@
-39,6
+39,14
@@
if (empty($User)) {
ob_clean();
require_once 'login/form.inc.php';
$Place['warn'] = $message;
ob_clean();
require_once 'login/form.inc.php';
$Place['warn'] = $message;
+ $Article->title = 'Inloggen';
+ if (isset($_REQUEST['goto'])) {
+ $target = ltrim($_REQUEST['goto'], '/');
+ $target = new ArchiveArticle("$target.html");
+ if ($target->title) {
+ $Article->title .= ' voor ' . $target->title;
+ }
+ }
return TRUE;
}
return TRUE;
}
@@
-50,7
+58,7
@@
if (isset($_REQUEST['goto'])) {
exit;
}
exit;
}
-if (empty($Args) and
!empty($User['admin'])
) {
+if (empty($Args) and
$User and $User->admin
) {
include_once 'login/admin.html';
}
include_once 'login/admin.html';
}