]> git.wh0rd.org - tt-rss.git/blame - mobile/index.php
experimental split of public calls into public.php (refs #389)
[tt-rss.git] / mobile / index.php
CommitLineData
3518718b
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 require_once "../config.php";
9 require_once "functions.php";
10 require_once "../functions.php";
11
12 require_once "../sessions.php";
13
14 require_once "../version.php";
15 require_once "../db-prefs.php";
16
17 $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
18
19 init_connection($link);
20
21 login_sequence($link, true);
22?>
23<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
24 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
25
26<html xmlns="http://www.w3.org/1999/xhtml">
27<head>
28<title>Tiny Tiny RSS</title>
29<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
30<link rel="apple-touch-icon" href="../lib/iui/iui-logo-touch-icon.png" />
31<meta name="apple-touch-fullscreen" content="YES" />
32<style type="text/css" media="screen">@import "../lib/iui/iui.css";</style>
33<script type="application/x-javascript" src="../lib/iui/iui.js"></script>
34<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6101b0e1
AD
35<script type="text/javascript" src="../lib/prototype.js"></script>
36<script type="text/javascript" src="mobile.js"></script>
a6d56d81 37<style type="text/css" media="screen">@import "mobile.css";</style>
3518718b
AD
38</head>
39
40<style type="text/css">
41 img { max-width : 75%; }
42
43 li.oldItem {
44 color : gray;
45 }
46
3e092346
AD
47 #myBackButton {
48 display: none;
49 left: 6px;
50 right: auto;
51 padding: 0;
52 max-width: 55px;
53 border-width: 0 8px 0 14px;
54 -webkit-border-image: url(../lib/iui/backButton.png) 0 8 0 14;
55 }
56
3518718b
AD
57 img.tinyIcon {
58 max-width : 16px;
59 max-height : 16px;
60 margin-right : 10px;
61 vertical-align : middle;
62 }
87e3d2dd
AD
63
64 a img {
65 border-width : 0px;
66 }
3518718b
AD
67</style>
68
3518718b
AD
69<body>
70 <div class="toolbar">
71 <h1 id="pageTitle"></h1>
3e092346 72 <a id="myBackButton" class="button" href="#"></a>
f0a0c1ff 73 <a class="button" href="prefs.php">Preferences</a>
3518718b 74 </div>
b1bd222c
AD
75
76 <?php
95004daf
AD
77 $use_cats = mobile_get_pref($link, 'ENABLE_CATS');
78 $offset = (int) db_escape_string($_REQUEST["skip"]);
b1bd222c
AD
79
80 if ($use_cats) {
81 render_categories_list($link);
82 } else {
95004daf 83 render_flat_feed_list($link, $offset);
b1bd222c
AD
84 }
85 ?>
3518718b
AD
86
87</body>
88</html>