]>
Commit | Line | Data |
---|---|---|
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 | ||
19 | $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); | |
20 | ||
21 | init_connection($link); | |
22 | ||
23 | login_sequence($link, true); | |
24 | ||
25 | $use_cats = mobile_get_pref($link, 'ENABLE_CATS'); | |
26 | $offset = (int) db_escape_string($link, $_REQUEST["skip"]); | |
27 | ||
28 | if ($use_cats) { | |
29 | render_categories_list($link); | |
30 | } else { | |
31 | render_flat_feed_list($link, $offset); | |
32 | } | |
33 | ?> |