diff options
Diffstat (limited to 'mobile')
-rw-r--r-- | mobile/functions.php | 8 | ||||
-rw-r--r-- | mobile/home.php | 24 |
2 files changed, 28 insertions, 4 deletions
diff --git a/mobile/functions.php b/mobile/functions.php index 91ca397f9..a773eb940 100644 --- a/mobile/functions.php +++ b/mobile/functions.php @@ -36,7 +36,7 @@ $title = getCategoryTitle($link, $cat_id); print "<ul id='cat-$cat_id' title='$title' myBackLabel='Feeds' - myBackHref='index.php' myBackTarget='_self'>"; + myBackHref='home.php'>"; // print "<li><a href='#cat-actions'>".__('Actions...')."</a></li>"; @@ -292,13 +292,13 @@ selected=\"true\" myBackLabel='$feed_title' myBackHref='feed.php?id=$feed_id&cat=$cat_id'>"; - // print "<h2><a target='_blank' href='$link'>$title</a></h2>"; + print "<h2><a target='_blank' href='$link'>$title</a></h2>"; print "<fieldset>"; - print "<div class=\"row\">"; +/* print "<div class=\"row\">"; print "<label id='title'><a target='_blank' href='$article_link'>$title</a></label>"; - print "</div>"; + print "</div>"; */ $is_starred = (sql_bool_to_bool($line["marked"])) ? "true" : "false"; $is_published = (sql_bool_to_bool($line["published"])) ? "true" : "false"; diff --git a/mobile/home.php b/mobile/home.php new file mode 100644 index 000000000..3ec09c032 --- /dev/null +++ b/mobile/home.php @@ -0,0 +1,24 @@ +<?php + error_reporting(E_ERROR | E_WARNING | E_PARSE); + + header('Content-Type: text/html; charset=utf-8'); + + define('MOBILE_VERSION', true); + + require_once "../config.php"; + require_once "functions.php"; + require_once "../functions.php"; + + require_once "../sessions.php"; + + require_once "../version.php"; + require_once "../db-prefs.php"; + + $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); + + init_connection($link); + + login_sequence($link, true); + + render_categories_list($link); +?> |