From a738c7435c42454919b7c7a7bf2bad5785a253b8 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Fri, 16 Mar 2007 08:58:14 +0000 Subject: [PATCH] added vim-line, tweaked doc --- test/AllTests.php | 1 + test/FailTest.php | 3 ++- test/PMA_get_real_size_test.php | 3 ++- test/PMA_pow_test.php | 3 ++- test/PMA_sanitize_test.php | 3 ++- test/core.lib.php | 29 ++++++++++++++--------------- test/escape_js_string.php | 5 ++--- test/theme.php | 32 ++++++++++++++++---------------- 8 files changed, 41 insertions(+), 38 deletions(-) diff --git a/test/AllTests.php b/test/AllTests.php index 7f2b28c33..95e65bd4a 100644 --- a/test/AllTests.php +++ b/test/AllTests.php @@ -1,4 +1,5 @@ * @package phpMyAdmin-test + * @version $Id: common.lib.php 9832 2007-01-09 09:50:49Z nijel $ */ /** @@ -23,10 +22,10 @@ chdir('..'); * @param string failure description */ function PMA_test_fail($function, $test, $message) { - $function = htmlspecialchars($function); - $test = htmlspecialchars($test); - $message = htmlspecialchars($message); - echo <<$function ($test)
Failed: $message
EOT; @@ -39,9 +38,9 @@ EOT; * @param string test description */ function PMA_test_okay($function, $test) { - $function = htmlspecialchars($function); - $test = htmlspecialchars($test); - echo <<$function ($test)
OK
EOT; @@ -58,10 +57,10 @@ EOT; * @param string expected result */ function PMA_test_string($function, $test, $received, $expected) { - if ($received != $expected) { - PMA_test_fail($function, $test, "Strings >$received< and >$expected< do not match"); - } else { - PMA_test_okay($function, $test); - } + if ($received != $expected) { + PMA_test_fail($function, $test, "Strings >$received< and >$expected< do not match"); + } else { + PMA_test_okay($function, $test); + } } ?> diff --git a/test/escape_js_string.php b/test/escape_js_string.php index 6632bf943..9b6012ccf 100644 --- a/test/escape_js_string.php +++ b/test/escape_js_string.php @@ -1,12 +1,11 @@ * @package phpMyAdmin-test + * @version $Id: common.lib.php 9832 2007-01-09 09:50:49Z nijel $ */ /** diff --git a/test/theme.php b/test/theme.php index 37346c380..49bed9dbf 100644 --- a/test/theme.php +++ b/test/theme.php @@ -1,19 +1,19 @@ "> phpMyAdmin <?php echo PMA_VERSION; ?> - - <?php echo htmlspecialchars( $HTTP_HOST ); ?> - Theme Test + - Theme Test ' . "\n"; echo '
' . "\n"; -printf( $item, +printf($item, $GLOBALS['cfg']['DefaultTabServer'], PMA_generate_common_url(), 'Server', $GLOBALS['strServer'], - 's_host.png' ); + 's_host.png'); echo $separator; -printf( $item, +printf($item, $GLOBALS['cfg']['DefaultTabDatabase'], '', 'Database', $GLOBALS['strDatabase'], - 's_db.png' ); + 's_db.png'); echo $separator; -printf( $item, +printf($item, $GLOBALS['cfg']['DefaultTabTable'], '', 'Table', @@ -76,7 +76,7 @@ printf( $item, : $GLOBALS['strTable']), (isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view'] ? 'b_views' - : 's_tbl') . '.png' ); + : 's_tbl') . '.png'); echo '' .'"Table comment"' . "\n"; @@ -138,10 +138,10 @@ $tabs['import']['link'] = 'server_import.php'; $tabs['import']['text'] = 'active'; $tabs['import']['class'] = 'active'; -echo PMA_getTabs( $tabs ); -unset( $tabs ); +echo PMA_getTabs($tabs); +unset($tabs); -if ( @file_exists( $pmaThemeImage . 'logo_right.png') ) { +if (@file_exists($pmaThemeImage . 'logo_right.png')) { ?> phpMyAdmin @@ -150,7 +150,7 @@ if ( @file_exists( $pmaThemeImage . 'logo_right.png') ) { ?>

phpMyAdmin ' . PMA_VERSION . ''); ?>

@@ -161,7 +161,7 @@ echo sprintf( $strWelcome,
getHtmlSelectBox( false ); + echo $_SESSION['PMA_Theme_Manager']->getHtmlSelectBox(false); ?>