Made changes to get ready for auto update

This commit is contained in:
xevidos 2018-07-17 16:14:39 -04:00
parent 2900522462
commit 9307f312fb
4 changed files with 10 additions and 10 deletions

View file

@ -183,9 +183,9 @@ define("WSURL", BASE_URL . "/workspace");
//define("MARKETURL", "http://market.codiad.com/json");
// Update Check
//define("UPDATEURL", "http://update.codiad.com/?v={VER}&o={OS}&p={PHP}&w={WEB}&a={ACT}");
//define("ARCHIVEURL", "https://github.com/Codiad/Codiad/archive/master.zip");
//define("COMMITURL", "https://api.github.com/repos/Codiad/Codiad/commits");
define("UPDATEURL", "https://codiad.telaaedifex.com/update/?v={VER}&o={OS}&p={PHP}&w={WEB}&a={ACT}");
define("ARCHIVEURL", "https://gitlab.telaaedifex.com/xevidos/codiad/-/archive/master/codiad-master.zip");
define("COMMITURL", "https://gitlab.telaaedifex.com/api/v4/projects/3/repository/commits/");
';
saveFile($config, $config_data);

View file

@ -30,9 +30,9 @@ class Update
public function __construct()
{
ini_set("user_agent", "Codiad");
$this->remote = "http://update.codiad.com/?v={VER}&o={OS}&p={PHP}&w={WEB}&a={ACT}";
$this->commits = "https://api.github.com/repos/Codiad/Codiad/commits";
$this->archive = "https://github.com/Codiad/Codiad/archive/master.zip";
$this->remote = "https://codiad.telaaedifex.com/update/?v={VER}&o={OS}&p={PHP}&w={WEB}&a={ACT}";
$this->commits = "https://gitlab.telaaedifex.com/api/v4/projects/3/repository/commits/";
$this->archive = "https://gitlab.telaaedifex.com/xevidos/codiad/-/archive/master/codiad-master.zip";
}
//////////////////////////////////////////////////////////////////

View file

@ -52,8 +52,8 @@ define("WSURL", BASE_URL . "/workspace");
//define("MARKETURL", "http://market.codiad.com/json");
// Update Check
//define("UPDATEURL", "http://update.codiad.com/?v={VER}&o={OS}&p={PHP}&w={WEB}&a={ACT}");
//define("ARCHIVEURL", "https://github.com/Codiad/Codiad/archive/master.zip");
//define("COMMITURL", "https://api.github.com/repos/Codiad/Codiad/commits");
define("UPDATEURL", "https://codiad.telaaedifex.com/update/?v={VER}&o={OS}&p={PHP}&w={WEB}&a={ACT}");
define("ARCHIVEURL", "https://gitlab.telaaedifex.com/xevidos/codiad/-/archive/master/codiad-master.zip");
define("COMMITURL", "https://gitlab.telaaedifex.com/api/v4/projects/3/repository/commits/");
?>

View file

@ -32,7 +32,7 @@ class AutoUpdate extends Common {
public function __construct(){
ini_set("user_agent" , "Codiad");
$this->remote = "https://codiad.telaaedifex.com/update/?v={VER}&o={OS}&p={PHP}&w={WEB}&a={ACT}";
$this->commits = "https://gitlab.telaaedifex.com/xevidos/codiad/commits/master";
$this->commits = "https://gitlab.telaaedifex.com/api/v4/projects/3/repository/commits/";
$this->archive = "https://gitlab.telaaedifex.com/xevidos/codiad/-/archive/master/codiad-master.zip";
$this->type = "";
}