]> git.wh0rd.org - tt-rss.git/commitdiff
register: include functions.php before checking for action parameter to set proper...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 12 Apr 2012 10:03:34 +0000 (14:03 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 12 Apr 2012 10:03:34 +0000 (14:03 +0400)
register.php

index 97cea47cba18ef6cd4b3050309e39beb48815159..fbcea845dc6f4f9fa11f67f69170eb472d296ba6 100644 (file)
@@ -9,14 +9,14 @@
 
        require_once 'lib/phpmailer/class.phpmailer.php';
 
-       $action = $_REQUEST["action"];
-
        require_once "functions.php";
        require_once "sessions.php";
        require_once "sanity_check.php";
        require_once "config.php";
        require_once "db.php";
 
+       $action = $_REQUEST["action"];
+
        $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
 
        if (!init_connection($link)) return;