]>
git.wh0rd.org - tt-rss.git/blob - prefs.php
2 if (file_exists("install") && !file_exists("config.php")) {
3 header("Location: install/");
6 set_include_path(dirname(__FILE__
) ."/include" . PATH_SEPARATOR
.
9 if (!file_exists("config.php")) {
10 print "<b>Fatal Error</b>: You forgot to copy
11 <b>config.php-dist</b> to <b>config.php</b> and edit it.\n";
15 require_once "sessions.php";
16 require_once "functions.php";
17 require_once "sanity_check.php";
18 require_once "version.php";
19 require_once "config.php";
20 require_once "db-prefs.php";
22 $link = db_connect(DB_HOST
, DB_USER
, DB_PASS
, DB_NAME
);
24 if (!init_connection($link)) return;
26 login_sequence($link);
28 no_cache_incantation();
30 header('Content-Type: text/html; charset=utf-8');
32 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
33 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
36 <title
>Tiny Tiny RSS
: <?php
echo __("Preferences") ?
></title
>
38 <?php
echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?
>
39 <?php
echo stylesheet_tag("tt-rss.css"); ?
>
41 <?php
print_user_stylesheet($link) ?
>
43 <link rel
="shortcut icon" type
="image/png" href
="images/favicon.png"/>
44 <link rel
="icon" type
="image/png" sizes
="72x72" href
="images/favicon-72px.png" />
47 foreach (array("lib/prototype.js",
48 "lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls",
51 "lib/dojo/tt-rss-layer.js",
52 "errors.php?mode=js") as $jsfile) {
54 echo javascript_tag($jsfile);
58 <script type
="text/javascript">
60 require 'lib/jshrink/Minifier.php';
64 foreach ($pluginhost->get_plugins() as $n => $p) {
65 if (method_exists($p, "get_prefs_js")) {
66 echo JShrink\Minifier
::minify($p->get_prefs_js());
70 print get_minified_js(array("functions", "deprecated", "prefs"));
72 init_js_translations();
76 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8"/>
78 <script type
="text/javascript">
79 Event
.observe(window
, 'load', function() {
86 <body id
="ttrssPrefs" class="claro">
88 <div id
="notify" class="notify"><span id
="notify_body"> 
;</span
></div
>
89 <div id
="cmdline" style
="display : none"></div
>
92 <div id
="overlay_inner">
93 <div
class="insensitive"><?php
echo __("Loading, please wait...") ?
></div
>
94 <div dojoType
="dijit.ProgressBar" places
="0" style
="width : 300px" id
="loading_bar"
95 progress
="0" maximum
="100">
97 <noscript
><br
/><?php
print_error('Javascript is disabled. Please enable it.') ?
></noscript
>
101 <img id
="piggie" src
="images/piggie.png" style
="display : none" alt
="piggie"/>
103 <div id
="header" dojoType
="dijit.layout.ContentPane" region
="top">
104 <!-- <a href
='#' onclick
="showHelp()"><?php
echo __("Keyboard shortcuts") ?
></a
> |
-->
105 <a href
="#" onclick
="gotoMain()"><?php
echo __('Exit preferences') ?
></a
>
108 <div id
="main" dojoType
="dijit.layout.BorderContainer">
110 <div dojoType
="dijit.layout.TabContainer" region
="center" id
="pref-tabs">
111 <div id
="genConfigTab" dojoType
="dijit.layout.ContentPane"
112 href
="backend.php?op=pref-prefs"
113 title
="<?php echo __('Preferences') ?>"></div
>
114 <div id
="feedConfigTab" dojoType
="dijit.layout.ContentPane"
115 href
="backend.php?op=pref-feeds"
116 title
="<?php echo __('Feeds') ?>"></div
>
117 <div id
="filterConfigTab" dojoType
="dijit.layout.ContentPane"
118 href
="backend.php?op=pref-filters"
119 title
="<?php echo __('Filters') ?>"></div
>
120 <div id
="labelConfigTab" dojoType
="dijit.layout.ContentPane"
121 href
="backend.php?op=pref-labels"
122 title
="<?php echo __('Labels') ?>"></div
>
123 <?php
if ($_SESSION["access_level"] >= 10) { ?
>
124 <div id
="userConfigTab" dojoType
="dijit.layout.ContentPane"
125 href
="backend.php?op=pref-users"
126 title
="<?php echo __('Users') ?>"></div
>
129 $pluginhost->run_hooks($pluginhost::HOOK_PREFS_TABS
,
130 "hook_prefs_tabs", false);
134 <div id
="footer" dojoType
="dijit.layout.ContentPane" region
="bottom">
135 <a
class="insensitive" target
="_blank" href
="http://tt-rss.org/">
136 Tiny Tiny RSS
</a
> ©
; 2005-<?php
echo date('Y') ?
>
137 <a
class="insensitive" target
="_blank"
138 href
="http://fakecake.org/">Andrew Dolgov
</a
>
139 </div
> <!-- footer
-->
143 <?php
db_close($link); ?
>