4 require_once "sanity_check.php";
5 require_once "version.php";
6 require_once "config.php";
7 require_once "db-prefs.php";
8 require_once "functions.php";
10 $link = db_connect(DB_HOST
, DB_USER
, DB_PASS
, DB_NAME
);
12 login_sequence($link);
16 <title
>Tiny Tiny RSS
: Preferences
</title
>
17 <link rel
="stylesheet" href
="tt-rss.css" type
="text/css">
19 <?
$user_theme = $_SESSION["theme"];
21 <link rel
="stylesheet" type
="text/css" href
="themes/<?= $user_theme ?>/theme.css">
24 <?
$user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?
>
25 <?
if ($user_css_url) { ?
>
26 <link type
="text/css" href
="<?= $user_css_url ?>"/>
29 <?
if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?
>
31 <link rel
="stylesheet" href
="tt-rss_compact.css" type
="text/css">
35 <link title
="Compact Stylesheet" rel
="alternate stylesheet"
36 type
="text/css" href
="tt-rss_compact.css"/>
41 <script type
="text/javascript" src
="functions.js"></script
>
42 <script type
="text/javascript" src
="prefs.js"></script
>
44 <!--[if gte IE
5.5000]>
45 <script type
="text/javascript" src
="pngfix.js"></script
>
47 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
50 <body onload
="init()">
52 <table width
="100%" height
="100%" cellspacing
="0" cellpadding
="0" class="main">
53 <?
if (get_pref($link, 'DISPLAY_HEADER')) { ?
>
56 <table cellspacing
="0" cellpadding
="0" width
="100%"><tr
>
57 <td rowspan
="2" class="header" valign
="middle">
58 <img src
="images/ttrss_logo.png" alt
="logo">
60 <td valign
="top" class="notifyBox">
61 <div id
="notify"><span id
="notify_body"> 
;</span
></div
>
63 </tr
><tr
><td
class="welcomePrompt">
64 <?
if (!SINGLE_USER_MODE
) { ?
>
65 Hello
, <b
><?
= $_SESSION["name"] ?
></b
>
66 (<a href
="logout.php">Logout
</a
>)
75 <div id
="notify"><span id
="notify_body"> 
;</span
></div
>
76 <div id
="userDlgShadow"><div id
="userDlg"> 
;</div
></div
>
77 </td
><td
class="welcomePrompt">
78 <?
if (!SINGLE_USER_MODE
) { ?
>
79 Hello
, <b
><?
= $_SESSION["name"] ?
></b
>
80 (<a href
="logout.php">Logout
</a
>)
85 <td
class="prefsTabs" align
="left" valign
="bottom">
86 <input id
="genConfigTab" class="prefsTab" type
="submit" value
="Preferences"
87 onclick
="selectTab('genConfig')">
88 <input id
="feedConfigTab" class="prefsTab" type
="submit" value
="Feed Configuration"
89 onclick
="selectTab('feedConfig')">
90 <input id
="filterConfigTab" class="prefsTab" type
="submit" value
="Content Filtering"
91 onclick
="selectTab('filterConfig')">
92 <?
if (GLOBAL_ENABLE_LABELS
&& get_pref($link, 'ENABLE_LABELS')) { ?
>
93 <input id
="labelConfigTab" class="prefsTab" type
="submit" value
="Label Editor"
94 onclick
="selectTab('labelConfig')">
96 <?
if ($_SESSION["access_level"] >= 10) { ?
>
97 <input id
="userConfigTab" class="prefsTab" type
="submit" value
="User Manager"
98 onclick
="selectTab('userConfig')">
101 <td
class="prefsToolbar" valign
="middle" align
="right">
102 <input type
="submit" onclick
="gotoMain()" class="button" value
="Return to main">
106 <td id
="prefContent" class="prefContent" valign
="top" colspan
="2">
108 <p
>Loading
, please wait
...</p
>
112 <?
if (get_pref($link, 'DISPLAY_FOOTER')) { ?
>
114 <td
class="footer" colspan
="2">
115 <a href
="http://tt-rss.spb.ru/">Tiny
-Tiny RSS
</a
> v
<?
= VERSION ?
> ©
; 2005 Andrew Dolgov
116 <?
if (WEB_DEMO_MODE
) { ?
>
117 <br
>Running in demo mode
, some functionality is disabled
.
124 <?
db_close($link); ?
>