From: Michael M Slusarz Date: Wed, 20 Jan 2010 06:59:34 +0000 (-0700) Subject: Improvements to the extensions test script output X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3e4f97361ca83443f52e159e7cf7e5cc83ae770e;p=horde.git Improvements to the extensions test script output --- diff --git a/horde/lib/Test.php b/horde/lib/Test.php index b904e226d..f8cd4f81a 100644 --- a/horde/lib/Test.php +++ b/horde/lib/Test.php @@ -698,12 +698,11 @@ class Horde_Test public function getPhpVersionInformation() { $output = new stdClass; - $url = urlencode($_SERVER['PHP_SELF']); $vers_check = true; - $testscript = 'test.php'; - $output->phpinfo = $testscript . '?mode=phpinfo&url=' . $url; - $output->extensions = $testscript . '?mode=extensions&url=' . $url; + $testscript = Horde::selfUrl(true); + $output->phpinfo = $testscript->copy()->add('mode', 'phpinfo'); + $output->extensions = $testscript->copy()->add('mode', 'extensions'); $output->version = PHP_VERSION; $output->major = $this->_phpver['major']; if (isset($this->_phpver['minor'])) { diff --git a/horde/templates/test/extensions.inc b/horde/templates/test/extensions.inc index c6954d03c..afba01f71 100644 --- a/horde/templates/test/extensions.inc +++ b/horde/templates/test/extensions.inc @@ -1,41 +1,66 @@ -PHP Extensions - + -<< Back to test.php -
- - - - - -
- - - - -
php version:
server api:
loaded extensions:
system:

activated extensions: function list:
+ << Back to test.php +
+
+ + + + + + + + + +
+ + + + + + + + + + + + + +
php version:
server api:
loaded extensions:
system:
+ +
+
activated extensions: function list:
+ '; + foreach ($extensions as $ext) { + echo ''; } ?> -
' . $extension . 'function list
' . $ext. 'function list
+
+
+ \n"; + foreach ($functions as $func) { + echo ''; } } } ?> -
$function
' . $func . '
+
+ + + + + diff --git a/horde/test.php b/horde/test.php index 19643da6d..e32e36c42 100644 --- a/horde/test.php +++ b/horde/test.php @@ -74,6 +74,7 @@ $self_url = $url->copy()->add('app', $app); switch (Horde_Util::getGet('mode')) { case 'extensions': echo ''; + $ext_get = Horde_Util::getGet('ext'); require $test_templates . '/extensions.inc'; exit;