]>
git.wh0rd.org - tt-rss.git/blob - prefs.php
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
print_theme_includes($link) ?
>
31 <?php
print_user_stylesheet($link) ?
>
33 <link rel
="shortcut icon" type
="image/png" href
="images/favicon.png"/>
35 <script type
="text/javascript" src
="lib/prototype.js"></script
>
36 <script type
="text/javascript" src
="lib/position.js"></script
>
37 <script type
="text/javascript" src
="lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script
>
38 <script type
="text/javascript" src
="lib/dojo/dojo.js" djConfig
="parseOnLoad: true"></script
>
40 <script type
="text/javascript" charset
="utf-8" src
="localized_js.php?<?php echo $dt_add ?>"></script
>
42 <script type
="text/javascript" charset
="utf-8" src
="functions.js?<?php echo $dt_add ?>"></script
>
43 <script type
="text/javascript" charset
="utf-8" src
="deprecated.js?<?php echo $dt_add ?>"></script
>
45 <script type
="text/javascript" charset
="utf-8" src
="prefs.js?<?php echo $dt_add ?>"></script
>
47 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8"/>
49 <script type
="text/javascript">
50 Event
.observe(window
, 'load', function() {
57 <div id
="notify" class="notify"><span id
="notify_body"> 
;</span
></div
>
58 <div id
="cmdline" style
="display : none"></div
>
60 <body id
="ttrssPrefs" class="claro">
63 <div id
="overlay_inner">
64 <div
class="insensitive"><?php
echo __("Loading, please wait...") ?
></div
>
65 <div dojoType
="dijit.ProgressBar" places
="0" style
="width : 300px" id
="loading_bar"
66 progress
="0" maximum
="100">
69 <p
><?php
print_error(__("Your browser doesn't support Javascript, which is required
70 for this application to function properly. Please check your
71 browser settings.")) ?
></p
>
76 <div id
="hotkey_help_overlay" style
="display : none" onclick
="Element.hide(this)">
77 <?php
rounded_table_start("hho"); ?
>
78 <?php
include "help/4.php" ?
>
79 <?php
rounded_table_end(); ?
>
82 <img id
="piggie" src
="images/piggie.png" style
="display : none" alt
="piggie"/>
84 <div id
="main" dojoType
="dijit.layout.BorderContainer">
86 <div id
="header" dojoType
="dijit.layout.ContentPane" region
="top">
87 <div
class="topLinks">
88 <?php
if (!SINGLE_USER_MODE
) { ?
>
89 <?php
echo __('Hello,') ?
> <b
><?php
echo $_SESSION["name"] ?
></b
> |
91 <a href
="#" onclick
="gotoMain()"><?php
echo __('Exit preferences') ?
></a
> |
92 <a href
='#' onclick
="Effect.Appear('hotkey_help_overlay', {duration: 0.3})"><?php
echo __("Keyboard shortcuts") ?
></a
>
93 <?php
if (!SINGLE_USER_MODE
) { ?
>
94 |
<a href
="logout.php"><?php
echo __('Logout') ?
></a
>
98 <img src
="<?php echo theme_image($link, 'images/ttrss_logo.png') ?>" alt
="Tiny Tiny RSS"/>
101 <div dojoType
="dijit.layout.TabContainer" region
="center" id
="pref-tabs">
102 <div id
="genConfigTab" dojoType
="dijit.layout.ContentPane"
103 href
="backend.php?op=pref-prefs"
104 title
="<?php echo __('Preferences') ?>"></div
>
105 <div id
="feedConfigTab" dojoType
="dijit.layout.ContentPane"
106 href
="backend.php?op=pref-feeds"
107 title
="<?php echo __('Feeds') ?>"></div
>
108 <div id
="filterConfigTab" dojoType
="dijit.layout.ContentPane"
109 href
="backend.php?op=pref-filters"
110 title
="<?php echo __('Filters') ?>"></div
>
111 <div id
="labelConfigTab" dojoType
="dijit.layout.ContentPane"
112 href
="backend.php?op=pref-labels"
113 title
="<?php echo __('Labels') ?>"></div
>
114 <?php
if ($_SESSION["access_level"] >= 10) { ?
>
115 <div id
="userConfigTab" dojoType
="dijit.layout.ContentPane"
116 href
="backend.php?op=pref-users"
117 title
="<?php echo __('Users') ?>"></div
>
121 <div id
="footer" dojoType
="dijit.layout.ContentPane" region
="bottom">
122 <a href
="http://tt-rss.org/">Tiny Tiny RSS
</a
>
123 <?php
if (!defined('HIDE_VERSION')) { ?
>
124 v
<?php
echo VERSION ?
>
126 ©
; 2005&ndash
;<?php
echo date('Y') ?
> <a href
="http://fakecake.org/">Andrew Dolgov
</a
>
127 </div
> <!-- footer
-->
131 <?php
db_close($link); ?
>