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"]);
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"];
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"]);
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"]);
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');
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"
<?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 */
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);
?>