[BUGFIX] Missing phpinfo() module in install tool 63/25263/7
authorTomita Militaru <militarutomita@gmail.com>
Mon, 11 Nov 2013 13:59:03 +0000 (15:59 +0200)
committerPhilipp Gampe <philipp.gampe@typo3.org>
Sat, 30 Nov 2013 14:24:13 +0000 (15:24 +0100)
Adds phpinfo() information in System Environment section from
the Install Tool, after warning / error messages.

Fixes: #53271
Releases: 6.2
Change-Id: I8582a65247de998f373d3143f013fa91cb47bff9
Reviewed-on: https://review.typo3.org/25263
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
typo3/sysext/install/Classes/Controller/Action/Tool/SystemEnvironment.php
typo3/sysext/install/Resources/Private/Templates/Action/Tool/SystemEnvironment.html
typo3/sysext/install/Resources/Public/Stylesheets/Action/Common/Install.css

index a887731..b3006b6 100644 (file)
@@ -48,6 +48,11 @@ class SystemEnvironment extends Action\AbstractAction implements Action\ActionIn
                $sortedStatusObjects = $statusUtility->sortBySeverity($statusObjects);
                $this->view->assign('statusObjectsBySeverity', $sortedStatusObjects);
 
+               ob_start();
+               phpinfo();
+               $phpInfo = ob_get_clean();
+               $this->view->assign('phpInfo', $phpInfo);
+
                return $this->view->render();
        }
 }
index 3746d5a..1ea9ad1 100644 (file)
                        <f:render partial="Action/Common/StatusMessage" arguments="{message: statusMessage}" />
                </f:for>
        </f:for>
+
+       <div class="toggleGroup phpinfo">
+               <div class="toggleButton">
+                       <h4>PHP Info</h4>
+               </div>
+
+               <div class="toggleData" style="display:none">
+                       <div class="toggleDataContent">
+                               <f:format.raw>{phpInfo}</f:format.raw>
+                       </div>
+               </div>
+       </div>
 </f:section>
\ No newline at end of file
index 0d1ed0b..18d61a2 100644 (file)
@@ -352,6 +352,10 @@ button span.t3-install-form-button-icon-negative {
        background-image: url('../../../Images/Menu/SystemEnvironment.png');
 }
 
+#t3-install-menu  .act a:link {
+       background-color: #585858;
+}
+
 #t3-install-menu #t3-install-menu-configuration {
        background-image: url('../../../Images/Menu/Configuration.png');
 }
@@ -705,6 +709,12 @@ body.standalone h1 {
        float: left;
 }
 
+body.standalone .toggleDataContent h1 {
+       background: none;
+       margin: 10px;
+       text-indent: inherit;
+}
+
 body.standalone h2 {
        margin: 3.3em 0 0 1.8em;
        padding: 0;
@@ -741,12 +751,24 @@ body.standalone #t3-install-menu {
        background: #ebebeb url('../../../Images/Background/Menu.gif') repeat-x left bottom;
 }
 
+body.standalone #t3-install-menu a:link {
+       background: none;
+}
+
 body.standalone #t3-install-menu-bottom {
        width: 17.6em;
        height: 3px;
        background: #3e3e3e url('../../../Images/Background/ContentBottom.png') no-repeat center bottom;
 }
 
+body.standalone #t3-install-links a:link {
+       background: none;
+}
+
+body.standalone #t3-install-copyright a:link {
+       background: none;
+}
+
 body.standalone .t3-install-login h2 {
        clear: both;
        margin: 0;
@@ -802,3 +824,21 @@ button.btn-save:hover {
        height: 41px;
        margin-top: 2em;
 }
+
+.phpinfo {
+       font-family: Verdana, Arial, Helvetica, sans-serif;
+}
+.phpinfo hr, .phpinfo table {
+       width: 500px;
+}
+.phpinfo td, .phpinfo th {
+       font-size: 11px;
+}
+.phpinfo td.v {
+       word-break: break-all;
+       word-wrap: break-word;
+}
+.phpinfo .toggleDataContent {
+       margin: 1em 0;
+       overflow: scroll;
+}