]> git.wh0rd.org - tt-rss.git/commitdiff
opml/db updater tweaks
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 2 Mar 2007 14:08:00 +0000 (15:08 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 2 Mar 2007 14:08:00 +0000 (15:08 +0100)
modules/opml_domdoc.php
modules/opml_domxml.php
opml.css [deleted file]
opml.php
update.php
utility.css

index 45984102260e8b10b1f72476c374d4649fe9fcf5..156e46c7f5780517b7449205f5da2233d63ad67e 100644 (file)
@@ -82,8 +82,8 @@
                                                        (title = '$feed_title' OR feed_url = '$feed_url') 
                                                        AND owner_uid = '$owner_uid'");
 
-                                       print "<tr><td><a href='$site_url'><b>$feed_title</b></a></b> 
-                                               (<a href=\"$feed_url\">rss</a>)</td>";
+                                       print "<tr><td><a target='_new' href='$site_url'><b>$feed_title</b></a></b> 
+                                               (<a target='_new' href=\"$feed_url\">rss</a>)</td>";
 
                                        if (db_num_rows($result) > 0) {
                                                print "<td>Already imported.</td>";
index 2a140f325f9b2cd74b1d14815c4e453213185fb2..dabba789491ed3a80b43b092540de8d3d720a450 100644 (file)
@@ -85,8 +85,8 @@
                                                        (title = '$feed_title' OR feed_url = '$feed_url') 
                                                        AND owner_uid = '$owner_uid'");
 
-                                               print "<tr><td><a href='$site_url'><b>$feed_title</b></a></b> 
-                                                       (<a href=\"$feed_url\">rss</a>)</td>";
+                                               print "<tr><td><a target='_new' href='$site_url'><b>$feed_title</b></a></b> 
+                                                       (<a target='_new' href=\"$feed_url\">rss</a>)</td>";
 
                                                if (db_num_rows($result) > 0) {
                                                        print "<td>"._("Already imported.")."</td>";
diff --git a/opml.css b/opml.css
deleted file mode 100644 (file)
index e6d7612..0000000
--- a/opml.css
+++ /dev/null
@@ -1,57 +0,0 @@
-body {
-       margin : 0px;
-       padding : 0px;
-       background : white;
-       color : black;
-}
-
-h1 {
-       font-size : 16pt;
-       font-weight : bold;
-       border-width : 0px 0px 1px 0px;
-       border-color : #88b0f0;
-       border-style : solid;
-       margin-top : 2em;
-}
-
-h2 {
-       font-size : 14pt;
-       font-weight : bold;
-       border-width : 0px 0px 1px 0px;
-       border-style : solid;
-       border-color : #e0e0e0;
-}
-
-div.opmlBody {
-       margin : 30px;  
-}
-
-div.error {
-       background : #fff0f0;
-       border : 1px solid #c0c0c0;
-       padding : 5px;
-       font-size : x-small;
-}
-
-a {
-       text-decoration : none;
-}
-
-a {
-       color : black;
-       text-decoration : none;
-}
-
-a:hover {
-       color : #5050aa;
-}
-
-ul {
-       list-style-type : none;
-       margin : 0px;
-       padding : 10px; 
-}
-
-.insensitive {
-       color : gray;
-}
index b3707df75be492ae06552f622687c23790e50928..718d47bbcbc335fe7b3103edc9731bb1134b0cd6 100644 (file)
--- a/opml.php
+++ b/opml.php
 
                print "<html>
                        <head>
-                               <link rel=\"stylesheet\" href=\"opml.css\" type=\"text/css\">
+                               <link rel=\"stylesheet\" href=\"utility.css\" type=\"text/css\">
+                               <title>OPML Utility</title>
                        </head>
                        <body>
-                       <div style='float : right'><img src=\"images/ttrss_logo.png\"></div>
-                       <h1>"._('OPML Import')."</h1>";
+                       <div class=\"floatingLogo\"><img src=\"images/ttrss_logo.png\"></div>
+                       <h1>"._('OPML Utility')."</h1>";
 
                if (function_exists('domxml_open_file')) {
-                       print "<p class='insensitive'>Using DOMXML library</p>";
+                       print "<p>Importing OPML (using DOMXML extension)...</p>";
                        require_once "modules/opml_domxml.php";
                        opml_import_domxml($link, $owner_uid);
                } else {
-                       print "<p class='insensitive'>Using DOMDocument library (PHP5)</p>";
+                       print "<p>Importing OPML (using DOMDocument extension)...</p>";
                        require_once "modules/opml_domdoc.php";
                        opml_import_domdoc($link, $owner_uid);
                }
index 34357f2f223b370c1762573b7eac0ec097d5478a..4e1eb923aa52831653e7b6356374d2cec1d940bf 100644 (file)
@@ -30,7 +30,7 @@
 <head>
 <title>Database Updater</title>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<link rel="stylesheet" type="text/css" href="update.css">
+<link rel="stylesheet" type="text/css" href="utility.css">
 </head>
 
 <body>
@@ -41,6 +41,8 @@ function confirmOP() {
 }
 </script>
 
+<div class="floatingLogo"><img src="images/ttrss_logo.png"></div>
+
 <h1>Database Updater</h1>
 
 <?php
@@ -81,7 +83,10 @@ function confirmOP() {
        
        if ($version == $latest_version) {
                print "<p>Tiny Tiny RSS database is up to date (version $version).</p>";
-               print "<p><a href='tt-rss.php'>Return to Tiny Tiny RSS</a></p>";
+               print "<form method=\"GET\" action=\"tt-rss.php\">
+                       <input type=\"submit\" value=\"Return to Tiny Tiny RSS\">
+                       </form>";
+
                return;
        }
        
@@ -146,8 +151,10 @@ function confirmOP() {
                print "<p>Finished. Performed $num_updates updates up to schema
                        version $version.</p>";
        
-               print "<p><a href='tt-rss.php'>Return to Tiny Tiny RSS</a></p>";
-       
+               print "<form method=\"GET\" action=\"tt-rss.php\">
+                       <input type=\"submit\" value=\"Return to Tiny Tiny RSS\">
+                       </form>";
+
        }
        
 ?>
index f4b9da36c2ea1a2bc0b11adc3429121961f60f26..9bdb77c21405bdd879a94a8c31413049702e5ead 100644 (file)
@@ -1,3 +1,8 @@
+body {
+       margin : 2em;
+       padding : 0em;
+}
+
 p.warning {
        color : red;
 }
@@ -9,3 +14,17 @@ p.query {
 p.insensitive {
        color : gray;
 }
+
+.floatingLogo {
+       float : right;
+}
+
+a {
+       color : #4684ff;
+       text-decoration : none;
+}
+
+a:hover {
+       color : black;
+}
+