Index: trunk/extensions/Diagnosis/Diagnosis.php |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | if (!defined('MEDIAWIKI')) { |
5 | 5 | echo <<<EOT |
6 | 6 | To install my extension, put the following line in LocalSettings.php: |
7 | | -require_once( "\$IP/extensions/Diagnostics/Diagnostics.php" ); |
| 7 | +require_once( "\$IP/extensions/Diagnosis/Diagnosis.php" ); |
8 | 8 | EOT; |
9 | 9 | exit( 1 ); |
10 | 10 | } |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | 'path' => __FILE__, |
14 | 14 | 'name' => 'Diagnosis', |
15 | 15 | 'author' => '[http://www.dasch-tour.de DaSch]', |
16 | | - 'url' => 'http://www.mediawiki.org/wiki/Extension:Diagnostics', |
| 16 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:Diagnosis', |
17 | 17 | 'descriptionmsg' => 'diagnosis-desc', |
18 | 18 | 'version' => '0.0.1', |
19 | 19 | ); |
Index: trunk/extensions/Diagnosis/SpecialDiagnosis.php |
— | — | @@ -1,8 +1,8 @@ |
2 | 2 | <?php |
3 | | -class SpecialDiagnostics extends SpecialPage { |
| 3 | +class SpecialDiagnosis extends SpecialPage { |
4 | 4 | function __construct() { |
5 | | - parent::__construct( 'Diagnostics', 'diagnostics-access' ); |
6 | | - wfLoadExtensionMessages('Diagnostics'); |
| 5 | + parent::__construct( 'Diagnosis', 'diagnosis-access' ); |
| 6 | + wfLoadExtensionMessages('Diagnosis'); |
7 | 7 | } |
8 | 8 | |
9 | 9 | function execute( $par ) { |
— | — | @@ -24,7 +24,7 @@ |
25 | 25 | $sdSystemLocale = explode(" ",shell_exec('locale -a')); |
26 | 26 | $wgOut->addHTML( '<td>' ); |
27 | 27 | foreach ($sdSystemLocale as $value) { |
28 | | - $wgOut->addHTML($value . '<br\>'); |
| 28 | + $wgOut->addHTML($value . '<br/>'); |
29 | 29 | } |
30 | 30 | $wgOut->addHTML('</td>' ); |
31 | 31 | $wgOut->addHTML( '<td>' . $wgShellLocale . '</td>' ); |
— | — | @@ -67,6 +67,26 @@ |
68 | 68 | } |
69 | 69 | $wgOut->addHTML( '<td>' . $sdSVGPathStatus . '</td>' ); |
70 | 70 | $wgOut->addHTML( '</tr>' ); |
| 71 | + ### PHP Extensions ### |
| 72 | + $wgOut->addHTML( '<tr>' ); |
| 73 | + $wgOut->addHTML( '<td>PHP Extensions</td>' ); |
| 74 | + $sdPHPExtensions = get_loaded_extensions(); |
| 75 | + $wgOut->addHTML( '<td colspan=2>' ); |
| 76 | + foreach ($sdPHPExtensions as $value) { |
| 77 | + $wgOut->addHTML($value . '<br/>'); |
| 78 | + } |
| 79 | + $wgOut->addHTML('</td>' ); |
| 80 | + $wgOut->addHTML( '<td> Loaded PHP Extensions </td>' ); |
| 81 | + if ( true ) { |
| 82 | + $sdSVGPathStatus='OK'; |
| 83 | + } |
| 84 | + else { |
| 85 | + $sdSVGPathStatus='ERROR'; |
| 86 | + } |
| 87 | + $wgOut->addHTML( '<td>' . $sdSVGPathStatus . '</td>' ); |
| 88 | + $wgOut->addHTML( '</tr>' ); |
| 89 | + |
| 90 | + |
71 | 91 | ### End Table ### |
72 | 92 | $wgOut->addHTML( '</table>' ); |
73 | 93 | } |