]>
git.wh0rd.org - tt-rss.git/blob - prefs.php
12ad10f0a4021395c3ee0a5dc9ba4ab1b529cb67
2 require_once "functions.php";
3 require_once "sessions.php";
4 require_once "sanity_check.php";
5 require_once "version.php";
6 require_once "config.php";
7 require_once "db-prefs.php";
9 $link = db_connect(DB_HOST
, DB_USER
, DB_PASS
, DB_NAME
);
11 init_connection($link);
13 login_sequence($link);
17 no_cache_incantation();
19 header('Content-Type: text/html; charset=utf-8');
22 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
23 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
26 <title
>Tiny Tiny RSS
: Preferences
</title
>
27 <link rel
="stylesheet" type
="text/css" href
="tt-rss.css?<?php echo $dt_add ?>"/>
28 <link rel
="stylesheet" type
="text/css" href
="lib/dijit/themes/claro/claro.css"/>
30 <?php
$user_theme = get_user_theme_path($link);
32 <link rel
="stylesheet" type
="text/css" href
="<?php echo $user_theme ?>/theme.css"/>
35 <?php
$user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?
>
36 <?php
if ($user_css_url) { ?
>
37 <link type
="text/css" href
="<?php echo $user_css_url ?>"/>
40 <link rel
="shortcut icon" type
="image/png" href
="images/favicon.png"/>
42 <script type
="text/javascript" src
="lib/prototype.js"></script
>
43 <script type
="text/javascript" src
="lib/position.js"></script
>
44 <script type
="text/javascript" src
="lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script
>
45 <script type
="text/javascript" src
="lib/dojo/dojo.js" djConfig
="parseOnLoad: true"></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
="deprecated.js?<?php echo $dt_add ?>"></script
>
52 <script type
="text/javascript" charset
="utf-8" src
="prefs.js?<?php echo $dt_add ?>"></script
>
54 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8"/>
56 <script type
="text/javascript">
57 Event
.observe(window
, 'load', function() {
64 <body id
="ttrssPrefs" class="claro">
67 <div id
="overlay_inner">
68 <?php
echo __("Loading, please wait...") ?
>
70 <div id
="l_progress_o">
71 <div id
="l_progress_i"></div
>
75 <p
><?php
print_error(__("Your browser doesn't support Javascript, which is required
76 for this application to function properly. Please check your
77 browser settings.")) ?
></p
>
82 <div id
="hotkey_help_overlay" style
="display : none" onclick
="Element.hide(this)">
83 <?php
rounded_table_start("hho"); ?
>
84 <?php
include "help/4.php" ?
>
85 <?php
rounded_table_end(); ?
>
88 <img id
="piggie" src
="images/piggie.png" style
="display : none" alt
="piggie"/>
91 <div
class="topLinks">
92 <?php
if (!SINGLE_USER_MODE
) { ?
>
93 <?php
echo __('Hello,') ?
> <b
><?php
echo $_SESSION["name"] ?
></b
> |
95 <a href
="#" onclick
="gotoMain()"><?php
echo __('Exit preferences') ?
></a
>
96 <?php
if (!SINGLE_USER_MODE
) { ?
>
97 |
<a href
="logout.php"><?php
echo __('Logout') ?
></a
>
100 <img src
="<?php echo theme_image($link, 'images/ttrss_logo.png') ?>" alt
="Tiny Tiny RSS"/>
104 <div
class='prefKbdHelp'>
105 <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
>
108 <div
class="firstTab"> 
;</div
>
110 <div id
="genConfigTab" class="prefsTab"
111 onclick
="selectTab('genConfig')"><?php
echo __('Preferences') ?
></div
>
112 <div id
="feedConfigTab" class="prefsTab"
113 onclick
="selectTab('feedConfig')"><?php
echo __('Feeds') ?
></div
>
114 <div id
="filterConfigTab" class="prefsTab"
115 onclick
="selectTab('filterConfig')"><?php
echo __('Filters') ?
></div
>
116 <div id
="labelConfigTab" class="prefsTab"
117 onclick
="selectTab('labelConfig')"><?php
echo __('Labels') ?
></div
>
118 <?php
if ($_SESSION["access_level"] >= 10) { ?
>
119 <div id
="userConfigTab" class="prefsTab"
120 onclick
="selectTab('userConfig')"><?php
echo __('Users') ?
></div
>
124 <div id
="prefContentOuter">
125 <div id
="prefContent">
126 <p
><?php
echo __('Loading, please wait...') ?
></p
>
129 <?php
echo __("Your browser doesn't support Javascript, which is required
130 for this application to function properly. Please check your
131 browser settings.") ?
></div
>
136 <div id
="notify" class="notify"><span id
="notify_body"> 
;</span
></div
>
137 <div id
="cmdline" style
="display : none"></div
>
139 <div id
="prefFooter">
140 <a href
="http://tt-rss.org/">Tiny Tiny RSS
</a
>
141 <?php
if (!defined('HIDE_VERSION')) { ?
>
142 v
<?php
echo VERSION ?
>
144 ©
; 2005&ndash
;<?php
echo date('Y') ?
> <a href
="http://fakecake.org/">Andrew Dolgov
</a
>
147 <?php
db_close($link); ?
>