sql-ize prefs.php

master
Andrew Dolgov 19 years ago
parent 4062022e0f
commit f2188a89bc

@ -12,11 +12,16 @@
<body onload="init()"> <body onload="init()">
<? require_once "version.php" ?> <?
<? require_once "config.php" ?> require_once "version.php";
require_once "config.php";
require_once "db-prefs.php";
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
?>
<table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main"> <table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main">
<? if (DISPLAY_HEADER) { ?> <? if (get_pref($link, 'DISPLAY_HEADER')) { ?>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<table cellspacing="0" cellpadding="0" width="100%"><tr> <table cellspacing="0" cellpadding="0" width="100%"><tr>
@ -36,7 +41,7 @@
onclick="selectTab('feedConfig')"> onclick="selectTab('feedConfig')">
<input id="filterConfigTab" class="prefsTab" type="submit" value="Content Filtering" <input id="filterConfigTab" class="prefsTab" type="submit" value="Content Filtering"
onclick="selectTab('filterConfig')"> onclick="selectTab('filterConfig')">
<? if (ENABLE_LABELS) { ?> <? if (get_pref($link, 'ENABLE_LABELS')) { ?>
<input id="labelConfigTab" class="prefsTab" type="submit" value="Label Editor" <input id="labelConfigTab" class="prefsTab" type="submit" value="Label Editor"
onclick="selectTab('labelConfig')"> onclick="selectTab('labelConfig')">
<? } ?> <? } ?>
@ -52,11 +57,11 @@
</td> </td>
</tr> </tr>
<? if (DISPLAY_FOOTER) { ?> <? if (get_pref($link, 'DISPLAY_FOOTER')) { ?>
<tr> <tr>
<td class="footer" colspan="2"> <td class="footer" colspan="2">
<a href="http://bah.spb.su/~fox/tt-rss/">Tiny-Tiny RSS</a> v<?= VERSION ?> &copy; 2005 Andrew Dolgov <a href="http://bah.spb.su/~fox/tt-rss/">Tiny-Tiny RSS</a> v<?= VERSION ?> &copy; 2005 Andrew Dolgov
<? if (WEB_DEMO_MODE) { ?> <? if (get_pref($link, 'WEB_DEMO_MODE')) { ?>
<br>Running in demo mode, some functionality is disabled. <br>Running in demo mode, some functionality is disabled.
<? } ?> <? } ?>
</td> </td>

Loading…
Cancel
Save