Esempio n. 1
0
function __upgrade($version_from)
{
    global $__settings, $globals, $setupcontinue, $software, $error, $notes;
    // We need to unzip the upgrade package
    if (!sunzip($software['path'] . '/upgrade/upgrade.zip', $__settings['softpath'])) {
        $error[] = 'Could not unzip the upgrade package.';
    }
    if (sversion_compare($__settings['ver'], '2.3.6', '<')) {
        $setupcontinue = 'admin/manage/database/import/';
        $notes = 'Please Login as Admin and visit the above Upgrade url then click on <b>Go</b> to upgrade the database.<br />
		Remove the following file after completing the above database Upgrade process : <br /> <b>' . $__settings['softpath'] . '/install/modules/module.install.php</b>';
    }
}
Esempio n. 2
0
function __upgrade($version_from)
{
    global $__settings, $globals, $setupcontinue, $software, $error;
    $include = array();
    $exclude = array();
    $exclude[] = 'scripts/GLOBALS.php';
    $exclude[] = 'include/GLOBALS.php';
    $package = $software['path'] . '/data.zip';
    //Ok lets UNZIP the SOFTWARE Package
    if (!sunzip($package, $__settings['softdatadir'], 1, $include, $exclude)) {
        $error[] = 'There was some error in unzipping the FUDforum data directory';
        return false;
    }
    schmod($__settings['softpath'] . '/GLOBALS.php', $globals['odc']);
    schmod($__settings['softpath'] . '/theme/', $globals['odc'], 1);
    schmod($__settings['softpath'] . '/feed.php', $globals['ofc']);
    schmod($__settings['softpath'] . '/pdf.php', $globals['ofc']);
    schmod($__settings['softpath'] . '/index.php', $globals['ofc']);
}