X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=modules%2Fpopup-dialog.php;h=13abc947f1febcfca57b7b9844f3f4a76d94721d;hb=667a82727cd95cc75e006b8509b6249e3f7f46e6;hp=fe8bf5e01ca6cce7b6a833de323a27ff02b0081e;hpb=44d0e7742b05a43b69e3296596d581f4e5d825dc;p=tt-rss.git diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index fe8bf5e0..13abc947 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -1,45 +1,228 @@ "; - print "
" . __("Last update:") . " " . date("Y.m.d, G:i", $stamp); + $result = db_query($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($link, "INSERT INTO ttrss_feed_categories + (title,owner_uid) + VALUES ('Imported feeds', '$owner_uid')"); + } + + db_query($link, "COMMIT"); + + /* Handle OPML import by DOMXML/DOMDocument */ + + if (function_exists('domxml_open_file')) { + print "
" . __("Last update:") . " " . date("Y.m.d, G:i", $stamp); + } if ($param == 3) { - print __("TT-RSS has detected that update daemon is taking too long to - perform a feed update. This could indicate a problem like crash - or a hang. Please check the daemon process or contact instance - owner."); + print __("Update daemon is taking too long to perform a feed update. This could indicate a problem like crash or a hang. Please check the daemon process or contact instance owner."); - $stamp = (int)read_stampfile("update_daemon.stamp"); + $stamp = (int) file_get_contents(LOCK_DIRECTORY . "/update_daemon.stamp"); - print "
" . __("Last update:") . " " . date("Y.m.d, G:i", $stamp); + print "
" . __("Last update:") . " " . date("Y.m.d, G:i", $stamp); } @@ -47,133 +230,169 @@ print "