X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/d4fc5883a123ce28c56a963e77c700db04e26ac9..7333dc046075c7873b15643ecd73f6e3b32c7a79:/auth.inc.php diff --git a/auth.inc.php b/auth.inc.php old mode 100755 new mode 100644 index 1a72379..363fc71 --- a/auth.inc.php +++ b/auth.inc.php @@ -1,12 +1,42 @@ $inuser, + 'admin' => !empty($inuser) && strtolower($inuser) != 'lid', + 'auth' => "$inuser:$authhash", + ]; +} + +if (isset($_COOKIE['login'])) { + global $User; + $User = login($_COOKIE['login']); +}