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 | /* |
||
4 | |-------------------------------------------------------------------------- |
||
5 | | Application Routes |
||
6 | |-------------------------------------------------------------------------- |
||
7 | | |
||
8 | | Here is where you can register all of the routes for an application. |
||
9 | | It's a breeze. Simply tell Laravel the URIs it should respond to |
||
10 | | and give it the controller to call when that URI is requested. |
||
11 | | |
||
12 | */ |
||
13 | |||
14 | Route::group(['middleware' => 'installed'], function () { |
||
15 | |||
16 | Route::auth(); |
||
17 | |||
18 | Route::redirect('/', 'home'); |
||
19 | |||
20 | Route::get('/logout', 'UserController@logout'); |
||
21 | |||
22 | // home |
||
23 | Route::get('/home', 'HomeController@index'); |
||
24 | |||
25 | // Accounts |
||
26 | View Code Duplication | Route::group(['middleware' => 'can:manage,App\Account'], function() { |
|
0 ignored issues
–
show
|
|||
27 | Route::get('/accounts', 'AccountController@showAccounts'); |
||
28 | Route::post('/account', 'AccountController@addAccount'); |
||
29 | Route::get('/account/{id}', 'AccountController@editAccount'); |
||
30 | Route::get('/account', 'AccountController@editAccount'); |
||
31 | Route::post('/account/{id}', 'AccountController@updateAccount'); |
||
32 | Route::get('/account/{id}/enable', 'AccountController@enableAccount'); |
||
33 | Route::get('/account/{id}/disable', 'AccountController@disableAccount'); |
||
34 | Route::get('/account/{id}/delete', 'AccountController@removeAccount'); |
||
35 | Route::get('/accounts/category/{category_id}', 'AccountController@showAccounts'); |
||
36 | }); |
||
37 | |||
38 | // Groups (accounts) |
||
39 | Route::group(['middleware' => 'can:manage,App\Group'], function() { |
||
40 | Route::get('/groups', 'GroupController@showGroups'); |
||
41 | Route::post('/groups', 'GroupController@addGroup'); |
||
42 | Route::get('/group/{id}/delete', 'GroupController@removeGroup'); |
||
43 | Route::get('/group/{id}/purge', 'GroupController@purgeAccounts'); |
||
44 | Route::get('/group/{id}/disable', 'GroupController@disableAccounts'); |
||
45 | Route::get('/group/{group_id}/accounts', 'AccountController@showAccounts'); |
||
46 | Route::get('/group/{group_id}/accounts/category/{category_id}', 'AccountController@showAccounts'); |
||
47 | }); |
||
48 | |||
49 | // Categories (accounts) |
||
50 | View Code Duplication | Route::group(['middleware' => 'can:manage,App\Category'], function() { |
|
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. ![]() |
|||
51 | Route::get('/categories', 'CategoryController@showCategories'); |
||
52 | Route::post('/categories', 'CategoryController@addCategory'); |
||
53 | Route::get('/category/{id}/delete', 'CategoryController@removeCategory'); |
||
54 | Route::get('/category/{id}/purge', 'CategoryController@purgeAccounts'); |
||
55 | Route::get('/category/{id}/disable', 'CategoryController@disableAccounts'); |
||
56 | }); |
||
57 | |||
58 | // Users (app administrators) |
||
59 | View Code Duplication | Route::group(['middleware' => 'can:manage,App\User'], function() { |
|
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. ![]() |
|||
60 | Route::get('/administrators', 'AdminController@showUsers'); |
||
61 | Route::get('/user', 'AdminController@newUser'); |
||
62 | Route::get('/user/{id}', 'AdminController@editUser'); |
||
63 | Route::post('/user', 'AdminController@addUser'); |
||
64 | Route::post('/user/{id}', 'AdminController@updateUser'); |
||
65 | Route::get('/user/{id}/enable', 'AdminController@enableUser'); |
||
66 | Route::get('/user/{id}/disable', 'AdminController@disableUser'); |
||
67 | Route::get('/user/{id}/delete', 'AdminController@removeUser'); |
||
68 | Route::get('/profile', 'UserController@showProfile'); |
||
69 | Route::post('/profile', 'AdminController@updateUser'); |
||
70 | }); |
||
71 | |||
72 | // Whitelists |
||
73 | View Code Duplication | Route::group(['middleware' => 'can:manage,App\ProxyListItem'], function() { |
|
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. ![]() |
|||
74 | Route::get('whitelist/{type}s', 'ProxyListItemController@showList'); |
||
75 | Route::post('whitelist/{type}', 'ProxyListItemController@addItem'); |
||
76 | Route::post('whitelist/{type}/{id}', 'ProxyListItemController@updateItem'); |
||
77 | Route::get('whitelist/{type}/{id}/delete', 'ProxyListItemController@removeItem'); |
||
78 | Route::get('whitelist/{type}s/clear', 'ProxyListItemController@clearList'); |
||
79 | }); |
||
80 | |||
81 | }); |
||
82 | |||
83 | Route::group(['prefix' => 'install', 'as' => 'KleisInstaller::'], function() |
||
84 | { |
||
85 | Route::get('/', [ |
||
86 | 'as' => 'stepWelcome', |
||
87 | 'uses' => 'InstallerController@stepWelcome' |
||
88 | ]); |
||
89 | |||
90 | Route::get('application', [ |
||
91 | 'as' => 'stepApplication', |
||
92 | 'uses' => 'InstallerController@stepApplication' |
||
93 | ]); |
||
94 | |||
95 | Route::post('application/save', [ |
||
96 | 'as' => 'saveApplication', |
||
97 | 'uses' => 'InstallerController@stepStoreApp' |
||
98 | ]); |
||
99 | |||
100 | Route::get('database', [ |
||
101 | 'as' => 'stepDatabase', |
||
102 | 'uses' => 'InstallerController@stepDatabase' |
||
103 | ]); |
||
104 | |||
105 | Route::get('customization', [ |
||
106 | 'as' => 'stepCustomization', |
||
107 | 'uses' => 'InstallerController@stepCustomization' |
||
108 | ]); |
||
109 | |||
110 | Route::post('customization/save', [ |
||
111 | 'as' => 'saveCustomization', |
||
112 | 'uses' => 'InstallerController@stepStoreCusto' |
||
113 | ]); |
||
114 | |||
115 | Route::post('database/save', [ |
||
116 | 'as' => 'saveDatabase', |
||
117 | 'uses' => 'InstallerController@stepStoreDb' |
||
118 | ]); |
||
119 | |||
120 | Route::get('environment', [ |
||
121 | 'as' => 'stepEnvironment', |
||
122 | 'uses' => 'InstallerController@stepEnvironment' |
||
123 | ]); |
||
124 | |||
125 | Route::post('environment/save', [ |
||
126 | 'as' => 'saveEnvironment', |
||
127 | 'uses' => 'InstallerController@stepSaveEnv' |
||
128 | ]); |
||
129 | |||
130 | Route::get('requirements', [ |
||
131 | 'as' => 'stepRequirements', |
||
132 | 'uses' => 'InstallerController@stepRequirements' |
||
133 | ]); |
||
134 | |||
135 | Route::get('permissions', [ |
||
136 | 'as' => 'stepPermissions', |
||
137 | 'uses' => 'InstallerController@stepPermissions' |
||
138 | ]); |
||
139 | |||
140 | Route::get('migration', [ |
||
141 | 'as' => 'stepMigrate', |
||
142 | 'uses' => 'InstallerController@stepMigrate' |
||
143 | ]); |
||
144 | |||
145 | Route::get('final', [ |
||
146 | 'as' => 'stepFinal', |
||
147 | 'uses' => 'InstallerController@stepFinish' |
||
148 | ]); |
||
149 | }); |
||
150 |
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.