]>
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
="lib/dijit/themes/claro/claro.css"/>
28 <link rel
="stylesheet" type
="text/css" href
="tt-rss.css?<?php echo $dt_add ?>"/>
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">
68 <noscript
><br
/><?php
print_error('Javascript is disabled. Please enable it.') ?
></noscript
>
72 <div id
="hotkey_help_overlay" style
="display : none" onclick
="Element.hide(this)">
73 <?php
rounded_table_start("hho"); ?
>
74 <?php
include "help/4.php" ?
>
75 <?php
rounded_table_end(); ?
>
78 <img id
="piggie" src
="images/piggie.png" style
="display : none" alt
="piggie"/>
80 <div id
="main" dojoType
="dijit.layout.BorderContainer">
82 <div id
="header" dojoType
="dijit.layout.ContentPane" region
="top">
83 <img style
="float : left" src
="<?php echo theme_image($link, 'images/logo_wide.png') ?>" title
="Tiny Tiny RSS"/>
85 <?php
if (!SINGLE_USER_MODE
) { ?
>
86 <?php
echo __('Hello,') ?
> <b
><?php
echo $_SESSION["name"] ?
></b
> |
88 <a href
="#" onclick
="gotoMain()"><?php
echo __('Exit preferences') ?
></a
> |
89 <a href
='#' onclick
="Effect.Appear('hotkey_help_overlay', {duration: 0.3})"><?php
echo __("Keyboard shortcuts") ?
></a
>
90 <?php
if (!SINGLE_USER_MODE
) { ?
>
91 |
<a href
="logout.php"><?php
echo __('Logout') ?
></a
>
95 <div dojoType
="dijit.layout.TabContainer" region
="center" id
="pref-tabs">
96 <div id
="genConfigTab" dojoType
="dijit.layout.ContentPane"
97 href
="backend.php?op=pref-prefs"
98 title
="<?php echo __('Preferences') ?>"></div
>
99 <div id
="feedConfigTab" dojoType
="dijit.layout.ContentPane"
100 href
="backend.php?op=pref-feeds"
101 title
="<?php echo __('Feeds') ?>"></div
>
102 <div id
="filterConfigTab" dojoType
="dijit.layout.ContentPane"
103 href
="backend.php?op=pref-filters"
104 title
="<?php echo __('Filters') ?>"></div
>
105 <div id
="labelConfigTab" dojoType
="dijit.layout.ContentPane"
106 href
="backend.php?op=pref-labels"
107 title
="<?php echo __('Labels') ?>"></div
>
108 <?php
if ($_SESSION["access_level"] >= 10) { ?
>
109 <div id
="userConfigTab" dojoType
="dijit.layout.ContentPane"
110 href
="backend.php?op=pref-users"
111 title
="<?php echo __('Users') ?>"></div
>
115 <div id
="footer" dojoType
="dijit.layout.ContentPane" region
="bottom">
116 <a href
="http://tt-rss.org/">Tiny Tiny RSS
</a
>
117 <?php
if (!defined('HIDE_VERSION')) { ?
>
118 v
<?php
echo VERSION ?
>
120 ©
; 2005&ndash
;<?php
echo date('Y') ?
> <a href
="http://fakecake.org/">Andrew Dolgov
</a
>
121 </div
> <!-- footer
-->
125 <?php
db_close($link); ?
>