PHP Classes

File: config/config.php

Recommend this page to a friend!
  Classes of Goffy G   wgGallery   config/config.php   Download  
File: config/config.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: wgGallery
Image gallery module for XOOPS CMS
Author: By
Last change:
Date: 3 years ago
Size: 4,321 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
 * @since
 * @author XOOPS Development Team
 */
$moduleDirName = basename(dirname(__DIR__));
$moduleDirNameUpper = mb_strtoupper($moduleDirName);

if (!
defined($moduleDirNameUpper . '_AUTHOR_LOGOIMG')) {
   
$pathIcon32 = \Xmf\Module\Admin::iconUrl('', 32);
   
define($moduleDirNameUpper . '_AUTHOR_LOGOIMG', $pathIcon32 . '/xoopsmicrobutton.gif');
}

return (object)[
   
'name' => mb_strtoupper($moduleDirName) . ' 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' => [
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images',
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/albums',
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/original',
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/large',
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/medium',
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/thumbs',
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/temp',
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/watermarks',
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/watermarks-test',
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/temp',
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images',
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/fonts',
       
//XOOPS_UPLOAD_PATH . '/flags'
   
],
   
'copyBlankFiles' => [
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images',
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/albums',
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/original',
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/large',
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/medium',
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/thumbs',
       
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/watermarks',
       
//XOOPS_UPLOAD_PATH . '/flags'
   
],

   
'copyTestFolders' => [
        [
           
XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/uploads',
           
XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
        ],
    ],

   
'templateFolders' => [
       
'/templates/',
       
// '/templates/blocks/',
        // '/templates/admin/'
   
],
   
'oldFiles' => [
       
'/class/request.php',
       
'/class/registry.php',
       
'/class/utilities.php',
       
'/class/util.php',
       
// '/include/constants.php',
        // '/include/functions.php',
       
'/ajaxrating.txt',
    ],
   
'oldFolders' => [
       
'/images',
       
'/css',
       
'/js',
       
'/tcpdf',
    ],

   
'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='"
. constant($moduleDirNameUpper . '_AUTHOR_LOGOIMG') . '\' alt=\'XOOPS Project\'></a>',
];