mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
55 lines
1.6 KiB
PHP
55 lines
1.6 KiB
PHP
@extends('layouts/default')
|
|
|
|
{{-- Page title --}}
|
|
@section('title')
|
|
{{ trans('admin/settings/general.php_info') }}
|
|
@parent
|
|
@stop
|
|
|
|
@section('header_right')
|
|
<a href="{{ route('settings.index') }}" class="btn btn-default"> {{ trans('general.back') }}</a>
|
|
@stop
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
@section('content')
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="box box-default">
|
|
<div class="box-header">
|
|
<h2 class="box-title">{{ trans('admin/settings/general.php_info') }}</h2>
|
|
</div>
|
|
<div class="box-body">
|
|
|
|
<?php
|
|
ob_start();
|
|
phpinfo();
|
|
|
|
preg_match ('%<style type="text/css">(.*?)</style>.*?(<body>.*</body>)%s', ob_get_clean(), $matches);
|
|
|
|
# $matches [1]; # Style information
|
|
# $matches [2]; # Body information
|
|
|
|
echo "<div class='phpinfodisplay'><style type='text/css'>\n",
|
|
join( "\n",
|
|
array_map(
|
|
function ($i) {
|
|
return ".phpinfodisplay " . preg_replace( "/,/", ",.phpinfodisplay ", $i );
|
|
},
|
|
preg_split( '/\n/', $matches[1] )
|
|
)
|
|
),
|
|
"</style>\n",
|
|
$matches[2],
|
|
"\n</div>\n";
|
|
?>
|
|
</div>
|
|
</div> <!-- /box-body-->
|
|
</div> <!--/box-default-->
|
|
|
|
</div><!--/col-md-8-->
|
|
</div><!--/row-->
|
|
@stop
|