Beispiel #1
0
 public function get_check()
 {
     $this->response(array('version' => Update::check_version() === Update::VERSION_OLD ? Update::remote_version() : FALSE, 'database' => strlen(Update::check_database())));
 }
Beispiel #2
0
<div class="panel">
	<div class="panel-heading">
		<span class="panel-title"><?php 
echo __('Update');
?>
</<>
	</div>
	<div class="panel-body">
		<?php 
if (Update::check_version() === Update::VERSION_OLD) {
    ?>
		<h3><?php 
    echo __('There is a new :cms_name version (:version)', array(':version' => Update::remote_version(), ':cms_name' => CMS_NAME));
    ?>
</h3>
		<?php 
} else {
    ?>
		
		<h3><?php 
    echo __('You have the latest version of :cms_name', array(':cms_name' => CMS_NAME));
    ?>
</h3>
		<?php 
}
?>
		
		<p><?php 
echo __('To update the system, you can download :archive and unzip it to a folder :folder', array(':archive' => Update::link('archive'), ':folder' => CMSPATH));
?>
</p>