fixed/added svn properties
This commit is contained in:
@@ -3,7 +3,7 @@ phpMyAdmin - ChangeLog
|
||||
----------------------
|
||||
|
||||
$Id$
|
||||
$HeadURL$
|
||||
$HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyAdmin/ChangeLog $
|
||||
|
||||
+ [import] support handling of DELIMITER to mimic mysql CLI, thanks to fb1
|
||||
- bug #1674914 [structure] changing definition of a TIMESTAMP field
|
||||
|
@@ -1,60 +1,60 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/* $Id$ */
|
||||
|
||||
/**
|
||||
* phpMyAdmin sample configuration, you can use it as base for
|
||||
* manual configuration. For easier setup you can use scripts/setup.php
|
||||
*
|
||||
* All directives are explained in Documentation.html and on phpMyAdmin
|
||||
* wiki <http://wiki.cihar.com>.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This is needed for cookie based authentication to encrypt password in
|
||||
* cookie
|
||||
*/
|
||||
$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
|
||||
|
||||
/*
|
||||
* Servers configuration
|
||||
*/
|
||||
$i = 0;
|
||||
|
||||
/*
|
||||
* First server
|
||||
*/
|
||||
$i++;
|
||||
/* Authentication type */
|
||||
$cfg['Servers'][$i]['auth_type'] = 'cookie';
|
||||
/* Server parameters */
|
||||
$cfg['Servers'][$i]['host'] = 'localhost';
|
||||
$cfg['Servers'][$i]['connect_type'] = 'tcp';
|
||||
$cfg['Servers'][$i]['compress'] = false;
|
||||
/* Select mysqli if your server has it */
|
||||
$cfg['Servers'][$i]['extension'] = 'mysql';
|
||||
/* User for advanced features */
|
||||
// $cfg['Servers'][$i]['controluser'] = 'pma';
|
||||
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
|
||||
/* Advanced phpMyAdmin features */
|
||||
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
|
||||
// $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
|
||||
// $cfg['Servers'][$i]['relation'] = 'pma_relation';
|
||||
// $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
|
||||
// $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
|
||||
// $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
|
||||
// $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
|
||||
// $cfg['Servers'][$i]['history'] = 'pma_history';
|
||||
// $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
|
||||
|
||||
/*
|
||||
* End of servers configuration
|
||||
*/
|
||||
|
||||
/*
|
||||
* Directories for saving/loading files from server
|
||||
*/
|
||||
$cfg['UploadDir'] = '';
|
||||
$cfg['SaveDir'] = '';
|
||||
|
||||
?>
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/* $Id$ */
|
||||
|
||||
/**
|
||||
* phpMyAdmin sample configuration, you can use it as base for
|
||||
* manual configuration. For easier setup you can use scripts/setup.php
|
||||
*
|
||||
* All directives are explained in Documentation.html and on phpMyAdmin
|
||||
* wiki <http://wiki.cihar.com>.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This is needed for cookie based authentication to encrypt password in
|
||||
* cookie
|
||||
*/
|
||||
$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
|
||||
|
||||
/*
|
||||
* Servers configuration
|
||||
*/
|
||||
$i = 0;
|
||||
|
||||
/*
|
||||
* First server
|
||||
*/
|
||||
$i++;
|
||||
/* Authentication type */
|
||||
$cfg['Servers'][$i]['auth_type'] = 'cookie';
|
||||
/* Server parameters */
|
||||
$cfg['Servers'][$i]['host'] = 'localhost';
|
||||
$cfg['Servers'][$i]['connect_type'] = 'tcp';
|
||||
$cfg['Servers'][$i]['compress'] = false;
|
||||
/* Select mysqli if your server has it */
|
||||
$cfg['Servers'][$i]['extension'] = 'mysql';
|
||||
/* User for advanced features */
|
||||
// $cfg['Servers'][$i]['controluser'] = 'pma';
|
||||
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
|
||||
/* Advanced phpMyAdmin features */
|
||||
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
|
||||
// $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
|
||||
// $cfg['Servers'][$i]['relation'] = 'pma_relation';
|
||||
// $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
|
||||
// $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
|
||||
// $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
|
||||
// $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
|
||||
// $cfg['Servers'][$i]['history'] = 'pma_history';
|
||||
// $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
|
||||
|
||||
/*
|
||||
* End of servers configuration
|
||||
*/
|
||||
|
||||
/*
|
||||
* Directories for saving/loading files from server
|
||||
*/
|
||||
$cfg['UploadDir'] = '';
|
||||
$cfg['SaveDir'] = '';
|
||||
|
||||
?>
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/* $Id: common.lib.php 9531 2006-10-10 14:06:56Z nijel $ */
|
||||
/* $Id$ */
|
||||
|
||||
/**
|
||||
* Functions for cleanup of user input.
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/* $Id: common.lib.php 9832 2007-01-09 09:50:49Z nijel $ */
|
||||
/* $Id$ */
|
||||
|
||||
/**
|
||||
* Javascript escaping functions.
|
||||
|
@@ -18,7 +18,7 @@
|
||||
* If you got this file from somewhere other than phpMyAdmin
|
||||
* please be aware that the latest copy will always be in the
|
||||
* phpMyAdmin subversion tree as
|
||||
* $HeadURL$
|
||||
* $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyAdmin/libraries/sqlvalidator.class.php $
|
||||
*
|
||||
* This code that also used to depend on the PHP overload module, but that has been
|
||||
* removed now.
|
||||
|
@@ -1,87 +1,87 @@
|
||||
1.53.0.TC026_PHP4 (2006-10-28)
|
||||
- writeHTML function call were fixed on examples.
|
||||
|
||||
1.53.0.TC025_PHP4 (2006-10-27)
|
||||
- Bugs item #1421290 were fixed (0D - 0A substitution in some characters)
|
||||
- Bugs item #1573174 were fixed (MultiCell documentation)
|
||||
|
||||
1.53.0.TC024_PHP4 (2006-09-26)
|
||||
- getPageHeight() function were fixed (bug 1543476).
|
||||
- fixed missing breaks on closedHTMLTagHandler function (bug 1535263).
|
||||
- fixed extra spaces on Write function (bug 1535262).
|
||||
|
||||
1.53.0.TC023_PHP4 (2006-08-04)
|
||||
- second parameter were removed from class_exists function.
|
||||
- paths to barcode directory were fixed.
|
||||
- documentation were updated.
|
||||
|
||||
1.53.0.TC022_PHP4 (2006-07-16)
|
||||
- fixed bug: [ 1516858 ] Probs with PHP autoloader and class_exists()
|
||||
|
||||
1.53.0.TC021_PHP4 (2006-07-01)
|
||||
- HTML attributes with whitespaces are now supported (thanks to Nelson Benitez for his support)
|
||||
|
||||
1.53.0.TC020_PHP4 (2006-06-23)
|
||||
- this version fixes the MBCS error on html_entity_decode
|
||||
|
||||
1.53.0.TC019_PHP4 (2006-06-08)
|
||||
- this version were backported to PHP4
|
||||
|
||||
1.53.0.TC019 (2006-05-21)
|
||||
- fixed <strong> and <em> closing tags.
|
||||
|
||||
1.53.0.TC018 (2006-05-18)
|
||||
- fixed font names bug
|
||||
|
||||
1.53.0.TC017 (2006-05-18)
|
||||
- the TTF2UFM utility to convert True Type fonts for TCPDF were included on fonts folder.
|
||||
- new free unicode fonts were included on /fonts/freefont.
|
||||
- test_unicode.php example were exended.
|
||||
- parameter $fill were added on Write, writeHTML and writeHTMLCell functions.
|
||||
- documentation were updated.
|
||||
|
||||
1.53.0.TC016 (2006-03-09)
|
||||
- fixed closing <strong> tag on html parser.
|
||||
|
||||
1.53.0.TC016 (2005-08-28)
|
||||
- fpdf.php and tcpdf.php files were joined in one single class (you can still extend TCPDF with your own class).
|
||||
- fixed problem when mb_internal_encoding is set.
|
||||
|
||||
1.53.0.TC014 (2005-05-29)
|
||||
- fixed WriteHTMLCell new page issue.
|
||||
|
||||
1.53.0.TC013 (2005-05-29)
|
||||
- fixed WriteHTMLCell across pages.
|
||||
|
||||
1.53.0.TC012 (2005-05-29)
|
||||
- font color attribute bug were fixed.
|
||||
|
||||
1.53.0.TC011 (2005-03-31)
|
||||
- SetFont function were fixed (thank Sjaak Lauwers for bug notice).
|
||||
|
||||
1.53.0.TC010 (2005-03-22)
|
||||
- the html functions were improved (thanks to Manfred Vervuert for bug reporting).
|
||||
|
||||
1.53.0.TC009 (2005-03-19)
|
||||
- a wrong reference to convertColorHexToDec were fixed.
|
||||
|
||||
1.53.0.TC008 (2005-02-07)
|
||||
- removed some extra bytes from PHP files.
|
||||
|
||||
1.53.0.TC007 (2005-01-08)
|
||||
- fill attribute were removed from writeHTMLCell method.
|
||||
|
||||
1.53.0.TC006 (2005-01-08)
|
||||
- the documentation were updated.
|
||||
|
||||
1.53.0.TC005 (2005-01-05)
|
||||
- Steven Wittens's unicode methods were removed.
|
||||
- All unicode methods were rewritten from scratch.
|
||||
- TCPDF is now licensed as LGPL.
|
||||
|
||||
1.53.0.TC004 (2005-01-04)
|
||||
- this changelog were added.
|
||||
- removed comercial fonts for licensing issue.
|
||||
- Bitstream Vera Fonts were added (http://www.bitstream.com/font_rendering/products/dev_fonts/vera.html).
|
||||
- Now the AddFont and SetFont functions returns the basic font if the styled version do not exist.
|
||||
|
||||
1.53.0.TC026_PHP4 (2006-10-28)
|
||||
- writeHTML function call were fixed on examples.
|
||||
|
||||
1.53.0.TC025_PHP4 (2006-10-27)
|
||||
- Bugs item #1421290 were fixed (0D - 0A substitution in some characters)
|
||||
- Bugs item #1573174 were fixed (MultiCell documentation)
|
||||
|
||||
1.53.0.TC024_PHP4 (2006-09-26)
|
||||
- getPageHeight() function were fixed (bug 1543476).
|
||||
- fixed missing breaks on closedHTMLTagHandler function (bug 1535263).
|
||||
- fixed extra spaces on Write function (bug 1535262).
|
||||
|
||||
1.53.0.TC023_PHP4 (2006-08-04)
|
||||
- second parameter were removed from class_exists function.
|
||||
- paths to barcode directory were fixed.
|
||||
- documentation were updated.
|
||||
|
||||
1.53.0.TC022_PHP4 (2006-07-16)
|
||||
- fixed bug: [ 1516858 ] Probs with PHP autoloader and class_exists()
|
||||
|
||||
1.53.0.TC021_PHP4 (2006-07-01)
|
||||
- HTML attributes with whitespaces are now supported (thanks to Nelson Benitez for his support)
|
||||
|
||||
1.53.0.TC020_PHP4 (2006-06-23)
|
||||
- this version fixes the MBCS error on html_entity_decode
|
||||
|
||||
1.53.0.TC019_PHP4 (2006-06-08)
|
||||
- this version were backported to PHP4
|
||||
|
||||
1.53.0.TC019 (2006-05-21)
|
||||
- fixed <strong> and <em> closing tags.
|
||||
|
||||
1.53.0.TC018 (2006-05-18)
|
||||
- fixed font names bug
|
||||
|
||||
1.53.0.TC017 (2006-05-18)
|
||||
- the TTF2UFM utility to convert True Type fonts for TCPDF were included on fonts folder.
|
||||
- new free unicode fonts were included on /fonts/freefont.
|
||||
- test_unicode.php example were exended.
|
||||
- parameter $fill were added on Write, writeHTML and writeHTMLCell functions.
|
||||
- documentation were updated.
|
||||
|
||||
1.53.0.TC016 (2006-03-09)
|
||||
- fixed closing <strong> tag on html parser.
|
||||
|
||||
1.53.0.TC016 (2005-08-28)
|
||||
- fpdf.php and tcpdf.php files were joined in one single class (you can still extend TCPDF with your own class).
|
||||
- fixed problem when mb_internal_encoding is set.
|
||||
|
||||
1.53.0.TC014 (2005-05-29)
|
||||
- fixed WriteHTMLCell new page issue.
|
||||
|
||||
1.53.0.TC013 (2005-05-29)
|
||||
- fixed WriteHTMLCell across pages.
|
||||
|
||||
1.53.0.TC012 (2005-05-29)
|
||||
- font color attribute bug were fixed.
|
||||
|
||||
1.53.0.TC011 (2005-03-31)
|
||||
- SetFont function were fixed (thank Sjaak Lauwers for bug notice).
|
||||
|
||||
1.53.0.TC010 (2005-03-22)
|
||||
- the html functions were improved (thanks to Manfred Vervuert for bug reporting).
|
||||
|
||||
1.53.0.TC009 (2005-03-19)
|
||||
- a wrong reference to convertColorHexToDec were fixed.
|
||||
|
||||
1.53.0.TC008 (2005-02-07)
|
||||
- removed some extra bytes from PHP files.
|
||||
|
||||
1.53.0.TC007 (2005-01-08)
|
||||
- fill attribute were removed from writeHTMLCell method.
|
||||
|
||||
1.53.0.TC006 (2005-01-08)
|
||||
- the documentation were updated.
|
||||
|
||||
1.53.0.TC005 (2005-01-05)
|
||||
- Steven Wittens's unicode methods were removed.
|
||||
- All unicode methods were rewritten from scratch.
|
||||
- TCPDF is now licensed as LGPL.
|
||||
|
||||
1.53.0.TC004 (2005-01-04)
|
||||
- this changelog were added.
|
||||
- removed comercial fonts for licensing issue.
|
||||
- Bitstream Vera Fonts were added (http://www.bitstream.com/font_rendering/products/dev_fonts/vera.html).
|
||||
- Now the AddFont and SetFont functions returns the basic font if the styled version do not exist.
|
||||
|
||||
|
@@ -95,4 +95,4 @@ dealings in this Font Software without prior written authorization
|
||||
from Tavmjong Bah. For further information, contact: tavmjong @ free
|
||||
. fr.
|
||||
|
||||
$Id: LICENSE 778 2006-04-20 18:14:24Z moyogo $
|
||||
$Id$
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/* $Id: pmd_display_field.php 9828 2007-01-05 17:30:36Z lem9 $ */
|
||||
/* $Id$ */
|
||||
|
||||
/*
|
||||
@author Ivan A Kirillov (Ivan.A.Kirillov@gmail.com)
|
||||
|
@@ -1,59 +1,59 @@
|
||||
<?php
|
||||
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* runs all defined tests
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
if (! defined('PMA_MAIN_METHOD')) {
|
||||
define('PMA_MAIN_METHOD', 'AllTests::main');
|
||||
chdir('..');
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
require_once 'PHPUnit/Framework.php';
|
||||
require_once 'PHPUnit/TextUI/TestRunner.php';
|
||||
//require_once 'PHPUnit/Util/TestDox/ResultPrinter.php.';
|
||||
require_once './test/FailTest.php';
|
||||
require_once './test/PMA_get_real_size_test.php';
|
||||
require_once './test/PMA_sanitize_test.php';
|
||||
require_once './test/PMA_pow_test.php';
|
||||
require_once './test/Environment_test.php';
|
||||
require_once './test/escape_js_string.php';
|
||||
|
||||
class AllTests
|
||||
{
|
||||
public static function main()
|
||||
{
|
||||
$parameters = array();
|
||||
//$parameters['testdoxHTMLFile'] = true;
|
||||
//$parameters['printer'] = PHPUnit_Util_TestDox_ResultPrinter::factory('HTML');
|
||||
//$parameters['printer'] = PHPUnit_Util_TestDox_ResultPrinter::factory('Text');
|
||||
PHPUnit_TextUI_TestRunner::run(self::suite(), $parameters);
|
||||
}
|
||||
|
||||
public static function suite()
|
||||
{
|
||||
$suite = new PHPUnit_Framework_TestSuite('phpMyAdmin');
|
||||
|
||||
//$suite->addTestSuite('FailTest');
|
||||
$suite->addTestSuite('Environment_test');
|
||||
$suite->addTestSuite('PMA_get_real_size_test');
|
||||
$suite->addTestSuite('PMA_sanitize_test');
|
||||
$suite->addTestSuite('PMA_pow_test');
|
||||
$suite->addTestSuite('PMA_escapeJsString_test');
|
||||
return $suite;
|
||||
}
|
||||
}
|
||||
|
||||
if (PMA_MAIN_METHOD == 'AllTests::main') {
|
||||
echo '<pre>';
|
||||
AllTests::main();
|
||||
echo '</pre>';
|
||||
}
|
||||
<?php
|
||||
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* runs all defined tests
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
if (! defined('PMA_MAIN_METHOD')) {
|
||||
define('PMA_MAIN_METHOD', 'AllTests::main');
|
||||
chdir('..');
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
require_once 'PHPUnit/Framework.php';
|
||||
require_once 'PHPUnit/TextUI/TestRunner.php';
|
||||
//require_once 'PHPUnit/Util/TestDox/ResultPrinter.php.';
|
||||
require_once './test/FailTest.php';
|
||||
require_once './test/PMA_get_real_size_test.php';
|
||||
require_once './test/PMA_sanitize_test.php';
|
||||
require_once './test/PMA_pow_test.php';
|
||||
require_once './test/Environment_test.php';
|
||||
require_once './test/escape_js_string.php';
|
||||
|
||||
class AllTests
|
||||
{
|
||||
public static function main()
|
||||
{
|
||||
$parameters = array();
|
||||
//$parameters['testdoxHTMLFile'] = true;
|
||||
//$parameters['printer'] = PHPUnit_Util_TestDox_ResultPrinter::factory('HTML');
|
||||
//$parameters['printer'] = PHPUnit_Util_TestDox_ResultPrinter::factory('Text');
|
||||
PHPUnit_TextUI_TestRunner::run(self::suite(), $parameters);
|
||||
}
|
||||
|
||||
public static function suite()
|
||||
{
|
||||
$suite = new PHPUnit_Framework_TestSuite('phpMyAdmin');
|
||||
|
||||
//$suite->addTestSuite('FailTest');
|
||||
$suite->addTestSuite('Environment_test');
|
||||
$suite->addTestSuite('PMA_get_real_size_test');
|
||||
$suite->addTestSuite('PMA_sanitize_test');
|
||||
$suite->addTestSuite('PMA_pow_test');
|
||||
$suite->addTestSuite('PMA_escapeJsString_test');
|
||||
return $suite;
|
||||
}
|
||||
}
|
||||
|
||||
if (PMA_MAIN_METHOD == 'AllTests::main') {
|
||||
echo '<pre>';
|
||||
AllTests::main();
|
||||
echo '</pre>';
|
||||
}
|
||||
?>
|
@@ -1,33 +1,33 @@
|
||||
<?php
|
||||
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* tests for environment like OS, PHP, modules, ...
|
||||
*
|
||||
* @version $Id$
|
||||
* @package phpMyAdmin-test
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
require_once 'PHPUnit/Framework.php';
|
||||
|
||||
class Environment_test extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testPhpVersion()
|
||||
{
|
||||
$this->assertTrue(version_compare('4.1', phpversion(), '<='),
|
||||
'phpMyAdmin requires PHP 4.1 or above');
|
||||
}
|
||||
|
||||
public function testMySQL()
|
||||
{
|
||||
$this->markTestIncomplete();
|
||||
}
|
||||
|
||||
public function testSession()
|
||||
{
|
||||
$this->markTestIncomplete();
|
||||
}
|
||||
}
|
||||
<?php
|
||||
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* tests for environment like OS, PHP, modules, ...
|
||||
*
|
||||
* @version $Id$
|
||||
* @package phpMyAdmin-test
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
require_once 'PHPUnit/Framework.php';
|
||||
|
||||
class Environment_test extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testPhpVersion()
|
||||
{
|
||||
$this->assertTrue(version_compare('4.1', phpversion(), '<='),
|
||||
'phpMyAdmin requires PHP 4.1 or above');
|
||||
}
|
||||
|
||||
public function testMySQL()
|
||||
{
|
||||
$this->markTestIncomplete();
|
||||
}
|
||||
|
||||
public function testSession()
|
||||
{
|
||||
$this->markTestIncomplete();
|
||||
}
|
||||
}
|
||||
?>
|
@@ -1,23 +1,23 @@
|
||||
<?php
|
||||
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* tests for PMA_get_real_size()
|
||||
*
|
||||
* @version $Id$
|
||||
* @package phpMyAdmin-test
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
require_once 'PHPUnit/Framework.php';
|
||||
require_once './libraries/common.lib.php';
|
||||
|
||||
class FailTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testFail()
|
||||
{
|
||||
$this->assertEquals(0, 1);
|
||||
}
|
||||
}
|
||||
<?php
|
||||
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* tests for PMA_get_real_size()
|
||||
*
|
||||
* @version $Id$
|
||||
* @package phpMyAdmin-test
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
require_once 'PHPUnit/Framework.php';
|
||||
require_once './libraries/common.lib.php';
|
||||
|
||||
class FailTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testFail()
|
||||
{
|
||||
$this->assertEquals(0, 1);
|
||||
}
|
||||
}
|
||||
?>
|
@@ -1,43 +1,43 @@
|
||||
<?php
|
||||
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* tests for PMA_get_real_size()
|
||||
*
|
||||
* @version $Id$
|
||||
* @package phpMyAdmin-test
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
require_once 'PHPUnit/Framework.php';
|
||||
require_once './libraries/common.lib.php';
|
||||
|
||||
class PMA_get_real_size_test extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testNull()
|
||||
{
|
||||
$this->assertEquals(0, PMA_get_real_size('0'));
|
||||
}
|
||||
|
||||
public function testKilobyte()
|
||||
{
|
||||
$this->assertEquals(1024, PMA_get_real_size('1kb'));
|
||||
}
|
||||
|
||||
public function testKilobyte2()
|
||||
{
|
||||
$this->assertEquals(1024 * 1024, PMA_get_real_size('1024k'));
|
||||
}
|
||||
|
||||
public function testMegabyte()
|
||||
{
|
||||
$this->assertEquals(8 * 1024 * 1024, PMA_get_real_size('8m'));
|
||||
}
|
||||
|
||||
public function testGigabyte()
|
||||
{
|
||||
$this->assertEquals(12 * 1024 * 1024 * 1024, PMA_get_real_size('12gb'));
|
||||
}
|
||||
}
|
||||
<?php
|
||||
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* tests for PMA_get_real_size()
|
||||
*
|
||||
* @version $Id$
|
||||
* @package phpMyAdmin-test
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
require_once 'PHPUnit/Framework.php';
|
||||
require_once './libraries/common.lib.php';
|
||||
|
||||
class PMA_get_real_size_test extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testNull()
|
||||
{
|
||||
$this->assertEquals(0, PMA_get_real_size('0'));
|
||||
}
|
||||
|
||||
public function testKilobyte()
|
||||
{
|
||||
$this->assertEquals(1024, PMA_get_real_size('1kb'));
|
||||
}
|
||||
|
||||
public function testKilobyte2()
|
||||
{
|
||||
$this->assertEquals(1024 * 1024, PMA_get_real_size('1024k'));
|
||||
}
|
||||
|
||||
public function testMegabyte()
|
||||
{
|
||||
$this->assertEquals(8 * 1024 * 1024, PMA_get_real_size('8m'));
|
||||
}
|
||||
|
||||
public function testGigabyte()
|
||||
{
|
||||
$this->assertEquals(12 * 1024 * 1024 * 1024, PMA_get_real_size('12gb'));
|
||||
}
|
||||
}
|
||||
?>
|
@@ -1,50 +1,50 @@
|
||||
<?php
|
||||
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* tests for PMA_pow()
|
||||
*
|
||||
* @version $Id$
|
||||
* @package phpMyAdmin-test
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
require_once 'PHPUnit/Framework.php';
|
||||
require_once './libraries/common.lib.php';
|
||||
|
||||
class PMA_pow_test extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testIntOverflow()
|
||||
{
|
||||
$this->assertEquals('1267650600228229401496703205376',
|
||||
PMA_pow(2, 100));
|
||||
}
|
||||
|
||||
public function testBcpow()
|
||||
{
|
||||
if (function_exists('bcpow')) {
|
||||
$this->assertEquals('1267650600228229401496703205376',
|
||||
PMA_pow(2, 100, 'bcpow'));
|
||||
} else {
|
||||
$this->markTestSkipped('function bcpow() does not exist');
|
||||
}
|
||||
}
|
||||
|
||||
public function testGmppow()
|
||||
{
|
||||
if (function_exists('gmp_pow')) {
|
||||
$this->assertEquals('1267650600228229401496703205376',
|
||||
PMA_pow(2, 100, 'gmp_pow'));
|
||||
} else {
|
||||
$this->markTestSkipped('function gmp_pow() does not exist');
|
||||
}
|
||||
}
|
||||
|
||||
public function testNegativeExp()
|
||||
{
|
||||
$this->assertEquals(false,
|
||||
PMA_pow(2, -1));
|
||||
}
|
||||
}
|
||||
<?php
|
||||
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* tests for PMA_pow()
|
||||
*
|
||||
* @version $Id$
|
||||
* @package phpMyAdmin-test
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
require_once 'PHPUnit/Framework.php';
|
||||
require_once './libraries/common.lib.php';
|
||||
|
||||
class PMA_pow_test extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testIntOverflow()
|
||||
{
|
||||
$this->assertEquals('1267650600228229401496703205376',
|
||||
PMA_pow(2, 100));
|
||||
}
|
||||
|
||||
public function testBcpow()
|
||||
{
|
||||
if (function_exists('bcpow')) {
|
||||
$this->assertEquals('1267650600228229401496703205376',
|
||||
PMA_pow(2, 100, 'bcpow'));
|
||||
} else {
|
||||
$this->markTestSkipped('function bcpow() does not exist');
|
||||
}
|
||||
}
|
||||
|
||||
public function testGmppow()
|
||||
{
|
||||
if (function_exists('gmp_pow')) {
|
||||
$this->assertEquals('1267650600228229401496703205376',
|
||||
PMA_pow(2, 100, 'gmp_pow'));
|
||||
} else {
|
||||
$this->markTestSkipped('function gmp_pow() does not exist');
|
||||
}
|
||||
}
|
||||
|
||||
public function testNegativeExp()
|
||||
{
|
||||
$this->assertEquals(false,
|
||||
PMA_pow(2, -1));
|
||||
}
|
||||
}
|
||||
?>
|
@@ -1,42 +1,42 @@
|
||||
<?php
|
||||
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* tests for PMA_sanitize()
|
||||
*
|
||||
* @version $Id$
|
||||
* @package phpMyAdmin-test
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
require_once 'PHPUnit/Framework.php';
|
||||
require_once './libraries/sanitizing.lib.php';
|
||||
|
||||
class PMA_sanitize_test extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testXssInHref()
|
||||
{
|
||||
$this->assertEquals('[a@javascript:alert(\'XSS\');@target]link</a>',
|
||||
PMA_sanitize('[a@javascript:alert(\'XSS\');@target]link[/a]'));
|
||||
}
|
||||
|
||||
public function testLink()
|
||||
{
|
||||
$this->assertEquals('<a href="http://www.phpmyadmin.net/" target="target">link</a>',
|
||||
PMA_sanitize('[a@http://www.phpmyadmin.net/@target]link[/a]'));
|
||||
}
|
||||
|
||||
public function testHtmlTags()
|
||||
{
|
||||
$this->assertEquals('<div onclick="">',
|
||||
PMA_sanitize('<div onclick="">'));
|
||||
}
|
||||
|
||||
public function testBbcoe()
|
||||
{
|
||||
$this->assertEquals('<strong>strong</strong>',
|
||||
PMA_sanitize('[b]strong[/b]'));
|
||||
}
|
||||
}
|
||||
<?php
|
||||
/* vim: expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* tests for PMA_sanitize()
|
||||
*
|
||||
* @version $Id$
|
||||
* @package phpMyAdmin-test
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
require_once 'PHPUnit/Framework.php';
|
||||
require_once './libraries/sanitizing.lib.php';
|
||||
|
||||
class PMA_sanitize_test extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testXssInHref()
|
||||
{
|
||||
$this->assertEquals('[a@javascript:alert(\'XSS\');@target]link</a>',
|
||||
PMA_sanitize('[a@javascript:alert(\'XSS\');@target]link[/a]'));
|
||||
}
|
||||
|
||||
public function testLink()
|
||||
{
|
||||
$this->assertEquals('<a href="http://www.phpmyadmin.net/" target="target">link</a>',
|
||||
PMA_sanitize('[a@http://www.phpmyadmin.net/@target]link[/a]'));
|
||||
}
|
||||
|
||||
public function testHtmlTags()
|
||||
{
|
||||
$this->assertEquals('<div onclick="">',
|
||||
PMA_sanitize('<div onclick="">'));
|
||||
}
|
||||
|
||||
public function testBbcoe()
|
||||
{
|
||||
$this->assertEquals('<strong>strong</strong>',
|
||||
PMA_sanitize('[b]strong[/b]'));
|
||||
}
|
||||
}
|
||||
?>
|
@@ -5,7 +5,7 @@
|
||||
*
|
||||
* @author Michal Čihař <michal@cihar.com>
|
||||
* @package phpMyAdmin-test
|
||||
* @version $Id: common.lib.php 9832 2007-01-09 09:50:49Z nijel $
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user