$plugin_settings = fetchConfigParametersPlugins();
//Set Settings
$emailDate = date('F j, Y');
$emailActivation = $settings['activation'];
$can_register = $settings['can_register'];
$websiteName = $settings['website_name'];
$websiteUrl = $settings['website_url'];
$emailAddress = $settings['email'];
$resend_activation_threshold = $settings['resend_activation_threshold'];
$language = $settings['language'];
$new_user_title = $settings['new_user_title'];
$email_login = $settings['email_login'];
$token_timeout = $settings['token_timeout'];
$version = $settings['version'];
// Check for upgrade, do this hear for access to $version
checkUpgrade($version, $dev_env);
// Determine if this is SSL or unsecured connection
$url_prefix = "http://";
// Determine if connection is http or https
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') {
    // SSL connection
    $url_prefix = "https://";
}
// Define paths here
defined("SITE_ROOT") or define("SITE_ROOT", $url_prefix . $websiteUrl);
defined("ACCOUNT_ROOT") or define("ACCOUNT_ROOT", SITE_ROOT . "account/");
defined("LOCAL_ROOT") or define("LOCAL_ROOT", realpath(dirname(__FILE__) . "/.."));
defined("MENU_TEMPLATES") or define("MENU_TEMPLATES", dirname(__FILE__) . "/menu-templates/");
defined("MAIL_TEMPLATES") or define("MAIL_TEMPLATES", dirname(__FILE__) . "/mail-templates/");
// Include paths for files containing secure functions
$files_secure_functions = array(dirname(__FILE__) . "/secure_functions.php");
Пример #2
0
            $block1->contentTitle("Converting...");
            echo "<tr class='odd'><td valign='top' class='leftvalue'>&nbsp;</td><td>\n            We are now upgrading your database and writting the config file. <br /><br /><b>Please wait...</b><br />\n        \t</td></tr>";
            flush();
            echo "<tr class='odd'><td valign='top' class='leftvalue'>&nbsp;</td><td>";
            if (convertDB()) {
                echo "<br />Writting out new settings file...";
                rewriteConfig($settingsFile, '2.5');
                //Reload the Config so we can use the root
                include $settingsFile;
                echo "<b> done</b><br /><br />";
                echo "<br /><B>Congratulations... if there was no error writting the file, you are done.<br />Click <a href=\"../\">here</a> to login.";
                echo "<br><B>MAKE SURE TO DELETE  UPGRADE.PHP!";
                echo "</td></tr>";
                echo "<h3>If you are upgrading from 2.4 to the latest version, please re-run this upgrade script to perform additi</h3>";
            }
        }
    }
    $block1->closeContent();
    $stepNext = $step + 1;
    if ($step < "2") {
        echo "<form name='license' action='../installation/{$script}?step=2&redirect=true' method='post'><center><a href=\"javascript:document.license.submit();\"><br /><b>Step {$stepNext}</b></a><br /><br /></center></form><br/>";
    }
    $footerDev = "false";
    include '../themes/' . THEME . '/footer.php';
    //FOR DEBUG ****
    exit;
    // -----------------------
}
checkUpgrade();
/* End of file upgrade.php */
/* Location: ./installation/upgrade.php */