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 | /** @var Pedigree\Helper $helper */ |
||
26 | $helper = Pedigree\Helper::getInstance(); |
||
27 | |||
28 | $moduleDirName = basename(__DIR__); |
||
29 | xoops_loadLanguage('main', $moduleDirName); |
||
30 | $pathIcon16 = \Xmf\Module\Admin::iconUrl('', 16); |
||
31 | |||
32 | if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof XoopsTpl)) { |
||
33 | require_once $GLOBALS['xoops']->path('class/template.php'); |
||
34 | $GLOBALS['xoopsTpl'] = new \XoopsTpl(); |
||
35 | } |
||
36 | //$xoops = Xoops::getInstance(); |
||
37 | //$xoopsTpl = $xoops->tpl(); |
||
38 | |||
39 | $GLOBALS['xoopsTpl']->assign('mod_url', PEDIGREE_URL); //<{$mod_url}> |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
40 | |||
41 | // uncomment the below line only if you are using Protector 3.x module |
||
42 | // and you trust your users when uploading files, it is recommended to not allow anonymous uploads if you do so!! |
||
43 | //define('PROTECTOR_SKIP_FILESCHECKER', true); |
||
44 |