X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/59d16d1daa1748a056efc2317510fd3d541b7144..fe9c243eac10a3fa13611b67258c6aa97a96c173:/auth.inc.php diff --git a/auth.inc.php b/auth.inc.php old mode 100755 new mode 100644 index 6a5d1d2..363fc71 --- a/auth.inc.php +++ b/auth.inc.php @@ -1,20 +1,13 @@ $inuser, + 'admin' => !empty($inuser) && strtolower($inuser) != 'lid', + 'auth' => "$inuser:$authhash", + ]; } -Auth(); - -$editable = !empty($User) && $User != 'lid'; +if (isset($_COOKIE['login'])) { + global $User; + $User = login($_COOKIE['login']); +}