From: Andrew Dolgov Date: Wed, 17 Apr 2013 15:17:23 +0000 (+0400) Subject: fix plugins/mobile X-Git-Tag: 1.7.9~25^2~161 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d10e0993b5afba5e50e2dada02f910d12ce67496;p=tt-rss.git fix plugins/mobile --- diff --git a/plugins/mobile/article.php b/plugins/mobile/article.php index f51c8962..64768c98 100644 --- a/plugins/mobile/article.php +++ b/plugins/mobile/article.php @@ -16,10 +16,6 @@ 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"]); diff --git a/plugins/mobile/backend.php b/plugins/mobile/backend.php index 87279881..4065dc2a 100644 --- a/plugins/mobile/backend.php +++ b/plugins/mobile/backend.php @@ -21,10 +21,6 @@ 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"]; diff --git a/plugins/mobile/cat.php b/plugins/mobile/cat.php index 5164d004..21d04550 100644 --- a/plugins/mobile/cat.php +++ b/plugins/mobile/cat.php @@ -16,10 +16,6 @@ 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"]); diff --git a/plugins/mobile/feed.php b/plugins/mobile/feed.php index e09f9432..345026ef 100644 --- a/plugins/mobile/feed.php +++ b/plugins/mobile/feed.php @@ -16,10 +16,6 @@ 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"]); diff --git a/plugins/mobile/home.php b/plugins/mobile/home.php index 71ef81de..3039635a 100644 --- a/plugins/mobile/home.php +++ b/plugins/mobile/home.php @@ -16,10 +16,6 @@ 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'); diff --git a/plugins/mobile/index.php b/plugins/mobile/index.php index 7154ebdc..9e9c339e 100644 --- a/plugins/mobile/index.php +++ b/plugins/mobile/index.php @@ -16,10 +16,6 @@ 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); ?>