Install - Update


'; if (!empty($_GET['install'])) { echo '

Installing...

'; $getter->Install(); echo '

OK

'; } elseif (!empty($_GET['update'])) { if ($getter->isUpdateNeeded($myAppVersion)) { echo '

You need to update myApp !

Please find below updates that will be applied. Read them carefully.

'; $updates = $getter->getNeededUpdates($myAppVersion); print_r($getter->versions); exit; foreach ($updates as $version=>$contents) { echo '

Update '.$version.'

'; echo '

Changelog:
'.$contents['changelog'].'

'; echo '

Files updated:

'; foreach ($contents['files'] as $file) { echo $file['action'].': '.$file['destination']; if (!empty($file['source'])) echo ' (from '.$file['source'].')'; echo '
'; } echo '

'; } $getter->updateFromVersion($myAppVersion); } } ?>