1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 22:15:56 +00:00

remove obsolete code related to version checking and tarball updater plugin

This commit is contained in:
Andrew Dolgov
2015-01-31 15:08:55 +03:00
parent fbea9eaad2
commit ed775e4e8d
8 changed files with 3 additions and 596 deletions

View File

@@ -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"];