nieuws: article lists in left layout with images
[minimedit.git] / auth.inc.php
index af02ec3b41b6e915ce3b5fbbc1a2883695db5ab3..772e256129c89abfbc01710fbd195ee8ba82b8d2 100644 (file)
@@ -16,7 +16,18 @@ class User
 
        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 seen()
+       {
+               return @filemtime("{$this->dir}/last.log");
        }
 }