4 require_once "version.php";
5 require_once "config.php";
6 require_once "db-prefs.php";
7 require_once "functions.php";
9 $link = db_connect(DB_HOST
, DB_USER
, DB_PASS
, DB_NAME
);
11 login_sequence($link);
15 <title
>Tiny Tiny RSS
: Preferences
</title
>
16 <link rel
="stylesheet" href
="tt-rss.css" type
="text/css">
18 <?
$user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?
>
19 <?
if ($user_css_url) { ?
>
20 <link type
="text/css" href
="<?= $user_css_url ?>"/>
23 <?
if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?
>
25 <link rel
="stylesheet" href
="tt-rss_compact.css" type
="text/css">
29 <link title
="Compact Stylesheet" rel
="alternate stylesheet"
30 type
="text/css" href
="tt-rss_compact.css"/>
35 <script type
="text/javascript" src
="functions.js"></script
>
36 <script type
="text/javascript" src
="prefs.js"></script
>
38 <!--[if gte IE
5.5000]>
39 <script type
="text/javascript" src
="pngfix.js"></script
>
41 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
44 <body onload
="init()">
46 <table width
="100%" height
="100%" cellspacing
="0" cellpadding
="0" class="main">
47 <?
if (get_pref($link, 'DISPLAY_HEADER')) { ?
>
50 <table cellspacing
="0" cellpadding
="0" width
="100%"><tr
>
51 <td rowspan
="2" class="header" valign
="middle">
52 <img src
="images/ttrss_logo.png" alt
="logo">
54 <td align
="right" valign
="top">
55 <div id
="notify"><span id
="notify_body"></div
>
57 </tr
><tr
><td
class="welcomePrompt">
58 <?
if (!SINGLE_USER_MODE
) { ?
>
59 Hello
, <b
><?
= $_SESSION["name"] ?
></b
>
60 (<a href
="logout.php">Logout
</a
>)
68 <td
class="prefsTabs" align
="left" valign
="bottom">
69 <input id
="genConfigTab" class="prefsTab" type
="submit" value
="Preferences"
70 onclick
="selectTab('genConfig')">
71 <input id
="feedConfigTab" class="prefsTab" type
="submit" value
="Feed Configuration"
72 onclick
="selectTab('feedConfig')">
73 <input id
="filterConfigTab" class="prefsTab" type
="submit" value
="Content Filtering"
74 onclick
="selectTab('filterConfig')">
75 <?
if (get_pref($link, 'ENABLE_LABELS')) { ?
>
76 <input id
="labelConfigTab" class="prefsTab" type
="submit" value
="Label Editor"
77 onclick
="selectTab('labelConfig')">
79 <?
if ($_SESSION["access_level"] >= 10) { ?
>
80 <input id
="userConfigTab" class="prefsTab" type
="submit" value
="User Manager"
81 onclick
="selectTab('userConfig')">
84 <td
class="prefsToolbar" valign
="middle" align
="right">
85 <input type
="submit" onclick
="gotoMain()" class="button" value
="Return to main">
89 <td id
="prefContent" class="prefContent" valign
="top" colspan
="2">
91 <p
>Loading
, please wait
...</p
>
95 <?
if (get_pref($link, 'DISPLAY_FOOTER')) { ?
>
97 <td
class="footer" colspan
="2">
98 <a href
="http://tt-rss.spb.ru/">Tiny
-Tiny RSS
</a
> v
<?
= VERSION ?
> ©
; 2005 Andrew Dolgov
99 <?
if (WEB_DEMO_MODE
) { ?
>
100 <br
>Running in demo mode
, some functionality is disabled
.
107 <?
db_close($link); ?
>