summaryrefslogtreecommitdiff
path: root/installer/rcube_install.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-02-21 00:02:52 +0000
committerthomascube <thomas@roundcube.net>2008-02-21 00:02:52 +0000
commit6557d3005ca187912cf053f3897c43a991916e56 (patch)
treee189fd4a4042582c8dcfa5e879766c83faa3f0c2 /installer/rcube_install.php
parent103d6b697ce53eb8e954b4a4c9eac659ef942b24 (diff)
Added environment checks from check.php-dist
Diffstat (limited to 'installer/rcube_install.php')
-rw-r--r--installer/rcube_install.php27
1 files changed, 16 insertions, 11 deletions
diff --git a/installer/rcube_install.php b/installer/rcube_install.php
index eee0fb732..2e1df00cf 100644
--- a/installer/rcube_install.php
+++ b/installer/rcube_install.php
@@ -124,8 +124,7 @@ class rcube_install
function pass($name, $message = '')
{
echo Q($name) . ':&nbsp; <span class="success">OK</span>';
- if ($message)
- echo '<span class="indent">' . Q($name) . '</span>';
+ $this->_showhint($message);
}
@@ -141,10 +140,7 @@ class rcube_install
$this->failures++;
echo Q($name) . ':&nbsp; <span class="fail">NOT OK</span>';
- if ($message)
- echo '<span class="indent">' . Q($name) . '</span>';
- if ($url)
- echo '<span class="indent">(See <a href="' . Q($url) . '" target="_blank">' . Q($url) . '</a>)</span>';
+ $this->_showhint($message, $url);
}
@@ -155,13 +151,22 @@ class rcube_install
* @param string Warning message
* @param string URL for details
*/
- function warning($name, $message = '', $url = '')
+ function na($name, $message = '', $url = '')
{
- echo Q($name) . ':&nbsp; <span class="warning">NOT AVAILABLE</span>';
- if ($message)
- echo '<span class="indent">' . Q($name) . '</span>';
+ echo Q($name) . ':&nbsp; <span class="na">NOT AVAILABLE</span>';
+ $this->_showhint($message, $url);
+ }
+
+
+ function _showhint($message, $url = '')
+ {
+ $hint = Q($message);
+
if ($url)
- echo '<span class="indent">(See <a href="' . Q($url) . '" target="_blank">' . Q($url) . '</a>)</span>';
+ $hint .= ($hint ? '; ' : '') . 'See <a href="' . Q($url) . '" target="_blank">' . Q($url) . '</a>';
+
+ if ($hint)
+ echo '<span class="indent">(' . $hint . ')</span>';
}