-
Notifications
You must be signed in to change notification settings - Fork 2
/
common.php
23 lines (22 loc) · 684 Bytes
/
common.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
class Release {
public $version;
protected $basedir = '/home/springlobby/www/dl/stable';
protected $baseurl = 'https://springlobby.springrts.com/dl/stable/';
function __construct() {
$content = file($this->basedir.'/version.txt');
$this->version = trim($content[0]);
}
public function win32() {
return $this->baseurl.'springlobby-'.$this->version.'-win32.zip';
}
public function win32installer() {
return $this->baseurl.'springlobby-'.$this->version.'-win32.exe';
}
public function link() {
return $this->baseurl.'springlobby-'.$this->version.'.tar.bz2';
}
public function linkGZ() {
return $this->baseurl.'springlobby-'.$this->version.'.tar.gz2';
}
}