nieuws: article lists in left layout with images
[minimedit.git] / auth.inc.php
index fc30ccfa48db240fb1398507f6f66cede496ee1d..772e256129c89abfbc01710fbd195ee8ba82b8d2 100644 (file)
@@ -16,13 +16,19 @@ 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");
+       }
 }
 
 function login_password_verify($input, $test)