]>
git.wh0rd.org - tt-rss.git/blob - mobile/tt-rss.php
2 require_once "../functions.php";
3 require_once "functions.php";
5 basic_nosid_redirect_check();
7 require_once "../sessions.php";
9 require_once "../version.php";
10 require_once "../config.php";
11 require_once "../db-prefs.php";
13 $link = db_connect(DB_HOST
, DB_USER
, DB_PASS
, DB_NAME
);
15 login_sequence($link);
17 /* perform various redirect-needing subops */
19 $subop = db_escape_string($_GET["subop"]);
22 if ($subop == "tc" && !$go) {
24 $cat_id = db_escape_string($_GET["id"]);
27 db_query($link, "UPDATE ttrss_feed_categories SET
28 collapsed = NOT collapsed WHERE id = '$cat_id' AND owner_uid = " .
31 if ($_COOKIE["ttrss_vf_uclps"] != 1) {
32 setcookie("ttrss_vf_uclps", 1);
34 setcookie("ttrss_vf_uclps", 0);
38 header("Location: tt-rss.php");
42 $ts_id = db_escape_string($_GET["ts"]);
44 if ($go == "vf" && $ts_id) {
45 $result = db_query($link, "UPDATE ttrss_user_entries SET marked = NOT marked
46 WHERE ref_id = '$ts_id' AND owner_uid = " . $_SESSION["uid"]);
47 $query_string = preg_replace("/&ts=[0-9]*/", "", $_SERVER["QUERY_STRING"]);
48 header("Location: tt-rss.php?$query_string");
54 <title
>Tiny Tiny RSS
- Mobile
</title
>
55 <link rel
="stylesheet" type
="text/css" href
="mobile.css">
56 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
63 render_feeds_list($link);
64 } else if ($go == "vf") {
65 render_headlines($link);
66 } else if ($go == "view") {
67 render_article($link);
69 print "Function not implemented";
76 <a href
="http://tt-rss.spb.ru/">Tiny
-Tiny RSS
</a
> v
<?
= VERSION ?
> ©
; 2005-2006 Andrew Dolgov