2 require_once "version.php";
3 require_once "config.php";
4 require_once "db-prefs.php";
6 $link = db_connect(DB_HOST
, DB_USER
, DB_PASS
, DB_NAME
);
10 <title
>Tiny Tiny RSS
: Preferences
</title
>
11 <link rel
="stylesheet" href
="tt-rss.css" type
="text/css">
13 <?
if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?
>
15 <link rel
="stylesheet" href
="tt-rss_compact.css" type
="text/css">
19 <link title
="Compact Stylesheet" rel
="alternate stylesheet"
20 type
="text/css" href
="tt-rss_compact.css"/>
25 <script type
="text/javascript" src
="functions.js"></script
>
26 <script type
="text/javascript" src
="prefs.js"></script
>
28 <!--[if gte IE
5.5000]>
29 <script type
="text/javascript" src
="pngfix.js"></script
>
31 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
34 <body onload
="init()">
36 <table width
="100%" height
="100%" cellspacing
="0" cellpadding
="0" class="main">
37 <?
if (get_pref($link, 'DISPLAY_HEADER')) { ?
>
40 <table cellspacing
="0" cellpadding
="0" width
="100%"><tr
>
41 <td
class="header" valign
="middle">
42 <img src
="images/ttrss_logo.png" alt
="logo">
44 <td align
="right" valign
="top">
45 <div id
="notify"><span id
="notify_body"></div
>
52 <td
class="prefsTabs" align
="left" valign
="bottom">
53 <input id
="genConfigTab" class="prefsTab" type
="submit" value
="User Preferences"
54 onclick
="selectTab('genConfig')">
55 <input id
="feedConfigTab" class="prefsTab" type
="submit" value
="Feed Configuration"
56 onclick
="selectTab('feedConfig')">
57 <input id
="filterConfigTab" class="prefsTab" type
="submit" value
="Content Filtering"
58 onclick
="selectTab('filterConfig')">
59 <?
if (get_pref($link, 'ENABLE_LABELS')) { ?
>
60 <input id
="labelConfigTab" class="prefsTab" type
="submit" value
="Label Editor"
61 onclick
="selectTab('labelConfig')">
64 <td
class="prefsToolbar" valign
="middle" align
="right">
65 <input type
="submit" onclick
="gotoMain()" class="button" value
="Return to main">
69 <td id
="prefContent" class="prefContent" valign
="top" colspan
="2">
71 <p
>Loading
, please wait
...</p
>
75 <?
if (get_pref($link, 'DISPLAY_FOOTER')) { ?
>
77 <td
class="footer" colspan
="2">
78 <a href
="http://bah.spb.su/~fox/tt-rss/">Tiny
-Tiny RSS
</a
> v
<?
= VERSION ?
> ©
; 2005 Andrew Dolgov
79 <?
if (WEB_DEMO_MODE
) { ?
>
80 <br
>Running in demo mode
, some functionality is disabled
.
87 <?
db_close($link); ?
>