X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/9de683f8c399ee4a78fbc86b5ee96ce5662acf97..97bc8f54b09859842e53d4886234a3b09122ea71:/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']); +}