This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
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 | /** |
||
13 | * Alumni module for Xoops |
||
14 | * |
||
15 | * @copyright XOOPS Project https://xoops.org/ |
||
16 | * @license GPL 2.0 or later |
||
17 | * @package alumni |
||
18 | * @since 2.6.x |
||
19 | * @author John Mordo (jlm69) |
||
20 | */ |
||
21 | |||
22 | use Xoops\Core\Request; |
||
23 | |||
24 | include __DIR__ . '/admin_header.php'; |
||
25 | |||
26 | $system = System::getInstance(); |
||
27 | $xoops = Xoops::getInstance(); |
||
28 | |||
29 | $op = Request::getCmd('op', 'list'); |
||
30 | $xoops->header(); |
||
31 | |||
32 | $admin_page = new \Xoops\Module\Admin(); |
||
0 ignored issues
–
show
|
|||
33 | $admin_page->displayNavigation('permissions.php'); |
||
0 ignored issues
–
show
$admin_page does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$ ).
This check examines a number of code elements and verifies that they conform to the given naming conventions. You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods. ![]() |
|||
34 | |||
35 | $cats = $categoriesHandler->getAll(); |
||
36 | $cat_rows = $categoriesHandler->getCount(); |
||
0 ignored issues
–
show
$cat_rows does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$ ).
This check examines a number of code elements and verifies that they conform to the given naming conventions. You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods. ![]() |
|||
37 | |||
38 | include_once XOOPS_ROOT_PATH . "/modules/{$moduleDirName}/class/alumni_tree.php"; |
||
39 | $cattree = new AlumniObjectTree($cats, 'cid', 'pid'); |
||
40 | |||
41 | if ('0' == $cat_rows) { |
||
0 ignored issues
–
show
$cat_rows does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$ ).
This check examines a number of code elements and verifies that they conform to the given naming conventions. You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods. ![]() |
|||
42 | echo AlumniLocale::MUST_ADD_CAT; |
||
43 | } else { |
||
44 | $perm_desc = ''; |
||
0 ignored issues
–
show
$perm_desc does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$ ).
This check examines a number of code elements and verifies that they conform to the given naming conventions. You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods. ![]() |
|||
45 | switch ($op) { |
||
46 | |||
47 | case 'alumni_view': |
||
48 | View Code Duplication | default: |
|
49 | $title_of_form = AlumniLocale::PERMISSIONS_VIEW; |
||
0 ignored issues
–
show
$title_of_form does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$ ).
This check examines a number of code elements and verifies that they conform to the given naming conventions. You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods. ![]() |
|||
50 | $perm_name = 'alumni_view'; |
||
0 ignored issues
–
show
$perm_name does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$ ).
This check examines a number of code elements and verifies that they conform to the given naming conventions. You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods. ![]() |
|||
51 | $restriction = ''; |
||
52 | $anonymous = true; |
||
53 | break; |
||
54 | |||
55 | View Code Duplication | case 'alumni_submit': |
|
56 | $title_of_form = AlumniLocale::PERMISSIONS_SUBMIT; |
||
0 ignored issues
–
show
$title_of_form does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$ ).
This check examines a number of code elements and verifies that they conform to the given naming conventions. You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods. ![]() |
|||
57 | $perm_name = 'alumni_submit'; |
||
0 ignored issues
–
show
$perm_name does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$ ).
This check examines a number of code elements and verifies that they conform to the given naming conventions. You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods. ![]() |
|||
58 | $restriction = ''; |
||
59 | $anonymous = false; |
||
60 | break; |
||
61 | |||
62 | case 'alumni_premium': |
||
63 | $title_of_form = AlumniLocale::PERMISSIONS_PREMIUM; |
||
0 ignored issues
–
show
$title_of_form does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$ ).
This check examines a number of code elements and verifies that they conform to the given naming conventions. You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods. ![]() |
|||
64 | $perm_name = 'alumni_premium'; |
||
0 ignored issues
–
show
$perm_name does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$ ).
This check examines a number of code elements and verifies that they conform to the given naming conventions. You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods. ![]() |
|||
65 | $perm_desc = ''; |
||
0 ignored issues
–
show
$perm_desc does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$ ).
This check examines a number of code elements and verifies that they conform to the given naming conventions. You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods. ![]() |
|||
66 | $restriction = ''; |
||
67 | $anonymous = false; |
||
68 | break; |
||
69 | } |
||
70 | |||
71 | $opform = new Xoops\Form\SimpleForm('', 'opform', 'permissions.php', 'get'); |
||
72 | $opSelect = new Xoops\Form\Select('', 'op', $op); |
||
73 | $opSelect->setExtra('onchange="document.forms.opform.submit()"'); |
||
74 | $opSelect->addOption('alumni_view', AlumniLocale::PERMISSIONS_VIEW); |
||
75 | $opSelect->addOption('alumni_submit', AlumniLocale::PERMISSIONS_SUBMIT); |
||
76 | $opSelect->addOption('alumni_premium', AlumniLocale::PERMISSIONS_PREMIUM); |
||
77 | $opform->addElement($opSelect); |
||
78 | $opform->display(); |
||
79 | |||
80 | $moduleId = $xoops->module->getVar('mid'); |
||
81 | $form = new Xoops\Form\GroupPermissionForm($title_of_form, $moduleId, $perm_name, $perm_desc, 'admin/permissions.php', $anonymous); |
||
0 ignored issues
–
show
$title_of_form does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$ ).
This check examines a number of code elements and verifies that they conform to the given naming conventions. You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods. ![]() |
|||
82 | |||
83 | View Code Duplication | foreach (array_keys($cats) as $i) { |
|
84 | $cid = $cats[$i]->getVar('cid'); |
||
85 | $title = $cats[$i]->getVar('title'); |
||
86 | $pid = $cats[$i]->getVar('pid'); |
||
87 | $allcats = $cattree->alumni_makeArrayTree($cats[$i]->getVar('cid')); |
||
88 | $form->addItem($cid, $title, $pid); |
||
89 | } |
||
90 | $form->display(); |
||
91 | } |
||
92 | $xoops->footer(); |
||
93 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.