made prefs.php aware of compact stylesheet, close db link at the end of prefs.php and tt-rss.php
This commit is contained in:
parent
7268adf7bd
commit
ab49d368c1
29
prefs.php
29
prefs.php
|
@ -1,7 +1,27 @@
|
||||||
|
<?
|
||||||
|
require_once "version.php";
|
||||||
|
require_once "config.php";
|
||||||
|
require_once "db-prefs.php";
|
||||||
|
|
||||||
|
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
||||||
|
?>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Tiny Tiny RSS : Preferences</title>
|
<title>Tiny Tiny RSS : Preferences</title>
|
||||||
<link rel="stylesheet" href="tt-rss.css" type="text/css">
|
<link rel="stylesheet" href="tt-rss.css" type="text/css">
|
||||||
|
|
||||||
|
<? if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="tt-rss_compact.css" type="text/css">
|
||||||
|
|
||||||
|
<? } else { ?>
|
||||||
|
|
||||||
|
<link title="Compact Stylesheet" rel="alternate stylesheet"
|
||||||
|
type="text/css" href="tt-rss_compact.css"/>
|
||||||
|
|
||||||
|
<? } ?>
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript" src="functions.js"></script>
|
<script type="text/javascript" src="functions.js"></script>
|
||||||
<script type="text/javascript" src="prefs.js"></script>
|
<script type="text/javascript" src="prefs.js"></script>
|
||||||
|
|
||||||
|
@ -13,14 +33,6 @@
|
||||||
|
|
||||||
<body onload="init()">
|
<body onload="init()">
|
||||||
|
|
||||||
<?
|
|
||||||
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 (get_pref($link, 'DISPLAY_HEADER')) { ?>
|
<? if (get_pref($link, 'DISPLAY_HEADER')) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -72,6 +84,7 @@
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<? db_close($link); ?>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -198,6 +198,7 @@
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<? db_close($link); ?>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue