thumb: indicate 1 month caching of generated output
[minimedit.git] / auth.inc.php
index ca34e4f9de909316bcb904955341913f64e6dee0..4d9b29e2a297f00e05184cdb954e54c802d1c958 100644 (file)
@@ -27,6 +27,16 @@ class User
                return htmlspecialchars(implode(' & ', explode("\n", $this->rawname)));
        }
 
+       function html()
+       {
+               return $this->name ?: $this->login;
+       }
+
+       function email()
+       {
+               return rtrim(@file_get_contents("{$this->dir}/email.txt"));
+       }
+
        function admin()
        {
                return @file_exists("{$this->dir}/.admin");