PHP Classes

File: htdocs/install/page_start.php

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/install/page_start.php   Download  
File: htdocs/install/page_start.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change: copyright update
updated install, Bootstrap 5.3.3
Merge pull request #1239 from Andrew-Staves-Activ/notificationhandler_subscribe_success

Merge branch 'feature/php8_templates' of https://github.com/mambax7/XoopsCore25 into feature/php8_templates

# Conflicts:
# htdocs/themes/xswatch4/modules/publisher/publisher_item.tpl
Merge xswatch4
Date: 2 months ago
Size: 2,827 bytes
 

Contents

Class file image Download
<?php
/*
 You may not change or alter any portion of this comment or credits
 of supporting developers from this source code or any supporting source code
 which is considered copyrighted (c) material of the original comment or credit authors.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/**
 * Installer introduction page
 *
 * See the enclosed file license.txt for licensing information.
 * If you did not receive this file, get it at https://www.gnu.org/licenses/gpl-2.0.html
 *
 * @copyright (c) 2000-2025 XOOPS Project (https://xoops.org)
 * @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html)
 * @package installer
 * @since 2.3.0
 * @author Haruki Setoyama <haruki@planewave.org>
 * @author Kazumi Ono <webmaster@myweb.ne.jp>
 * @author Skalpa Keo <skalpa@xoops.org>
 * @author Taiwen Jiang <phppp@users.sourceforge.net>
 * @author DuGris (aka L. JEN) <dugris@frxoops.org>
 **/

require_once __DIR__ . '/include/common.inc.php';
defined('XOOPS_INSTALL') || die('XOOPS Installation wizard die');

$pageHasForm = false;

$content = include __DIR__ . "/language/{$wizard->language}/welcome.php";

$writable = '<div class="alert alert-warning"><ul style="list-style: none;">';
foreach (
$wizard->configs['writable'] as $key => $value) {
    if (
is_dir('../' . $value)) {
       
$writable .= '<li><span class="fa-solid fa-folder-open"></span> <strong>' . $value . '</strong></li>';
    } else {
       
$writable .= '<li><span class="fa-solid fa-file-code"></span> <strong>' . $value . '</strong></li>';
    }
}
$writable .= '</ul></div>';

$xoops_trust = '<div class="alert alert-warning"><ul style="list-style: none;">';
foreach (
$wizard->configs['xoopsPathDefault'] as $key => $value) {
   
$xoops_trust .= '<li><span class="fa-solid fa-folder-open"></span> <strong>' . $value . '</strong></li>';
}
$xoops_trust .= '</ul></div>';

$writable_trust = '<div class="alert alert-warning"><ul style="list-style: none;">';
foreach (
$wizard->configs['dataPath'] as $key => $value) {
   
$writable_trust .= '<li><span class="fa-solid fa-folder-open"></span> <strong>' . $wizard->configs['xoopsPathDefault']['data'] . '/' . $key . '</strong></li>';
    if (
is_array($value)) {
        foreach (
$value as $key2 => $value2) {
           
$writable_trust .= '<li><span class="fa-solid fa-folder-open"></span> <strong>' . $wizard->configs['xoopsPathDefault']['data'] . '/' . $key . '/' . $value2 . '</strong></li>';
        }
    }
}
$writable_trust .= '</ul></div>';

$content = sprintf($content, $writable, $xoops_trust, $writable_trust);

include
__DIR__ . '/include/install_tpl.php';