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.
1 | <div class="row"> |
||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
2 | <nav class="navbar sticky-top navbar-expand-xl navbar-light bg-light"> |
||
3 | <!-- Brand and toggle get grouped for better mobile display --> |
||
4 | <?= $this->Html->link('FC Home', ['controller'=>'dashboard', 'action'=>'index'],['class'=>'navbar-brand']); ?> |
||
0 ignored issues
–
show
|
|||
5 | <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarMain" aria-controls="navbarMain" aria-expanded="false" aria-label="Toggle navigation"> |
||
6 | <span class="navbar-toggler-icon"></span> |
||
7 | </button> |
||
8 | <!-- Collect the nav links, forms, and other content for toggling --> |
||
9 | <div class="collapse navbar-collapse" id="navbarMain"> |
||
10 | <ul class="navbar-nav mr-auto"> |
||
11 | <li class="nav-item"><?= $this->Html->link('Tickets', ['controller'=>'tickets', 'action'=>'index'],['class'=>'nav-link']); ?></li> |
||
0 ignored issues
–
show
|
|||
12 | <li class="nav-item"><?= $this->Html->link('Warehouses', ['controller'=>'warehouses', 'action'=>'index'],['class'=>'nav-link']); ?></li> |
||
0 ignored issues
–
show
|
|||
13 | <li class="nav-item"><?= $this->Html->link('Documents', ['controller'=>'documents', 'action'=>'index'],['class'=>'nav-link']); ?></li> |
||
0 ignored issues
–
show
|
|||
14 | <li class="nav-item"><?= $this->Html->link('Assets', ['controller'=>'assets', 'action'=>'index'],['class'=>'nav-link']); ?></li> |
||
0 ignored issues
–
show
|
|||
15 | <li class="nav-item"><?= $this->Html->link('Contacts', ['controller'=>'contacts', 'action'=>'index'],['class'=>'nav-link']); ?></li> |
||
0 ignored issues
–
show
|
|||
16 | <li class="nav-item"><?= $this->Html->link('Products', ['controller'=>'products', 'action'=>'index'],['class'=>'nav-link']); ?></li> |
||
0 ignored issues
–
show
|
|||
17 | <li class="nav-item"><?= $this->Html->link('Organizations', ['controller'=>'organizations', 'action'=>'index'],['class'=>'nav-link']); ?></li> |
||
0 ignored issues
–
show
|
|||
18 | </ul> |
||
19 | <!-- |
||
20 | <form class="form-inline ml-auto"> |
||
21 | <div class="form-group has-white"> |
||
22 | <input type="text" class="form-control" placeholder="Search"> |
||
23 | </div> |
||
24 | <button type="submit" class="btn btn-white btn-raised btn-fab btn-fab-mini btn-round"> |
||
25 | <i class="material-icons"></i> |
||
26 | </button> |
||
27 | </form> |
||
28 | --> |
||
29 | <ul class="navbar-nav mr-auto"> |
||
30 | <li class="nav-item dropdown"> |
||
31 | <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> |
||
32 | <?php if($this->request->session()->check('Auth.User')) { |
||
0 ignored issues
–
show
|
|||
33 | echo $this->request->session()->read('Auth.User.email'); |
||
0 ignored issues
–
show
|
|||
34 | } else { |
||
0 ignored issues
–
show
|
|||
35 | echo "User profile "; |
||
0 ignored issues
–
show
Coding Style
Comprehensibility
introduced
by
The string literal
User profile does not require double quotes, as per coding-style, please use single quotes.
PHP provides two ways to mark string literals. Either with single quotes String literals in single quotes on the other hand are evaluated very literally and the only two
characters that needs escaping in the literal are the single quote itself ( Double quoted string literals may contain other variables or more complex escape sequences. <?php
$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";
print $doubleQuoted;
will print an indented: If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear. For more information on PHP string literals and available escape sequences see the PHP core documentation. ![]() |
|||
36 | } |
||
37 | ?> |
||
0 ignored issues
–
show
|
|||
38 | <span class="caret"></span> |
||
39 | </a> |
||
40 | <div class="dropdown-menu" aria-labelledby="navbarDropdown"> |
||
41 | <a href="#" class="dropdown-item">Options</a> |
||
42 | <a href="#" class="dropdown-item">My Profile</a> |
||
43 | </div> |
||
44 | </li> |
||
45 | <li class="nav-item dropdown"> |
||
46 | <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> |
||
47 | <i class="fa fa-cogs" aria-hidden="true"></i> Administration <span class="caret"></span> |
||
48 | </a> |
||
49 | <div class="dropdown-menu" aria-labelledby="navbarDropdown"> |
||
50 | <?= $this->Html->link('Users', ['controller'=>'users', 'action'=>'index'], [ 'class' =>'dropdown-item']); ?> |
||
0 ignored issues
–
show
|
|||
51 | <?= $this->Html->link('Types', ['controller'=>'tickettypes', 'action'=>'index'], [ 'class' =>'dropdown-item']); ?> |
||
0 ignored issues
–
show
|
|||
52 | <?= $this->Html->link('Statuses', ['controller'=>'ticketstatuses', 'action'=>'index'], [ 'class' =>'dropdown-item']); ?> |
||
0 ignored issues
–
show
|
|||
53 | </div> |
||
54 | </li> |
||
55 | <li class="nav-item"><?= $this->Html->link('<i class="fa fa-sign-out" aria-hidden="true"></i> Logout', ['controller'=>'users', 'action'=>'logout'], [ 'class'=>'nav-link', 'escape' => false ]);?></li> |
||
0 ignored issues
–
show
|
|||
56 | </ul> |
||
57 | </div><!-- /.navbar-collapse --> |
||
58 | </nav> |
||
59 | </div> |
||
60 |