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 defined('C5_EXECUTE') or defined('BASEPATH') or die("Access Denied."); ?> |
||
2 | |||
3 | <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0"> |
||
4 | |||
5 | <div class="navbar-header"> |
||
6 | <button type="button" class="navbar-toggle" data-toggle="dropdown" data-target=".navbar-collapse"> |
||
7 | <span class="sr-only">Toggle navigation</span> |
||
8 | <span class="icon-bar"></span> |
||
9 | <span class="icon-bar"></span> |
||
10 | <span class="icon-bar"></span> |
||
11 | </button> |
||
12 | <?php if (isset($is_codeigniter)) { ?> |
||
13 | |||
14 | <a class="navbar-brand" href="/cc"><div class="intranetSprite" id="spriteCollegeLogo" alt="Canterbury College Logo"></div></a> |
||
15 | <a class="navbar-brand" href="/ekc"><div class="intranetSprite" id="spriteEKCLogo" alt="East Kent College Logo"></div></a> |
||
16 | |||
17 | <?php /* END Codeigniter */ } else { /* IF Concrete5 */ ?> |
||
18 | |||
19 | <?php |
||
20 | $v = View::getInstance(); |
||
21 | if ($v->getThemeHandle() == 'ccintranet') { ?> |
||
22 | <a class="navbar-brand" href="/cc"><div class="intranetSprite" id="spriteCollegeLogo" alt="Canterbury College Logo"></div></a> |
||
23 | <a class="navbar-brand" href="/ekc"><div class="intranetSprite" id="spriteEKCLogo" alt="East Kent College Logo"></div></a> |
||
24 | <?php } elseif ($v->getThemeHandle() == 'ekcintranet') { ?> |
||
25 | <a class="navbar-brand" href="/ekc"><div class="intranetSprite" id="spriteEKCLogo" alt="East Kent College Logo"></div></a> |
||
26 | <a class="navbar-brand" href="/cc"><div class="intranetSprite" id="spriteCollegeLogo" alt="Canterbury College Logo"></div></a> |
||
27 | <?php } ?> |
||
28 | |||
29 | <?php /* END Concrete5*/ } ?> |
||
30 | </div> <!-- END nav-header --> |
||
31 | |||
32 | <ul class="nav navbar-top-links navbar-right"> |
||
33 | <li> |
||
34 | <?php if (isset($is_codeigniter)) { ?> |
||
35 | |||
36 | <p class="welcome-username"> |
||
37 | <?php if (isset($_COOKIE['CI-CONCRETE5']) === FALSE) { |
||
38 | echo "<a href='/authentication/dashboard?url=".current_url()."'>Click here to Login</a>"; |
||
39 | } else { |
||
40 | echo "Welcome ".$_SESSION['username']; |
||
41 | } ?> |
||
42 | </p> |
||
43 | |||
44 | <?php /* END Codeigniter */ } else { /* IF Concrete5 */ ?> |
||
45 | |||
46 | <?php Loader::element('logged-in-user'); ?> |
||
47 | |||
48 | <?php /* END Concrete5*/ } ?> |
||
49 | </li> <!-- END dropdown --> |
||
50 | </ul><!-- END navbar-top-links navbar-right --> |
||
51 | |||
52 | <div class="navbar-default sidebar" role="navigation"> |
||
53 | <div class="sidebar-nav navbar-collapse"> |
||
54 | <ul class="nav" id="side-menu"> |
||
55 | <?php if (isset($is_codeigniter)) { ?> |
||
56 | |||
57 | <li> |
||
58 | <a href="/cc">Back to the Intranet <i class="fa fa-arrow-left fa-lg"></i></a> |
||
59 | </li> |
||
60 | <li> |
||
61 | <a href="<?= base_url('home') ?>">Dashboard</a> |
||
62 | </li> |
||
63 | View Code Duplication | <?php if (isset($_COOKIE['CI-CONCRETE5']) === TRUE) { |
|
0 ignored issues
–
show
|
|||
64 | if (in_array('CN=Dashboard_Admin,OU=Dashboard_Group,OU=Intranet_Group,OU=Groups,DC=cant-col,DC=ac,DC=uk', $_SESSION['ldap']['groups'])) { ?> |
||
65 | <li> |
||
66 | <a href="#"> - Admin <span style="margin-top: -5px;" class="fa arrow fa-lg"></span></a> |
||
67 | <ul class="nav nav-second-level collapse"> |
||
68 | <li> |
||
69 | <a href="/dashboard/admin">All Settings</a> |
||
70 | </li> |
||
71 | <li> |
||
72 | <a href="/dashboard/admin/user/intranet">Intranet Users</a> |
||
73 | </li> |
||
74 | <li> |
||
75 | <a href="/dashboard/admin/user/dashboard">Dashboard Users</a> |
||
76 | </li> |
||
77 | <li> |
||
78 | <a href="/dashboard/admin/user/passkey">Passkeys</a> |
||
79 | </li> |
||
80 | </ul> |
||
81 | </li> |
||
82 | <?php } |
||
83 | } ?> |
||
84 | <li> |
||
85 | <a href="<?= base_url('computing-support') ?>">Computing Support</a> |
||
86 | </li> |
||
87 | <li> |
||
88 | <a href="<?= base_url('human-resources')?>">Human Resources</a> |
||
89 | </li> |
||
90 | <li> |
||
91 | <a href="<?= base_url('marketing') ?>">Marketing</a> |
||
92 | </li> |
||
93 | <?php if (isset($_COOKIE['CI-CONCRETE5']) === TRUE) { ?> |
||
94 | <li> |
||
95 | <a href="<?= base_url('logout') ?>">Logout <i class="fa fa-sign-out fa-lg"></i></a> |
||
96 | </li> |
||
97 | <?php } else { ?> |
||
98 | <li> |
||
99 | <a href="/authentication/dashboard?url=<?= current_url() ?>">Login <i class="fa fa-sign-in fa-lg"></i></a> |
||
100 | </li> |
||
101 | <?php } ?> |
||
102 | |||
103 | <?php /* END Codeigniter */ } else { /* IF Concrete5 */ ?> |
||
104 | |||
105 | <?php |
||
106 | $v = View::getInstance(); |
||
107 | if ($v->getThemeHandle() == 'ccintranet') { |
||
108 | $a = new GlobalArea('CC Side Navigation'); $a->display($c); |
||
109 | $a = new GlobalArea('Global Side Navigation'); $a->display($c); |
||
110 | } elseif ($v->getThemeHandle() == 'ekcintranet') { |
||
111 | $a = new GlobalArea('EKC Side Navigation'); $a->display($c); |
||
112 | $a = new GlobalArea('Global Side Navigation'); $a->display($c); |
||
113 | } |
||
114 | ?> |
||
115 | |||
116 | <?php /* END Concrete5*/ } ?> |
||
117 | </ul> <!-- side-menu --> |
||
118 | </div> <!-- END sidebar-nav --> |
||
119 | </div> <!-- END sidebar --> |
||
120 | </nav> |
||
121 | |||
122 | <?php if (isset($is_codeigniter)) { ?> |
||
123 | |||
124 | <?php |
||
125 | $url = $_SERVER['REQUEST_URI']; |
||
126 | |||
127 | if (strpos($url,'computing-support') !== false) { |
||
128 | $dept_name = 'Computing Support'; |
||
129 | $dept_url = 'computing-support'; |
||
130 | } elseif (strpos($url,'marketing') !== false) { |
||
131 | $dept_name = 'Marketing'; |
||
132 | $dept_url = 'marketing'; |
||
133 | } elseif (strpos($url,'human-resources') !== false) { |
||
134 | $dept_name = 'Human Resources'; |
||
135 | $dept_url = 'human-resources'; |
||
136 | } else { |
||
137 | $dept_name = ''; |
||
138 | $dept_url = ''; |
||
139 | } |
||
140 | ?> |
||
141 | |||
142 | <?php /* END Codeigniter */ } ?> |
||
143 | |||
144 | <div class="breadcrumb"> |
||
145 | <?php if (isset($is_codeigniter)) { ?> |
||
146 | |||
147 | <a href="<?= base_url('home') ?>"><i class="fa fa-home fa-lg" aria-hidden="true"></i></a> <a href="/">Home</a> / <a href="<?= base_url() ?>">Dashboard</a> / <a href="<?= base_url($dept_url) ?>"><?= $dept_name ?></a> / <?php echo set_breadcrumb(); ?> |
||
148 | |||
149 | <?php /* END Codeigniter */ } else { /* IF Concrete5 */ ?> |
||
150 | |||
151 | <?php $a = new GlobalArea('Breadcrumb'); $a->display($c); ?> |
||
152 | |||
153 | <?php /* END Concrete5*/ } ?> |
||
154 | |||
155 | |||
156 | <script type="text/javascript"> |
||
157 | $(".breadcrumb a").click(function(e) { |
||
158 | e.preventDefault(); |
||
159 | }); |
||
160 | </script> |
||
161 | </div> |
||
162 | <div class="title"> |
||
163 | <?php if (isset($is_codeigniter)) { ?> |
||
164 | |||
165 | <?php /* END Codeigniter */ } else { /* IF Concrete5 */ ?> |
||
166 | |||
167 | <?php $page = Page::getCurrentPage(); echo $page->getCollectionName(); ?> |
||
168 | |||
169 | <?php /* END Concrete5*/ } ?> |
||
170 | </div> |
||
171 | |||
172 | View Code Duplication | <?php if (isset($is_codeigniter)) { ?> |
|
0 ignored issues
–
show
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
173 | |||
174 | <?php /* END Codeigniter */ } else { /* IF Concrete5 */ ?> |
||
175 | |||
176 | <div class="global-notification"> |
||
177 | <?php |
||
178 | $a = new GlobalArea('Global Notification'); $a->display($c); |
||
179 | |||
180 | $v = View::getInstance(); |
||
181 | if ($v->getThemeHandle() == 'ccintranet') { |
||
182 | $a = new GlobalArea('CC Global Notification'); $a->display($c); |
||
183 | } elseif ($v->getThemeHandle() == 'ekcintranet') { |
||
184 | $a = new GlobalArea('EKC Global Notification'); $a->display($c); |
||
185 | } |
||
186 | ?> |
||
187 | </div> <!-- END global-notification --> |
||
188 | |||
189 | <?php /* END Concrete5*/ } |
||
190 | |||
191 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.