XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
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 */
32 define('INSTALL_USER', '');
33 define('INSTALL_PASSWORD', '');
34 
35 define('XOOPS_INSTALL', 1);
36 
37 // options for mainfile.php
38 if (empty($xoopsOption['hascommon'])) {
39  $xoopsOption['nocommon'] = true;
40  session_start();
41 }
42 include_once '../mainfile.php';
43 if (!defined("XOOPS_ROOT_PATH")) {
44  define("XOOPS_ROOT_PATH", str_replace("\\", "/", realpath('../')));
45 }
46 /*
47 error_reporting( 0 );
48 if (isset($xoopsLogger)) {
49  $xoopsLogger->activated = false;
50 }
51 error_reporting(E_ALL);
52 $xoopsLogger->activated = true;
53 */
54 
55 include './class/installwizard.php';
56 include_once '../include/version.php';
57 include_once './include/functions.php';
58 include_once '../class/module.textsanitizer.php';
59 
60 $pageHasHelp = false;
61 $pageHasForm = false;
62 
64 if (!$wizard->xoInit()) {
65  exit();
66 }
67 
68 if (!@is_array($_SESSION['settings'])) {
69  $_SESSION['settings'] = array();
70 }
71 
72 ?>