1 | <?php |
||
30 | class SystemController |
||
|
|||
31 | { |
||
32 | |||
33 | private $maintitle; |
||
34 | |||
35 | private $subtitle; |
||
36 | |||
37 | public function __construct() |
||
40 | |||
41 | 2 | public function index(Application $app) |
|
42 | { |
||
43 | 2 | switch ($app['request']->get('mode')) { |
|
44 | 2 | case 'info': |
|
45 | 1 | ob_start(); |
|
46 | 1 | phpinfo(); |
|
47 | 1 | $phpinfo = ob_get_contents(); |
|
48 | 1 | ob_end_clean(); |
|
49 | |||
50 | 1 | return $phpinfo; |
|
51 | |||
52 | break; |
||
53 | default: |
||
54 | 1 | break; |
|
55 | } |
||
56 | |||
57 | 1 | $this->arrSystemInfo = $this->getSystemInfo($app); |
|
58 | |||
59 | 1 | return $app->render('Setting/System/system.twig', array( |
|
60 | 1 | 'arrSystemInfo' => $this->arrSystemInfo, |
|
61 | )); |
||
62 | } |
||
63 | |||
64 | 1 | public function getSystemInfo(Application $app) |
|
82 | } |
||
83 |