PHP Classes

File: htdocs/install/include/config.php

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

Merge pull request #1014 from geekwright/dark-form-entry-fields

Darken form entry fields
Install config files from .dist.php files
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: 10 months ago
Size: 2,703 bytes
 

Contents

Class file image Download
<?php
/**
 * 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>
 */

if (!defined('XOOPS_INSTALL')) {
    die('XOOPS Custom Installation die');
}

$configs = [];

// setup config site info
$configs['db_types'] = ['mysql' => 'mysql'];

// setup config site info
$configs['conf_names'] = [
    'sitename',
    'slogan',
    'allow_register',
    'meta_keywords',
    'meta_description',
    'meta_author',
    'meta_copyright',
    'closesite',
    'debug_mode',
];

// languages config files
$configs['language_files'] = [
    'global',
];

// extension_loaded
$configs['extensions'] = [
    'mbstring' => [
        'MBString',
        sprintf(PHP_EXTENSION, CHAR_ENCODING),
    ],
    'intl'     => [
        'Intl',
        sprintf(PHP_EXTENSION, INTL_SUPPORT),
    ],
    'iconv'    => [
        'Iconv',
        sprintf(PHP_EXTENSION, ICONV_CONVERSION),
    ],
    'xml'      => [
        'XML',
        sprintf(PHP_EXTENSION, XML_PARSING),
    ],
    'zlib'     => [
        'Zlib',
        sprintf(PHP_EXTENSION, ZLIB_COMPRESSION),
    ],
    'gd'       => [
        (function_exists('gd_info') && $gdlib = @gd_info()) ? 'GD ' . $gdlib['GD Version'] : '',
        sprintf(PHP_EXTENSION, IMAGE_FUNCTIONS),
    ],
    'exif'     => [
        'Exif',
        sprintf(PHP_EXTENSION, IMAGE_METAS),
    ],
    'curl'     => [
        'Curl',
        sprintf(PHP_EXTENSION, CURL_HTTP),
    ],
];

// Writable files and directories
$configs['writable'] = [
    'uploads/',
    'uploads/avatars/',
    'uploads/files/',
    'uploads/images/',
    'uploads/ranks/',
    'uploads/smilies/',
];

// Modules to be installed by default
$configs['modules'] = [];

// xoops_lib, xoops_data directories
$configs['xoopsPathDefault'] = [
    'data' => 'xoops_data',
    'lib'  => 'xoops_lib',
];

// writable xoops_lib, xoops_data directories
$configs['dataPath'] = [
    'caches'    => [
        'smarty_cache',
        'smarty_compile',
        'xoops_cache',
    ],
    'configs'   => [
        'captcha',
        'textsanitizer',
    ],
    'data'      => null,
    'protector' => null,
];

return $configs;