login redirects to main page if SINGLE_USER_MODE

This commit is contained in:
Andrew Dolgov 2005-11-21 05:25:48 +01:00
parent c7a03b7a53
commit 4585ff0eab
1 changed files with 5 additions and 0 deletions

View File

@ -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"];