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 | * pedigree module |
||
13 | * |
||
14 | * @copyright {@link https://xoops.org/ XOOPS Project} |
||
15 | * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU GPL 2 or later} |
||
16 | * @package pedigree |
||
17 | * @author Xoops Module Dev Team |
||
18 | */ |
||
19 | |||
20 | use XoopsModules\Pedigree; |
||
21 | |||
22 | require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
||
23 | require_once __DIR__ . '/include/common.php'; |
||
24 | |||
25 | $moduleDirName = basename(__DIR__); |
||
26 | xoops_loadLanguage('main', $moduleDirName); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
27 | $pathIcon16 = \Xmf\Module\Admin::iconUrl('', 16); |
||
0 ignored issues
–
show
The type
Xmf\Module\Admin was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
28 | |||
29 | if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof XoopsTpl)) { |
||
0 ignored issues
–
show
The type
XoopsTpl was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
30 | require_once $GLOBALS['xoops']->path('class/template.php'); |
||
31 | $GLOBALS['xoopsTpl'] = new \XoopsTpl(); |
||
32 | } |
||
33 | //$xoops = Xoops::getInstance(); |
||
34 | //$xoopsTpl = $xoops->tpl(); |
||
35 | |||
36 | $GLOBALS['xoopsTpl']->assign('mod_url', PEDIGREE_URL); //<{$mod_url}> |
||
37 | |||
38 | // uncomment the below line only if you are using Protector 3.x module |
||
39 | // and you trust your users when uploading files, it is recommended to not allow anonymous uploads if you do so!! |
||
40 | //define('PROTECTOR_SKIP_FILESCHECKER', true); |
||
41 |