1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-17 11:28:41 +01:00

use the current domain

This commit is contained in:
Lorenzo Yario 2024-03-11 18:54:20 -07:00 committed by GitHub
parent e855d5213b
commit 0296301fff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,7 +115,7 @@ function mod_dashboard() {
$latest = unserialize($_COOKIE['update']); $latest = unserialize($_COOKIE['update']);
} else { } else {
$ctx = stream_context_create(array('http' => array('timeout' => 5))); $ctx = stream_context_create(array('http' => array('timeout' => 5)));
if ($code = @file_get_contents('http://engine.vichan.net/version.txt', 0, $ctx)) { if ($code = @file_get_contents('http://engine.vichan.info/version.txt', 0, $ctx)) {
$ver = strtok($code, "\n"); $ver = strtok($code, "\n");
if (preg_match('@^// v(\d+)\.(\d+)\.(\d+)\s*?$@', $ver, $matches)) { if (preg_match('@^// v(\d+)\.(\d+)\.(\d+)\s*?$@', $ver, $matches)) {