Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function checkupdate(){
- // load library
- $this->load->library('Ezyupdater');
- // declare new instance
- $updater = new Ezyupdater();
- // init file
- $updater->localVersion = 'versioning.txt';
- $updater->remoteVersion = 'http://www.serveranda.com/versioning/versibaru.txt';
- // check latest version between local and remote
- echo $updater->checkupdate('local');
- echo $updater->checkupdate('remote');
- }
- public function update(){
- // load library
- $this->load->library('Ezyupdater');
- // declare new instance
- $updater = new Ezyupdater();
- // pulling from git
- $updater->doUpdate();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement