]> git.wh0rd.org Git - tt-rss.git/commitdiff
login redirects to main page if SINGLE_USER_MODE
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 21 Nov 2005 04:25:48 +0000 (05:25 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 21 Nov 2005 04:25:48 +0000 (05:25 +0100)
login.php

index 92646c16a1d4146bc8dfb44e98188686a5106783..832931117a9ac536f9e08def48c609988ba4010a 100644 (file)
--- 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"];