added vim-line, tweaked doc

This commit is contained in:
Sebastian Mendel
2007-03-16 08:58:14 +00:00
parent 55cecc1e61
commit a738c7435c
8 changed files with 41 additions and 38 deletions

View File

@@ -1,4 +1,5 @@
<?php <?php
/* vim: expandtab sw=4 ts=4 sts=4: */
/** /**
* runs all defined tests * runs all defined tests
* *

View File

@@ -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
*/ */

View File

@@ -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
*/ */

View File

@@ -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
*/ */

View File

@@ -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
*/ */

View File

@@ -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 $
*/ */
/** /**

View File

@@ -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 $
*/ */
/** /**

View File

@@ -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">'
.'&quot;Table comment&quot</span>' . "\n"; .'&quot;Table comment&quot</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>