Issues (525)

config/config.php (4 issues)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 You may not change or alter any portion of this comment or credits
7
 of supporting developers from this source code or any supporting source code
8
 which is considered copyrighted (c) material of the original comment or credit authors.
9
10
 This program is distributed in the hope that it will be useful,
11
 but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
*/
14
15
/**
16
 * TestModuleUpdate module for xoops
17
 *
18
 * @copyright    2021 XOOPS Project (https://xoops.org)
19
 * @license      GPL 2.0 or later
20
 * @package      testmoduleupdate
21
 * @since        1.0.0
22
 * @min_xoops    2.5.11 Beta1
23
 * @author       TDM XOOPS - Email:[email protected] - Website:https://xoops.org
24
 */
25
26
/**
27
 * return object
28
 */
29
30
$moduleDirName  = \basename(\dirname(__DIR__));
31
$moduleDirNameUpper  = \mb_strtoupper($moduleDirName);
32
return (object)[
33
    'name'           => \mb_strtoupper($moduleDirName) . ' Module Configurator',
34
    'paths'          => [
35
        'dirname'    => $moduleDirName,
36
        'admin'      => \XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
0 ignored issues
show
The constant XOOPS_ROOT_PATH was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
37
        'modPath'    => \XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
38
        'modUrl'     => \XOOPS_URL . '/modules/' . $moduleDirName,
0 ignored issues
show
The constant XOOPS_URL was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
39
        'uploadPath' => \XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
0 ignored issues
show
The constant XOOPS_UPLOAD_PATH was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
40
        'uploadUrl'  => \XOOPS_UPLOAD_URL . '/' . $moduleDirName,
0 ignored issues
show
The constant XOOPS_UPLOAD_URL was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
41
    ],
42
    'uploadFolders'  => [
43
        \XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
44
    ],
45
    'copyBlankFiles'  => [
46
        //\XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images',
47
    ],
48
    'copyTestFolders'  => [
49
        //[\XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/uploads',
50
        //\XOOPS_UPLOAD_PATH . '/' . $moduleDirName],
51
    ],
52
    'templateFolders'  => [
53
        '/templates/',
54
    ],
55
    'oldFiles'  => [
56
    ],
57
    'oldFolders'  => [
58
    ],
59
    'renameTables'  => [
60
        'mod_wgsitenotice_versions' => 'wgsitenotice_versions',
61
        'mod_wgsitenotice_contents' => 'wgsitenotice_contents',
62
    ],
63
    'renameColumns'  => [
64
        //'tablename' => ['columnname_old' => 'columnname_new'],
65
    ],
66
    'moduleStats'  => [
67
    ],
68
    'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'><img src='" . \XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . "/assets/images/logo/logoModule.png' alt='XOOPS Project'></a>",
69
];
70