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/name: placeholder script to address users
[minimedit.git]
/
auth.inc.php
diff --git
a/auth.inc.php
b/auth.inc.php
index fc30ccfa48db240fb1398507f6f66cede496ee1d..772e256129c89abfbc01710fbd195ee8ba82b8d2 100644
(file)
--- a/
auth.inc.php
+++ b/
auth.inc.php
@@
-16,13
+16,19
@@
class User
function name()
{
function name()
{
- return @file_get_contents("{$this->dir}/name.txt");
+ $name = @file_get_contents("{$this->dir}/name.txt");
+ return htmlspecialchars(implode(' & ', explode("\n", $name)));
}
function admin()
{
return @file_exists("{$this->dir}/.admin");
}
}
function admin()
{
return @file_exists("{$this->dir}/.admin");
}
+
+ function seen()
+ {
+ return @filemtime("{$this->dir}/last.log");
+ }
}
function login_password_verify($input, $test)
}
function login_password_verify($input, $test)