XOOPS  2.6.0
common.inc.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
11 
30 define('INSTALL_USER', '');
31 define('INSTALL_PASSWORD', '');
32 define('XOOPS_INSTALL', 1);
33 define('XOOPS_INSTALL_PATH', dirname(__DIR__));
34 
35 // options for mainfile.php
36 if (false === date_default_timezone_set(@date_default_timezone_get())) {
37  date_default_timezone_set('UTC'); // use this until properly set
38 }
39 if (empty($xoopsOption['hascommon'])) {
40  $xoopsOption['nocommon'] = true;
41  session_start();
42 }
43 $mainfile = dirname(dirname(__DIR__)) . '/mainfile.php';
44 if (file_exists($mainfile)) {
46 }
47 if (!defined("XOOPS_ROOT_PATH")) {
48  define("XOOPS_ROOT_PATH", str_replace("\\", "/", realpath('../')));
49  define("XOOPS_PATH", isset($_SESSION['settings']['PATH']) ? $_SESSION['settings']['PATH']:"");
50  define("XOOPS_VAR_PATH", isset($_SESSION['settings']['VAR_PATH']) ? $_SESSION['settings']['VAR_PATH']:"");
51  define("XOOPS_URL", isset($_SESSION['settings']['URL']) ? $_SESSION['settings']['URL']:"");
52 }
53 
54 include XOOPS_INSTALL_PATH . '/class/installwizard.php';
55 include_once XOOPS_ROOT_PATH . '/include/version.php';
56 include_once XOOPS_INSTALL_PATH . '/include/functions.php';
57 include_once XOOPS_ROOT_PATH . '/include/defines.php';
58 //include_once XOOPS_ROOT_PATH . '/class/xoopsload.php';
59 if (!class_exists('XoopsBaseConfig', false)) {
60  include_once XOOPS_ROOT_PATH . '/class/XoopsBaseConfig.php';
62 }
63 $_SESSION['pageHasHelp'] = false;
64 $_SESSION['pageHasForm'] = false;
65 
67 $_SESSION['wizard'] = $wizard;
68 
69 if (!$wizard->xoInit()) {
70  exit('Init Error');
71 }
72 
73 if (!isset($_SESSION['settings']) || !is_array($_SESSION['settings'])) {
74  $_SESSION['settings'] = array();
75 }
if(!class_exists('XoopsBaseConfig', false)) $_SESSION['pageHasHelp']
Definition: common.inc.php:63
$xoopsOption['nocommon']
Definition: browse.php:22
exit
Definition: browse.php:104
static bootstrapTransition()
$wizard
Definition: common.inc.php:66
if(false===date_default_timezone_set(@date_default_timezone_get())) if(empty($xoopsOption['hascommon'])) $mainfile
Definition: common.inc.php:43
const XOOPS_INSTALL_PATH
Definition: common.inc.php:33