]> git.wh0rd.org - tt-rss.git/blame - prefs.php
force required theme version
[tt-rss.git] / prefs.php
CommitLineData
1d3a17c7 1<?php
7ae65adf 2 require_once "functions.php";
1df0f48b 3 require_once "sessions.php";
66581886 4 require_once "sanity_check.php";
ab49d368
AD
5 require_once "version.php";
6 require_once "config.php";
7 require_once "db-prefs.php";
8
9 $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
c93f38c4 10
324944f3
AD
11 init_connection($link);
12
b8aa49bc 13 login_sequence($link);
53515ff1 14
811bea05 15 $dt_add = time();
53515ff1 16
dc56b3b7 17 no_cache_incantation();
03208748
AD
18
19 header('Content-Type: text/html; charset=utf-8');
20
ab49d368 21?>
3f59e8cd
AD
22<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
23 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
007bda35
AD
24<html>
25<head>
e828e31e 26 <title>Tiny Tiny RSS : Preferences</title>
74d5c8fa 27 <link rel="stylesheet" type="text/css" href="tt-rss.css?<?php echo $dt_add ?>"/>
fcf70c51 28 <link rel="stylesheet" type="text/css" href="lib/dijit/themes/claro/claro.css"/>
ab49d368 29
d9084cf2 30 <?php $user_theme = get_user_theme_path($link);
503eb349 31 if ($user_theme) { ?>
dce46cad 32 <link rel="stylesheet" type="text/css" href="<?php echo $user_theme ?>/theme.css"/>
1d3a17c7 33 <?php } ?>
5d35cdcd 34
1d3a17c7
AD
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 ?>"/>
38 <?php } ?>
386d7b5b 39
74d5c8fa 40 <link rel="shortcut icon" type="image/png" href="images/favicon.png"/>
c0266b88 41
fe7537b5 42 <script type="text/javascript" src="lib/prototype.js"></script>
b19d6e6e 43 <script type="text/javascript" src="lib/position.js"></script>
bd40e88e 44 <script type="text/javascript" src="lib/scriptaculous/scriptaculous.js?load=effects,dragdrop,controls"></script>
fcf70c51 45 <script type="text/javascript" src="lib/dojo/dojo.js" djConfig="parseOnLoad: true"></script>
a7750ac6 46
ff39ff9b 47 <script type="text/javascript" charset="utf-8" src="localized_js.php?<?php echo $dt_add ?>"></script>
14f69488 48
ff39ff9b 49 <script type="text/javascript" charset="utf-8" src="functions.js?<?php echo $dt_add ?>"></script>
e69fb880
AD
50 <script type="text/javascript" charset="utf-8" src="deprecated.js?<?php echo $dt_add ?>"></script>
51
ff39ff9b 52 <script type="text/javascript" charset="utf-8" src="prefs.js?<?php echo $dt_add ?>"></script>
b1895692 53
74d5c8fa 54 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
44258fa9 55
362698ad 56 <script type="text/javascript">
44258fa9
AD
57 Event.observe(window, 'load', function() {
58 init();
59 });
362698ad 60 </script>
44258fa9 61
007bda35
AD
62</head>
63
fcf70c51 64<body id="ttrssPrefs" class="claro">
97dcd654 65
08827aaf
AD
66<div id="overlay">
67 <div id="overlay_inner">
68 <?php echo __("Loading, please wait...") ?>
69
70 <div id="l_progress_o">
71 <div id="l_progress_i"></div>
72 </div>
73
74 <noscript>
4b67e71e 75 <p><?php print_error(__("Your browser doesn't support Javascript, which is required
08827aaf 76 for this application to function properly. Please check your
4b67e71e 77 browser settings.")) ?></p>
08827aaf
AD
78 </noscript>
79 </div>
80</div>
81
93f66472 82<div id="hotkey_help_overlay" style="display : none" onclick="Element.hide(this)">
746dcf42 83 <?php rounded_table_start("hho"); ?>
93f66472 84 <?php include "help/4.php" ?>
746dcf42 85 <?php rounded_table_end(); ?>
93f66472
AD
86</div>
87
74d5c8fa 88<img id="piggie" src="images/piggie.png" style="display : none" alt="piggie"/>
746dcf42 89
3f59e8cd 90<div id="prefHeader">
6352c214
AD
91 <div class="topLinks">
92 <?php if (!SINGLE_USER_MODE) { ?>
efae7595 93 <?php echo __('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b> |
6352c214
AD
94 <?php } ?>
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>
98 <?php } ?>
99 </div>
e9823609 100 <img src="<?php echo theme_image($link, 'images/ttrss_logo.png') ?>" alt="Tiny Tiny RSS"/>
3f59e8cd
AD
101</div>
102
1f8274d3 103<div id="prefTabs">
d1628a4f 104 <div class='prefKbdHelp'>
883fee8d 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>
d1628a4f
AD
106 </div>
107
656f4b6c
AD
108 <div class="firstTab">&nbsp;</div>
109
110 <div id="genConfigTab" class="prefsTab"
d1db26aa 111 onclick="selectTab('genConfig')"><?php echo __('Preferences') ?></div>
656f4b6c 112 <div id="feedConfigTab" class="prefsTab"
07b71436 113 onclick="selectTab('feedConfig')"><?php echo __('Feeds') ?></div>
656f4b6c 114 <div id="filterConfigTab" class="prefsTab"
af03c001 115 onclick="selectTab('filterConfig')"><?php echo __('Filters') ?></div>
656f4b6c 116 <div id="labelConfigTab" class="prefsTab"
af03c001 117 onclick="selectTab('labelConfig')"><?php echo __('Labels') ?></div>
1d3a17c7 118 <?php if ($_SESSION["access_level"] >= 10) { ?>
656f4b6c 119 <div id="userConfigTab" class="prefsTab"
af03c001 120 onclick="selectTab('userConfig')"><?php echo __('Users') ?></div>
1d3a17c7 121 <?php } ?>
1f8274d3 122</div>
3f59e8cd 123
727b0e56 124<div id="prefContentOuter">
3f59e8cd 125<div id="prefContent">
d1db26aa 126 <p><?php echo __('Loading, please wait...') ?></p>
84916243
AD
127 <noscript>
128 <div class="error">
d1db26aa 129 <?php echo __("Your browser doesn't support Javascript, which is required
84916243 130 for this application to function properly. Please check your
d3f24242 131 browser settings.") ?></div>
84916243 132 </noscript>
3f59e8cd 133</div>
727b0e56 134</div>
007bda35 135
1d8e4418 136<div id="notify" class="notify"><span id="notify_body">&nbsp;</span></div>
78935092
AD
137<div id="cmdline" style="display : none"></div>
138
23c2a4e7 139<div id="prefFooter">
8865bdc0
AD
140 <a href="http://tt-rss.org/">Tiny Tiny RSS</a>
141 <?php if (!defined('HIDE_VERSION')) { ?>
142 v<?php echo VERSION ?>
143 <?php } ?>
51d2d404 144 &copy; 2005&ndash;<?php echo date('Y') ?> <a href="http://fakecake.org/">Andrew Dolgov</a>
23c2a4e7
AD
145</div>
146
1d3a17c7 147<?php db_close($link); ?>
007bda35
AD
148
149</body>
150</html>