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:
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user