]> git.wh0rd.org Git - tt-rss.git/commitdiff
new_version_check: add timestamp randomize
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 22 Jan 2009 08:04:45 +0000 (09:04 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 22 Jan 2009 08:04:45 +0000 (09:04 +0100)
functions.php

index ef0fc4e6c4322330b79af5114511e69c950bf74b..bddee8b17fa653ba06cfa36ed96d2eeeeedd260a 100644 (file)
 
                if (CHECK_FOR_NEW_VERSION && $_SESSION["access_level"] >= 10) {
                        
-                       if ($_SESSION["last_version_check"] + 86400 < time()) {
+                       if ($_SESSION["last_version_check"] + 86400 + rand(-1000, 1000) < time()) {
                                $new_version_details = check_for_update($link);
 
                                print "<param key=\"new_version_available\" value=\"".