version check should point at engine.vichan.net and not tinyboard.org actually

This commit is contained in:
czaks 2015-04-23 08:18:36 +02:00
parent 4c1d2f924c
commit 2d9214ac63
2 changed files with 4 additions and 4 deletions

View File

@ -111,7 +111,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://tinyboard.org/version.txt', 0, $ctx)) { if ($code = @file_get_contents('http://engine.vichan.net/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)) {
@ -120,7 +120,7 @@ function mod_dashboard() {
'major' => $matches[2], 'major' => $matches[2],
'minor' => $matches[3] 'minor' => $matches[3]
); );
if (preg_match('/v(\d+)\.(\d)\.(\d+)(-dev.+)?$/', $config['version'], $matches)) { if (preg_match('/(\d+)\.(\d)\.(\d+)(-dev.+)?$/', $config['version'], $matches)) {
$current = array( $current = array(
'massive' => (int) $matches[1], 'massive' => (int) $matches[1],
'major' => (int) $matches[2], 'major' => (int) $matches[2],

View File

@ -155,9 +155,9 @@
<legend>Update</legend> <legend>Update</legend>
<ul> <ul>
<li> <li>
A newer version of Tinyboard A newer version of vichan
(<strong>v{{ newer_release.massive }}.{{ newer_release.major }}.{{ newer_release.minor }}</strong>) is available! (<strong>v{{ newer_release.massive }}.{{ newer_release.major }}.{{ newer_release.minor }}</strong>) is available!
See <a href="http://tinyboard.org">http://tinyboard.org/</a> for upgrade instructions. See <a href="https://engine.vichan.net">https://engine.vichan.net/</a> for upgrade instructions.
</li> </li>
</ul> </ul>
</fieldset> </fieldset>