diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 0bc33037c1..f930457edb 100755 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -687,6 +687,18 @@ class SettingsController extends Controller } + /** + * Return a form to allow a super admin to update settings. + * + * @author [A. Gianotto] [] + * @since [v4.0] + * @return View + */ + public function getPhpInfo() + { + return view('settings.phpinfo'); + } + /** * Return a form to allow a super admin to update settings. diff --git a/resources/views/settings/index.blade.php b/resources/views/settings/index.blade.php index afcc8def11..3d080901c0 100755 --- a/resources/views/settings/index.blade.php +++ b/resources/views/settings/index.blade.php @@ -163,7 +163,18 @@ - + @if (config('app.debug')=== true) +
+
+
+ +
+ PHP +

PHP System Info

+
+
+
+ @endif
@@ -176,12 +187,6 @@
- - - - - - @@ -229,6 +234,7 @@ + @stop diff --git a/resources/views/settings/phpinfo.blade.php b/resources/views/settings/phpinfo.blade.php new file mode 100644 index 0000000000..4513d2626c --- /dev/null +++ b/resources/views/settings/phpinfo.blade.php @@ -0,0 +1,31 @@ +@extends('layouts/default') + +{{-- Page title --}} +@section('title') + PHP Info + @parent +@stop + +@section('header_right') + {{ trans('general.back') }} +@stop + + +{{-- Page content --}} +@section('content') + @if (config('app.debug')=== true) +
+
+ +
+
+ + @else +
+
+ This information is only available when debug is enabled. +
+ @endif + + +@stop diff --git a/routes/web.php b/routes/web.php index e476249d9f..983d2fb133 100644 --- a/routes/web.php +++ b/routes/web.php @@ -140,6 +140,7 @@ Route::group([ 'prefix' => 'admin','middleware' => ['authorize:superuser']], fun Route::get('ldap', ['as' => 'settings.ldap.index','uses' => 'SettingsController@getLdapSettings' ]); Route::post('ldap', ['as' => 'settings.ldap.save','uses' => 'SettingsController@postLdapSettings' ]); + Route::get('phpinfo', ['as' => 'settings.phpinfo.index','uses' => 'SettingsController@getPhpInfo' ]); Route::get('oauth', [ 'as' => 'settings.oauth.index', 'uses' => 'SettingsController@api' ]);