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 <script type
="text/javascript" src
="prototype.js"></script
>
50 <script type
="text/javascript" src
="functions.js?<?php echo $dt_add ?>"></script
>
51 <script type
="text/javascript" src
="prefs.js?<?php echo $dt_add ?>"></script
>
53 <div id
="infoBoxShadow"><div id
="infoBox">BAH
</div
></div
>
55 <!--[if gte IE
5.5000]>
56 <script type
="text/javascript" src
="pngfix.js"></script
>
57 <link rel
="stylesheet" type
="text/css" href
="tt-rss-ie.css">
59 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
61 <script type
="text/javascript">
62 if (navigator
.userAgent
.match("Opera")) {
63 document
.write('<link rel="stylesheet" type="text/css" href="opera.css">');
65 if (navigator
.userAgent
.match("Gecko") && !navigator
.userAgent
.match("KHTML")) {
66 document
.write('<link rel="stylesheet" type="text/css" href="gecko.css">');
73 <div id
="piggie"> 
;</div
>
75 <iframe id
="backReqBox"></iframe
>
77 <script type
="text/javascript">
78 if (document
.addEventListener
) {
79 document
.addEventListener("DOMContentLoaded", init
, null);
84 <ul id
="debug_output"></ul
>
86 <div id
="fatal_error"><div id
="fatal_error_inner">
88 <div id
="fatal_error_msg">Unknown Error
</div
>
91 <table width
="100%" height
="100%" cellspacing
="0" cellpadding
="0" class="main">
92 <?php
if (get_pref($link, 'DISPLAY_HEADER')) { ?
>
95 <table cellspacing
="0" cellpadding
="0" width
="100%"><tr
>
96 <td rowspan
="2" class="header" valign
="middle">
97 <img src
="<?php echo $theme_image_path ?>images/ttrss_logo.png" alt
="Tiny Tiny RSS">
99 <td valign
="top" class="notifyBox">
100 <div id
="notify" class="notify"><span id
="notify_body"> 
;</span
></div
>
102 </tr
><tr
><td
class="welcomePrompt">
103 <?php
if (!SINGLE_USER_MODE
) { ?
>
104 Hello
, <b
><?php
echo $_SESSION["name"] ?
></b
>
105 (<a href
="logout.php">Logout
</a
>)
114 <div id
="notify" class="notify_sm"><span id
="notify_body"> 
;</span
></div
>
115 <div id
="userDlgShadow"><div id
="userDlg"> 
;</div
></div
>
116 </td
><td
class="welcomePrompt">
117 <?php
if (!SINGLE_USER_MODE
) { ?
>
118 Hello
, <b
><?php
echo $_SESSION["name"] ?
></b
>
119 (<a href
="logout.php">Logout
</a
>)
124 <td
class="prefsTabs" align
="left" valign
="bottom">
125 <input id
="genConfigTab" class="prefsTab" type
="submit" value
="Preferences"
126 onclick
="selectTab('genConfig')">
127 <input id
="feedConfigTab" class="prefsTab" type
="submit" value
="My Feeds"
128 onclick
="selectTab('feedConfig')">
129 <?php
if (ENABLE_FEED_BROWSER
&& !SINGLE_USER_MODE
) { ?
>
130 <input id
="feedBrowserTab" class="prefsTab" type
="submit" value
="Other Feeds"
131 onclick
="selectTab('feedBrowser')">
133 <input id
="filterConfigTab" class="prefsTab" type
="submit" value
="Content Filtering"
134 onclick
="selectTab('filterConfig')">
135 <?php
if (get_pref($link, 'ENABLE_LABELS')) { ?
>
136 <input id
="labelConfigTab" class="prefsTab" type
="submit" value
="Label Editor"
137 onclick
="selectTab('labelConfig')">
139 <?php
if ($_SESSION["access_level"] >= 10) { ?
>
140 <input id
="userConfigTab" class="prefsTab" type
="submit" value
="User Manager"
141 onclick
="selectTab('userConfig')">
144 <td
class="prefsToolbar" valign
="middle" align
="right">
145 <input type
="submit" onclick
="gotoMain()" class="button" value
="Return to main">
149 <td id
="prefContent" class="prefContent" valign
="top" colspan
="2">
151 <p
>Loading
, please wait
...</p
>
155 <?php
if (get_pref($link, 'DISPLAY_FOOTER')) { ?
>
157 <td
class="footer" colspan
="2">
158 <a href
="http://tt-rss.spb.ru/">Tiny Tiny RSS
</a
> v
<?php
echo VERSION ?
> ©
; 2005-2006 Andrew Dolgov
159 <?php
if (WEB_DEMO_MODE
) { ?
>
160 <br
>Running in demo mode
, some functionality is disabled
.
167 <?php
db_close($link); ?
>
169 <script type
="text/javascript">
171 function statechange() {
172 if (document
.readyState
== "interactive") init();
175 if (document
.readyState
) {
176 if (document
.readyState
== "interactive" || document
.readyState
== "complete") {
179 document
.onreadystatechange
= statechange
;