Code Duplication    Length = 4-21 lines in 3 locations

application/elements/navigation.php 1 location

@@ 63-83 (lines=21) @@
60
                    <li>
61
                        <a href="<?= base_url('home') ?>">Dashboard</a>
62
                    </li>
63
                    <?php if (isset($_COOKIE['CI-CONCRETE5']) === TRUE) { 
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>

dashboard/application/views/computing-support/status/view.php 2 locations

@@ 19-22 (lines=4) @@
16
                        <th>Category</th>
17
                        <th>Status</th>
18
                        <th style="text-align: center;">Percentage</th>
19
                        <?php if (isset($_COOKIE['CI-CONCRETE5']) === TRUE) { ?>
20
                        <?php if (in_array('CN=DG06,OU=Distribution Groups,OU=Email Groups,OU=Accounts,DC=cant-col,DC=ac,DC=uk', $_SESSION['ldap']['groups'])) { ?>
21
                            <th style="text-align: center;">Admin</th>
22
                        <?php }} ?>
23
                    </tr>
24
                </thead>
25
                <tbody>
@@ 83-86 (lines=4) @@
80
                        <th>Category</th>
81
                        <th>Status</th>
82
                        <th>Percentage</th>
83
                        <?php if (isset($_COOKIE['CI-CONCRETE5']) === TRUE) { ?>
84
                        <?php if (in_array('CN=DG06,OU=Distribution Groups,OU=Email Groups,OU=Accounts,DC=cant-col,DC=ac,DC=uk', $_SESSION['ldap']['groups'])) { ?>
85
                            <th style="text-align: center;">Admin</th>
86
                        <?php }} ?>
87
                    </tr>
88
                </thead>
89
                <tbody>