From: Andrew Dolgov Date: Mon, 21 Nov 2005 04:25:48 +0000 (+0100) Subject: login redirects to main page if SINGLE_USER_MODE X-Git-Tag: schema_feature_freeze_for_1.1~151 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4585ff0eabea94882cfec5383a6c3d38cd512dd4;p=tt-rss.git login redirects to main page if SINGLE_USER_MODE --- diff --git a/login.php b/login.php index 92646c16..83293111 100644 --- a/login.php +++ b/login.php @@ -5,6 +5,11 @@ require_once "config.php"; require_once "functions.php"; + if (SINGLE_USER_MODE) { + header("Location: tt-rss.php"); + exit; + } + $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); $login = $_POST["login"];