summaryrefslogtreecommitdiff
path: root/mobile/tt-rss.php
blob: e6943d634666731bab050e0f13d9cc1f37ae339f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?
	require_once "../functions.php"; 
	require_once "functions.php";

	basic_nosid_redirect_check();

	require_once "../sessions.php";

	require_once "../version.php"; 
	require_once "../config.php";
	require_once "../db-prefs.php";

	$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);	

	login_sequence($link);

?>
<html>
<head>
	<title>Tiny Tiny RSS - Mobile</title>
	<link rel="stylesheet" type="text/css" href="mobile.css">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>

<div id="heading">

<div id="opsel">
	<form method="GET">
		<select name="go">
			<option>Feeds</option>
			<option disabled>Preferences</option>
			<option disabled>--------------</option>
			<option disabled>[user feed list]</option>
			<option disabled>--------------</option>
			<option>Logout</option>
		</select>
		<input type="submit" value="Go">
	</form>
</div>

</div>

<div id="content">
<?
	$go = $_GET["go"];

	if (!$go || $go == "Feeds") {
		render_feeds_list($link);
	} else if ($go == "vf") {
		render_headlines($link);	
	} else {
		print "Function not implemented";
	}

?>
</div>

<div id="footer">
	<a href="http://tt-rss.spb.ru/">Tiny-Tiny RSS</a> v<?= VERSION ?> &copy; 2005-2006 Andrew Dolgov
</div>

</body>
</html>