From 954748b0ae4580ca9e49f5398828dd3338c1325c Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Sun, 3 Feb 2013 02:53:36 -0500 Subject: Reuse our tests in the install check The install check was drifting significantly from being correct. Which is what happens when you duplicate code. --- templates/show_install_check.inc.php | 153 ++++-------------------- templates/show_install_lang.inc.php | 7 +- templates/show_test.inc.php | 195 +----------------------------- templates/show_test_table.inc.php | 222 +++++++++++++++++++++++++++++++++++ 4 files changed, 245 insertions(+), 332 deletions(-) create mode 100644 templates/show_test_table.inc.php (limited to 'templates') diff --git a/templates/show_install_check.inc.php b/templates/show_install_check.inc.php index 6b6e7247..5b6fd83d 100644 --- a/templates/show_install_check.inc.php +++ b/templates/show_install_check.inc.php @@ -21,162 +21,49 @@ */ ?> -

+ - - + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+ + +
[ +]
+[ +]
: - -
: - -
: - -
: - -

: - -
: - -
: - -
: - -
: - -
+[ +]
diff --git a/templates/show_install_lang.inc.php b/templates/show_install_lang.inc.php index 63e3290e..8fa5240b 100644 --- a/templates/show_install_lang.inc.php +++ b/templates/show_install_lang.inc.php @@ -23,12 +23,7 @@ $prefix = realpath(dirname(__FILE__). "/../"); require $prefix . '/templates/install_header.inc.php'; ?> - - -
- -
- +
diff --git a/templates/show_test.inc.php b/templates/show_test.inc.php index 6a2b2b2b..c517766a 100644 --- a/templates/show_test.inc.php +++ b/templates/show_test.inc.php @@ -41,200 +41,7 @@ - - - [ - " . phpversion() . " " . T_('Hash Function Exists') . " " . print_bool(function_exists('hash_algos')) . " " . T_('SHA256 Support') . " " . print_bool(in_array('sha256',$algos)) . ""; - } - else { - echo debug_result('',true); - } - ?> - ] - - - - - - - - - [ - - ] - - - - - - - - [ - - ] - - - - - - - - [ - ] - - - - - - - - [ - ] - - - - - - - - [ - ] - - - - - - - - [ - ] - - - - - - - - [ - - ] - - - - - - - - - - [ - - ] - - - - - - - - [ - - ] - - - - - - - - [ - - ] - - - - - - - - - [ -    "; - } - else { - echo debug_result('',false); - } - - ?> - ] - - - - - +
diff --git a/templates/show_test_table.inc.php b/templates/show_test_table.inc.php new file mode 100644 index 00000000..6bcc5b03 --- /dev/null +++ b/templates/show_test_table.inc.php @@ -0,0 +1,222 @@ + + + + [ + " . phpversion() . " " . T_('Hash Function Exists') . " " . print_bool(function_exists('hash_algos')) . " " . T_('SHA256 Support') . " " . print_bool(in_array('sha256',$algos)) . ""; + } + else { + echo debug_result('',true); + } + ?> + ] + + + + + + + + + [ + + ] + + + + + + + + [ + + ] + + + + + + + + [ + ] + + + + + + + + [ + ] + + + + + + + + [ + ] + + + + + + + + [ + ] + + + + + + + + + [ + + ] + + + + + + + + + + [ + + ] + + + + + + + + [ + + ] + + + + + + + + [ + + ] + + + + + + + + + [ +    "; + } + else { + echo debug_result('',false); + } + + ?> + ] + + + + + + -- cgit