summaryrefslogtreecommitdiff
path: root/opml.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-16 18:18:15 +0100
committerAndrew Dolgov <[email protected]>2005-11-16 18:18:15 +0100
commita01112942026cbaf26702df4391f65b0f47e7dab (patch)
treef7d29e509e81dba2c9747002af5fea2397477aae /opml.php
parentf2188a89bcdcecdaa7ed914188269f9fa37dcb73 (diff)
sql-ize opml.php
Diffstat (limited to 'opml.php')
-rw-r--r--opml.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/opml.php b/opml.php
index 2e87c037a..89f9a9461 100644
--- a/opml.php
+++ b/opml.php
@@ -9,6 +9,7 @@
require_once "config.php";
require_once "db.php";
+ require_once "db-prefs.php";
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
@@ -94,7 +95,7 @@
<body><h1>Importing OPML...</h1>
<div>";
- if (WEB_DEMO_MODE) {
+ if (get_pref($link, 'WEB_DEMO_MODE')) {
print "OPML import is disabled in demo-mode.";
print "<p><a class=\"button\" href=\"prefs.php\">
Return to preferences</a></div></body></html>";