PHP Classes

File: include/config.php

Recommend this page to a friend!
  Classes of Michael Beck   XOOPS PHP About Page   include/config.php   Download  
File: include/config.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: XOOPS PHP About Page
Show the about page in a site managed using XOOPS
Author: By
Last change:
Date: 2 years ago
Size: 3,069 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.
 */

/**
 * @copyright XOOPS Project https://xoops.org/
 * @license GNU GPL 2 or later (https://www.gnu.org/licenses/gpl-2.0.html)
 * @package
 * @author XOOPS Development Team
 */

use Xmf\Module\Admin;

require_once
__DIR__ . '/common.php';

$moduleDirName = basename(dirname(__DIR__));
$moduleDirNameUpper = mb_strtoupper($moduleDirName);

/**
 * @return object
 */

$moduleDirName = basename(dirname(__DIR__));
$moduleDirNameUpper = mb_strtoupper($moduleDirName);

return (object)[
   
'name' => $moduleDirNameUpper . ' Module Configurator',
   
'paths' => [
       
'dirname' => $moduleDirName,
       
'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
       
'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
       
'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName,
       
'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
       
'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName,
    ],
   
'uploadFolders' => [
       
constant($moduleDirNameUpper . '_UPLOAD_PATH'),
       
// constant($moduleDirNameUpper . '_UPLOAD_PATH') . '/category',
        // constant($moduleDirNameUpper . '_UPLOAD_PATH') . '/screenshots',
       
XOOPS_UPLOAD_PATH . '/flags',
    ],
   
'blankFiles' => [
       
constant($moduleDirNameUpper . '_UPLOAD_PATH'),
       
// constant($moduleDirNameUpper . '_UPLOAD_PATH') . '/category',
        // constant($moduleDirNameUpper . '_UPLOAD_PATH') . '/screenshots',
       
XOOPS_UPLOAD_PATH . '/flags',
    ],

   
'templateFolders' => [
       
'/templates/',
       
'/templates/blocks/',
       
'/templates/admin/',
    ],
   
'oldFiles' => [
       
'/sql/wflinks.sql',
       
'/class/wfl_lists.php',
       
'/class/class_thumbnail.php',
       
'/vcard.php',
    ],
   
'oldFolders' => [
       
'/images',
       
'/css',
       
'/js',
       
'/tcpdf',
       
'/images',
    ],
   
'renameTables' => [// 'XX_archive' => 'ZZZZ_archive',
   
],
   
'moduleStats' => [
       
// 'totalcategories' => $helper->getHandler('Category')->getCategoriesCount(-1),
        // 'totalitems' => $helper->getHandler('Item')->getItemsCount(),
        // 'totalsubmitted' => $helper->getHandler('Item')->getItemsCount(-1, [Constants::PUBLISHER_STATUS_SUBMITTED]),
   
],
   
'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'>
                     <img src='"
. Admin::iconUrl('xoopsmicrobutton.gif') . "' alt='XOOPS Project'></a>",
];