-
- print "</body></opml>";
- }
-
- // FIXME there are some brackets issues here
-
- $op = $_REQUEST["op"];
-
- if (!$op) $op = "Export";
-
- if ($op == "Export") {
- return opml_export($link, $owner_uid);
- }
-
- if ($op == "Import") {
-
- print "<html>
- <head>
- <link rel=\"stylesheet\" href=\"utility.css\" type=\"text/css\">
- <title>".__("OPML Utility")."</title>
- </head>
- <body>
- <div class=\"floatingLogo\"><img src=\"images/ttrss_logo.png\"></div>
- <h1>".__('OPML Utility')."</h1>";
-
- if (function_exists('domxml_open_file')) {
- print "<p>".__("Importing OPML (using DOMXML extension)...")."</p>";
- require_once "modules/opml_domxml.php";
- opml_import_domxml($link, $owner_uid);
- } else if (PHP_VERSION >= 5) {
- print "<p>".__("Importing OPML (using DOMDocument extension)...")."</p>";
- require_once "modules/opml_domdoc.php";
- opml_import_domdoc($link, $owner_uid);
- } else {
- print_error(__("DOMXML extension is not found. It is required for PHP versions below 5."));
- }
-
- print "<br><form method=\"GET\" action=\"prefs.php\">
- <input type=\"submit\" value=\"".__("Return to preferences")."\">
- </form>";
-
- print "</body></html>";
-