Completed
Push — master ( 8ca430...3024c9 )
by Michael
03:12
created

admin/menu.php (5 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * Module: XoopsTube
4
 *
5
 * You may not change or alter any portion of this comment or credits
6
 * of supporting developers from this source code or any supporting source code
7
 * which is considered copyrighted (c) material of the original comment or credit authors.
8
 *
9
 * PHP version 5
10
 *
11
 * @category        Module
12
 * @package         Xoopstube
13
 * @author          XOOPS Development Team
14
 * @copyright       2001-2013 The XOOPS Project
15
 * @license         GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
16
 * @version         $Id$
17
 * @link            http://sourceforge.net/projects/xoops/
18
 * @since           1.0.6
19
 */
20
21
// defined('XOOPS_ROOT_PATH') || die('XOOPS Root Path not defined');
0 ignored issues
show
Unused Code Comprehensibility introduced by
70% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
22
23
$path = dirname(dirname(dirname(__DIR__)));
24
include_once $path . '/mainfile.php';
25
26
$dirname        = basename(dirname(__DIR__));
27
$module_handler = xoops_gethandler('module');
28
$module         = $module_handler->getByDirname($dirname);
29
30
$pathIcon32 = '../../' . $module->getInfo('icons32');
31
32
$pathLanguage = XOOPS_ROOT_PATH . '/' . $module->getInfo('dirmoduleadmin');
33
34
if (!file_exists($fileinc = $pathLanguage . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'main.php')) {
35
    $fileinc = $pathLanguage . '/language/english/main.php';
36
}
37
include_once $fileinc;
38
39
$adminmenu = array();
40
41
$i = 1;
42
43
$adminmenu[$i]["title"] = _AM_MODULEADMIN_HOME;
44
$adminmenu[$i]["link"]  = "admin/index.php";
45
$adminmenu[$i]["icon"]  = $pathIcon32 . '/home.png';
46
++$i;
47
48
$adminmenu[$i]["title"] = _MI_XOOPSTUBE_BINDEX;
49
$adminmenu[$i]["link"]  = "admin/main.php";
50
$adminmenu[$i]["icon"]  = $pathIcon32 . '/manage.png';
51
//++$i;
0 ignored issues
show
Unused Code Comprehensibility introduced by
65% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
52
//$adminmenu[$i]['title'] = _MI_XOOPSTUBE_MCATEGORY;
53
//$adminmenu[$i]['link']  = "admin/category.php";
54
//$adminmenu[$i]["icon"]  = $pathIcon32 . '/category.png';
55
//++$i;
56
//$adminmenu[$i]['title'] = _MI_XOOPSTUBE_MVIDEOS;
57
//$adminmenu[$i]['link']  = "admin/xoopstube.php?op=edit";
58
//$adminmenu[$i]["icon"]  = $pathIcon32 . '/marquee.png';
59
++$i;
60
$adminmenu[$i]['title'] = _MI_XOOPSTUBE_SNEWFILESVAL;
61
$adminmenu[$i]['link']  = "admin/newvideos.php";
62
$adminmenu[$i]["icon"]  = $pathIcon32 . '/add.png';
63
++$i;
64
$adminmenu[$i]['title'] = _MI_XOOPSTUBE_SMODREQUEST;
65
$adminmenu[$i]['link']  = "admin/modifications.php";
66
$adminmenu[$i]["icon"]  = $pathIcon32 . '/update.png';
67
++$i;
68
$adminmenu[$i]['title'] = _MI_XOOPSTUBE_SBROKENSUBMIT;
69
$adminmenu[$i]['link']  = "admin/brokenvideo.php";
70
$adminmenu[$i]["icon"]  = $pathIcon32 . '/link_break.png';
71
++$i;
72
$adminmenu[$i]['title'] = _MI_XOOPSTUBE_MUPLOADS;
73
$adminmenu[$i]['link']  = "admin/upload.php";
74
$adminmenu[$i]["icon"]  = $pathIcon32 . '/photo.png';
75
76
++$i;
77
$adminmenu[$i]['title'] = _MI_XOOPSTUBE_VUPLOADS;
78
$adminmenu[$i]['link']  = "admin/vupload.php";
79
$adminmenu[$i]["icon"]  = $pathIcon32 . '/marquee.png';
80
//++$i;
0 ignored issues
show
Unused Code Comprehensibility introduced by
66% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
81
//$adminmenu[$i]['title'] = _MI_XOOPSTUBE_BLOCKADMIN;
82
//$adminmenu[$i]['link']  = 'admin/blocksadmin.php';
83
//$adminmenu[$i]["icon"]  = $pathIcon32 . '/block.png';
84
++$i;
85
$adminmenu[$i]['title'] = _MI_XOOPSTUBE_PERMISSIONS;
86
$adminmenu[$i]['link']  = "admin/permissions.php";
87
$adminmenu[$i]["icon"]  = $pathIcon32 . '/permissions.png';
88
89
++$i;
90
$adminmenu[$i]['title'] = _MI_XOOPSTUBE_MVOTEDATA;
91
$adminmenu[$i]['link']  = "admin/votedata.php";
92
$adminmenu[$i]["icon"]  = $pathIcon32 . '/poll.png';
93
++$i;
94
95
$adminmenu[$i]["title"] = _MI_XOOPSTUBE_INDEXPAGE;
96
$adminmenu[$i]["link"]  = "admin/indexpage.php";
97
$adminmenu[$i]["icon"]  = $pathIcon32 . '/index.png';
98
99
++$i;
100
$adminmenu[$i]['title'] = _AM_MODULEADMIN_ABOUT;
101
$adminmenu[$i]["link"]  = "admin/about.php";
102
$adminmenu[$i]["icon"]  = $pathIcon32 . '/about.png';
103
104
//++$i;
0 ignored issues
show
Unused Code Comprehensibility introduced by
69% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
105
//$adminmenu[$i]["title"] = _AM_XOOPSTUBE_ABOUT;
106
//$adminmenu[$i]["link"]  = "admin/about2.php";
107
//$adminmenu[$i]["icon"] = $pathIcon32.'/about.png';
108
109
//	$adminmenu[1]['title'] = _MI_XOOPSTUBE_BINDEX;
0 ignored issues
show
Unused Code Comprehensibility introduced by
60% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
110
//	$adminmenu[1]['link']  = 'admin/index.php';
111
//
112
//	$adminmenu[2]['title'] = _MI_XOOPSTUBE_MVIDEOS;
113
//	$adminmenu[2]['link']  = 'admin/index.php?op=edit';
114
//
115
//	$adminmenu[3]['title'] = _MI_XOOPSTUBE_MCATEGORY;
116
//	$adminmenu[3]['link']  = 'admin/category.php';
117
//
118
//	$adminmenu[4]['title'] = _MI_XOOPSTUBE_INDEXPAGE;
119
//	$adminmenu[4]['link']  = 'admin/indexpage.php';
120
//
121
//	$adminmenu[5]['title'] = _MI_XOOPSTUBE_BLOCKADMIN;
122
//	$adminmenu[5]['link']  = 'admin/myblocksadmin.php';
123
//	$adminmenu[5]['options']  = 'assets/images/icon/blocks.png';
124