git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nieuws: replace placeholders in article contents
[minimedit.git]
/
auth.inc.php
diff --git
a/auth.inc.php
b/auth.inc.php
index 772e256129c89abfbc01710fbd195ee8ba82b8d2..631bf8b06cccb33f6e64bce65d217c29cdb50acf 100644
(file)
--- a/
auth.inc.php
+++ b/
auth.inc.php
@@
-14,10
+14,14
@@
class User
return $this->$col = $this->$col(); # run method and cache
}
return $this->$col = $this->$col(); # run method and cache
}
+ function rawname()
+ {
+ return @file_get_contents("{$this->dir}/name.txt");
+ }
+
function name()
{
function name()
{
- $name = @file_get_contents("{$this->dir}/name.txt");
- return htmlspecialchars(implode(' & ', explode("\n", $name)));
+ return htmlspecialchars(implode(' & ', explode("\n", $this->rawname)));
}
function admin()
}
function admin()