These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /** |
||
3 | * **************************************************************************** |
||
4 | * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) |
||
5 | * **************************************************************************** |
||
6 | * XNEWSLETTER - MODULE FOR XOOPS |
||
7 | * Copyright (c) 2007 - 2012 |
||
8 | * Goffy ( wedega.com ) |
||
9 | * |
||
10 | * You may not change or alter any portion of this comment or credits |
||
11 | * of supporting developers from this source code or any supporting |
||
12 | * source code which is considered copyrighted (c) material of the |
||
13 | * original comment or credit authors. |
||
14 | * |
||
15 | * This program is distributed in the hope that it will be useful, |
||
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
18 | * GNU General Public License for more details. |
||
19 | * --------------------------------------------------------------------------- |
||
20 | * @copyright Goffy ( wedega.com ) |
||
21 | * @license GPL 2.0 |
||
22 | * @package xnewsletter |
||
23 | * @author Goffy ( [email protected] ) |
||
24 | * |
||
25 | * Version : $Id $ |
||
26 | * **************************************************************************** |
||
27 | */ |
||
28 | |||
29 | include_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
||
30 | include_once __DIR__ . '/include/common.php'; |
||
31 | |||
32 | include_once XOOPS_ROOT_PATH . "/class/pagenav.php"; |
||
33 | include_once XOOPS_ROOT_PATH . '/include/functions.php'; |
||
34 | |||
35 | global $xoopsConfig; |
||
0 ignored issues
–
show
|
|||
36 | |||
37 | //Load languages |
||
38 | xoops_loadLanguage('admin', $xnewsletter->getModule()->dirname()); |
||
39 | xoops_loadLanguage('modinfo', $xnewsletter->getModule()->dirname()); |
||
40 | xoops_loadLanguage('main', $xnewsletter->getModule()->dirname()); |
||
41 |
Instead of relying on
global
state, we recommend one of these alternatives:1. Pass all data via parameters
2. Create a class that maintains your state