X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/aaa476ce6d0a8723725bcce2c388fdea5c1e98e1..903ef7aadee5cee917ce10f775a47bcf77658bae:/auth.inc.php diff --git a/auth.inc.php b/auth.inc.php old mode 100755 new mode 100644 index ecd29b5..363fc71 --- 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']); +}