added vim-line, tweaked doc
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||||
/**
|
/**
|
||||||
* runs all defined tests
|
* runs all defined tests
|
||||||
*
|
*
|
||||||
|
@@ -1,8 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||||
/**
|
/**
|
||||||
* tests for PMA_get_real_size()
|
* tests for PMA_get_real_size()
|
||||||
*
|
*
|
||||||
* @version $Id: $
|
* @version $Id$
|
||||||
* @package phpMyAdmin-test
|
* @package phpMyAdmin-test
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@@ -1,8 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||||
/**
|
/**
|
||||||
* tests for PMA_get_real_size()
|
* tests for PMA_get_real_size()
|
||||||
*
|
*
|
||||||
* @version $Id: $
|
* @version $Id$
|
||||||
* @package phpMyAdmin-test
|
* @package phpMyAdmin-test
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@@ -1,8 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||||
/**
|
/**
|
||||||
* tests for PMA_pow()
|
* tests for PMA_pow()
|
||||||
*
|
*
|
||||||
* @version $Id: $
|
* @version $Id$
|
||||||
* @package phpMyAdmin-test
|
* @package phpMyAdmin-test
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@@ -1,8 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||||
/**
|
/**
|
||||||
* tests for PMA_sanitize()
|
* tests for PMA_sanitize()
|
||||||
*
|
*
|
||||||
* @version $Id: $
|
* @version $Id$
|
||||||
* @package phpMyAdmin-test
|
* @package phpMyAdmin-test
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@@ -1,12 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
/* $Id: common.lib.php 9832 2007-01-09 09:50:49Z nijel $ */
|
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||||
// vim: expandtab sw=4 ts=4 sts=4:
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Core testing library to wrap phpMyAdmin and add some useful functions.
|
* Core testing library to wrap phpMyAdmin and add some useful functions.
|
||||||
*
|
*
|
||||||
* @author Michal Čihař <michal@cihar.com>
|
* @author Michal Čihař <michal@cihar.com>
|
||||||
* @package phpMyAdmin-test
|
* @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
|
* @param string failure description
|
||||||
*/
|
*/
|
||||||
function PMA_test_fail($function, $test, $message) {
|
function PMA_test_fail($function, $test, $message) {
|
||||||
$function = htmlspecialchars($function);
|
$function = htmlspecialchars($function);
|
||||||
$test = htmlspecialchars($test);
|
$test = htmlspecialchars($test);
|
||||||
$message = htmlspecialchars($message);
|
$message = htmlspecialchars($message);
|
||||||
echo <<<EOT
|
echo <<<EOT
|
||||||
<dt>$function ($test)</dt>
|
<dt>$function ($test)</dt>
|
||||||
<dd><strong>Failed:</strong> $message</dd>
|
<dd><strong>Failed:</strong> $message</dd>
|
||||||
EOT;
|
EOT;
|
||||||
@@ -39,9 +38,9 @@ EOT;
|
|||||||
* @param string test description
|
* @param string test description
|
||||||
*/
|
*/
|
||||||
function PMA_test_okay($function, $test) {
|
function PMA_test_okay($function, $test) {
|
||||||
$function = htmlspecialchars($function);
|
$function = htmlspecialchars($function);
|
||||||
$test = htmlspecialchars($test);
|
$test = htmlspecialchars($test);
|
||||||
echo <<<EOT
|
echo <<<EOT
|
||||||
<dt>$function ($test)</dt>
|
<dt>$function ($test)</dt>
|
||||||
<dd><strong>OK</strong></dd>
|
<dd><strong>OK</strong></dd>
|
||||||
EOT;
|
EOT;
|
||||||
@@ -58,10 +57,10 @@ EOT;
|
|||||||
* @param string expected result
|
* @param string expected result
|
||||||
*/
|
*/
|
||||||
function PMA_test_string($function, $test, $received, $expected) {
|
function PMA_test_string($function, $test, $received, $expected) {
|
||||||
if ($received != $expected) {
|
if ($received != $expected) {
|
||||||
PMA_test_fail($function, $test, "Strings >$received< and >$expected< do not match");
|
PMA_test_fail($function, $test, "Strings >$received< and >$expected< do not match");
|
||||||
} else {
|
} else {
|
||||||
PMA_test_okay($function, $test);
|
PMA_test_okay($function, $test);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@@ -1,12 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
/* $Id: common.lib.php 9832 2007-01-09 09:50:49Z nijel $ */
|
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||||
// vim: expandtab sw=4 ts=4 sts=4:
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test for javascript escaping.
|
* Test for javascript escaping.
|
||||||
*
|
*
|
||||||
* @author Michal Čihař <michal@cihar.com>
|
* @author Michal Čihař <michal@cihar.com>
|
||||||
* @package phpMyAdmin-test
|
* @package phpMyAdmin-test
|
||||||
|
* @version $Id: common.lib.php 9832 2007-01-09 09:50:49Z nijel $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1,19 +1,19 @@
|
|||||||
<?php
|
<?php
|
||||||
/* $Id$ */
|
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||||
// vim: expandtab sw=4 ts=4 sts=4:
|
|
||||||
/**
|
/**
|
||||||
* theme test
|
* theme test
|
||||||
*
|
*
|
||||||
* @uses libraries/common.lib.php global fnctions
|
* @uses libraries/common.lib.php global fnctions
|
||||||
* @package phpMyAdmin-test
|
* @package phpMyAdmin-test
|
||||||
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
chdir( '..' );
|
chdir('..');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets core libraries and defines some variables
|
* Gets core libraries and defines some variables
|
||||||
*/
|
*/
|
||||||
require_once('./libraries/common.lib.php');
|
require_once './libraries/common.lib.php';
|
||||||
|
|
||||||
$lang_iso_code = $GLOBALS['available_languages'][$GLOBALS['lang']][2];
|
$lang_iso_code = $GLOBALS['available_languages'][$GLOBALS['lang']][2];
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
|
|||||||
dir="<?php echo $GLOBALS['text_dir']; ?>">
|
dir="<?php echo $GLOBALS['text_dir']; ?>">
|
||||||
<head>
|
<head>
|
||||||
<title>phpMyAdmin <?php echo PMA_VERSION; ?> -
|
<title>phpMyAdmin <?php echo PMA_VERSION; ?> -
|
||||||
<?php echo htmlspecialchars( $HTTP_HOST ); ?> - Theme Test</title>
|
<?php echo htmlspecialchars($HTTP_HOST); ?> - Theme Test</title>
|
||||||
<meta http-equiv="Content-Type"
|
<meta http-equiv="Content-Type"
|
||||||
content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
|
content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
|
||||||
<link rel="stylesheet" type="text/css"
|
<link rel="stylesheet" type="text/css"
|
||||||
@@ -51,23 +51,23 @@ $item = '<a href="%1$s?%2$s" class="item">'
|
|||||||
.'%4$s: %3$s</a>' . "\n";
|
.'%4$s: %3$s</a>' . "\n";
|
||||||
|
|
||||||
echo '<div id="serverinfo">' . "\n";
|
echo '<div id="serverinfo">' . "\n";
|
||||||
printf( $item,
|
printf($item,
|
||||||
$GLOBALS['cfg']['DefaultTabServer'],
|
$GLOBALS['cfg']['DefaultTabServer'],
|
||||||
PMA_generate_common_url(),
|
PMA_generate_common_url(),
|
||||||
'Server',
|
'Server',
|
||||||
$GLOBALS['strServer'],
|
$GLOBALS['strServer'],
|
||||||
's_host.png' );
|
's_host.png');
|
||||||
|
|
||||||
echo $separator;
|
echo $separator;
|
||||||
printf( $item,
|
printf($item,
|
||||||
$GLOBALS['cfg']['DefaultTabDatabase'],
|
$GLOBALS['cfg']['DefaultTabDatabase'],
|
||||||
'',
|
'',
|
||||||
'Database',
|
'Database',
|
||||||
$GLOBALS['strDatabase'],
|
$GLOBALS['strDatabase'],
|
||||||
's_db.png' );
|
's_db.png');
|
||||||
|
|
||||||
echo $separator;
|
echo $separator;
|
||||||
printf( $item,
|
printf($item,
|
||||||
$GLOBALS['cfg']['DefaultTabTable'],
|
$GLOBALS['cfg']['DefaultTabTable'],
|
||||||
'',
|
'',
|
||||||
'Table',
|
'Table',
|
||||||
@@ -76,7 +76,7 @@ printf( $item,
|
|||||||
: $GLOBALS['strTable']),
|
: $GLOBALS['strTable']),
|
||||||
(isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view']
|
(isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view']
|
||||||
? 'b_views'
|
? 'b_views'
|
||||||
: 's_tbl') . '.png' );
|
: 's_tbl') . '.png');
|
||||||
|
|
||||||
echo '<span class="table_comment" id="span_table_comment">'
|
echo '<span class="table_comment" id="span_table_comment">'
|
||||||
.'"Table comment"</span>' . "\n";
|
.'"Table comment"</span>' . "\n";
|
||||||
@@ -138,10 +138,10 @@ $tabs['import']['link'] = 'server_import.php';
|
|||||||
$tabs['import']['text'] = 'active';
|
$tabs['import']['text'] = 'active';
|
||||||
$tabs['import']['class'] = 'active';
|
$tabs['import']['class'] = 'active';
|
||||||
|
|
||||||
echo PMA_getTabs( $tabs );
|
echo PMA_getTabs($tabs);
|
||||||
unset( $tabs );
|
unset($tabs);
|
||||||
|
|
||||||
if ( @file_exists( $pmaThemeImage . 'logo_right.png') ) {
|
if (@file_exists($pmaThemeImage . 'logo_right.png')) {
|
||||||
?>
|
?>
|
||||||
<img id="pmalogoright" src="../<?php echo $pmaThemeImage; ?>logo_right.png"
|
<img id="pmalogoright" src="../<?php echo $pmaThemeImage; ?>logo_right.png"
|
||||||
alt="phpMyAdmin" />
|
alt="phpMyAdmin" />
|
||||||
@@ -150,7 +150,7 @@ if ( @file_exists( $pmaThemeImage . 'logo_right.png') ) {
|
|||||||
?>
|
?>
|
||||||
<h1>
|
<h1>
|
||||||
<?php
|
<?php
|
||||||
echo sprintf( $strWelcome,
|
echo sprintf($strWelcome,
|
||||||
'<bdo dir="ltr" xml:lang="en">phpMyAdmin ' . PMA_VERSION . '</bdo>');
|
'<bdo dir="ltr" xml:lang="en">phpMyAdmin ' . PMA_VERSION . '</bdo>');
|
||||||
?>
|
?>
|
||||||
</h1>
|
</h1>
|
||||||
@@ -161,7 +161,7 @@ echo sprintf( $strWelcome,
|
|||||||
<fieldset>
|
<fieldset>
|
||||||
<legend><?php echo $strTheme; ?></legend>
|
<legend><?php echo $strTheme; ?></legend>
|
||||||
<?php
|
<?php
|
||||||
echo $_SESSION['PMA_Theme_Manager']->getHtmlSelectBox( false );
|
echo $_SESSION['PMA_Theme_Manager']->getHtmlSelectBox(false);
|
||||||
?>
|
?>
|
||||||
<noscript><input type="submit" value="Go" style="vertical-align: middle" /></noscript>
|
<noscript><input type="submit" value="Go" style="vertical-align: middle" /></noscript>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
Reference in New Issue
Block a user