diff options
author | Andrew Dolgov <[email protected]> | 2015-01-31 15:08:55 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-01-31 15:08:55 +0300 |
commit | ed775e4e8dba0e3a527ea13b5581c1ce6ee752bc (patch) | |
tree | 23fde0bd3366dffbf71b9813956bbc5bcadd818e /include/functions2.php | |
parent | fbea9eaad219bc63c7118633ee07faa68a4024f6 (diff) |
remove obsolete code related to version checking and tarball updater plugin
Diffstat (limited to 'include/functions2.php')
-rw-r--r-- | include/functions2.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/include/functions2.php b/include/functions2.php index 669bbe038..4e133dde4 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -248,15 +248,6 @@ } } - if ($_SESSION["last_version_check"] + 86400 + rand(-1000, 1000) < time()) { - $new_version_details = @check_for_update(); - - $data['new_version_available'] = (int) ($new_version_details != false); - - $_SESSION["last_version_check"] = time(); - $_SESSION["version_data"] = $new_version_details; - } - return $data; } @@ -1019,25 +1010,6 @@ return $doc; } - function check_for_update() { - if (CHECK_FOR_NEW_VERSION && $_SESSION['access_level'] >= 10) { - $version_url = "http://tt-rss.org/version.php?ver=" . VERSION . - "&iid=" . sha1(SELF_URL_PATH); - - $version_data = @fetch_file_contents($version_url); - - if ($version_data) { - $version_data = json_decode($version_data, true); - if ($version_data && $version_data['version']) { - if (version_compare(VERSION_STATIC, $version_data['version']) == -1) { - return $version_data; - } - } - } - } - return false; - } - function catchupArticlesById($ids, $cmode, $owner_uid = false) { if (!$owner_uid) $owner_uid = $_SESSION["uid"]; |