]> git.wh0rd.org - tt-rss.git/blame - plugins/mobile/home.php
fix plugins/mobile
[tt-rss.git] / plugins / mobile / home.php
CommitLineData
9d9ed2b3
AD
1<?php
2 error_reporting(E_ERROR | E_WARNING | E_PARSE);
3
4 header('Content-Type: text/html; charset=utf-8');
5
6 define('MOBILE_VERSION', true);
7
8 $basedir = dirname(dirname(dirname(__FILE__)));
9
10 set_include_path(
11 dirname(__FILE__) . PATH_SEPARATOR .
12 $basedir . PATH_SEPARATOR .
13 "$basedir/include" . PATH_SEPARATOR .
14 get_include_path());
15
16 require_once "config.php";
17 require_once "mobile-functions.php";
18
a42c55f0 19 login_sequence(true);
9d9ed2b3 20
a42c55f0
AD
21 $use_cats = mobile_get_pref('ENABLE_CATS');
22 $offset = (int) db_escape_string($_REQUEST["skip"]);
9d9ed2b3
AD
23
24 if ($use_cats) {
25 render_categories_list($link);
26 } else {
a42c55f0 27 render_flat_feed_list($offset);
9d9ed2b3
AD
28 }
29?>