Exemplo n.º 1
0
# This file is part of Exponent
#
# Exponent is free software; you can redistribute
# it and/or modify it under the terms of the GNU
# General Public License as published by the Free
# Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
if (!defined('EXPONENT')) {
    exit('');
}
//expSession::un_set('installer_config');
expSession::clearAllSessionData();
global $user;
if (isset($_REQUEST['upgrade'])) {
    // upgrades hit this
    //    if (unlink(BASE.'install/not_configured')) {
    $leaveinstaller = unlink(BASE . 'install/not_configured') || !file_exists(BASE . 'install/not_configured');
    if ($leaveinstaller) {
        echo '<h2>' . gt('You\'re all set!') . "</h2>";
        echo '<p>' . gt('Take me to your leader') . "</p>";
    } else {
        echo '<h2>' . gt('Hmmmm....') . "</h2>";
        echo '<p>' . gt('We weren\'t able to remove /install/not_configured. Remove this file manually to complete your upgrade.') . "</p>";
    }
    ?>
    <p><?php 
    echo gt('Log back in to start using all your fancy new enhancements!');