From e2599e32c51deb6c38dfb2d40bc8eb7b8603c226 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 18 Jul 2007 15:54:09 +0000 Subject: start QA_2_11 --- scripts/check_lang.php | 61 - scripts/convertcfg.pl | 19 - scripts/create-release.sh | 288 ----- scripts/create_tables.sql | 159 --- scripts/create_tables_mysql_4_1_2+.sql | 179 --- scripts/decode_bug.php | 105 -- scripts/find_unused_messages.sh | 31 - scripts/lang-cleanup.sh | 76 -- scripts/remove_control_m.sh | 23 - scripts/setup.php | 2042 ------------------------------- scripts/signon.php | 56 - scripts/upgrade.pl | 223 ---- scripts/upgrade_tables_mysql_4_1_2+.sql | 164 --- 13 files changed, 3426 deletions(-) delete mode 100644 scripts/check_lang.php delete mode 100755 scripts/convertcfg.pl delete mode 100755 scripts/create-release.sh delete mode 100644 scripts/create_tables.sql delete mode 100644 scripts/create_tables_mysql_4_1_2+.sql delete mode 100644 scripts/decode_bug.php delete mode 100755 scripts/find_unused_messages.sh delete mode 100755 scripts/lang-cleanup.sh delete mode 100755 scripts/remove_control_m.sh delete mode 100644 scripts/setup.php delete mode 100644 scripts/signon.php delete mode 100755 scripts/upgrade.pl delete mode 100644 scripts/upgrade_tables_mysql_4_1_2+.sql (limited to 'scripts') diff --git a/scripts/check_lang.php b/scripts/check_lang.php deleted file mode 100644 index 4ecf9070b0..0000000000 --- a/scripts/check_lang.php +++ /dev/null @@ -1,61 +0,0 @@ -read()) { - if (strpos($name, '.inc.php')) { - // 1.1 Checks parse errors and extra blank line - include '../lang/' . $name; - header('X-Ping: pong'); - // 1.1 Checks "^M" - $content = fread(fopen('../lang/' . $name, 'r'), filesize('../lang/' . $name)); - if ($pos = strpos(' ' . $content, "\015")) { - $failed[] = $name; - } else { - $passed[] = $name; - } - } // end if -} // end while -$languageDirectory->close(); - -// 2. Checking results -$start = ''; -$failed_cnt = count($failed); -sort($failed); -$passed_cnt = count($passed); -sort($passed); -echo ($failed_cnt + $passed_cnt) . ' language files were checked.

' . "\n"; -if ($failed_cnt) { - echo '  1. ' . $failed_cnt . ' contain(s) some "^M":
' . "\n"; - for ($i = 0; $i < $failed_cnt; $i++) { - echo '    - ' . $failed[$i] . '
' . "\n"; - } // end for - if ($passed_cnt) { - echo '
' . "\n"; - echo '  2. ' . $passed_cnt . ' seems right:
' . "\n"; - $start = '  '; - } -} // end if -if ($passed_cnt) { - if (!$failed_cnt) { - echo 'They all passed checkings:
' . "\n"; - } - for ($i = 0; $i < $passed_cnt; $i++) { - echo $start . '  - ' . $passed[$i] . '
' . "\n"; - } // end for -} // end if -?> diff --git a/scripts/convertcfg.pl b/scripts/convertcfg.pl deleted file mode 100755 index 1b636a161e..0000000000 --- a/scripts/convertcfg.pl +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/perl -# -# $Id$ -# -# Configuration converter -# Converts from old-style (Pre-2.3) configuration files to new format found in PMA-2.3 -# -# Takes input from STDIN, sends output to STDOUT -# -# By Robin Johnson robbat2@users.sourceforge.net -# Many thanks to Patrick Lougheed pat@tfsb.org -# - -while(<>) -{ s/\$cfg(\w+)/\$cfg\[\'$1\'\]/g; - print; - } - - diff --git a/scripts/create-release.sh b/scripts/create-release.sh deleted file mode 100755 index e47f1873f7..0000000000 --- a/scripts/create-release.sh +++ /dev/null @@ -1,288 +0,0 @@ -#!/bin/sh -# -# $Id$ -# vim: expandtab sw=4 ts=4 sts=4: -# -# 2005-09-13, lem9@users.sourceforge.net -# - no longer create a config.default.php from config.inc.php -# -# 2005-06-12, lem9@users.sourceforge.net -# - cvs server name changed to cvs, because cvs1 no longer works from -# shell.sourceforge.net -# -# 2003-08-23, nijel@users.sourceforge.net: -# - support for creating snapshots outside sourceforge: -# * cvs server name can be read from environment variable cvsserver -# * do not change to directories as used on sourceforge if $2 is local -# -# 2003-08-13, nijel@users.sourceforge.net: -# - config.default -> config.default.php -# -# 2004-08-09, lem9@users.sourceforge.net: -# - remember to create a new bug tracking group -# -# 2004-06-07 rabus@users.sourceforge.net -# - create backup config file -# -# 2004-04-29, lem9@users.sourceforge.net: -# - keep only the previous cvs directory created -# -# 2004-04-16, lem9@users.sourceforge.net: -# - daily snapshot when called with first parameter "snapshot" -# - remove directory used for the checkout -# -# 2003-11-18, nijel@users.sourceforge.net: -# - switch php3 -> php -# -# 2003-10-10, nijel@users.sourceforge.net: -# - cvsserver set on just one place to ease testing -# - echoes md5 sums to include on download page -# -# 2003-06-22, robbat2@users.sourceforge.net: -# - Moved to using updatedocs.sh for updating documentation -# - Make tarring faster by re-arranging ops -# -# 2003-01-17, rabus@users.sourceforge.net: -# - Changed the CVS hostname to cvs1 because cvs1.sourceforge.net is now blocked -# for the SF shell servers, too. Note: The script now works on the SF shell -# servers ONLY! -# -# 2002-11-22, rabus@users.sourceforge.net: -# - changed the CVS server dns to cvs1.sourceforge.net -# (cvs.phpmyadmin.sourceforge.net does not work at the SF shell anymore). -# -# 2002-10-03, rabus@users.sourceforge.net: -# - more detailed instructions -# -# 2002-09-08, robbat2@users.sourceforge.net: -# - Tweaked final instruction list -# -# 2002-06-17, lem9@users.sourceforge.net: -# - I option to tar for bzip2 is deprecated, use j -# -# 2002-27-04, loic@phpmyadmin.net: -# - added the cvs branch feature -# -# 2001-08-08, swix@users.sourceforge.net: -# - created script -# - added release todo list -# - -KITS="all-languages-utf-8-only all-languages english" -COMPRESSIONS="zip-7z tbz tgz 7z" - -if [ $# = 0 ] -then - echo "Usages:" - echo " create-release.sh [from_branch]" - echo " create-release.sh snapshot [sf]" - echo " (no spaces allowed!)" - echo "" - echo "Examples:" - echo " create-release.sh 2.9.0-rc1 branches/QA_2_9" - echo " create-release.sh 2.9.0 tags/RELEASE_2_9_0" - exit 65 -fi - -branch='trunk' - -if [ "$1" = "snapshot" ] ; then - mode="snapshot" - date_snapshot=`date +%Y%m%d-%H%M%S` - target=$date_snapshot -else - if [ "$#" -ge 2 ] ; then - branch="$2" - fi - target="$1" - cat <set( 'PMA_VERSION', '$1' ); " - - in Documentation.html the 2 lines - " phpMyAdmin $1 - Documentation " - "

phpMyAdmin $1 Documentation

" - - in translators.html - - in README - 2. synchronized the language files: - cd lang - ./sync_lang.sh - and checked all language files are valid (use - the "./scripts/check_lang.php" script to do it). - -Continue (y/n)? -END - read do_release - - if [ "$do_release" != 'y' ]; then - exit - fi -fi - -if [ "$mode" = "snapshot" -a "$2" = "sf" ] ; then - # Goto project dir - cd /home/groups/p/ph/phpmyadmin/htdocs - - # Keep one previous version of the cvs directory - if [ -e svn-prev ] ; then - rm -rf svn-prev - fi - mv svn svn-prev -fi - -# Do SVNcheckout -mkdir -p ./svn -cd svn - -echo "Exporting repository from subversion" - -svn export -q https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/$branch/phpMyAdmin - -if [ $? -ne 0 ] ; then - echo "Subversion checkout failed, bailing out" - exit 2 -fi - -# Cleanup release dir -LC_ALL=C date -u > phpMyAdmin/RELEASE-DATE-${target} - -# Building Documentation.txt -LC_ALL=C w3m -dump phpMyAdmin/Documentation.html > phpMyAdmin/Documentation.txt - -# Renaming directory -mv phpMyAdmin phpMyAdmin-$target - -# Prepare all kits -for kit in $KITS ; do - # Copy all files - name=phpMyAdmin-$target-$kit - cp -r phpMyAdmin-$target $name - - # Cleanup translations - cd phpMyAdmin-$target-$kit - scripts/lang-cleanup.sh $kit - cd .. - - # Prepare distributions - for comp in $COMPRESSIONS ; do - case $comp in - tbz|tgz) - echo "Creating $name.tar" - tar cf $name.tar $name - if [ $comp = tbz ] ; then - echo "Creating $name.tar.bz2" - bzip2 -9k $name.tar - fi - if [ $comp = tgz ] ; then - echo "Creating $name.tar.gz" - gzip -9c $name.tar > $name.tar.gz - fi - rm $name.tar - ;; - zip) - echo "Creating $name.zip" - zip -q -9 -r $name.zip $name - ;; - zip-7z) - echo "Creating $name.zip" - 7za a -bd -tzip $name.zip $name > /dev/null - ;; - 7z) - echo "Creating $name.7z" - 7za a -bd $name.7z $name > /dev/null - ;; - *) - echo "WARNING: ignoring compression '$comp', not known!" - ;; - esac - done - - # Remove directory with current dist set - rm -rf $name -done - -# Cleanup -rm -rf phpMyAdmin-${target} - -if [ "$mode" != "snapshot" ] -then - - -echo "" -echo "" -echo "" -echo "Files:" -echo "------" - -ls -la *.gz *.zip *.bz2 *.7z - -echo -echo "MD5 sums:" -echo "--------" - -md5sum *.{gz,zip,bz2,7z} | sed "s/\([^ ]*\)[ ]*\([^ ]*\)/\$md5sum['\2'] = '\1';/" - -echo -echo "Sizes:" -echo "------" - -ls -l --block-size=k *.{gz,zip,bz2,7z} | sed -r "s/[a-z-]+[[:space:]]+[0-9]+[[:space:]]+[^[:space:]]+[[:space:]]+[^[:space:]]+[[:space:]]+([0-9]*)K.*[[:space:]]([^[:space:]]+)\$/\$size['\2'] = \1;/" - -echo -echo "Add these to /home/groups/p/ph/phpmyadmin/htdocs/home_page/files.inc.php on sf" - -cat <set( 'PMA_VERSION', '2.7.1-dev' ); " - - in Documentation.html the 2 lines - " phpMyAdmin 2.2.2-rc1 - Documentation " - "

phpMyAdmin 2.2.2-rc1 Documentation

" - - in translators.html - - 9. add a group for bug tracking this new version, at - https://sourceforge.net/tracker/admin/index.php?group_id=23067&atid=377408&add_group=1 - -10. Visit http://phpmyadmin.net/home_page/version.php then copy the results to /home/groups/p/ph/phpmyadmin/htdocs/latest.txt. This is needed for users of the pre-2.8.0 scripts/upgrade.pl. - -11. the end :-) - -END - -fi - -# Removed due to not needed thanks to clever scripting by Robbat2 -# 9. update the demo subdirectory: -# - in htdocs, cvs update phpMyAdmin -# - and don't forget to give write rights for the updated scripts to the -# whole group diff --git a/scripts/create_tables.sql b/scripts/create_tables.sql deleted file mode 100644 index 7fca18cf18..0000000000 --- a/scripts/create_tables.sql +++ /dev/null @@ -1,159 +0,0 @@ --- -------------------------------------------------------- --- SQL Commands to set up the pmadb as described in Documentation.html. --- --- DON'T RUN THIS SCRIPT ON MySQL 4.1.2 AND ABOVE! --- Instead, please run create_tables_mysql_4_1_2+.sql. --- --- This script expects the user pma to already be existing. If we would put a --- line here to create him too many users might just use this script and end --- up with having the same password for the controluser. --- --- This user "pma" must be defined in config.inc.php (controluser/controlpass) --- --- Please don't forget to set up the tablenames in config.inc.php --- --- $Id$ - --- -------------------------------------------------------- - --- --- Database : `phpmyadmin` --- -DROP DATABASE IF EXISTS `phpmyadmin`; -CREATE DATABASE `phpmyadmin`; -USE phpmyadmin; - --- -------------------------------------------------------- - --- --- Privileges --- -GRANT SELECT, INSERT, DELETE, UPDATE ON `phpmyadmin`.* TO - 'pma'@localhost; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_bookmark` --- - -CREATE TABLE `pma_bookmark` ( - `id` int(11) NOT NULL auto_increment, - `dbase` varchar(255) NOT NULL default '', - `user` varchar(255) NOT NULL default '', - `label` varchar(255) NOT NULL default '', - `query` text NOT NULL, - PRIMARY KEY (`id`) -) TYPE=MyISAM COMMENT='Bookmarks'; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_column_info` --- - -CREATE TABLE `pma_column_info` ( - `id` int(5) unsigned NOT NULL auto_increment, - `db_name` varchar(64) NOT NULL default '', - `table_name` varchar(64) NOT NULL default '', - `column_name` varchar(64) NOT NULL default '', - `comment` varchar(255) NOT NULL default '', - `mimetype` varchar(255) NOT NULL default '', - `transformation` varchar(255) NOT NULL default '', - `transformation_options` varchar(255) NOT NULL default '', - PRIMARY KEY (`id`), - UNIQUE KEY `db_name` (`db_name`,`table_name`,`column_name`) -) TYPE=MyISAM COMMENT='Column information for phpMyAdmin'; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_history` --- - -CREATE TABLE `pma_history` ( - `id` bigint(20) unsigned NOT NULL auto_increment, - `username` varchar(64) NOT NULL default '', - `db` varchar(64) NOT NULL default '', - `table` varchar(64) NOT NULL default '', - `timevalue` timestamp(14) NOT NULL, - `sqlquery` text NOT NULL, - PRIMARY KEY (`id`), - KEY `username` (`username`,`db`,`table`,`timevalue`) -) TYPE=MyISAM COMMENT='SQL history for phpMyAdmin'; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_pdf_pages` --- - -CREATE TABLE `pma_pdf_pages` ( - `db_name` varchar(64) NOT NULL default '', - `page_nr` int(10) unsigned NOT NULL auto_increment, - `page_descr` varchar(50) NOT NULL default '', - PRIMARY KEY (`page_nr`), - KEY `db_name` (`db_name`) -) TYPE=MyISAM COMMENT='PDF relation pages for phpMyAdmin'; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_relation` --- - -CREATE TABLE `pma_relation` ( - `master_db` varchar(64) NOT NULL default '', - `master_table` varchar(64) NOT NULL default '', - `master_field` varchar(64) NOT NULL default '', - `foreign_db` varchar(64) NOT NULL default '', - `foreign_table` varchar(64) NOT NULL default '', - `foreign_field` varchar(64) NOT NULL default '', - PRIMARY KEY (`master_db`,`master_table`,`master_field`), - KEY `foreign_field` (`foreign_db`,`foreign_table`) -) TYPE=MyISAM COMMENT='Relation table'; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_table_coords` --- - -CREATE TABLE `pma_table_coords` ( - `db_name` varchar(64) NOT NULL default '', - `table_name` varchar(64) NOT NULL default '', - `pdf_page_number` int(11) NOT NULL default '0', - `x` float unsigned NOT NULL default '0', - `y` float unsigned NOT NULL default '0', - PRIMARY KEY (`db_name`,`table_name`,`pdf_page_number`) -) TYPE=MyISAM COMMENT='Table coordinates for phpMyAdmin PDF output'; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_table_info` --- - -CREATE TABLE `pma_table_info` ( - `db_name` varchar(64) NOT NULL default '', - `table_name` varchar(64) NOT NULL default '', - `display_field` varchar(64) NOT NULL default '', - PRIMARY KEY (`db_name`,`table_name`) -) TYPE=MyISAM COMMENT='Table information for phpMyAdmin'; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_designer_coords` --- - -CREATE TABLE `pma_designer_coords` ( - `db_name` varchar(64) NOT NULL default '', - `table_name` varchar(64) NOT NULL default '', - `x` INT(11) default NULL, - `y` INT(11) default NULL, - `v` TINYINT(4) default NULL, - `h` TINYINT(4) default NULL, - PRIMARY KEY (`db_name`,`table_name`) -) TYPE=MyISAM COMMENT='Table coordinates for Designer' - diff --git a/scripts/create_tables_mysql_4_1_2+.sql b/scripts/create_tables_mysql_4_1_2+.sql deleted file mode 100644 index c2032efc26..0000000000 --- a/scripts/create_tables_mysql_4_1_2+.sql +++ /dev/null @@ -1,179 +0,0 @@ --- -------------------------------------------------------- --- SQL Commands to set up the pmadb as described in Documentation.html. --- --- This file is meant for use with MySQL 4.1.2 and above! --- For older MySQL releases, please use create_tables.sql --- --- If you are running one MySQL 4.1.0 or 4.1.1, please create the tables using --- create_tables.sql and upgrade their collation settings according to our --- manual. --- --- This script expects the user pma to already be existing. If we would put a --- line here to create him too many users might just use this script and end --- up with having the same password for the controluser. --- --- This user "pma" must be defined in config.inc.php (controluser/controlpass) --- --- Please don't forget to set up the tablenames in config.inc.php --- --- $Id$ - --- -------------------------------------------------------- - --- --- Database : `phpmyadmin` --- -CREATE DATABASE IF NOT EXISTS `phpmyadmin` - DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; -USE phpmyadmin; - --- -------------------------------------------------------- - --- --- Privileges --- --- (activate this statement if necessary) --- GRANT SELECT, INSERT, DELETE, UPDATE ON `phpmyadmin`.* TO --- 'pma'@localhost; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_bookmark` --- - -CREATE TABLE IF NOT EXISTS `pma_bookmark` ( - `id` int(11) NOT NULL auto_increment, - `dbase` varchar(255) NOT NULL default '', - `user` varchar(255) NOT NULL default '', - `label` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL default '', - `query` text NOT NULL, - PRIMARY KEY (`id`) -) - ENGINE=MyISAM COMMENT='Bookmarks' - DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_column_info` --- - -CREATE TABLE IF NOT EXISTS `pma_column_info` ( - `id` int(5) unsigned NOT NULL auto_increment, - `db_name` varchar(64) NOT NULL default '', - `table_name` varchar(64) NOT NULL default '', - `column_name` varchar(64) NOT NULL default '', - `comment` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL default '', - `mimetype` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL default '', - `transformation` varchar(255) NOT NULL default '', - `transformation_options` varchar(255) NOT NULL default '', - PRIMARY KEY (`id`), - UNIQUE KEY `db_name` (`db_name`,`table_name`,`column_name`) -) - ENGINE=MyISAM COMMENT='Column information for phpMyAdmin' - DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_history` --- - -CREATE TABLE IF NOT EXISTS `pma_history` ( - `id` bigint(20) unsigned NOT NULL auto_increment, - `username` varchar(64) NOT NULL default '', - `db` varchar(64) NOT NULL default '', - `table` varchar(64) NOT NULL default '', - `timevalue` timestamp(14) NOT NULL, - `sqlquery` text NOT NULL, - PRIMARY KEY (`id`), - KEY `username` (`username`,`db`,`table`,`timevalue`) -) - ENGINE=MyISAM COMMENT='SQL history for phpMyAdmin' - DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_pdf_pages` --- - -CREATE TABLE IF NOT EXISTS `pma_pdf_pages` ( - `db_name` varchar(64) NOT NULL default '', - `page_nr` int(10) unsigned NOT NULL auto_increment, - `page_descr` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL default '', - PRIMARY KEY (`page_nr`), - KEY `db_name` (`db_name`) -) - ENGINE=MyISAM COMMENT='PDF relation pages for phpMyAdmin' - DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_relation` --- - -CREATE TABLE IF NOT EXISTS `pma_relation` ( - `master_db` varchar(64) NOT NULL default '', - `master_table` varchar(64) NOT NULL default '', - `master_field` varchar(64) NOT NULL default '', - `foreign_db` varchar(64) NOT NULL default '', - `foreign_table` varchar(64) NOT NULL default '', - `foreign_field` varchar(64) NOT NULL default '', - PRIMARY KEY (`master_db`,`master_table`,`master_field`), - KEY `foreign_field` (`foreign_db`,`foreign_table`) -) - ENGINE=MyISAM COMMENT='Relation table' - DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_table_coords` --- - -CREATE TABLE IF NOT EXISTS `pma_table_coords` ( - `db_name` varchar(64) NOT NULL default '', - `table_name` varchar(64) NOT NULL default '', - `pdf_page_number` int(11) NOT NULL default '0', - `x` float unsigned NOT NULL default '0', - `y` float unsigned NOT NULL default '0', - PRIMARY KEY (`db_name`,`table_name`,`pdf_page_number`) -) - ENGINE=MyISAM COMMENT='Table coordinates for phpMyAdmin PDF output' - DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_table_info` --- - -CREATE TABLE IF NOT EXISTS `pma_table_info` ( - `db_name` varchar(64) NOT NULL default '', - `table_name` varchar(64) NOT NULL default '', - `display_field` varchar(64) NOT NULL default '', - PRIMARY KEY (`db_name`,`table_name`) -) - ENGINE=MyISAM COMMENT='Table information for phpMyAdmin' - DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_designer_coords` --- - -CREATE TABLE IF NOT EXISTS `pma_designer_coords` ( - `db_name` varchar(64) NOT NULL default '', - `table_name` varchar(64) NOT NULL default '', - `x` INT, - `y` INT, - `v` TINYINT, - `h` TINYINT, - PRIMARY KEY (`db_name`,`table_name`) -) - ENGINE=MyISAM COMMENT='Table coordinates for Designer' - DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; diff --git a/scripts/decode_bug.php b/scripts/decode_bug.php deleted file mode 100644 index 7dea1e249b..0000000000 --- a/scripts/decode_bug.php +++ /dev/null @@ -1,105 +0,0 @@ - - * - * @version $Id$ - * @package phpMyAdmin-debug - */ - -/** - * Displays the form - */ -?> - - - - - - - - phpMyAdmin - Parser BUG decoder - - - - - -

Parser BUG decoder

-
- -
- - Encoded bug report:
- -

- -
-
- - decodes the bug report - */ - -/** - * Display the decoded bug report in ASCII format - * - * @param string the text data - * - * @return string the text enclosed by "
...
" tags - * - * @access public - */ -function PMA_printDecodedBug($textdata) -{ - return '
' . htmlspecialchars($textdata) . '

'; -} // end of the "PMA_printDecodedBug()" function - - -if (!empty($_POST) && isset($_POST['bug_encoded'])) { - $bug_encoded = $_POST['bug_encoded']; -} - -if (!empty($bug_encoded)) { - if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) { - $bug_encoded = stripslashes($bug_encoded); - } - - $bug_encoded = ereg_replace('[[:space:]]', '', $bug_encoded); - $bug_decoded = base64_decode($bug_encoded); - if (substr($bug_encoded, 0, 2) == 'eN') { - if (function_exists('gzuncompress')) { - $result = PMA_printDecodedBug(gzuncompress($bug_decoded)); - } else { - $result = 'Error: "gzuncompress()" is unavailable!' . "\n"; - } - } else { - $result = PMA_printDecodedBug($bug_decoded); - } // end if... else... - - echo '

Decoded:

' . "\n" - . $result . "\n"; -} // end if -?> - - - diff --git a/scripts/find_unused_messages.sh b/scripts/find_unused_messages.sh deleted file mode 100755 index b0fd26eb18..0000000000 --- a/scripts/find_unused_messages.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -# Simple script to find unused message strings by Michal Čihař - -tmp1=`mktemp` -tmp2=`mktemp` -grep -o '\' lang/english-iso-8859-1.inc.php \ - | grep -Ev '^str(Transformation_|ShowStatus)' | sort -u > $tmp1 -grep -ho '\' `find . -type f -a -name '*.php' -a -not -path '*/lang/*'` \ - | grep -Ev '^str(Transformation_|ShowStatus)' | sort -u > $tmp2 - -echo Please note that you need to check results of this script, it doesn\'t -echo understand PHP, it only tries to find what looks like message name. - -echo -echo Used messages not present in english language file: -echo '(this contains generated messages and composed message names, so these' -echo 'are not necessary a errors!)' -echo - -# filter out known false positives -diff $tmp1 $tmp2 | awk '/^>/ {print $2}' | grep -Ev '(strEncto|strXkana|strDBLink|strPrivDesc|strPrivDescProcess|strTableListOptions|strMissingParameter|strAttribute|strDoSelectAll)' - -echo -echo Not used messages present in english language file: -echo - -diff $tmp1 $tmp2 | awk '/^ $tmp - -# Remove languages we don't have -awk -F, \ - 'BEGIN { pr = 1 } ; - /^\);/ { pr = 1 } ; - {if(pr) print $0;}; - /'$langmatch'/ {if (!pr) print $0;}; - /^\$available_languages/ { pr = 0 };' \ - $tmp > libraries/select_lang.lib.php - -# Final cleanup -rm -f $tmp - diff --git a/scripts/remove_control_m.sh b/scripts/remove_control_m.sh deleted file mode 100755 index 432c149c7a..0000000000 --- a/scripts/remove_control_m.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -# -# $Id$ -# -# Script to remove ^M from files for DOS <-> UNIX conversions -# - -if [ $# != 1 ] -then - echo "Usage: remove_control_m.sh " - echo "" - echo "Example: remove_control_m.sh php3" - exit -fi - -for i in `find . -name "*.$1"` - do - echo $i - tr -d '\015' < $i > ${i}.new - rm $i - mv ${i}.new $i - done; - diff --git a/scripts/setup.php b/scripts/setup.php deleted file mode 100644 index 4fe4971544..0000000000 --- a/scripts/setup.php +++ /dev/null @@ -1,2042 +0,0 @@ - - * @copyright 2006 Michal Čihař - * @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0 - * @version $Id$ - */ - -// Grab phpMyAdmin version and PMA_dl function -define('PMA_MINIMUM_COMMON', TRUE); -define('PMA_SETUP', TRUE); -chdir('..'); -require_once './libraries/common.inc.php'; - -// Grab configuration defaults -// Do not use $PMA_Config, it interferes with the one in $_SESSION -// on servers with register_globals enabled -$PMA_Config_Setup = new PMA_Config(); - -// Script information -$script_info = 'phpMyAdmin ' . $PMA_Config_Setup->get('PMA_VERSION') . ' setup script by Michal Čihař '; -$script_version = '$Id$'; - -// Grab action -if (isset($_POST['action'])) { - $action = $_POST['action']; -} else { - $action = ''; -} - -// Grab wanted CRLF type -if (isset($_POST['eoltype'])) { - $eoltype = $_POST['eoltype']; -} else { - if (PMA_USR_OS == 'Win') { - $eoltype = 'dos'; - } else { - $eoltype = 'unix'; - } -} - -// Detect which CRLF to use -if ($eoltype == 'dos') { - $crlf = "\r\n"; -} elseif ($eoltype == 'mac') { - $crlf = "\r"; -} else { - $crlf = "\n"; -} - -if (isset($_POST['configuration']) && $action != 'clear') { - // Grab previous configuration, if it should not be cleared - $configuration = unserialize($_POST['configuration']); -} else { - // Start with empty configuration - $configuration = array(); -} - -// We rely on Servers array to exist, so create it here -if (!isset($configuration['Servers']) || !is_array($configuration['Servers'])) { - $configuration['Servers'] = array(); -} - -// Used later -$now = gmdate('D, d M Y H:i:s') . ' GMT'; - -// General header for no caching -header('Expires: ' . $now); // rfc2616 - Section 14.21 -header('Last-Modified: ' . $now); -header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0'); // HTTP/1.1 -header('Pragma: no-cache'); // HTTP/1.0 - -// whether to show html header? -if ($action != 'download') { - -// Define the charset to be used -header('Content-Type: text/html; charset=utf-8'); - -// this needs to be echoed otherwise php with short tags complains -echo '' . "\n"; -?> - - - - - - phpMyAdmin <?php echo $PMA_Config_Setup->get('PMA_VERSION'); ?> setup - - - - - - - -

phpMyAdmin get('PMA_VERSION'); ?> setup

-' . - '' . - 'Documentation' . - '' . - '' . - 'Wiki' . - '' . - '' - ; -} - -/** - * Displays message - * - * @param string type of message (notice/warning/error) - * @param string text of message - * @param title optional title of message - * - * @return nothing - */ -function message($type, $text, $title = '') { - echo '
' . "\n"; - if (!empty($title)) { - echo '

'; - echo $title; - echo '

' . "\n"; - } - echo $text . "\n"; - echo '
' . "\n"; -} - -/** - * Creates hidden input required for keeping current configuraion - * - * @return string HTML with hidden inputs - */ -function get_hidden_cfg() { - global $configuration, $eoltype; - - $ret = '' . "\n"; - $ret .= '' . "\n"; - - return $ret; -} - -/** - * Returns needed hidden input for forms. - * - * @return string HTML with hidden inputs - */ -function get_hidden_inputs() { - return ''; -} - -/** - * Creates form for some action - * - * @param string action name - * @param string form title - * @param string optional additional inputs - * - * @return string HTML with form - */ -function get_action($name, $title, $added = '', $enabled = TRUE) { - $ret = ''; - $ret .= '
'; - $ret .= get_hidden_inputs(); - $ret .= ''; - $ret .= $added; - $ret .= ''; - $ret .= get_hidden_inputs(); - foreach ($params as $key => $val) { - $ret .= ''; - } - $ret .= ''; - $ret .= '
'; - $ret .= "\n"; - return $ret; -} - -/** - * Terminates script and ends HTML - * - * @return nothing - */ -function footer() { - echo ''; - echo ''; - exit; -} - -/** - * Creates string describing server authentication method - * - * @param array server configuration - * - * @return string authentication method description - */ -function get_server_auth($val) { - global $PMA_Config_Setup; - - if (isset($val['auth_type'])) { - $auth = $val['auth_type']; - } else { - $auth = $PMA_Config_Setup->default_server['auth_type']; - } - $ret = $auth; - if ($auth == 'config') { - if (isset($val['user'])) { - $ret .= ':' . $val['user']; - } else { - $ret .= ':' . $PMA_Config_Setup->default_server['user']; - } - } - return $ret; -} - -/** - * Creates nice string with server name - * - * @param array server configuration - * @param int optional server id - * - * @return string fancy server name - */ -function get_server_name($val, $id = FALSE, $escape = true) { - if (!empty($val['verbose'])) { - $ret = $val['verbose']; - } else { - $ret = $val['host']; - } - $ret .= ' (' . get_server_auth($val) . ')'; - if ($id !== FALSE) { - $ret .= ' [' . ($id + 1) . ']' ; - } - if ($escape) { - return htmlspecialchars($ret); - } else { - return $ret; - } -} - - -/** - * Exports variable to PHP code, very limited version of var_export - * - * @param string data to export - * - * @see var_export - * - * @return string PHP code containing variable value - */ -function PMA_var_export($input) { - global $crlf; - - $output = ''; - if (is_null($input)) { - $output .= 'NULL'; - } elseif (is_array($input)) { - $output .= 'array (' . $crlf; - foreach($input as $key => $value) { - $output .= PMA_var_export($key) . ' => ' . PMA_var_export($value); - $output .= ',' . $crlf; - } - $output .= ')'; - } elseif (is_string($input)) { - $output .= '\'' . addslashes($input) . '\''; - } elseif (is_int($input) || is_double($input)) { - $output .= (string) $input; - } elseif (is_bool($input)) { - $output .= $input ? 'true' : 'false'; - } else { - die('Unknown type for PMA_var_export: ' . $input); - } - return $output; -} - -/** - * Creates configuration code for one variable - * - * @param string variable name - * @param mixed configuration - * - * @return string PHP code containing configuration - */ -function get_cfg_val($name, $val) { - global $crlf; - - $ret = ''; - if (is_array($val)) { - $ret .= $crlf; - foreach ($val as $k => $v) { - if (!isset($type)) { - if (is_string($k)) { - $type = 'string'; - } elseif (is_int($k)) { - $type = 'int'; - $ret .= $name . ' = array(' . $crlf; - } else { - // Something unknown... - $ret .= $name. ' = ' . PMA_var_export($val) . ';' . $crlf; - break; - } - } - if ($type == 'string') { - $ret .= get_cfg_val($name . "['$k']", $v); - } elseif ($type == 'int') { - $ret .= ' ' . PMA_var_export($v) . ',' . $crlf; - } - } - if (!isset($type)) { - /* Empty array */ - $ret .= $name . ' = array();' . $crlf; - } elseif ($type == 'int') { - $ret .= ');' . $crlf; - } - $ret .= $crlf; - unset($type); - } else { - $ret .= $name . ' = ' . PMA_var_export($val) . ';' . $crlf; - } - return $ret; -} - -/** - * Creates configuration PHP code - * - * @param array configuration - * - * @return string PHP code containing configuration - */ -function get_cfg_string($cfg) { - global $script_info, $script_version, $now, $crlf; - - $c = $cfg; - $ret = " 0) { - $ret .= "/* Servers configuration */$crlf\$i = 0;" . $crlf; - foreach ($c['Servers'] as $cnt => $srv) { - $ret .= $crlf . '/* Server ' . strtr(get_server_name($srv, $cnt, false), '*', '-') . " */$crlf\$i++;" . $crlf; - foreach ($srv as $key => $val) { - $ret .= get_cfg_val("\$cfg['Servers'][\$i]['$key']", $val); - } - } - $ret .= $crlf . '/* End of servers configuration */' . $crlf . $crlf; - } - unset($c['Servers']); - - foreach ($c as $key => $val) { - $ret .= get_cfg_val("\$cfg['$key']", $val); - } - - $ret .= '?>' . $crlf; - return $ret; -} - -/** - * Compresses server configuration to be indexed from 0 and contain no gaps - * - * @param array configuration - * - * @return nothing - */ -function compress_servers(&$cfg) { - $ns = array(); - foreach ($cfg['Servers'] as $val) { - if (!empty($val['host'])) { - $ns[] = $val; - } - } - $cfg['Servers'] = $ns; -} - -/** - * Grabs values from POST - * - * @param string list of values to grab, values are separated by ";", - * each can have defined type separated by ":", if no type - * is defined, string is assumed. Possible types: bool - - * boolean value, serialized - serialized value, int - - * integer, tristate - "TRUE"/"FALSE" converted to bool, - * other strings are kept. - * - * @return array array with grabbed values - */ -function grab_values($list) -{ - $a = split(';', $list); - $res = array(); - foreach ($a as $val) { - $v = split(':', $val); - if (!isset($v[1])) { - $v[1] = ''; - } - switch($v[1]) { - case 'bool': - $res[$v[0]] = isset($_POST[$v[0]]); - break; - case 'serialized': - if (isset($_POST[$v[0]]) && strlen($_POST[$v[0]]) > 0) { - $res[$v[0]] = unserialize($_POST[$v[0]]); - } - break; - case 'int': - if (isset($_POST[$v[0]]) && strlen($_POST[$v[0]]) > 0) { - $res[$v[0]] = (int)$_POST[$v[0]]; - } - break; - case 'tristate': - if (isset($_POST[$v[0]]) && strlen($_POST[$v[0]]) > 0) { - $cur = $_POST[$v[0]]; - if ($cur == 'TRUE') { - $res[$v[0]] = TRUE; - } elseif ($cur == 'FALSE') { - $res[$v[0]] = FALSE; - } else { - $res[$v[0]] = $cur; - } - } - break; - case 'string': - default: - if (isset($_POST[$v[0]]) && strlen($_POST[$v[0]]) > 0) { - $res[$v[0]] = $_POST[$v[0]]; - } - break; - } - } - return $res; -} - -/** - * Displays overview - * - * @param string title of oveview - * @param array list of values to display (each element is array of two - * values - name and value) - * @param string optional buttons to be displayed - * - * @return nothing - */ -function show_overview($title, $list, $buttons = '') { - echo '
' . "\n"; - echo '' . $title . '' . "\n"; - foreach ($list as $val) { - echo '
'; - echo '
'; - echo $val[0]; - echo '
'; - echo '
'; - echo $val[1]; - echo '
'; - echo '
' . "\n"; - } - if (!empty($buttons)) { - echo '
'; - echo '
Actions:
'; - echo $buttons; - echo '
' . "\n"; - } - echo '
' . "\n"; - echo "\n"; -} - -/** - * Displays configuration, fallback defaults are taken from global $PMA_Config_Setup - * - * @param array list of values to display (each element is array of two or - * three values - desription, name and optional type - * indicator). Type is determined by type of this parameter, - * array means select and array elements are items, - * 'password' means password input. - * @param string title of configuration - * @param string help string for this configuration - * @param array optional first level defaults - * @param string optional title for save button - * @param string optional prefix for documentation links - * - * @return nothing - */ -function show_config_form($list, $legend, $help, $defaults = array(), $save = '', $prefix = '') { - global $PMA_Config_Setup; - - if (empty($save)) { - $save = 'Update'; - } - - echo '
' . "\n"; - echo '' . $legend . '' . "\n"; - echo '

' . $help . '

' . "\n"; - foreach ($list as $val) { - echo '
'; - $type = 'text'; - if (isset($val[3])) { - if (is_array($val[3])) { - $type = 'select'; - } elseif (is_bool($val[3])) { - $type = 'check'; - } elseif ($val[3] == 'password') { - $type = 'password'; - } - } - switch ($type) { - case 'text': - case 'password': - echo ''; - echo ''; - break; - case 'check': - echo 'get($val[1])) { - echo ' checked="checked"'; - } - } - echo ' />'; - echo ''; - break; - case 'select': - echo ''; - echo ''; - break; - } - echo '
' . "\n"; - } - echo '
'; - echo '
Actions:
'; - echo ''; - echo ''; - echo '
' . "\n"; - echo '
' . "\n"; - echo "\n"; -} - -/** - * Shows security options configuration form - * - * @param array optional defaults - * - * @return nothing - */ -function show_security_form($defaults = array()) { - ?> -
- - - -
- -
- - - viewable type and http://dev.mysql.com/doc/refman as manual base URL.', - $defaults); - ?> -
- -
- - - get('AvailableCharsets')), - array('Recoding engine', 'RecodingEngine', 'PHP can contain iconv and/or recode, select which one to use or keep autodetection.', array('auto', 'iconv', 'recode')), - array('Extra params for iconv', 'IconvExtraParams', 'Iconv can get some extra parameters for conversion see man iconv_open.'), - ), - 'Configure charset conversions', - 'phpMyAdmin can perform charset conversions so that you can import and export in any charset you want.', - $defaults); - ?> -
- -
- - - -
- -
- - - get('PDFPageSizes')), - ), - 'Configure MIME/relation/history', - 'phpMyAdmin can provide additional features like MIME transformation, internal relations, permanent history and PDF pages generation. You have to configure the database and tables that will store this information on the server page. Behaviour of those functions is configured here.', - $defaults); - ?> -
- -
- - - -
- -
- - - '; - } - $hi = array ('bookmarktable', 'relation', 'table_info', 'table_coords', 'pdf_pages', 'column_info', 'designer_coords', 'history', 'AllowDeny'); - foreach ($hi as $k) { - if (isset($defaults[$k]) && (!is_string($defaults[$k]) || strlen($defaults[$k]) > 0)) { - echo ''; - } - } - show_config_form(array( - array('Server hostname', 'host', 'Hostname where MySQL server is running'), - array('Server port', 'port', 'Port on which MySQL server is listening, leave empty for default'), - array('Server socket', 'socket', 'Socket on which MySQL server is listening, leave empty for default'), - array('Connection type', 'connect_type', 'How to connect to server, keep tcp if unsure', array('tcp', 'socket')), - array('PHP extension to use', 'extension', 'What PHP extension to use, use mysqli if supported', array('mysql', 'mysqli')), - array('Compress connection', 'compress', 'Whether to compress connection to MySQL server', FALSE), - array('Authentication type', 'auth_type', 'Authentication method to use', array('cookie', 'http', 'config', 'signon')), - array('User for config auth', 'user', 'Leave empty if not using config auth'), - array('Password for config auth', 'password', 'Leave empty if not using config auth', 'password'), - array('Only database to show', 'only_db', 'Limit listing of databases in left frame to this one'), - array('Verbose name of this server', 'verbose', 'Name to display in server selection'), - array('phpMyAdmin control user', 'controluser', 'User which phpMyAdmin can use for various actions'), - array('phpMyAdmin control user password', 'controlpass', 'Password for user which phpMyAdmin can use for various actions', 'password'), - array('phpMyAdmin database for advanced features', 'pmadb', 'phpMyAdmin will allow much more when you enable this. Table names are filled in automatically.'), - array('Session name for signon auth', 'SignonSession', 'Leave empty if not using signon auth'), - array('Login URL for signon auth', 'SignonURL', 'Leave empty if not using signon auth'), - array('Logout URL', 'LogoutURL', 'Where to redirect user after logout'), - ), - 'Configure server', - ($number === FALSE) ? 'Enter new server connection parameters.' : 'Editing server ' . get_server_name($defaults, $number), - $defaults, $number === FALSE ? 'Add' : '', 'Servers_'); - ?> -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- -
- - - -
- '; - foreach ($cfg['Servers'] as $key => $val) { - $ret .= ''; - } - $ret .= ''; - return $ret; -} - -/** - * Loads configuration from file - * - * @param string filename - * - * @return mixed FALSE on failure, new config array on success - */ -function load_config($config_file) { - if (file_exists($config_file)) { - $success_apply_user_config = FALSE; - $old_error_reporting = error_reporting(0); - if (function_exists('file_get_contents')) { - $success_apply_user_config = eval('?>' . trim(file_get_contents($config_file))); - } else { - $success_apply_user_config = - eval('?>' . trim(implode("\n", file($config_file)))); - } - error_reporting($old_error_reporting); - unset($old_error_reporting); - if ($success_apply_user_config === FALSE) { - message('error', 'Error while parsing configuration file!'); - } elseif (!isset($cfg) || count($cfg) == 0) { - message('error', 'Config file seems to contain no configuration!'); - } else { - // This must be set - if (!isset($cfg['Servers'])) { - $cfg['Servers'] = array(); - } - message('notice', 'Configuration loaded'); - compress_servers($cfg); - return $cfg; - } - } else { - message('error', 'Configuration file not found!'); - } - return FALSE; -} - -if ($action != 'download') { - // Check whether we can write to configuration - $fail_dir = FALSE; - $fail_dir = $fail_dir || !is_dir('./config/'); - $fail_dir = $fail_dir || !is_writable('./config/'); - $fail_dir = $fail_dir || (file_exists('./config/config.inc.php') && !is_writable('./config/config.inc.php')); - $config = @fopen('./config/config.inc.php', 'a'); - $fail_dir = $fail_dir || ($config === FALSE); - @fclose($config); -} - -/** - * @var boolean whether to show configuration overview - */ -$show_info = FALSE; - -// Do the main work depending on selected action -switch ($action) { - case 'download': - header('Content-Type: text/plain'); - header('Content-Disposition: attachment; filename="config.inc.php"'); - - echo get_cfg_string($configuration); - exit; - break; - case 'display': - echo '
' . "\n"; - ?> - - default_server; - unset($defaults['AllowDeny']); // Ignore this for now - } else { - $defaults = array(); - } - - // Guess MySQL extension to use, prefer mysqli - if (!function_exists('mysql_get_client_info')) { - PMA_dl('mysql'); - } - if (!function_exists('mysqli_get_client_info')) { - PMA_dl('mysqli'); - } - if (function_exists('mysqli_get_client_info')) { - $defaults['extension'] = 'mysqli'; - } elseif (function_exists('mysql_get_client_info')) { - $defaults['extension'] = 'mysql'; - } else { - message('warning', 'Could not load either mysql or mysqli extension, you might not be able to use phpMyAdmin! Check your PHP configuration.'); - } - if (isset($defaults['extension'])) { - message('notice', 'Autodetected MySQL extension to use: ' . $defaults['extension']); - } - - // Display form - show_server_form($defaults); - break; - case 'editserver': - if (!isset($_POST['server'])) { - footer(); - } - show_server_form($configuration['Servers'][$_POST['server']], $_POST['server']); - break; - case 'deleteserver': - if (!isset($_POST['server'])) { - footer(); - } - message('notice', 'Deleted server ' . get_server_name($configuration['Servers'][$_POST['server']], $_POST['server'])); - unset($configuration['Servers'][$_POST['server']]); - compress_servers($configuration); - $show_info = TRUE; - break; - case 'servers': - if (count($configuration['Servers']) == 0) { - message('notice', 'No servers defined, so none can be shown'); - } else { - foreach ($configuration['Servers'] as $i => $srv) { - $data = array(); - if (!empty($srv['verbose'])) { - $data[] = array('Verbose name', $srv['verbose']); - } - $data[] = array('Host', $srv['host']); - $data[] = array('MySQL extension', isset($srv['extension']) ? $srv['extension'] : $PMA_Config_Setup->default_server['extension']); - $data[] = array('Authentication type', get_server_auth($srv)); - $data[] = array('phpMyAdmin advanced features', empty($srv['pmadb']) || empty($srv['controluser']) || empty($srv['controlpass']) ? 'disabled' : 'enabled, db: ' . $srv['pmadb'] . ', user: ' . $srv['controluser']); - $buttons = - get_action('deleteserver', 'Delete', '') . - get_action('editserver', 'Edit', ''); - show_overview('Server ' . get_server_name($srv, $i), $data, $buttons); - } - } - break; - - case 'feat_upload_real': - if (isset($_POST['submit_save'])) { - $dirs = grab_values('UploadDir;SaveDir'); - $err = FALSE; - if (!empty($dirs['UploadDir']) && !is_dir($dirs['UploadDir'])) { - message('error', 'Upload directory ' . htmlspecialchars($dirs['UploadDir']) . ' does not exist!'); - $err = TRUE; - } - if (!empty($dirs['SaveDir']) && !is_dir($dirs['SaveDir'])) { - message('error', 'Save directory ' . htmlspecialchars($dirs['SaveDir']) . ' does not exist!'); - $err = TRUE; - } - if ($err) { - show_upload_form($dirs); - } else { - $configuration = array_merge($configuration, $dirs); - message('notice', 'Configuration changed'); - $show_info = TRUE; - } - } else { - $show_info = TRUE; - } - break; - case 'feat_upload': - show_upload_form($configuration); - break; - - case 'feat_security_real': - if (isset($_POST['submit_save'])) { - $vals = grab_values('blowfish_secret;ForceSSL:bool;ShowPhpInfo:bool;ShowChgPassword:bool;AllowArbitraryServer:bool;LoginCookieRecall:book;LoginCookieValidity:int'); - $err = FALSE; - if (empty($vals['blowfish_secret'])) { - message('warning', 'Blowfish secret is empty, you will not be able to use cookie authentication.'); - } - if ($vals['AllowArbitraryServer']) { - message('warning', 'Arbitrary server connection might be dangerous as it might allow access to internal servers that are not reachable from outside.'); - } - if (isset($vals['LoginCookieValidity']) && $vals['LoginCookieValidity'] < 1) { - message('error', 'Invalid cookie validity time'); - $err = TRUE; - } - if ($err) { - show_security_form($vals); - } else { - $configuration = array_merge($configuration, $vals); - message('notice', 'Configuration changed'); - $show_info = TRUE; - } - } else { - $show_info = TRUE; - } - break; - case 'feat_security': - show_security_form($configuration); - break; - - case 'feat_manual_real': - if (isset($_POST['submit_save'])) { - $vals = grab_values('MySQLManualBase;MySQLManualType'); - $err = FALSE; - if ($vals['MySQLManualType'] != 'none' && empty($vals['MySQLManualBase'])) { - message('error', 'You need to set manual base URL or choose type \'none\'.'); - $err = TRUE; - } - if ($err) { - show_manual_form($vals); - } else { - $configuration = array_merge($configuration, $vals); - message('notice', 'Configuration changed'); - $show_info = TRUE; - } - } else { - $show_info = TRUE; - } - break; - case 'feat_manual': - show_manual_form($configuration); - break; - - case 'feat_charset_real': - if (isset($_POST['submit_save'])) { - $vals = grab_values('AllowAnywhereRecoding:bool;DefaultCharset;RecodingEngine;IconvExtraParams'); - $err = FALSE; - if ($err) { - show_charset_form($vals); - } else { - $configuration = array_merge($configuration, $vals); - message('notice', 'Configuration changed'); - $show_info = TRUE; - } - } else { - $show_info = TRUE; - } - break; - case 'feat_charset': - $d = $configuration; - if (!isset($d['RecodingEngine'])) { - if (@extension_loaded('iconv')) { - $d['RecodingEngine'] = 'iconv'; - } elseif (@extension_loaded('recode')) { - $d['RecodingEngine'] = 'recode'; - } else { - PMA_dl('iconv'); - if (!@extension_loaded('iconv')) { - PMA_dl('recode'); - if (!@extension_loaded('recode')) { - message('warning', 'Neither recode nor iconv could be loaded so charset conversion will most likely not work.'); - } else { - $d['RecodingEngine'] = 'recode'; - } - } else { - $d['RecodingEngine'] = 'iconv'; - } - } - if (isset($d['RecodingEngine'])) { - message('notice', 'Autodetected recoding engine: ' . $d['RecodingEngine']); - } - } - show_charset_form($d); - unset($d); - break; - - case 'feat_extensions_real': - if (isset($_POST['submit_save'])) { - $vals = grab_values('GD2Available'); - $err = FALSE; - if ($err) { - show_extensions_form($vals); - } else { - $configuration = array_merge($configuration, $vals); - message('notice', 'Configuration changed'); - $show_info = TRUE; - } - } else { - $show_info = TRUE; - } - break; - case 'feat_extensions': - $d = $configuration; - if (!@extension_loaded('mbstring')) { - PMA_dl('mbstring'); - } - if (!@extension_loaded('mbstring')) { - message('warning', 'Could not load mbstring extension, which is required for work with multibyte strings like UTF-8 ones. Please consider installing it.'); - } - if (!isset($d['GD2Available'])) { - if (PMA_IS_GD2 == 1) { - message('notice', 'GD 2 or newer found.'); - $d['GD2Available'] = 'yes'; - } else { - message('warning', 'GD 2 or newer is not present.'); - $d['GD2Available'] = 'no'; - } - } - show_extensions_form($d); - unset($d); - break; - - case 'feat_relation_real': - if (isset($_POST['submit_save'])) { - $vals = grab_values('QueryHistoryDB:bool;QueryHistoryMax:int;BrowseMIME:bool;PDFDefaultPageSize'); - $err = FALSE; - if (isset($vals['QueryHistoryMax']) && $vals['QueryHistoryMax'] < 1) { - message('error', 'Invalid value for query maximum history size!'); - $err = TRUE; - } - if ($err) { - show_relation_form($vals); - } else { - $configuration = array_merge($configuration, $vals); - message('notice', 'Configuration changed'); - $show_info = TRUE; - } - } else { - $show_info = TRUE; - } - break; - case 'feat_relation': - show_relation_form($configuration); - break; - - case 'lay_navigation_real': - if (isset($_POST['submit_save'])) { - $vals = grab_values('LeftFrameLight:bool;LeftFrameDBTree:bool;LeftFrameDBSeparator;LeftFrameTableSeparator;LeftFrameTableLevel:int;LeftDisplayLogo:bool;LeftDisplayServers:bool;DisplayServersList:bool;DisplayDatabasesList;LeftPointerEnable:bool'); - $err = FALSE; - if (isset($vals['DisplayDatabasesList'])) { - if ($vals['DisplayDatabasesList'] == 'yes') { - $vals['DisplayDatabasesList'] = true; - } elseif ($vals['DisplayDatabasesList'] == 'no') { - $vals['DisplayDatabasesList'] = false; - } - } - if (isset($vals['LeftFrameTableLevel']) && $vals['LeftFrameTableLevel'] < 1) { - message('error', 'Invalid value for maximum table nesting level!'); - $err = TRUE; - } - if ($err) { - show_left_form($vals); - } else { - $configuration = array_merge($configuration, $vals); - message('notice', 'Configuration changed'); - $show_info = TRUE; - } - } else { - $show_info = TRUE; - } - break; - case 'lay_navigation': - show_left_form($configuration); - break; - - case 'lay_tabs_real': - if (isset($_POST['submit_save'])) { - $vals = grab_values('DefaultTabServer;DefaultTabDatabase;DefaultTabTable;LightTabs:bool'); - $err = FALSE; - if ($err) { - show_tabs_form($vals); - } else { - $configuration = array_merge($configuration, $vals); - message('notice', 'Configuration changed'); - $show_info = TRUE; - } - } else { - $show_info = TRUE; - } - break; - case 'lay_tabs': - show_tabs_form($configuration); - break; - - case 'lay_icons_real': - if (isset($_POST['submit_save'])) { - $vals = grab_values('ErrorIconic:bool;MainPageIconic:bool;ReplaceHelpImg:bool;NavigationBarIconic:tristate;PropertiesIconic:tristate'); - $err = FALSE; - if ($err) { - show_icons_form($vals); - } else { - $configuration = array_merge($configuration, $vals); - message('notice', 'Configuration changed'); - $show_info = TRUE; - } - } else { - $show_info = TRUE; - } - break; - case 'lay_icons': - show_icons_form($configuration); - break; - - case 'lay_browse_real': - if (isset($_POST['submit_save'])) { - $vals = grab_values('BrowsePointerEnable:bool;BrowseMarkerEnable:bool;ModifyDeleteAtRight:bool;ModifyDeleteAtLeft:bool;RepeatCells:int;DefaultDisplay'); - $err = FALSE; - if (isset($vals['RepeatCells']) && $vals['RepeatCells'] < 1) { - message('error', 'Invalid value for header repeating!'); - $err = TRUE; - } - if (!$vals['ModifyDeleteAtLeft'] && !$vals['ModifyDeleteAtRight']) { - message('error', 'No action buttons enabled!'); - $err = TRUE; - } - if ($err) { - show_browse_form($vals); - } else { - $configuration = array_merge($configuration, $vals); - message('notice', 'Configuration changed'); - $show_info = TRUE; - } - } else { - $show_info = TRUE; - } - break; - case 'lay_browse': - show_browse_form($configuration); - break; - - case 'lay_edit_real': - if (isset($_POST['submit_save'])) { - $vals = grab_values('TextareaCols:int;TextareaRows:int;LongtextDoubleTextarea:bool;TextareaAutoSelect:bool;CharEditing;CharTextareaCols:int;CharTextareaRows:int;CtrlArrowsMoving:bool;DefaultPropDisplay;InsertRows:int'); - $err = FALSE; - if (isset($vals['TextareaCols']) && $vals['TextareaCols'] < 1) { - message('error', 'Invalid value for textarea columns!'); - $err = TRUE; - } - if (isset($vals['TextareaRows']) && $vals['TextareaRows'] < 1) { - message('error', 'Invalid value for textarea rows!'); - $err = TRUE; - } - if (isset($vals['CharTextareaCols']) && $vals['CharTextareaCols'] < 1) { - message('error', 'Invalid value for CHAR textarea columns!'); - $err = TRUE; - } - if (isset($vals['CharTextareaRows']) && $vals['CharTextareaRows'] < 1) { - message('error', 'Invalid value for CHAR textarea rows!'); - $err = TRUE; - } - if (isset($vals['InsertRows']) && $vals['InsertRows'] < 1) { - message('error', 'Invalid value for inserted rows count!'); - $err = TRUE; - } - if ($err) { - show_edit_form($vals); - } else { - $configuration = array_merge($configuration, $vals); - message('notice', 'Configuration changed'); - $show_info = TRUE; - } - } else { - $show_info = TRUE; - } - break; - case 'lay_edit': - show_edit_form($configuration); - break; - - case 'lay_window_real': - if (isset($_POST['submit_save'])) { - $vals = grab_values('EditInWindow:bool;QueryWindowHeight:int;QueryWindowWidth:int;QueryWindowDefTab'); - $err = FALSE; - if (isset($vals['QueryWindowWidth']) && $vals['QueryWindowWidth'] < 1) { - message('error', 'Invalid value for query window width!'); - $err = TRUE; - } - if (isset($vals['QueryWindowHeight']) && $vals['QueryWindowHeight'] < 1) { - message('error', 'Invalid value for query window height'); - $err = TRUE; - } - if ($err) { - show_window_form($vals); - } else { - $configuration = array_merge($configuration, $vals); - message('notice', 'Configuration changed'); - $show_info = TRUE; - } - } else { - $show_info = TRUE; - } - break; - case 'lay_window': - show_window_form($configuration); - break; - -/* Template for new actions: - case 'blah_real': - if (isset($_POST['submit_save'])) { - $vals = grab_values('value1:bool;value2'); - $err = FALSE; - if (somechekcfails) { - message('error', 'Invalid value for blah!'); - $err = TRUE; - } - if ($err) { - show_blah_form($vals); - } else { - $configuration = array_merge($configuration, $vals); - message('notice', 'Configuration changed'); - $show_info = TRUE; - } - } else { - $show_info = TRUE; - } - break; - case 'blah': - show_blah_form($configuration); - break; -*/ - case 'versioncheck': // Check for latest available version - PMA_dl('curl'); - $url = 'http://phpmyadmin.net/home_page/version.php'; - $data = ''; - $f = @fopen($url, 'r'); - if ($f === FALSE) { - if (!function_exists('curl_init')) { - message('error', 'Neither URL wrappers nor CURL are available. Version check is not possible.'); - break; - } - } else { - $data = fread($f, 20); - fclose($f); - } - if (empty($data) && function_exists('curl_init')) { - $ch = curl_init($url); - curl_setopt($ch, CURLOPT_HEADER, FALSE); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); - $data = curl_exec($ch); - curl_close($ch); - } - if (empty($data)) { - message('error', 'Reading of version failed. Maybe you\'re offline or the upgrade server does not respond.'); - break; - } - - /* Format: version\ndate\n(download\n)* */ - $data_list = split("\n", $data); - - if (count($data_list) > 0) { - $version = $data_list[0]; - } else { - $version = ''; - } - - $version_upstream = version_to_int($version); - if ($version_upstream === FALSE) { - message('error', 'Got invalid version string from server.'); - break; - } - - $version_local = version_to_int($PMA_Config_Setup->get('PMA_VERSION')); - if ($version_local === FALSE) { - message('error', 'Unparsable version string.'); - break; - } - - if ($version_upstream > $version_local) { - message('notice', 'New version of phpMyAdmin is available, you should consider upgrade. New version is ' . htmlspecialchars($version) . '.'); - } else { - if ($version_local % 100 == 0) { - message('notice', 'You are using subversion version, run svn update :-). However latest released version is ' . htmlspecialchars($version) . '.'); - } else { - message('notice', 'No newer stable version is available.'); - } - } - break; - - case 'seteol': - $eoltype = $_POST['neweol']; - message('notice', 'End of line format changed.'); - case 'clear': // Actual clearing is done on beginning of this script - case 'main': - $show_info = TRUE; - break; - - case '': - message('notice', 'You want to configure phpMyAdmin using web interface. Please note that this only allows basic setup, please read documentation to see full description of all configuration directives.', 'Welcome'); - - if ($PMA_Config_Setup->get('PMA_PHP_INT_VERSION') < 40100) { - message('warning', 'Please upgrade to PHP 4.1.0, it is required for phpMyAdmin.', 'Too old PHP'); - } - - if ($fail_dir) { - message('warning', 'Please create web server writable folder config in phpMyAdmin toplevel directory as described in documentation. Otherwise you will be only able to download or display it.', 'Can not load or save configuration'); - } - - if (empty($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) == 'off') { - if (empty($_SERVER['REQUEST_URI']) || empty($_SERVER['HTTP_HOST'])) { - $redir = ''; - } else { - $redir = ' If your server is also configured to accept HTTPS request follow this link to use secure connection.'; - } - message('warning', 'You are not using secure connection, all data (including sensitive, like passwords) are transfered unencrypted!' . $redir, 'Not secure connection'); - } - break; -} - -// Should we show information? -if ($show_info) { - $servers = 'none'; - $servers_text = 'Servers'; - if (count($configuration['Servers']) == 0) { - message('warning', 'No servers defined, you probably want to add one.'); - } else { - $servers = ''; - $servers_text = 'Servers (' . count($configuration['Servers']) . ')'; - - $sep = ''; - foreach ($configuration['Servers'] as $key => $val) { - $servers .= $sep; - $sep = ', '; - $servers .= get_server_name($val, $key); - } - unset($sep); - } - show_overview('Current configuration overview', - array( - array($servers_text, $servers), - array('SQL files upload', empty($configuration['UploadDir']) ? 'disabled' : 'enabled'), - array('Exported files on server', empty($configuration['SaveDir']) ? 'disabled' : 'enabled'), - array('Charset conversion', isset($configuration['AllowAnywhereRecoding']) && $configuration['AllowAnywhereRecoding'] ? 'enabled' : 'disabled'), - )); - unset($servers_text, $servers); -} - -// And finally display all actions: -echo '

