2 error_reporting(E_ERROR | E_WARNING | E_PARSE
);
4 require_once "functions.php";
5 require_once "sessions.php";
6 require_once "sanity_check.php";
7 require_once "version.php";
8 require_once "config.php";
9 require_once "db-prefs.php";
11 $link = db_connect(DB_HOST
, DB_USER
, DB_PASS
, DB_NAME
);
13 init_connection($link);
15 login_sequence($link);
19 no_cache_incantation();
21 header('Content-Type: text/html; charset=utf-8');
24 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
25 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
28 <title
>Tiny Tiny RSS
: Preferences
</title
>
29 <link rel
="stylesheet" type
="text/css" href
="tt-rss.css?<?php echo $dt_add ?>"/>
30 <link rel
="stylesheet" type
="text/css" href
="infobox.css?<?php echo $dt_add ?>"/>
32 <?php
$user_theme = get_user_theme_path($link);
34 <link rel
="stylesheet" type
="text/css" href
="<?php echo $user_theme ?>/theme.css"/>
37 <?php
$user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?
>
38 <?php
if ($user_css_url) { ?
>
39 <link type
="text/css" href
="<?php echo $user_css_url ?>"/>
42 <link rel
="shortcut icon" type
="image/png" href
="images/favicon.png"/>
44 <script type
="text/javascript" src
="lib/prototype.js"></script
>
45 <script type
="text/javascript" src
="lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script
>
47 <script type
="text/javascript" charset
="utf-8" src
="localized_js.php?<?php echo $dt_add ?>"></script
>
49 <script type
="text/javascript" charset
="utf-8" src
="functions.js?<?php echo $dt_add ?>"></script
>
50 <script type
="text/javascript" charset
="utf-8" src
="prefs.js?<?php echo $dt_add ?>"></script
>
52 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8"/>
54 <script type
="text/javascript">
55 Event
.observe(window
, 'load', function() {
62 <body id
="ttrssPrefs">
65 <div id
="overlay_inner">
66 <?php
echo __("Loading, please wait...") ?
>
68 <div id
="l_progress_o">
69 <div id
="l_progress_i"></div
>
73 <p
><?php
print_error(__("Your browser doesn't support Javascript, which is required
74 for this application to function properly. Please check your
75 browser settings.")) ?
></p
>
80 <div id
="hotkey_help_overlay" style
="display : none" onclick
="Element.hide(this)">
81 <?php
rounded_table_start("hho"); ?
>
82 <?php
include "help/4.php" ?
>
83 <?php
rounded_table_end(); ?
>
86 <img id
="piggie" src
="images/piggie.png" style
="display : none" alt
="piggie"/>
89 <div
class="topLinks">
90 <?php
if (!SINGLE_USER_MODE
) { ?
>
91 <?php
echo __('Hello,') ?
> <b
><?php
echo $_SESSION["name"] ?
></b
> |
93 <a href
="#" onclick
="gotoMain()"><?php
echo __('Exit preferences') ?
></a
>
94 <?php
if (!SINGLE_USER_MODE
) { ?
>
95 |
<a href
="logout.php"><?php
echo __('Logout') ?
></a
>
98 <img src
="<?php echo theme_image($link, 'images/ttrss_logo.png') ?>" alt
="Tiny Tiny RSS"/>
102 <div
class='prefKbdHelp'>
103 <img src
="<?php echo theme_image($link, 'images/small_question.png') ?>" alt
="?"/> <a href
='#' onclick
="Effect.Appear('hotkey_help_overlay', {duration: 0.3})"><?php
echo __("Keyboard shortcuts") ?
></a
>
106 <div
class="firstTab"> 
;</div
>
108 <div id
="genConfigTab" class="prefsTab"
109 onclick
="selectTab('genConfig')"><?php
echo __('Preferences') ?
></div
>
110 <div id
="feedConfigTab" class="prefsTab"
111 onclick
="selectTab('feedConfig')"><?php
echo __('Feeds') ?
></div
>
112 <div id
="filterConfigTab" class="prefsTab"
113 onclick
="selectTab('filterConfig')"><?php
echo __('Filters') ?
></div
>
114 <div id
="labelConfigTab" class="prefsTab"
115 onclick
="selectTab('labelConfig')"><?php
echo __('Labels') ?
></div
>
116 <?php
if ($_SESSION["access_level"] >= 10) { ?
>
117 <div id
="userConfigTab" class="prefsTab"
118 onclick
="selectTab('userConfig')"><?php
echo __('Users') ?
></div
>
122 <div id
="prefContentOuter">
123 <div id
="prefContent">
124 <p
><?php
echo __('Loading, please wait...') ?
></p
>
127 <?php
echo __("Your browser doesn't support Javascript, which is required
128 for this application to function properly. Please check your
129 browser settings.") ?
></div
>
134 <div id
="notify" class="notify"><span id
="notify_body"> 
;</span
></div
>
135 <div id
="infoBoxShadow"><div id
="infoBox">BAH
</div
></div
>
136 <div id
="cmdline" style
="display : none"></div
>
138 <div id
="errorBoxShadow" style
="display : none">
140 <div id
="xebTitle"><?php
echo __('Fatal Exception') ?
></div
><div id
="xebContent"> 
;</div
>
141 <div id
="xebBtn" align
='center'>
142 <button onclick
="closeErrorBox()"><?php
echo __('Close this window') ?
></button
>
147 <div id
="dialog_overlay" style
="display : none"> </div
>
149 <div id
="prefFooter">
150 <a href
="http://tt-rss.org/">Tiny Tiny RSS
</a
>
151 <?php
if (!defined('HIDE_VERSION')) { ?
>
152 v
<?php
echo VERSION ?
>
154 ©
; 2005&ndash
;<?php
echo date('Y') ?
> <a href
="http://fakecake.org/">Andrew Dolgov
</a
>
157 <?php
db_close($link); ?
>