4 require_once "version.php";
5 require_once "config.php";
6 require_once "db-prefs.php";
7 require_once "functions.php";
9 $link = db_connect(DB_HOST
, DB_USER
, DB_PASS
, DB_NAME
);
11 if (!SINGLE_USER_MODE
) {
14 if (!$_SESSION["uid"]) {
15 header("Location: login.php");
19 authenticate_user($link);
23 $_SESSION["name"] = "admin";
29 <title
>Tiny Tiny RSS
: Preferences
</title
>
30 <link rel
="stylesheet" href
="tt-rss.css" type
="text/css">
32 <?
if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?
>
34 <link rel
="stylesheet" href
="tt-rss_compact.css" type
="text/css">
38 <link title
="Compact Stylesheet" rel
="alternate stylesheet"
39 type
="text/css" href
="tt-rss_compact.css"/>
44 <script type
="text/javascript" src
="functions.js"></script
>
45 <script type
="text/javascript" src
="prefs.js"></script
>
47 <!--[if gte IE
5.5000]>
48 <script type
="text/javascript" src
="pngfix.js"></script
>
50 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
53 <body onload
="init()">
55 <table width
="100%" height
="100%" cellspacing
="0" cellpadding
="0" class="main">
56 <?
if (get_pref($link, 'DISPLAY_HEADER')) { ?
>
59 <table cellspacing
="0" cellpadding
="0" width
="100%"><tr
>
60 <td rowspan
="2" class="header" valign
="middle">
61 <img src
="images/ttrss_logo.png" alt
="logo">
63 <td align
="right" valign
="top">
64 <div id
="notify"><span id
="notify_body"></div
>
66 </tr
><tr
><td
class="welcomePrompt">
67 <?
if (!SINGLE_USER_MODE
) { ?
>
68 Hello
, <b
><?
= $_SESSION["name"] ?
></b
> (<a href
="logout.php">Logout
</a
>)</td
>
75 <td
class="prefsTabs" align
="left" valign
="bottom">
76 <input id
="genConfigTab" class="prefsTab" type
="submit" value
="Preferences"
77 onclick
="selectTab('genConfig')">
78 <input id
="feedConfigTab" class="prefsTab" type
="submit" value
="Feed Configuration"
79 onclick
="selectTab('feedConfig')">
80 <input id
="filterConfigTab" class="prefsTab" type
="submit" value
="Content Filtering"
81 onclick
="selectTab('filterConfig')">
82 <?
if (get_pref($link, 'ENABLE_LABELS')) { ?
>
83 <input id
="labelConfigTab" class="prefsTab" type
="submit" value
="Label Editor"
84 onclick
="selectTab('labelConfig')">
86 <?
if ($_SESSION["access_level"] >= 10) { ?
>
87 <input id
="userConfigTab" class="prefsTab" type
="submit" value
="User Manager"
88 onclick
="selectTab('userConfig')">
91 <td
class="prefsToolbar" valign
="middle" align
="right">
92 <input type
="submit" onclick
="gotoMain()" class="button" value
="Return to main">
96 <td id
="prefContent" class="prefContent" valign
="top" colspan
="2">
98 <p
>Loading
, please wait
...</p
>
102 <?
if (get_pref($link, 'DISPLAY_FOOTER')) { ?
>
104 <td
class="footer" colspan
="2">
105 <a href
="http://bah.spb.su/~fox/tt-rss/">Tiny
-Tiny RSS
</a
> v
<?
= VERSION ?
> ©
; 2005 Andrew Dolgov
106 <?
if (WEB_DEMO_MODE
) { ?
>
107 <br
>Running in demo mode
, some functionality is disabled
.
114 <?
db_close($link); ?
>