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 <?php
$user_theme = $_SESSION["theme"];
27 <link rel
="stylesheet" type
="text/css" href
="themes/<?php echo $user_theme ?>/theme.css">
30 <?php
if ($user_theme) { $theme_image_path = "themes/$user_theme/"; } ?
>
32 <?php
$user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?
>
33 <?php
if ($user_css_url) { ?
>
34 <link type
="text/css" href
="<?php echo $user_css_url ?>"/>
37 <?php
if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?
>
39 <link rel
="stylesheet" href
="tt-rss_compact.css" type
="text/css">
43 <link title
="Compact Stylesheet" rel
="alternate stylesheet"
44 type
="text/css" href
="tt-rss_compact.css"/>
48 <link rel
="shortcut icon" type
="image/png" href
="images/favicon.png">
50 <script type
="text/javascript" src
="prototype.js"></script
>
52 <script type
="text/javascript" src
="functions.js?<?php echo $dt_add ?>"></script
>
53 <script type
="text/javascript" src
="prefs.js?<?php echo $dt_add ?>"></script
>
55 <div id
="infoBoxShadow"><div id
="infoBox">BAH
</div
></div
>
57 <!--[if gte IE
5.5000]>
58 <script type
="text/javascript" src
="pngfix.js"></script
>
59 <link rel
="stylesheet" type
="text/css" href
="tt-rss-ie.css">
61 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
63 <script type
="text/javascript">
64 if (navigator
.userAgent
.match("Opera")) {
65 document
.write('<link rel="stylesheet" type="text/css" href="opera.css">');
67 if (navigator
.userAgent
.match("Gecko") && !navigator
.userAgent
.match("KHTML")) {
68 document
.write('<link rel="stylesheet" type="text/css" href="gecko.css">');
75 <div id
="piggie"> 
;</div
>
77 <iframe id
="backReqBox"></iframe
>
79 <script type
="text/javascript">
80 if (document
.addEventListener
) {
81 document
.addEventListener("DOMContentLoaded", init
, null);
86 <ul id
="debug_output"></ul
>
88 <div id
="fatal_error"><div id
="fatal_error_inner">
90 <div id
="fatal_error_msg">Unknown Error
</div
>
93 <table width
="100%" height
="100%" cellspacing
="0" cellpadding
="0" class="main">
94 <?php
if (get_pref($link, 'DISPLAY_HEADER')) { ?
>
97 <table cellspacing
="0" cellpadding
="0" width
="100%"><tr
>
98 <td rowspan
="2" class="header" valign
="middle">
99 <img src
="<?php echo $theme_image_path ?>images/ttrss_logo.png" alt
="Tiny Tiny RSS">
101 <td valign
="top" class="notifyBox">
102 <div id
="notify" class="notify"><span id
="notify_body"> 
;</span
></div
>
104 </tr
><tr
><td
class="welcomePrompt">
105 <?php
if (!SINGLE_USER_MODE
) { ?
>
106 Hello
, <b
><?php
echo $_SESSION["name"] ?
></b
>
107 (<a href
="logout.php">Logout
</a
>)
116 <div id
="notify" class="notify_sm"><span id
="notify_body"> 
;</span
></div
>
117 <div id
="userDlgShadow"><div id
="userDlg"> 
;</div
></div
>
118 </td
><td
class="welcomePrompt">
119 <?php
if (!SINGLE_USER_MODE
) { ?
>
120 Hello
, <b
><?php
echo $_SESSION["name"] ?
></b
>
121 (<a href
="logout.php">Logout
</a
>)
126 <td
class="prefsTabs" align
="left" valign
="bottom">
127 <input id
="genConfigTab" class="prefsTab" type
="submit" value
="Preferences"
128 onclick
="selectTab('genConfig')">
129 <input id
="feedConfigTab" class="prefsTab" type
="submit" value
="My Feeds"
130 onclick
="selectTab('feedConfig')">
131 <?php
if (ENABLE_FEED_BROWSER
&& !SINGLE_USER_MODE
) { ?
>
132 <input id
="feedBrowserTab" class="prefsTab" type
="submit" value
="Other Feeds"
133 onclick
="selectTab('feedBrowser')">
135 <input id
="filterConfigTab" class="prefsTab" type
="submit" value
="Content Filtering"
136 onclick
="selectTab('filterConfig')">
137 <?php
if (get_pref($link, 'ENABLE_LABELS')) { ?
>
138 <input id
="labelConfigTab" class="prefsTab" type
="submit" value
="Label Editor"
139 onclick
="selectTab('labelConfig')">
141 <?php
if ($_SESSION["access_level"] >= 10) { ?
>
142 <input id
="userConfigTab" class="prefsTab" type
="submit" value
="User Manager"
143 onclick
="selectTab('userConfig')">
146 <td
class="prefsToolbar" valign
="middle" align
="right">
147 <input type
="submit" onclick
="gotoMain()" class="button" value
="Return to main">
151 <td id
="prefContent" class="prefContent" valign
="top" colspan
="2">
153 <p
>Loading
, please wait
...</p
>
157 <?php
if (get_pref($link, 'DISPLAY_FOOTER')) { ?
>
159 <td
class="footer" colspan
="2">
160 <a href
="http://tt-rss.spb.ru/">Tiny Tiny RSS
</a
> v
<?php
echo VERSION ?
> ©
; 2005-2006 Andrew Dolgov
161 <?php
if (WEB_DEMO_MODE
) { ?
>
162 <br
>Running in demo mode
, some functionality is disabled
.
169 <?php
db_close($link); ?
>
171 <script type
="text/javascript">
173 function statechange() {
174 if (document
.readyState
== "interactive") init();
177 if (document
.readyState
) {
178 if (document
.readyState
== "interactive" || document
.readyState
== "complete") {
181 document
.onreadystatechange
= statechange
;