]> git.wh0rd.org Git - tt-rss.git/commitdiff
fixed so that login is only required for import and export of OPML, not for publish
authorMatthew Katz <mrfulcrum@nulletch64.dreamhost.com>
Sat, 10 Apr 2010 22:36:26 +0000 (18:36 -0400)
committerMatthew Katz <mrfulcrum@nulletch64.dreamhost.com>
Sat, 10 Apr 2010 22:36:26 +0000 (18:36 -0400)
opml.php

index 0de5dd33da16a4280574d3e7ba0111108e964447..2e9f2368f8b2fca06419a6a09fff7931bcc9bfa5 100644 (file)
--- 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"){
 
        if ($op == "Import") {
 
+               login_sequence($link);
+               $owner_uid = $_SESSION["uid"];
+
                print "<html>
                        <head>
                                <link rel=\"stylesheet\" href=\"utility.css\" type=\"text/css\">