From: Andrew Dolgov Date: Thu, 17 Nov 2005 18:03:40 +0000 (+0100) Subject: opml.php uid-aware X-Git-Tag: schema_feature_freeze_for_1.1~254 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5d3f29da4ba7fb7fe898bbde28e8d133f0b15764;p=tt-rss.git opml.php uid-aware --- diff --git a/opml.php b/opml.php index d5eb0e0e..023f29ff 100644 --- a/opml.php +++ b/opml.php @@ -1,4 +1,6 @@ $title ($url)... "; $result = db_query($link, "SELECT id FROM ttrss_feeds WHERE - title = '$title' OR feed_url = '$url'"); + (title = '$title' OR feed_url = '$url') AND owner_uid = ".$_SESSION["uid"]); if ($result && db_num_rows($result) > 0) { @@ -69,8 +73,8 @@ } else { - $result = db_query($link, "INSERT INTO ttrss_feeds (title, feed_url) VALUES - ('$title', '$url')"); + $result = db_query($link, "INSERT INTO ttrss_feeds (title, feed_url,owner_uid) VALUES + ('$title', '$url', '".$_SESSION["uid"]."')"); print "Done.
";