1
|
|
|
<?php namespace Xoopsmodules\randomquote\common; |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
You may not change or alter any portion of this comment or credits |
5
|
|
|
of supporting developers from this source code or any supporting source code |
6
|
|
|
which is considered copyrighted (c) material of the original comment or credit authors. |
7
|
|
|
|
8
|
|
|
This program is distributed in the hope that it will be useful, |
9
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
10
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
11
|
|
|
*/ |
12
|
|
|
/** |
13
|
|
|
* Module: randomquote |
14
|
|
|
* |
15
|
|
|
* @category Module |
16
|
|
|
* @package randomquote |
17
|
|
|
* @author XOOPS Development Team <[email protected]> - <https://xoops.org> |
18
|
|
|
* @copyright {@link https://xoops.org/ XOOPS Project} |
19
|
|
|
* @license GPL 2.0 or later |
20
|
|
|
* @link https://xoops.org/ |
21
|
|
|
* @since 1.0.0 |
22
|
|
|
*/ |
23
|
|
|
|
24
|
|
|
//require_once __DIR__ . '/../../include/common.php'; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* Class Configurator |
28
|
|
|
*/ |
29
|
|
|
class Configurator |
30
|
|
|
{ |
31
|
|
|
public $name; |
32
|
|
|
public $paths = []; |
33
|
|
|
public $uploadFolders = []; |
34
|
|
|
public $copyBlankFiles = []; |
35
|
|
|
public $copyTestFolders = []; |
36
|
|
|
public $templateFolders = []; |
37
|
|
|
public $oldFiles = []; |
38
|
|
|
public $oldFolders = []; |
39
|
|
|
public $modCopyright; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* Configurator constructor. |
43
|
|
|
*/ |
44
|
|
|
public function __construct() |
45
|
|
|
{ |
46
|
|
|
$moduleDirName = basename(dirname(__DIR__)); |
47
|
|
|
$capsDirName = strtoupper($moduleDirName); |
48
|
|
|
|
49
|
|
|
$config = include __DIR__ . '/../../include/config.php'; |
50
|
|
|
|
51
|
|
|
$this->name = $config->name; |
52
|
|
|
$this->paths = $config->paths; |
53
|
|
|
$this->uploadFolders = $config->uploadFolders; |
54
|
|
|
$this->copyBlankFiles = $config->copyBlankFiles; |
55
|
|
|
$this->copyTestFolders = $config->copyTestFolders; |
56
|
|
|
$this->templateFolders = $config->templateFolders; |
57
|
|
|
$this->oldFiles = $config->oldFiles; |
58
|
|
|
$this->oldFolders = $config->oldFolders; |
59
|
|
|
$this->modCopyright = $config->modCopyright; |
60
|
|
|
|
61
|
|
|
} |
62
|
|
|
} |
63
|
|
|
|