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 // $_SESSION["uid"] = PLACEHOLDER_UID; // FIXME: placeholder
12 // $_SESSION["name"] = PLACEHOLDER_NAME;
14 initialize_user_prefs($link, $_SESSION["uid"]);
15 // FIXME this needs to be moved somewhere after user creation
20 <title
>Tiny Tiny RSS
: Preferences
</title
>
21 <link rel
="stylesheet" href
="tt-rss.css" type
="text/css">
23 <?
if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?
>
25 <link rel
="stylesheet" href
="tt-rss_compact.css" type
="text/css">
29 <link title
="Compact Stylesheet" rel
="alternate stylesheet"
30 type
="text/css" href
="tt-rss_compact.css"/>
35 <script type
="text/javascript" src
="functions.js"></script
>
36 <script type
="text/javascript" src
="prefs.js"></script
>
38 <!--[if gte IE
5.5000]>
39 <script type
="text/javascript" src
="pngfix.js"></script
>
41 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
44 <body onload
="init()">
46 <table width
="100%" height
="100%" cellspacing
="0" cellpadding
="0" class="main">
47 <?
if (get_pref($link, 'DISPLAY_HEADER')) { ?
>
50 <table cellspacing
="0" cellpadding
="0" width
="100%"><tr
>
51 <td rowspan
="2" class="header" valign
="middle">
52 <img src
="images/ttrss_logo.png" alt
="logo">
54 <td align
="right" valign
="top">
55 <div id
="notify"><span id
="notify_body"></div
>
57 </tr
><tr
><td
class="welcomePrompt">
58 Hello
, <b
><?
= $_SESSION["name"] ?
></b
> (<a href
="logout.php">Logout
</a
>)</td
>
64 <td
class="prefsTabs" align
="left" valign
="bottom">
65 <input id
="genConfigTab" class="prefsTab" type
="submit" value
="User Preferences"
66 onclick
="selectTab('genConfig')">
67 <input id
="feedConfigTab" class="prefsTab" type
="submit" value
="Feed Configuration"
68 onclick
="selectTab('feedConfig')">
69 <input id
="filterConfigTab" class="prefsTab" type
="submit" value
="Content Filtering"
70 onclick
="selectTab('filterConfig')">
71 <?
if (get_pref($link, 'ENABLE_LABELS')) { ?
>
72 <input id
="labelConfigTab" class="prefsTab" type
="submit" value
="Label Editor"
73 onclick
="selectTab('labelConfig')">
76 <td
class="prefsToolbar" valign
="middle" align
="right">
77 <input type
="submit" onclick
="gotoMain()" class="button" value
="Return to main">
81 <td id
="prefContent" class="prefContent" valign
="top" colspan
="2">
83 <p
>Loading
, please wait
...</p
>
87 <?
if (get_pref($link, 'DISPLAY_FOOTER')) { ?
>
89 <td
class="footer" colspan
="2">
90 <a href
="http://bah.spb.su/~fox/tt-rss/">Tiny
-Tiny RSS
</a
> v
<?
= VERSION ?
> ©
; 2005 Andrew Dolgov
91 <?
if (WEB_DEMO_MODE
) { ?
>
92 <br
>Running in demo mode
, some functionality is disabled
.
99 <?
db_close($link); ?
>