]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix plugins/mobile
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 17 Apr 2013 15:17:23 +0000 (19:17 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 17 Apr 2013 15:17:23 +0000 (19:17 +0400)
plugins/mobile/article.php
plugins/mobile/backend.php
plugins/mobile/cat.php
plugins/mobile/feed.php
plugins/mobile/home.php
plugins/mobile/index.php
plugins/mobile/mobile-functions.php
plugins/mobile/prefs.php

index f51c8962c9217fd7b69ea4836504b0774e21b088..64768c98304b8d663017e04ffe939e3248756c24 100644 (file)
        require_once "config.php";
        require_once "mobile-functions.php";
 
-       $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
-
-       init_plugins($link);
-
        login_sequence(true);
 
        $id = db_escape_string($_REQUEST["id"]);
index 872798814c936a13db769959fc30e8ebc5430975..4065dc2a496a1e97f3b7af94902c0ab54c3f853b 100644 (file)
        require_once "version.php";
        require_once "db-prefs.php";
 
-       $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
-
-       init_plugins($link);
-
        if (!$_SESSION["uid"]) return;
 
        $op = $_REQUEST["op"];
index 5164d0049dbb8a23caed195f35d3dd099b061739..21d04550fc993505aafb1f5330c6f4f4668b55db 100644 (file)
        require_once "config.php";
        require_once "mobile-functions.php";
 
-       $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
-
-       init_plugins($link);
-
        login_sequence(true);
 
        $cat_id = db_escape_string($_REQUEST["id"]);
index e09f9432a6f6a7d9a70d633e879ab6fbe20ddd48..345026efd020c0272884a7b9791e5bae895d537c 100644 (file)
        require_once "config.php";
        require_once "mobile-functions.php";
 
-       $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
-
-       init_plugins($link);
-
        login_sequence(true);
 
        $feed_id = db_escape_string($_REQUEST["id"]);
index 71ef81defa1379363b9244a203ad9cc95fc89c2c..3039635a59bcb6a07694aa1fe216afa0335fcc47 100644 (file)
        require_once "config.php";
        require_once "mobile-functions.php";
 
-       $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
-
-       init_plugins($link);
-
        login_sequence(true);
 
        $use_cats = mobile_get_pref('ENABLE_CATS');
index 7154ebdc21bda20ece3cb778123ef46a75275270..9e9c339e3b5d65172c89a3f9f01579b9c27ad630 100644 (file)
        require_once "config.php";
        require_once "mobile-functions.php";
 
-       $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
-
-       init_plugins($link);
-
        login_sequence(true);
 ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
index dd5914516442f1f9d797b1aa5d3a35d5e8984711..1e65a3c36166e7e110b1dd98465cac43d77b5269 100644 (file)
@@ -1,9 +1,12 @@
 <?php
+       require_once "autoload.php";
        require_once "functions.php";
        require_once "sessions.php";
        require_once "version.php";
        require_once "db-prefs.php";
 
+       init_plugins();
+
        define('TTRSS_SESSION_NAME', 'ttrss_m_sid');
 
        /* TODO replace with interface to db-prefs */
index ac7762fe55fcbb72fb6bb1247c53939773d5b029..9c630359c9d0d6a59eee2791249ded758c38fc67 100644 (file)
        require_once "config.php";
        require_once "mobile-functions.php";
 
-       $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
-
-       init_plugins($link);
-
        login_sequence(true);
 ?>