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);
19 <title
>Tiny Tiny RSS
: Preferences
</title
>
20 <link rel
="stylesheet" href
="tt-rss.css" type
="text/css">
22 <?
$user_theme = $_SESSION["theme"];
24 <link rel
="stylesheet" type
="text/css" href
="themes/<?= $user_theme ?>/theme.css">
27 <?
$user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?
>
28 <?
if ($user_css_url) { ?
>
29 <link type
="text/css" href
="<?= $user_css_url ?>"/>
32 <?
if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?
>
34 <link rel
="stylesheet" href
="tt-rss_compact.css" type
="text/css">
38 <link title
="Compact Stylesheet" rel
="alternate stylesheet"
39 type
="text/css" href
="tt-rss_compact.css"/>
44 <script type
="text/javascript" src
="functions.js"></script
>
45 <script type
="text/javascript" src
="prefs.js"></script
>
47 <!--[if gte IE
5.5000]>
48 <script type
="text/javascript" src
="pngfix.js"></script
>
50 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
52 <script type
="text/javascript">
53 if (navigator
.userAgent
.match("Opera")) {
54 document
.write('<link rel="stylesheet" type="text/css" href="opera.css">');
61 <div id
="piggie" class="invisible"> 
;</div
>
63 <script type
="text/javascript">
64 if (document
.addEventListener
) {
65 document
.addEventListener("DOMContentLoaded", init
, null);
70 <table width
="100%" height
="100%" cellspacing
="0" cellpadding
="0" class="main">
71 <?
if (get_pref($link, 'DISPLAY_HEADER')) { ?
>
74 <table cellspacing
="0" cellpadding
="0" width
="100%"><tr
>
75 <td rowspan
="2" class="header" valign
="middle">
76 <img src
="images/ttrss_logo.png" alt
="logo">
78 <td valign
="top" class="notifyBox">
79 <div id
="notify"><span id
="notify_body"> 
;</span
></div
>
81 </tr
><tr
><td
class="welcomePrompt">
82 <?
if (!SINGLE_USER_MODE
) { ?
>
83 Hello
, <b
><?
= $_SESSION["name"] ?
></b
>
84 (<a href
="logout.php">Logout
</a
>)
93 <div id
="notify"><span id
="notify_body"> 
;</span
></div
>
94 <div id
="userDlgShadow"><div id
="userDlg"> 
;</div
></div
>
95 </td
><td
class="welcomePrompt">
96 <?
if (!SINGLE_USER_MODE
) { ?
>
97 Hello
, <b
><?
= $_SESSION["name"] ?
></b
>
98 (<a href
="logout.php">Logout
</a
>)
103 <td
class="prefsTabs" align
="left" valign
="bottom">
104 <input id
="genConfigTab" class="prefsTab" type
="submit" value
="Preferences"
105 onclick
="selectTab('genConfig')">
106 <input id
="feedConfigTab" class="prefsTab" type
="submit" value
="Feed Configuration"
107 onclick
="selectTab('feedConfig')">
108 <?
if (ENABLE_FEED_BROWSER
) { ?
>
109 <input id
="feedBrowserTab" class="prefsTab" type
="submit" value
="Feed Browser"
110 onclick
="selectTab('feedBrowser')">
112 <input id
="filterConfigTab" class="prefsTab" type
="submit" value
="Content Filtering"
113 onclick
="selectTab('filterConfig')">
114 <?
if (GLOBAL_ENABLE_LABELS
&& get_pref($link, 'ENABLE_LABELS')) { ?
>
115 <input id
="labelConfigTab" class="prefsTab" type
="submit" value
="Label Editor"
116 onclick
="selectTab('labelConfig')">
118 <?
if ($_SESSION["access_level"] >= 10) { ?
>
119 <input id
="userConfigTab" class="prefsTab" type
="submit" value
="User Manager"
120 onclick
="selectTab('userConfig')">
123 <td
class="prefsToolbar" valign
="middle" align
="right">
124 <input type
="submit" onclick
="gotoMain()" class="button" value
="Return to main">
128 <td id
="prefContent" class="prefContent" valign
="top" colspan
="2">
130 <p
>Loading
, please wait
...</p
>
134 <?
if (get_pref($link, 'DISPLAY_FOOTER')) { ?
>
136 <td
class="footer" colspan
="2">
137 <a href
="http://tt-rss.spb.ru/">Tiny
-Tiny RSS
</a
> v
<?
= VERSION ?
> ©
; 2005-2006 Andrew Dolgov
138 <?
if (WEB_DEMO_MODE
) { ?
>
139 <br
>Running in demo mode
, some functionality is disabled
.
146 <?
db_close($link); ?
>
148 <script type
="text/javascript">
150 function statechange() {
151 if (document
.readyState
== "interactive") init();
154 if (document
.readyState
) {
155 if (document
.readyState
== "interactive" || document
.readyState
== "complete") {
158 document
.onreadystatechange
= statechange
;