]> git.wh0rd.org Git - tt-rss.git/commitdiff
force scripts refresh on every reload
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 30 Mar 2006 06:43:35 +0000 (07:43 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 30 Mar 2006 06:43:35 +0000 (07:43 +0100)
backend.php
prefs.php
tt-rss.php

index 44391c482085464e38511bd81265877ce4b80b20..bc3b388dfe1a56a74f582f32cac3bba6ec8d4648 100644 (file)
@@ -83,6 +83,7 @@
                10080 => "Weekly");
 
        $script_started = getmicrotime();
+       $script_dt_add = time();
 
        $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); 
 
                                        type=\"text/css\" href=\"tt-rss_compact.css\"/>";
                }
 
-               print "<script type=\"text/javascript\" src=\"functions.js\"></script>
-                       <script type=\"text/javascript\" src=\"feedlist.js\"></script>
+               print "<script type=\"text/javascript\" src=\"functions.js?$script_dt_add\"></script>
+                       <script type=\"text/javascript\" src=\"feedlist.js?$script_dt_add\"></script>
                        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
                        <!--[if gte IE 5.5000]>
                        <script type=\"text/javascript\" src=\"pngfix.js\"></script>
                                        type=\"text/css\" href=\"tt-rss_compact.css\"/>";
                }
 
-               print "<script type=\"text/javascript\" src=\"functions.js\"></script>
+               print "<script type=\"text/javascript\" src=\"functions.js?$script_dt_add\"></script>
                        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
                        </head><body $rtl_tag>";
 
                }
 
                print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">  
-                       <script type=\"text/javascript\" src=\"functions.js\"></script>
-                       <script type=\"text/javascript\" src=\"viewfeed.js\"></script>
+                       <script type=\"text/javascript\" src=\"functions.js?$script_dt_add\"></script>
+                       <script type=\"text/javascript\" src=\"viewfeed.js?$script_dt_add\"></script>
                        <!--[if gte IE 5.5000]>
                        <script type=\"text/javascript\" src=\"pngfix.js\"></script>
                        <link rel=\"stylesheet\" type=\"text/css\" href=\"tt-rss-ie.css\">
                        print "<html><head>
                                <title>Tiny Tiny RSS : Help</title>
                                <link rel=\"stylesheet\" href=\"tt-rss.css\" type=\"text/css\">
-                               <script type=\"text/javascript\" src=\"functions.js\"></script>
+                               <script type=\"text/javascript\" src=\"functions.js?$script_dt_add\"></script>
                                <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
                                </head><body>";
                }
index 639f5d86ea65085013355f66304bbedbce65968b..4cd1cabe9d599106e4820b2e96f5cf50896be186 100644 (file)
--- a/prefs.php
+++ b/prefs.php
@@ -13,6 +13,9 @@
        $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); 
 
        login_sequence($link);
+
+       $dt_add = time();
+
 ?>
 <html>
 <head>
@@ -41,8 +44,8 @@
        <? } ?>
 
        
-       <script type="text/javascript" src="functions.js"></script>
-       <script type="text/javascript" src="prefs.js"></script>
+       <script type="text/javascript" src="functions.js?<?= $dt_add ?>"></script>
+       <script type="text/javascript" src="prefs.js?<?= $dt_add ?>"></script>
 
        <!--[if gte IE 5.5000]>
                <script type="text/javascript" src="pngfix.js"></script>
index 1184abc7d160708cd0ee6d4969ba9c55b5f8af21..f395ea7c5d894679f3f7592a46311e9cec073be7 100644 (file)
@@ -14,6 +14,8 @@
 
        login_sequence($link);
 
+       $dt_add = time();
+
 ?>
 <html>
 <head>
@@ -42,8 +44,8 @@
 
        <? } ?>
 
-       <script type="text/javascript" src="tt-rss.js"></script>
-       <script type="text/javascript" src="functions.js"></script>
+       <script type="text/javascript" src="tt-rss.js?<?= $dt_add ?>"></script>
+       <script type="text/javascript" src="functions.js?<?= $dt_add ?>"></script>
        <!--[if gte IE 5.5000]>
                <script type="text/javascript" src="pngfix.js"></script>
                <link rel="stylesheet" type="text/css" href="tt-rss-ie.css">