summaryrefslogtreecommitdiff
path: root/opml.php
diff options
context:
space:
mode:
authorMatthew Katz <[email protected]>2010-04-10 18:36:26 -0400
committerMatthew Katz <[email protected]>2010-04-10 18:36:26 -0400
commita4234239568f14dbad890dd7eeb3208fe5922193 (patch)
tree5d400d286df6964ba4a0dca66684239cd4f288d4 /opml.php
parentab53d2034a09b414977de0d3d8877b6a7f949316 (diff)
fixed so that login is only required for import and export of OPML, not for publish
Diffstat (limited to 'opml.php')
-rw-r--r--opml.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/opml.php b/opml.php
index 0de5dd33d..2e9f2368f 100644
--- a/opml.php
+++ b/opml.php
@@ -11,9 +11,6 @@
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
init_connection($link);
- login_sequence($link);
-
- $owner_uid = $_SESSION["uid"];
function opml_export($link, $owner_uid, $hide_private_feeds=False) {
header("Content-type: application/xml+opml");
@@ -92,6 +89,9 @@
if (!$op) $op = "Export";
if ($op == "Export") {
+
+ login_sequence($link);
+ $owner_uid = $_SESSION["uid"];
return opml_export($link, $owner_uid);
}
if ($op == "publish"){
@@ -113,6 +113,9 @@
if ($op == "Import") {
+ login_sequence($link);
+ $owner_uid = $_SESSION["uid"];
+
print "<html>
<head>
<link rel=\"stylesheet\" href=\"utility.css\" type=\"text/css\">