39 lines
1.3 KiB
PHP
Raw Normal View History

2015-06-26 01:31:53 -03:00
<?php defined('BLUDIT') or die('Bludit CMS.');
2015-03-27 01:00:01 +00:00
2015-06-26 01:31:53 -03:00
// ============================================================================
// Functions
// ============================================================================
function updateBludit() {
global $Site;
// Check if Bludit need to be update.
if( ($Site->currentBuild() < BLUDIT_BUILD) || isset($_GET['update']) ) {
Log::set('UPDATE SYSTEM - Starting.');
2017-05-16 00:46:20 +02:00
// From Bludit v2.0.x to v2.1.x
if ($Site->currentBuild() < '20171102') {
// Nothing to do
}
2017-05-16 00:46:20 +02:00
// Set the current build number
$Site->set(array('currentBuild'=>BLUDIT_BUILD));
Log::set('UPDATE SYSTEM - Finished.');
}
}
2015-03-27 01:00:01 +00:00
2015-08-02 21:49:12 -03:00
// ============================================================================
// Main before POST
// ============================================================================
2015-06-26 01:31:53 -03:00
// ============================================================================
// POST Method
// ============================================================================
// ============================================================================
2015-08-02 21:49:12 -03:00
// Main after POST
2015-06-26 01:31:53 -03:00
// ============================================================================
// Try update Bludit
updateBludit();
2015-07-26 21:29:47 -03:00
// Title of the page
$layout['title'] .= ' - '.$Language->g('Dashboard');