XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
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 */
29 require_once './include/common.inc.php';
30 defined('XOOPS_INSTALL') or die('XOOPS Installation wizard die');
31 
33 
34 $content = "";
35 include "./language/{$wizard->language}/welcome.php";
36 
37 $writable = "<ul class='confirmMsg'>";
38 foreach ($wizard->configs['writable'] as $key => $value) {
39  if (is_dir( '../' . $value )) {
40  $writable .= "<li class='directory'>$value</li>";
41  } else {
42  $writable .= "<li class='files'>$value</li>";
43  }
44 }
45 $writable .= "</ul>";
46 
47 $xoops_trust = "<ul class='confirmMsg'>";
48 foreach ($wizard->configs['xoopsPathDefault'] as $key => $value) {
49  $xoops_trust .= "<li class='directory'>$value</li>";
50 }
51 $xoops_trust .= "</ul>";
52 
53 $writable_trust = "<ul class='confirmMsg'>";
54 foreach ($wizard->configs['dataPath'] as $key => $value) {
55  $writable_trust .= "<li class='directory'>" . $wizard->configs['xoopsPathDefault']['data'] . '/' . $key . "</li>";
56  if (is_array($value)) {
57  foreach ($value as $key2 => $value2) {
58  $writable_trust .= "<li class='directory'>" . $wizard->configs['xoopsPathDefault']['data'] . '/' . $key . '/' .$value2 . "</li>";
59  }
60  }
61 }
62 $writable_trust .= "</ul>";
63 
64 $content = sprintf( $content, $writable, $xoops_trust, $writable_trust ) ;
65 
66 include './include/install_tpl.php';
67 ?>