38 lines
1.1 KiB
PHP
38 lines
1.1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* This file is part of the Froxlor project.
|
|
* Copyright (c) 2010 the Froxlor Team (see authors).
|
|
*
|
|
* For the full copyright and license information, please view the COPYING
|
|
* file that was distributed with this source code. You can also view the
|
|
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
|
|
*
|
|
* @copyright (c) the authors
|
|
* @author Froxlor team <team@froxlor.org> (2010-)
|
|
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
|
|
* @package Install
|
|
*
|
|
*/
|
|
if (! defined('_CRON_UPDATE')) {
|
|
if (! defined('AREA') || (defined('AREA') && AREA != 'admin') || ! isset($userinfo['loginname']) || (isset($userinfo['loginname']) && $userinfo['loginname'] == '')) {
|
|
header('Location: ../../../../index.php');
|
|
exit();
|
|
}
|
|
}
|
|
|
|
if (isFroxlorVersion('0.9.39.5')) {
|
|
|
|
showUpdateStep("Updating from 0.9.39.5 to 0.10.0", false);
|
|
updateToVersion('0.10.0');
|
|
}
|
|
|
|
if (isDatabaseVersion('201802150')) {
|
|
|
|
showUpdateStep("Adding new default-ssl-ip setting");
|
|
Settings::AddNew('system.defaultsslip', '');
|
|
lastStepStatus(0);
|
|
|
|
updateToDbVersion('201802210');
|
|
}
|