force scripts refresh on every reload

master
Andrew Dolgov 19 years ago
parent a38f09cf4d
commit 53515ff15c

@ -83,6 +83,7 @@
10080 => "Weekly"); 10080 => "Weekly");
$script_started = getmicrotime(); $script_started = getmicrotime();
$script_dt_add = time();
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
@ -135,8 +136,8 @@
type=\"text/css\" href=\"tt-rss_compact.css\"/>"; 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>
<script type=\"text/javascript\" src=\"feedlist.js\"></script> <script type=\"text/javascript\" src=\"feedlist.js?$script_dt_add\"></script>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
<!--[if gte IE 5.5000]> <!--[if gte IE 5.5000]>
<script type=\"text/javascript\" src=\"pngfix.js\"></script> <script type=\"text/javascript\" src=\"pngfix.js\"></script>
@ -539,7 +540,7 @@
type=\"text/css\" href=\"tt-rss_compact.css\"/>"; 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\"> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
</head><body $rtl_tag>"; </head><body $rtl_tag>";
@ -707,8 +708,8 @@
} }
print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> 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=\"functions.js?$script_dt_add\"></script>
<script type=\"text/javascript\" src=\"viewfeed.js\"></script> <script type=\"text/javascript\" src=\"viewfeed.js?$script_dt_add\"></script>
<!--[if gte IE 5.5000]> <!--[if gte IE 5.5000]>
<script type=\"text/javascript\" src=\"pngfix.js\"></script> <script type=\"text/javascript\" src=\"pngfix.js\"></script>
<link rel=\"stylesheet\" type=\"text/css\" href=\"tt-rss-ie.css\"> <link rel=\"stylesheet\" type=\"text/css\" href=\"tt-rss-ie.css\">
@ -2707,7 +2708,7 @@
print "<html><head> print "<html><head>
<title>Tiny Tiny RSS : Help</title> <title>Tiny Tiny RSS : Help</title>
<link rel=\"stylesheet\" href=\"tt-rss.css\" type=\"text/css\"> <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\"> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
</head><body>"; </head><body>";
} }

@ -13,6 +13,9 @@
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
login_sequence($link); login_sequence($link);
$dt_add = time();
?> ?>
<html> <html>
<head> <head>
@ -41,8 +44,8 @@
<? } ?> <? } ?>
<script type="text/javascript" src="functions.js"></script> <script type="text/javascript" src="functions.js?<?= $dt_add ?>"></script>
<script type="text/javascript" src="prefs.js"></script> <script type="text/javascript" src="prefs.js?<?= $dt_add ?>"></script>
<!--[if gte IE 5.5000]> <!--[if gte IE 5.5000]>
<script type="text/javascript" src="pngfix.js"></script> <script type="text/javascript" src="pngfix.js"></script>

@ -14,6 +14,8 @@
login_sequence($link); login_sequence($link);
$dt_add = time();
?> ?>
<html> <html>
<head> <head>
@ -42,8 +44,8 @@
<? } ?> <? } ?>
<script type="text/javascript" src="tt-rss.js"></script> <script type="text/javascript" src="tt-rss.js?<?= $dt_add ?>"></script>
<script type="text/javascript" src="functions.js"></script> <script type="text/javascript" src="functions.js?<?= $dt_add ?>"></script>
<!--[if gte IE 5.5000]> <!--[if gte IE 5.5000]>
<script type="text/javascript" src="pngfix.js"></script> <script type="text/javascript" src="pngfix.js"></script>
<link rel="stylesheet" type="text/css" href="tt-rss-ie.css"> <link rel="stylesheet" type="text/css" href="tt-rss-ie.css">

Loading…
Cancel
Save