X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/aaa476ce6d0a8723725bcce2c388fdea5c1e98e1..61170ad9e7bd42ea74fed5d5fe5b7227e28a0cc2:/auth.inc.php diff --git a/auth.inc.php b/auth.inc.php index ecd29b5..363fc71 100755 --- a/auth.inc.php +++ b/auth.inc.php @@ -1,19 +1,13 @@ $inuser, + 'admin' => !empty($inuser) && strtolower($inuser) != 'lid', + 'auth' => "$inuser:$authhash", + ]; +} - global $User, $Admin; - $User = $authname; - $Admin = !empty($User) && $User != 'lid' ? $User : FALSE; -}); +if (isset($_COOKIE['login'])) { + global $User; + $User = login($_COOKIE['login']); +}