19 lines
437 B
PHP
19 lines
437 B
PHP
<?php
|
|
class VersionController extends AppController {
|
|
|
|
public function index() {
|
|
$this->set('zmDynLastVersion', Configure::read('ZM_DYN_LAST_VERSION'));
|
|
$this->set('zmDynDBVersion', Configure::read('ZM_DYN_DB_VERSION'));
|
|
}
|
|
|
|
public function isUpdateAvailable() {
|
|
if (Configure::read('ZM_DYN_LAST_VERSION') > Configure::read('ZM_DYN_DB_VERSION')) {
|
|
echo 'true';
|
|
} else {
|
|
echo 'false';
|
|
}
|
|
die();
|
|
}
|
|
}
|
|
?>
|