1 | <?php |
||
2 | |||
3 | namespace ThinKit\Http\Controllers; |
||
4 | |||
5 | use Illuminate\Http\Request; |
||
6 | use Illuminate\Routing\Controller; |
||
7 | |||
8 | class PhpInfoController extends Controller |
||
9 | { |
||
10 | public function __invoke(Request $request) |
||
11 | { |
||
12 | if (app()->environment(config('thinkit.php.env_no_pass')) || |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
13 | (config('thinkit.php.info_pass') && |
||
14 | ((string) $request->input('pass')) === config('thinkit.php.info_pass')) |
||
15 | ) { |
||
16 | phpinfo(); |
||
17 | |||
18 | return; |
||
19 | } |
||
20 | |||
21 | abort(404); |
||
22 | } |
||
23 | } |
||
24 |