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:
parent
e855d5213b
commit
0296301fff
@ -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)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user