diff --git a/plugins/mobile/article.php b/plugins/mobile/article.php index f51c8962c..64768c983 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 872798814..4065dc2a4 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 5164d0049..21d04550f 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 e09f9432a..345026efd 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 71ef81def..3039635a5 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 7154ebdc2..9e9c339e3 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); ?>