]> git.wh0rd.org - tt-rss.git/blob - plugins/mobile/feed.php
Updated Swedish translation for 1.7.9
[tt-rss.git] / plugins / mobile / feed.php
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
19 login_sequence(true);
20
21 $feed_id = db_escape_string($_REQUEST["id"]);
22 $cat_id = db_escape_string($_REQUEST["cat"]);
23 $offset = (int) db_escape_string($_REQUEST["skip"]);
24 $search = db_escape_string($_REQUEST["search"]);
25 $is_cat = (bool) db_escape_string($_REQUEST["is_cat"]);
26
27 render_headlines_list($feed_id, $cat_id, $offset, $search, $is_cat);
28 ?>
29