示例#1
0
function __requirements()
{
    global $__settings, $error, $software;
    if (sversion_compare($__settings['ver'], $software['ver'], '>=')) {
        $error[] = 'It is not possible to Upgrade from ' . $__settings['ver'] . ' to ' . $software['ver'];
    }
    //If there are some shorfalls then pass it to $error and return false
    return true;
}
示例#2
0
function __requirements()
{
    global $__settings, $error, $software;
    // Change this every time there is an update becuase the script can be updated only from successive versions i.e. 2.3.5 to 2.3.6
    $allowed_ver = '2.3.5';
    if (sversion_compare($__settings['ver'], $allowed_ver, '<')) {
        $error[] = 'It is not possible to upgrade Subrion from versions less than ' . $allowed_ver;
    }
    return true;
}
示例#3
0
function __requirements()
{
    global $__settings, $error, $software;
    //If there are some shorfalls then pass it to $error and return false
    if (sversion_compare($__settings['ver'], '5.5.2.1', '<')) {
        $error[] = 'You cannot upgrade to ' . $software['ver'] . ' unless you have upgraded to 5.5.2.1';
        return false;
    }
    return true;
}
示例#4
0
function __requirements()
{
    //If there are some shorfalls then pass it to $error and return false
    global $__settings, $error, $software, $globals;
    // Update is possible only after 6.0
    if (sversion_compare($__settings['ver'], '6.0', '<')) {
        $error[] = 'It is not possible to upgrade from versions less than 6.0';
    }
    //If there are some shorfalls then pass it to $error and return false
    return true;
}
示例#5
0
function __requirements()
{
    global $__settings, $error, $software, $globals;
    //If there are some shorfalls then pass it to $error and return false
    if ($globals['softpanel'] == 'ampps') {
        $error[] = "Upgrade is not possible through AMPPS";
    }
    if (!function_exists('shell_exec')) {
        $error[] = "Upgrade requires shell_exec to be enabled on your server";
    }
    if (sversion_compare($__settings['ver'], '6.5.0', '<')) {
        $error[] = "Upgrade is possible from version 6.5.0";
    }
    return true;
}