Available global actions (please note that these will delete any changes you could have done above):

'; - -echo '
Servers' . "\n"; -echo get_action('addserver', 'Add'); -$servers = get_server_selection($configuration); -if (!empty($servers)) { - echo get_action('servers', 'List'); - echo get_action('deleteserver', 'Delete', $servers); - echo get_action('editserver', 'Edit', $servers); -} -echo '
' . "\n\n"; - -echo '
Layout' . "\n"; -echo get_action('lay_navigation', 'Navigation frame'); -echo get_action('lay_tabs', 'Tabs'); -echo get_action('lay_icons', 'Icons'); -echo get_action('lay_browse', 'Browsing'); -echo get_action('lay_edit', 'Editing'); -echo get_action('lay_window', 'Query window'); -echo '
' . "\n\n"; - -echo '
Features' . "\n"; -echo get_action('feat_upload', 'Upload/Download'); -echo get_action('feat_security', 'Security'); -echo get_action('feat_manual', 'MySQL manual'); -echo get_action('feat_charset', 'Charsets'); -echo get_action('feat_extensions', 'Extensions'); -echo get_action('feat_relation', 'MIME/Relation/History'); -echo '
' . "\n\n"; - -echo '
Configuration' . "\n"; -echo get_action('main', 'Overview'); -echo get_action('display', 'Display'); -echo get_action('download', 'Download'); -echo get_action('save', 'Save', '', !$fail_dir); -echo get_action('load', 'Load', '', !$fail_dir); -echo get_action('clear', 'Clear'); -echo get_action('seteol', 'Change end of line', - ''); -echo '
' . "\n\n"; - -echo '
Other actions' . "\n"; -echo get_action('versioncheck', 'Check for latest version'); -echo get_url_action('http://www.phpmyadmin.net/', 'Go to homepage'); -echo get_url_action('https://sourceforge.net/donate/index.php', 'Donate to phpMyAdmin', array('group_id' => 23067)); -echo '
' . "\n\n"; - -footer(); -?> diff --git a/scripts/signon.php b/scripts/signon.php deleted file mode 100644 index 6e7b61912b..0000000000 --- a/scripts/signon.php +++ /dev/null @@ -1,56 +0,0 @@ -' . "\n"; - ?> - - - - - - phpMyAdmin single signon example - - -
-Username:
-Password:
-Host: (will use the one from config.inc.php by default)
- -
- - - diff --git a/scripts/upgrade.pl b/scripts/upgrade.pl deleted file mode 100755 index c9e625e16c..0000000000 --- a/scripts/upgrade.pl +++ /dev/null @@ -1,223 +0,0 @@ -#!/usr/bin/perl -# -# $Id$ -# -# upgrade.pl - automatic phpmyadmin upgrader -# -# -# 2005-05-08, swix@users.sourceforge.net: -# - created script -# -# 2005-10-29 swix@users.sourceforge.net: -# - some fixes & improvements -# - -use strict; -my $source_url = "http://phpmyadmin.net/home_page/version.php"; - - -# -# usage -# - -if (!$ARGV[0] || (($ARGV[0] eq "--force") && !$ARGV[1])) { - print "\n"; - print "usage: $0 [--force] \n\n"; - print " The location specified by will be backed up and replaced\n"; - print " by the latest stable version of phpMyAdmin.\n"; - print " Your config.inc.php file will be preserved.\n\n"; - exit(0); -} - -my $forced; -my $targetdirectory; - -if ($ARGV[0] eq "--force") { - $forced = 1; - $targetdirectory = $ARGV[1]; -} else { - $forced = 0; - $targetdirectory = $ARGV[0]; -} - -if ($targetdirectory =~ /^(.*)\/$/) { - # remove trailing slash, if any - $targetdirectory = $1; -} - -if (!-d $targetdirectory) { - print "error: target directory ($targetdirectory) does not exists\n"; - exit(0); -} - -if (!-f "$targetdirectory/config.inc.php") { - print "error: target directory doesn't seem to contain phpMyAdmin\n"; - exit(0); -} - - -# -# get current release information -# - -my $version; -my $filename; -my $directory; -my $releasedate; -my @urls; -my @today; -my $installedversion; - -if (open(LATEST, "wget -o /dev/null -O - $source_url|")) { - - $version = ; chomp($version); - $releasedate = ; chomp($releasedate); - $filename = "phpMyAdmin-" . $version . "-all-languages.tar.gz"; - $directory = "phpMyAdmin-" . $version . "-all-languages"; - - my $i = 0; - - while (my $line = ) { - chomp($line); - if ($line =~ /http/) { - $urls[$i++] = $line; - } - } - - close(LATEST); - -} else { - - print "error: open of $source_url failed.\n"; - exit(0); - -} - - -if (-d $directory) { - print "error: target directory ($directory) already exists, exiting\n"; - exit(0); -} - -# -# check the installed version -# - -if (open(DEFINES, $targetdirectory .'/libraries/Config.class.php')) { - my $versionStatus = 0; - $installedversion = "unknownversion"; - - while (my $line = ) { - - next unless $line =~ /'PMA_VERSION',\ '(.*)?'\);$/; - $installedversion = $1; - - # take care of "pl", "rc" and "dev": dev < rc < pl - - my $converted_installedversion = $installedversion; - $converted_installedversion =~ s/dev/aaa/g; - $converted_installedversion =~ s/rc/bbb/g; - $converted_installedversion =~ s/pl/ccc/g; - - my $converted_version = $version; - $converted_version =~ s/dev/aaa/g; - $converted_version =~ s/rc/bbb/g; - $converted_version =~ s/pl/ccc/g; - - if ($converted_installedversion gt $converted_version && !$forced) { - print "Local version ($installedversion) newer than latest stable release ($version), not updating. (use \"--force\")\n"; - exit(0); - - } elsif ($installedversion eq $version && !$forced) { - print "Local version ($version) already up to date, not updating (you can use \"--force\")\n"; - exit(0); - - } else { - $versionStatus = 1; - } - } - if (!$versionStatus && !$forced) { - print "Old version could not be identified, not updating (use \"--force\" if you are sure) \n"; - exit(0); - } -} - -# -# ask for confirmation -# - -print "\n"; -print "phpMyAdmin upgrade summary:\n"; -print "---------------------------\n"; -print " phpMyAdmin Path: $targetdirectory\n"; -print " Installed version: $installedversion\n"; -print " Upgraded version: $version\n\n"; -print "Proceed with upgrade? [Y/n] "; -my $kbdinput = ; chomp($kbdinput); -if (lc(substr($kbdinput,0,1)) ne "y" && length($kbdinput) >= 1) { - print "Aborting.\n"; - exit(0); -} else { - print "Proceeding...\n\n"; -} - - -# -# get file -# - -if (!-f $filename) { - - print "getting phpMyAdmin $version\n"; - foreach my $url (@urls) { - - print "trying $url...\n"; - system("wget -o /dev/null $url"); - if (-f $filename) { - print "-> ok\n"; - last; - } - } -} else { - print "already got $filename, not downloading\n"; -} - - -if (!-f $filename) { - print "error: $filename download failed\n"; - exit(0); -} - - - -# -# setup -# - -print "installing...\n"; - -system("tar xzf $filename"); -if (!$directory) { - print "error: $directory still not exists after untar...\n"; - exit(0); -} - -@today = localtime(time); $today[4]++; $today[5]+=1900; -my $timestamp = sprintf("%04d%02d%02d%02d%02d", $today[5], $today[4], $today[3], $today[2], $today[1]); - -my $backupdir = $targetdirectory . "-" . $timestamp . "-" . $installedversion; -print "- backup directory: $backupdir\n"; - -system("cp $directory/config.inc.php $directory/config.inc-dist.php"); -print "- original distribution config.inc.php renamed to config.inc-dist.php\n"; - -system("cp $targetdirectory/config.inc.php $directory/config.inc.php"); -print "- previous config.inc.php copied to the new setup\n"; - -system("mv $targetdirectory $backupdir"); -system("mv $directory $targetdirectory"); -system("rm $filename"); - -print "\ndone! phpMyAdmin $version installed in $targetdirectory\n"; -print "backup of your old installation in $backupdir\n"; -print "Enjoy! :-)\n\n"; diff --git a/scripts/upgrade_tables_mysql_4_1_2+.sql b/scripts/upgrade_tables_mysql_4_1_2+.sql deleted file mode 100644 index 3ab0e7401a..0000000000 --- a/scripts/upgrade_tables_mysql_4_1_2+.sql +++ /dev/null @@ -1,164 +0,0 @@ --- ------------------------------------------------------------- --- SQL Commands to upgrade pmadb for normal phpMyAdmin operation --- with MySQL 4.1.2 and above. --- --- This file is meant for use with MySQL 4.1.2 and above! --- For older MySQL releases, please use create_tables.sql --- --- If you are running one MySQL 4.1.0 or 4.1.1, please create the tables using --- create_tables.sql, then use this script. --- --- Please don't forget to set up the tablenames in config.inc.php --- --- $Id$ - --- -------------------------------------------------------- - --- --- Database : `phpmyadmin` --- -ALTER DATABASE `phpmyadmin` - DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; -USE phpmyadmin; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_bookmark` --- -ALTER TABLE `pma_bookmark` - DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; - -ALTER TABLE `pma_bookmark` - CHANGE `dbase` `dbase` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; -ALTER TABLE `pma_bookmark` - CHANGE `user` `user` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; -ALTER TABLE `pma_bookmark` - CHANGE `label` `label` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''; -ALTER TABLE `pma_bookmark` - CHANGE `query` `query` TEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_column_info` --- - -ALTER TABLE `pma_column_info` - DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; - -ALTER TABLE `pma_column_info` - CHANGE `db_name` `db_name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; -ALTER TABLE `pma_column_info` - CHANGE `table_name` `table_name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; -ALTER TABLE `pma_column_info` - CHANGE `column_name` `column_name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; -ALTER TABLE `pma_column_info` - CHANGE `comment` `comment` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''; -ALTER TABLE `pma_column_info` - CHANGE `mimetype` `mimetype` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''; -ALTER TABLE `pma_column_info` - CHANGE `transformation` `transformation` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; -ALTER TABLE `pma_column_info` - CHANGE `transformation_options` `transformation_options` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_history` --- -ALTER TABLE `pma_history` - DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; - -ALTER TABLE `pma_history` - CHANGE `username` `username` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; -ALTER TABLE `pma_history` - CHANGE `db` `db` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; -ALTER TABLE `pma_history` - CHANGE `table` `table` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; -ALTER TABLE `pma_history` - CHANGE `sqlquery` `sqlquery` TEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_pdf_pages` --- - -ALTER TABLE `pma_pdf_pages` - DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; - -ALTER TABLE `pma_pdf_pages` - CHANGE `db_name` `db_name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; -ALTER TABLE `pma_pdf_pages` - CHANGE `page_descr` `page_descr` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL default ''; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_relation` --- -ALTER TABLE `pma_relation` - DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; - -ALTER TABLE `pma_relation` - CHANGE `master_db` `master_db` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; -ALTER TABLE `pma_relation` - CHANGE `master_table` `master_table` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; -ALTER TABLE `pma_relation` - CHANGE `master_field` `master_field` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; -ALTER TABLE `pma_relation` - CHANGE `foreign_db` `foreign_db` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; -ALTER TABLE `pma_relation` - CHANGE `foreign_table` `foreign_table` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; -ALTER TABLE `pma_relation` - CHANGE `foreign_field` `foreign_field` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_table_coords` --- - -ALTER TABLE `pma_table_coords` - DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; - -ALTER TABLE `pma_table_coords` - CHANGE `db_name` `db_name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; -ALTER TABLE `pma_table_coords` - CHANGE `table_name` `table_name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_table_info` --- - -ALTER TABLE `pma_table_info` - DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; - -ALTER TABLE `pma_table_info` - CHANGE `db_name` `db_name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; -ALTER TABLE `pma_table_info` - CHANGE `table_name` `table_name` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; -ALTER TABLE `pma_table_info` - CHANGE `display_field` `display_field` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT ''; - --- -------------------------------------------------------- - --- --- Table structure for table `pma_designer_coords` --- - -CREATE TABLE IF NOT EXISTS `pma_designer_coords` ( - `db_name` varchar(64) NOT NULL default '', - `table_name` varchar(64) NOT NULL default '', - `x` INT, - `y` INT, - `v` TINYINT, - `h` TINYINT, - PRIMARY KEY (`db_name`,`table_name`) -) - ENGINE=MyISAM COMMENT='Table coordinates for Designer' - DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; - -- cgit v1.2.3