Exemplo n.º 1
0
 * @author		Haruki Setoyama  <*****@*****.**>
 * @author 		Kazumi Ono <*****@*****.**>
 * @author		Skalpa Keo <*****@*****.**>
 * @version		$Id: page_end.php 20098 2010-09-07 16:19:19Z skenow $
 */
/**
 *
 */
require_once 'common.inc.php';
if (!defined('XOOPS_INSTALL')) {
    exit;
}
$success = isset($_GET['success']) ? trim($_GET['success']) : false;
if ($success) {
    if (is_dir(ICMS_ROOT_PATH . '/install')) {
        icms_core_Filesystem::deleteRecursive(ICMS_ROOT_PATH . '/install', true);
        header('Location: ' . ICMS_URL . '/index.php');
    }
    $_SESSION = array();
}
$wizard->setPage('end');
$pageHasForm = false;
$content = "";
include "./language/{$wizard->language}/finish.php";
// destroy all the installation session
unset($_SESSION);
if (isset($_COOKIE[session_name()])) {
    setcookie(session_name(), '', time() - 60);
}
session_unset();
session_destroy();
Exemplo n.º 2
0
/**
 * Recursively delete a directory
 *
 * @param string $dir Directory name
 * @param bool $deleteRootToo Delete specified top-level directory as well
 * @deprecated	Use icms_core_Filesystem::deleteRecursive
 * @todo		Remove in version 1.4 - all instances have been removed from the core
 */
function icms_unlinkRecursive($dir, $deleteRootToo = true)
{
    icms_core_Debug::setDeprecated('icms_core_Filesystem::deleteRecursive', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_core_Filesystem::deleteRecursive($dir, $deleteRootToo);
}
    //echo sprintf(_CO_ICMS_UPDATE_DBVERSION, icms_conv_nr2local($newDbVersion));
    icms::$xoopsDB->queryF("UPDATE `" . icms::$xoopsDB->prefix('config') . "` SET conf_formtype = 'textsarea', conf_valuetype = 'text' WHERE conf_name = 'reg_disclaimer'");
    $icmsDatabaseUpdater->updateModuleDBVersion($newDbVersion, 'system');
    echo sprintf(_DATABASEUPDATER_UPDATE_OK, icms_conv_nr2local($newDbVersion)) . '<br />';
}
if (!$abortUpdate) {
    $newDbVersion = 14;
}
if ($dbVersion < $newDbVersion) {
    if (is_writable(ICMS_PLUGINS_PATH) || is_dir(ICMS_ROOT_PATH . '/plugins/preloads') && is_writable(ICMS_ROOT_PATH . '/plugins/preloads')) {
        if (is_dir(ICMS_ROOT_PATH . '/preload')) {
            /* Remove these 2 files so they don't overwrite the updated versions provided in 1.3 */
            icms_core_Filesystem::deleteFile(ICMS_ROOT_PATH . '/preload/customtag.php');
            icms_core_Filesystem::deleteFile(ICMS_ROOT_PATH . '/preload/userinfo.php');
            if (icms_core_Filesystem::copyRecursive(ICMS_ROOT_PATH . '/preload', ICMS_ROOT_PATH . '/plugins/preloads')) {
                icms_core_Filesystem::deleteRecursive(ICMS_ROOT_PATH . '/preload');
            } else {
                $newDbVersion = 13;
                echo '<br />' . sprintf(_MD_AM_PLUGINSFOLDER_UPDATE_TEXT, ICMS_PLUGINS_PATH, ICMS_ROOT_PATH . '/plugins/preloads');
                $abortUpdate = true;
            }
        }
    } else {
        $newDbVersion = 13;
        echo '<br />' . sprintf(_MD_AM_PLUGINSFOLDER_UPDATE_TEXT, ICMS_PLUGINS_PATH, ICMS_ROOT_PATH . '/plugins/preloads');
        $abortUpdate = true;
    }
    $icmsDatabaseUpdater->updateModuleDBVersion($newDbVersion, 'system');
    echo sprintf(_DATABASEUPDATER_UPDATE_OK, icms_conv_nr2local($newDbVersion)) . '<br />';
}
if (!$abortUpdate) {