2 require_once "functions.php";
4 basic_nosid_redirect_check();
6 require_once "sessions.php";
8 require_once "sanity_check.php";
9 require_once "version.php";
10 require_once "config.php";
11 require_once "db-prefs.php";
13 $link = db_connect(DB_HOST
, DB_USER
, DB_PASS
, DB_NAME
);
15 login_sequence($link);
17 $dt_add = get_script_dt_add();
22 <title
>Tiny Tiny RSS
: Preferences
</title
>
23 <link rel
="stylesheet" href
="tt-rss.css" type
="text/css">
25 <?
$user_theme = $_SESSION["theme"];
27 <link rel
="stylesheet" type
="text/css" href
="themes/<?= $user_theme ?>/theme.css">
30 <?
$user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?
>
31 <?
if ($user_css_url) { ?
>
32 <link type
="text/css" href
="<?= $user_css_url ?>"/>
35 <?
if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?
>
37 <link rel
="stylesheet" href
="tt-rss_compact.css" type
="text/css">
41 <link title
="Compact Stylesheet" rel
="alternate stylesheet"
42 type
="text/css" href
="tt-rss_compact.css"/>
47 <script type
="text/javascript" src
="functions.js?<?= $dt_add ?>"></script
>
48 <script type
="text/javascript" src
="prefs.js?<?= $dt_add ?>"></script
>
50 <!--[if gte IE
5.5000]>
51 <script type
="text/javascript" src
="pngfix.js"></script
>
52 <link rel
="stylesheet" type
="text/css" href
="tt-rss-ie.css">
54 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
56 <script type
="text/javascript">
57 if (navigator
.userAgent
.match("Opera")) {
58 document
.write('<link rel="stylesheet" type="text/css" href="opera.css">');
65 <div id
="piggie" class="invisible"> 
;</div
>
67 <script type
="text/javascript">
68 if (document
.addEventListener
) {
69 document
.addEventListener("DOMContentLoaded", init
, null);
74 <table width
="100%" height
="100%" cellspacing
="0" cellpadding
="0" class="main">
75 <?
if (get_pref($link, 'DISPLAY_HEADER')) { ?
>
78 <table cellspacing
="0" cellpadding
="0" width
="100%"><tr
>
79 <td rowspan
="2" class="header" valign
="middle">
80 <img src
="images/ttrss_logo.png" alt
="logo">
82 <td valign
="top" class="notifyBox">
83 <div id
="notify"><span id
="notify_body"> 
;</span
></div
>
85 </tr
><tr
><td
class="welcomePrompt">
86 <?
if (!SINGLE_USER_MODE
) { ?
>
87 Hello
, <b
><?
= $_SESSION["name"] ?
></b
>
88 (<a href
="logout.php">Logout
</a
>)
97 <div id
="notify"><span id
="notify_body"> 
;</span
></div
>
98 <div id
="userDlgShadow"><div id
="userDlg"> 
;</div
></div
>
99 </td
><td
class="welcomePrompt">
100 <?
if (!SINGLE_USER_MODE
) { ?
>
101 Hello
, <b
><?
= $_SESSION["name"] ?
></b
>
102 (<a href
="logout.php">Logout
</a
>)
107 <td
class="prefsTabs" align
="left" valign
="bottom">
108 <input id
="genConfigTab" class="prefsTab" type
="submit" value
="Preferences"
109 onclick
="selectTab('genConfig')">
110 <input id
="feedConfigTab" class="prefsTab" type
="submit" value
="My Feeds"
111 onclick
="selectTab('feedConfig')">
112 <?
if (ENABLE_FEED_BROWSER
&& !SINGLE_USER_MODE
) { ?
>
113 <input id
="feedBrowserTab" class="prefsTab" type
="submit" value
="Other Feeds"
114 onclick
="selectTab('feedBrowser')">
116 <input id
="filterConfigTab" class="prefsTab" type
="submit" value
="Content Filtering"
117 onclick
="selectTab('filterConfig')">
118 <?
if (GLOBAL_ENABLE_LABELS
&& get_pref($link, 'ENABLE_LABELS')) { ?
>
119 <input id
="labelConfigTab" class="prefsTab" type
="submit" value
="Label Editor"
120 onclick
="selectTab('labelConfig')">
122 <?
if ($_SESSION["access_level"] >= 10) { ?
>
123 <input id
="userConfigTab" class="prefsTab" type
="submit" value
="User Manager"
124 onclick
="selectTab('userConfig')">
127 <td
class="prefsToolbar" valign
="middle" align
="right">
128 <input type
="submit" onclick
="gotoMain()" class="button" value
="Return to main">
132 <td id
="prefContent" class="prefContent" valign
="top" colspan
="2">
134 <p
>Loading
, please wait
...</p
>
138 <?
if (get_pref($link, 'DISPLAY_FOOTER')) { ?
>
140 <td
class="footer" colspan
="2">
141 <a href
="http://tt-rss.spb.ru/">Tiny
-Tiny RSS
</a
> v
<?
= VERSION ?
> ©
; 2005-2006 Andrew Dolgov
142 <?
if (WEB_DEMO_MODE
) { ?
>
143 <br
>Running in demo mode
, some functionality is disabled
.
150 <?
db_close($link); ?
>
152 <script type
="text/javascript">
154 function statechange() {
155 if (document
.readyState
== "interactive") init();
158 if (document
.readyState
) {
159 if (document
.readyState
== "interactive" || document
.readyState
== "complete") {
162 document
.onreadystatechange
= statechange
;