XoopsModules25x /
xoopstube
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 | * Module: XoopsTube |
||
| 5 | * |
||
| 6 | * You may not change or alter any portion of this comment or credits |
||
| 7 | * of supporting developers from this source code or any supporting source code |
||
| 8 | * which is considered copyrighted (c) material of the original comment or credit authors. |
||
| 9 | * |
||
| 10 | * PHP version 5 |
||
| 11 | * |
||
| 12 | * @category Module |
||
| 13 | * @package Xoopstube |
||
| 14 | * @author XOOPS Development Team |
||
| 15 | * @copyright 2001-2013 The XOOPS Project |
||
| 16 | * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) |
||
| 17 | * @version $Id$ |
||
| 18 | * @link http://sourceforge.net/projects/xoops/ |
||
| 19 | * @since 1.0.6 |
||
| 20 | */ |
||
| 21 | |||
| 22 | include dirname(dirname(__DIR__)) . '/mainfile.php'; |
||
| 23 | |||
| 24 | $mydirname = basename(__DIR__); |
||
| 25 | $mydirpath = __DIR__; |
||
| 26 | |||
| 27 | include XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/include/config.php'; |
||
| 28 | include XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/include/functions.php'; |
||
| 29 | include XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/include/video.php'; |
||
| 30 | include XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/sbookmarks.php'; |
||
| 31 | include_once XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/class/class_thumbnail.php'; |
||
| 32 | include_once XOOPS_ROOT_PATH . '/modules/xoopstube/class/xoopstubetree.php'; |
||
| 33 | include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
||
| 34 | |||
| 35 | if (!file_exists('language/' . $xoopsConfig['language'] . '/main.php')) { |
||
| 36 | include __DIR__ . '/language/' . $xoopsConfig['language'] . '/main.php'; |
||
| 37 | } |
||
| 38 | |||
| 39 | include_once XOOPS_ROOT_PATH . '/modules/' . $mydirname . '/class/myts_extended.php'; |
||
| 40 | $xtubemyts = new xtubeTextSanitizer(); // MyTextSanitizer object |
||
| 41 | |||
| 42 | global $xoopModuleConfig; |
||
|
0 ignored issues
–
show
|
|||
| 43 |
Instead of relying on
globalstate, we recommend one of these alternatives:1. Pass all data via parameters
2. Create a class that maintains your state