XOOPS  2.6.0
page_start.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 
27 require_once __DIR__ . '/include/common.inc.php';
28 
29 $_SESSION['error'] = array();
30 //$_SESSION['settings'] = array();
31 $_SESSION['siteconfig'] = array(
32  'adminname' => '',
33  'adminmail' => '',
34  'adminpass' => '',
35  'adminpass2' => '',
36 );
37 
38 /* @var $wizard XoopsInstallWizard */
39 $wizard = $_SESSION['wizard'];
40 
41 $wizard->loadLangFile('welcome');
42 $content = $_SESSION['content'];
43 
44 $writable = "<ul class='confirmMsg'>";
45 foreach ($wizard->configs['writable'] as $key => $value) {
46  if (is_dir('../' . $value)) {
47  $writable .= "<li class='directory'>$value</li>";
48  } else {
49  $writable .= "<li class='files'>$value</li>";
50  }
51 }
52 $writable .= "</ul>";
53 
54 $xoops_trust = "<ul class='confirmMsg'>";
55 foreach ($wizard->configs['xoopsPathDefault'] as $key => $value) {
56  $xoops_trust .= "<li class='directory'>$value</li>";
57 }
58 $xoops_trust .= "</ul>";
59 
60 $writable_trust = "<ul class='confirmMsg'>";
61 foreach ($wizard->configs['dataPath'] as $key => $value) {
62  $writable_trust .= "<li class='directory'>" . $wizard->configs['xoopsPathDefault']['data'] . '/' . $key . "</li>";
63  if (is_array($value)) {
64  foreach ($value as $key2 => $value2) {
65  $writable_trust .= "<li class='directory'>" . $wizard->configs['xoopsPathDefault']['data'] . '/' . $key . '/' . $value2 . "</li>";
66  }
67  }
68 }
69 $writable_trust .= "</ul>";
70 
72 
73 $_SESSION['pageHasHelp'] = false;
74 $_SESSION['pageHasForm'] = false;
75 $_SESSION['content'] = $content;
76 include XOOPS_INSTALL_PATH . '/include/install_tpl.php';
$writable
Definition: page_start.php:44
$_SESSION['error']
Definition: page_start.php:29
$xoops_trust
Definition: page_start.php:54
const XOOPS_INSTALL_PATH
Definition: common.inc.php:33
$content
Definition: page_start.php:42
$wizard
Definition: page_start.php:39
$writable_trust
Definition: page_start.php:60