]> git.wh0rd.org Git - tt-rss.git/commitdiff
mobile: less ugly transition to main page
authorAndrew Dolgov <fox@bah.org.ru>
Thu, 17 Dec 2009 19:21:43 +0000 (22:21 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Thu, 17 Dec 2009 19:21:43 +0000 (22:21 +0300)
mobile/functions.php
mobile/home.php [new file with mode: 0644]

index 91ca397f96025c706462d608d78c8170af4689d3..a773eb9407c6e3d0655415039ec66a62acc342ca 100644 (file)
@@ -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>";
        
                                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 (file)
index 0000000..3ec09c0
--- /dev/null
@@ -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); 
+?>