示例#1
0
    date_default_timezone_set("UTC");
}
/**
 * If non-empty, only this user can access this installer
 */
define('INSTALL_USER', '');
define('INSTALL_PASSWORD', '');
// options for mainfile.php
$xoopsOption['nocommon'] = true;
define('XOOPS_INSTALL', 1);
include '../mainfile.php';
include_once '../include/version.php';
// including a few functions
require_once 'include/functions.php';
require_once '../libraries/icms/Autoloader.php';
icms_Autoloader::setup();
error_reporting(E_ALL);
class XoopsInstallWizard
{
    var $pages = array();
    var $titles = array();
    var $currentPage = 0;
    var $lastpage;
    var $secondlastpage;
    var $language = 'english';
    var $no_php5 = false;
    var $safe_mode = false;
    function xoInit()
    {
        if (!$this->checkAccess()) {
            return false;
示例#2
0
 /**
  * Initialize ImpressCMS before bootstrap
  */
 public static function setup()
 {
     self::$paths['www'] = array(ICMS_ROOT_PATH, ICMS_URL);
     self::$paths['modules'] = array(ICMS_ROOT_PATH . '/modules', ICMS_URL . '/modules');
     self::$paths['themes'] = array(ICMS_THEME_PATH, ICMS_THEME_URL);
     self::buildRelevantUrls();
     // Initialize the autoloader
     require_once dirname(__FILE__) . '/icms/Autoloader.php';
     icms_Autoloader::setup();
     register_shutdown_function(array(__CLASS__, 'shutdown'));
 }