From d75409bfdaa82d96cbd4a580c3f75b4b276d0a23 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 15 Aug 2012 15:47:13 +0400 Subject: [PATCH] move opml stuff to classes/opml.php --- classes/dlg.php | 19 +- classes/opml.php | 442 +++++++++++++++++++++++++++++++++++++++++++++ js/prefs.js | 2 +- opml.php | 461 ++--------------------------------------------- 4 files changed, 459 insertions(+), 465 deletions(-) create mode 100644 classes/opml.php diff --git a/classes/dlg.php b/classes/dlg.php index 4d5068ba..d143ca89 100644 --- a/classes/dlg.php +++ b/classes/dlg.php @@ -44,25 +44,12 @@ class Dlg extends Protected_Handler { db_query($this->link, "BEGIN"); - /* create Imported feeds category just in case */ - - $result = db_query($this->link, "SELECT id FROM - ttrss_feed_categories WHERE title = 'Imported feeds' AND - owner_uid = '$owner_uid' LIMIT 1"); - - if (db_num_rows($result) == 0) { - db_query($this->link, "INSERT INTO ttrss_feed_categories - (title,owner_uid) - VALUES ('Imported feeds', '$owner_uid')"); - } + print "