fix plugins/mobile

master
Andrew Dolgov 12 years ago
parent 01568557b5
commit d10e0993b5

@ -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"]);

@ -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"];

@ -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"]);

@ -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"]);

@ -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');

@ -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);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

@ -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 */

@ -18,10 +18,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);
?>

Loading…
Cancel
Save