Completed
Push — master ( 3f8ec2...f62223 )
by Michael
03:23 queued 14s
created

include/config.php (1 issue)

Severity
1
<?php
2
/*
3
 * You may not change or alter any portion of this comment or credits
4
 * of supporting developers from this source code or any supporting source code
5
 * which is considered copyrighted (c) material of the original comment or credit authors.
6
 *
7
 * This program is distributed in the hope that it will be useful,
8
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
 */
11
12
/**
13
 * @copyright    {@link https://xoops.org/ XOOPS Project}
14
 * @license      {@link http://www.gnu.org/licenses/gpl-2.0.html GNU GPL 2 or later}
15
 * @package      extcal
16
 * @since
17
 * @author       XOOPS Development Team,
18
 */
19
20
21
function getConfig()
22
{
23
    $moduleDirName      = basename(dirname(__DIR__));
24
    $moduleDirNameUpper = strtoupper($moduleDirName);
0 ignored issues
show
The assignment to $moduleDirNameUpper is dead and can be removed.
Loading history...
25
26
    return (object)[
27
        'name'           => strtoupper($moduleDirName) . ' Module Configurator',
28
        'paths'          => [
29
            'dirname'    => $moduleDirName,
30
            'admin'      => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
31
            'modPath'    => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
32
            'modUrl'     => XOOPS_URL . '/modules/' . $moduleDirName,
33
            'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
34
            'uploadUrl'  => XOOPS_UPLOAD_URL . '/' . $moduleDirName,
35
        ],
36
        'uploadFolders'  => [
37
            XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
38
            XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images',
39
            XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/thumbnails'
40
        ],
41
        'copyBlankFiles' => [
42
            XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images',
43
            XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/thumbnails'
44
        ],
45
46
        'copyTestFolders' => [
47
            [
48
                XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/images',
49
                XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images',
50
            ],
51
            [
52
                XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/thumbs',
53
                XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/thumbs',
54
            ]
55
        ],
56
57
        'templateFolders' => [
58
            '/templates/',
59
            '/templates/blocks/',
60
            '/templates/admin/'
61
62
        ],
63
        'oldFiles'        => [
64
            '/include/update_functions.php',
65
            '/include/install_functions.php'
66
        ],
67
        'oldFolders'      => [
68
            '/images',
69
            '/css',
70
            '/js',
71
            '/tcpdf',
72
            '/images',
73
        ],
74
        'modCopyright'    => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'>
75
                     <img src='" . XOOPS_URL . '/modules/' . $moduleDirName . '_AUTHOR_LOGOIMG' . '\' alt=\'XOOPS Project\' /></a>',
76
77
    ];
78
}
79