]> git.wh0rd.org - tt-rss.git/blobdiff - classes/handler/public.php
add command-line db schema updater
[tt-rss.git] / classes / handler / public.php
index 151447540a59f3de56edce0a853893741d870c70..3d3d6727d8d7be97d56acac99e10196d2bf5b612 100644 (file)
@@ -12,7 +12,7 @@ class Handler_Public extends Handler {
                        "padding : 5px; border-style : dashed; border-color : #e7d796;".
                        "margin-bottom : 1em; color : #9a8c59;";
 
-               if (!$limit) $limit = 100;
+               if (!$limit) $limit = 60;
 
                $date_sort_field = "date_entered DESC, updated DESC";
 
@@ -32,7 +32,7 @@ class Handler_Public extends Handler {
                        $ts = strtotime(db_fetch_result($result, 0, "date_entered"));
 
                        if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) &&
-                                       strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) >= $last_modified) {
+                                       strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) >= $ts) {
                      header('HTTP/1.0 304 Not Modified');
                      return;
                        }
@@ -835,6 +835,15 @@ class Handler_Public extends Handler {
                print "</body>";
                print "</html>";
 
+       }
+
+       function dbupdate() {
+
+
+
+
+
+
        }
 
 }