From 7ff8fedebd9a970d618258adc8e4106b5989ed64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20M=C3=BCller?= Date: Thu, 3 May 2001 17:25:09 +0000 Subject: [PATCH] Initial revision --- CREDITS | 23 ++ ChangeLog | 339 ++++++++++++++++ DEVELOPERS | 39 ++ Documentation.html | 201 ++++++++++ INSTALL | 44 ++ LICENSE | 278 +++++++++++++ README | 106 +++++ TODO | 22 + config.inc.php3 | 128 ++++++ db_create.php3 | 14 + db_details.php3 | 130 ++++++ db_dump.php3 | 112 ++++++ db_printview.php3 | 51 +++ db_readdump.php3 | 41 ++ extchg.sh | 43 ++ footer.inc.php3 | 5 + functions.js | 26 ++ grab_globals.inc.php3 | 18 + header.inc.php3 | 45 +++ images/bkg.gif | Bin 0 -> 236 bytes images/browse.gif | Bin 0 -> 276 bytes images/minus.gif | Bin 0 -> 56 bytes images/plus.gif | Bin 0 -> 59 bytes images/spacer.gif | Bin 0 -> 51 bytes index.php3 | 20 + lang/bulgarian-win1251.inc.php3 | 136 +++++++ lang/catala.inc.php3 | 116 ++++++ lang/chinese_big5.inc.php3 | 121 ++++++ lang/chinese_gb.inc.php3 | 121 ++++++ lang/czech-win1250.inc.php3 | 144 +++++++ lang/danish.inc.php3 | 139 +++++++ lang/dutch.inc.php3 | 124 ++++++ lang/english.inc.php3 | 146 +++++++ lang/french.inc.php3 | 162 ++++++++ lang/german.inc.php3 | 126 ++++++ lang/italian.inc.php3 | 135 +++++++ lang/norwegian.inc.php3 | 116 ++++++ lang/polish.inc.php3 | 126 ++++++ lang/portuguese.inc.php3 | 123 ++++++ lang/russian-koi8.inc.php3 | 133 +++++++ lang/russian-win1251.inc.php3 | 133 +++++++ lang/spanish.inc.php3 | 135 +++++++ lang/swedish.inc.php3 | 148 +++++++ lang/thai.inc.php3 | 148 +++++++ ldi_check.php3 | 70 ++++ ldi_table.php3 | 76 ++++ left.php3 | 334 ++++++++++++++++ lib.inc.php3 | 687 ++++++++++++++++++++++++++++++++ main.php3 | 177 ++++++++ select_lang.inc.php3 | 152 +++++++ sql.php3 | 111 ++++++ tbl_addfield.php3 | 145 +++++++ tbl_alter.php3 | 41 ++ tbl_change.php3 | 143 +++++++ tbl_copy.php3 | 36 ++ tbl_create.php3 | 100 +++++ tbl_dump.php3 | 102 +++++ tbl_printview.php3 | 139 +++++++ tbl_properties.inc.php3 | 219 ++++++++++ tbl_properties.php3 | 295 ++++++++++++++ tbl_qbe.php3 | 521 ++++++++++++++++++++++++ tbl_rename.php3 | 17 + tbl_replace.php3 | 108 +++++ tbl_select.php3 | 118 ++++++ 64 files changed, 7808 insertions(+) create mode 100644 CREDITS create mode 100755 ChangeLog create mode 100755 DEVELOPERS create mode 100755 Documentation.html create mode 100755 INSTALL create mode 100755 LICENSE create mode 100755 README create mode 100755 TODO create mode 100755 config.inc.php3 create mode 100755 db_create.php3 create mode 100755 db_details.php3 create mode 100755 db_dump.php3 create mode 100755 db_printview.php3 create mode 100755 db_readdump.php3 create mode 100755 extchg.sh create mode 100755 footer.inc.php3 create mode 100755 functions.js create mode 100644 grab_globals.inc.php3 create mode 100755 header.inc.php3 create mode 100755 images/bkg.gif create mode 100755 images/browse.gif create mode 100755 images/minus.gif create mode 100755 images/plus.gif create mode 100755 images/spacer.gif create mode 100755 index.php3 create mode 100644 lang/bulgarian-win1251.inc.php3 create mode 100644 lang/catala.inc.php3 create mode 100644 lang/chinese_big5.inc.php3 create mode 100644 lang/chinese_gb.inc.php3 create mode 100644 lang/czech-win1250.inc.php3 create mode 100644 lang/danish.inc.php3 create mode 100644 lang/dutch.inc.php3 create mode 100644 lang/english.inc.php3 create mode 100644 lang/french.inc.php3 create mode 100644 lang/german.inc.php3 create mode 100644 lang/italian.inc.php3 create mode 100644 lang/norwegian.inc.php3 create mode 100644 lang/polish.inc.php3 create mode 100644 lang/portuguese.inc.php3 create mode 100644 lang/russian-koi8.inc.php3 create mode 100644 lang/russian-win1251.inc.php3 create mode 100644 lang/spanish.inc.php3 create mode 100644 lang/swedish.inc.php3 create mode 100644 lang/thai.inc.php3 create mode 100755 ldi_check.php3 create mode 100755 ldi_table.php3 create mode 100755 left.php3 create mode 100755 lib.inc.php3 create mode 100755 main.php3 create mode 100755 select_lang.inc.php3 create mode 100755 sql.php3 create mode 100755 tbl_addfield.php3 create mode 100755 tbl_alter.php3 create mode 100755 tbl_change.php3 create mode 100755 tbl_copy.php3 create mode 100755 tbl_create.php3 create mode 100755 tbl_dump.php3 create mode 100755 tbl_printview.php3 create mode 100755 tbl_properties.inc.php3 create mode 100755 tbl_properties.php3 create mode 100755 tbl_qbe.php3 create mode 100755 tbl_rename.php3 create mode 100755 tbl_replace.php3 create mode 100755 tbl_select.php3 diff --git a/CREDITS b/CREDITS new file mode 100644 index 000000000..ba4146b25 --- /dev/null +++ b/CREDITS @@ -0,0 +1,23 @@ +$Id$ + +phpMyAdmin - Credits, in chronological order +============================================ + +CREDITS, in chronological order +------------------------------- + +[tr] - Tobias Ratschiller + * creator of the phpmyadmin project + * maintainer from 1998 to summer 2000 + +[om] - Olivier Müller + * started sourceforge project + * sync'ed different existing CVS trees with + new features and bugfixes + +[lc] - Loïc Chapeaux +[mg] - Mirko Giese +[xx] - ... (to be completed) + + + diff --git a/ChangeLog b/ChangeLog new file mode 100755 index 000000000..a1d24e60e --- /dev/null +++ b/ChangeLog @@ -0,0 +1,339 @@ +---------------------- +phpMyAdmin - Changelog +---------------------- + +$Id$ +$Source$ + +2001-05-02 Robin Johnson + * additional constant MYSQL_MINOR_VERSION in 'lib.inc.php3' + contains all of version string after the '3.23.' part. + * Table type on create table in 'tbl_create.php3' + * Alter table type on 'tbl_properties.php3' + * Ability to add comments even if no comment is there + +2001-05-01 Loïc Chapeaux + * improve a bit the language detection: rewrote the 'select_lang.lib.php3' + script and changed line 162-166 in 'main.php3' + * sql.php3, line 69: now using split() instead of split() (the former is + not implemented in PHP3 (SF bugfix) + +2001-04-29 Olivier Müller + * added lang file for Thai. Thanks to Korakot Chaovavanich (korakot) + * tbl_select.php3, line 19: replaced GET by POST (SF bugfix) + * tbl_properties.php3: added textfield for mysql input (patch from korakot) + * tbl_properties.php3: + * applied security patch from + http://www.securereality.com.au/patches/phpMyAdmin-SecureReality.diff + (thx to Geert Lund for the info) + * now using explode() instead of split_string() in tbl_change.php3 + (was broken: is split_string really working correctely? please check! + split_string is now still used in db_readdump) + * released 2.2.0pre2 + +2001-04-07 Olivier Müller + + * docs and code cleanup + * announced the http://phpmyadmin.sourceforge.net link + on the phpmyadmin forum. + +2001-04-01 Olivier Müller + + * moved the language files to lang/ + * now using standard ChangeLog file format + +2001-03-31 Olivier Müller + + * upgraded version to 2.2.0pre1 + * released pre version on sourceforge + * synchronized latest phpmyadmin official cvs with the user-contributed + patches: multiple language support, bugfixes, etc. + + + v 2.1.0.2 - 26-mar-2001 + Removed necessity of register_globals and added the + "grab_globals.inc.php3" library to this end + Now, phpMyAdmin detects what to do according to + the configuration you chosed! + + Bugfix: a warning may be displayed because a string + was appent to an unset variable in 'tbl_copy.php3' + + Bugfix: a warning may be displayed because some + unset arrays were counted in 'tbl_addfield.php3' + + Bugfix: slashes were added to requests if + 'magic_quotes_gpc' is 'on' in 'db_readdump.php3'! + + Bugfix: the usual #-bug + + Bugfix: on Windows-System the 0x1a-char makes + problems (ctrl-z) when piped to mysql. It has to be + changed to '\Z'. + + Bugfix: on Windows-System the path is not build + correct in ldi_check.php + + The dump-output was not easily editable when + containing '\n' or '\t'-characters (e.g. in binary + fields or blobs) + + v 2.1.0.1 - 28-aug-2000 + Added French translation strings in french.inc.php3 + + Bugfix: split_string() in lib.inc.php3 + + Bugfix: split_sql() in db_readdump.php3 + + Removed necessity of magic_quotes_gpc + Now, phpMyAdmin detects what to do according to + the configuration you chosed! + + clicking on a database name in left frame + don't unexpand it anymore. You have to click oh the + minus image to hide the tables + + Fixed accents problem with german strings + + Fixed matching database name problem in uva fix + in lib.inc.php3 + + Added the possibility to display Change and Modify + buttons on the left or on the right of rows (or both) + + Some corrections in spanish.inc.php3 and some other + languages files. + + Bugfix: mesage display after reading a dump or + executing a single query + + v 2.1.x - 03/02/2001 + Added dynamic multiple language support, with + browser default language detection [om] + + v 2.1.0 - 08/06/2000 + Bugfix: Query By Example now works with high error- + reporting levels. + + Bugfix: 'End' on the navigation bar in Browse and + Select mode now functions correctly. + + Added random access option to the navigation bar + in table Select and Browse mode + + Added form for changing the number of rows displayed + per page. + + Bugfix: Reading SQL dumps had magic quotes problems. + + Added support for wildcards in MySQL user + authentication system. + + Added support to edit/delete rows in table without + primary key. + + Added support for mysqldump-like Complete Inserts + (ie. optionally adding the field list to the dumps). + + Changed the table browsing mode to display Prev/Next + links also on top of the rows. + + Added authentication on a per-table basis. + + Added print views for tables and databases. + + Added link to browse table from left frame (copied + from phpPgAdmin). + + Security: Fixed possible security issue with reading + SQL dumps. + + Fixed some more PHP 4.0 issues (warnings, problems + with 0/empty(). + v 2.0.5 - 12/05/1999 + Added output to show how many rows were affected + by a custom query. + + Bugfix: executing a custom sql query prevented the + edit feature from working correctly. + + Bugfix: Sending CSV Dumps didn't work because of a + typo. + + Bugfix: if the field length was empty, it was set + to the field's type. + + Added the possibility to upload SQL dumps with + File Upload. + v 2.0.4 - 10/10/1999 + Some more PHP 4.0 fixes. + + Bugfix: Reading SQL dumps choked on embedded semi- + colons - fixed. + + Bugfix: Dure to regex problems, PHP 3.0.12 crashed in + some instances when adding tables - fixed. + + Added option to use verbose hostnames. + + Bugfix: ENUM/SET had problems with embedded special + characters - fixed. + + New language file: Portuguese + v 2.0.3 - 08/15/1999 + Bugfix: Changing a row after a "Select" didn't work. + + Added proper support for MySQL authentication. With + $adv_auth, only those dbs are displayed that the user + has actually the permissions to view [sponsored by + NetCologne]. + + Bugfix: Sometimes the wrong frameset was displayed. + + Bugfix: Moved mysql_die() to top of lib.inc.php3 to avoid + "undefined function" errors. + + Bugfix: Killed some more warnings for those paranoids + who have error_reporting to a high value. + + Added support for MySQL 3.23's table comments. + + Bugfix: Ordering is now disallowed with MySQL-Status + operations. + + Added some more documentation links. + + Changes the way the reload of MySQL is done - use + FLUSH PRIVILEGES instead of mysqladmin reload. + v 2.0.2 - 07/02/1999 + Added support for the BINARY attribute. + + Bugfix: In languages other than English, the + warning before dangerous actions didn't work. + + Added proper support for ENUM/SET. + + Changed the table browse mode to use LIMIT. + + Bugfix: ReadDump choked on nestd single quotes, + even if escaped properly. + v 2.0.1 - 05/24/1999 + Re-Enabled the "browse"-link on db_properties.php3. + + Added a way to add more than one new fields a time. + + Changed some details to be compatible with webservers + other than Apache (tested with Roxen). + + Added support for creation of a multi-column primary + key on an existing table. + v 2.0.0 - 04/11/1999 + Improved navigation, layout changes. + + Added the possiblity to log out with $adv_auth. + + Added the possibility to view MySQL's processes. + + Added an option to output SQL-queries generated by + phpMyAdmin. + + Enhanced the shell script to change file-extensions to + allow any arbitrary extension. It's now called extchg.sh. + + Changed SET/ENUM types to appear in a drop-down menu. + + Bugfix: Attributes weren't used when creating a table + or adding a field. + + Bugfix: Field names with high-ASCII-characters weren't + handled properly. + + Bugfix: LOAD DATA INFILE didn't allow a tab as field- + separator. + v 1.4.2 - 02/28/1999 + Renamed config.inc.php3 variables to begin with 'cfg'. + + Support for multiple MySQL servers added. + + Added EscapeShellCmd() to system() calls to avoid + problems with special characters in passwords. + + Bugfix: Reload failure was not being detected. + + Bugfix: Table-/database dumps were not showing key names + correctly. + + Added support for DROP TABLE to the dumps. + + Added support for UNSIGNED & UNSIGNED ZEROFILL attributes. + + Added a shell-script to make it possible to change the + file-extension and all references from ".php3" to + ".phtml" and vice versa. + --- SWITCHED TO CVS --- + v 1.4.1 - 02/07/1999 + Bugfix: Corrected a small error in the table header of + tbl_change.php3. + + Added preliminary support for context sensitive help. + + Enhanced the table-dump to allow dumping only the structure + or structure+data or CVS export. Made it possible to + download the dump directly as a file. + + Bugfix (*Security*): Until now you were able to connect to + a database different from $only_db. Fixed. + + Changed the display of the databases to highlight the + current db. + + Added a way to execute multiple sql-queries at once + (eg. for reading in a create-schema). + + Added the possiblity to view the dump of a whole + database. + + Added an output of the record-count for all tables to + db_details.php3. + + Bugfix: get_table_content() didn't work correctly when + a field contained an unescaped single quote. + + Bugfix: Corrected various errors in display_table() + when ORDER BY was set. + + Enhanced table-browsing to use the choosen sortorder + over the whole result set; start and end buttons added + for navigation + + Added the possibility to specify whether BLOB fields + should be shown when browsing a table or not. + + New languages: Danish, Norvegian, Spanish, Catalan. + + Eliminated many warning messages when error reporting + is set high. + + Bugfix: Data containing HTML is now properly displayed + when dumping table or database data. + + Improved handling of NULL fields. + + Made tbl_replace.php3 use INSERT and UPDATE rather than + REPLACE INTO. It is much less likely to lose data now. +v 1.4.0 - 01/16/1999 + Bugfix: in config.inc.php3 $adv_auth was written as + $mod_auth. + + Changed tbl_change.php3 to display a
+$strOr $strLocationTextfile";?>:
+
+ + +
  • +

  • + + + + + + + + + + + + + + +
    + + + + + +
    + + + +
    + + +
    + + + +
    +
  • +
    + + + +:
    +
    + + +
    + +
  • +&zero_rows=&goto=main.php3&reload=true"> + + + diff --git a/db_dump.php3 b/db_dump.php3 new file mode 100755 index 000000000..7009e7056 --- /dev/null +++ b/db_dump.php3 @@ -0,0 +1,112 @@ +
    \n";
    +
    +} 
    +else 
    +{
    +    include("lib.inc.php3");
    +    header("Content-disposition: filename=$db.sql");
    +    header("Content-type: application/octetstream");
    +    header("Pragma: no-cache");
    +    header("Expires: 0");
    +   
    +    // doing some DOS-CRLF magic...
    +    
    +    if (!isset($HTTP_USER_AGENT))
    +    {
    +    	if (!empty($HTTP_SERVER_VARS) && isset($HTTP_SERVER_VARS['HTTP_USER_AGENT']))
    +    	    $HTTP_USER_AGENT = $HTTP_SERVER_VARS['HTTP_USER_AGENT'];
    +    	else 
    +    	    $HTTP_USER_AGENT = getenv('HTTP_USER_AGENT');
    +    }
    +    $client = $HTTP_USER_AGENT;
    +
    +    //$client = getenv("HTTP_USER_AGENT");
    +     
    +
    +    if(ereg('[^(]*\((.*)\)[^)]*',$client,$regs)) 
    +    {
    +        $os = $regs[1];
    +        // this looks better under WinX
    +        if (eregi("Win",$os)) 
    +            $crlf="\r\n";
    +    }
    +}
    +
    +function my_handler($sql_insert)
    +{
    +    global $crlf, $asfile;
    +    
    +    if(empty($asfile)) 
    +    {
    +        echo htmlspecialchars("$sql_insert;$crlf");
    +    }
    +    else
    +    {
    +        echo "$sql_insert;$crlf";
    +    }
    +}
    +
    +$tables = mysql_list_tables($db);
    +
    +$num_tables = @mysql_numrows($tables);
    +if($num_tables == 0)
    +{
    +    echo $strNoTablesFound;
    +}
    +else
    +{
    +    $i = 0;
    +    print "# phpMyAdmin MySQL-Dump$crlf";
    +    print "# http://phpwizard.net/phpMyAdmin/$crlf";
    +    print "#$crlf";
    +    print "# $strHost: " . $cfgServer['host'];
    +    if(!empty($cfgServer['port'])) 
    +    {
    +        print ":" . $cfgServer['port'];
    +    }
    +    print " $strDatabase: $db$crlf";
    +
    +    while($i < $num_tables)
    +    { 
    +        $table = mysql_tablename($tables, $i);
    +
    +        print $crlf;
    +        print "# --------------------------------------------------------$crlf";
    +        print "#$crlf";
    +        print "# $strTableStructure '$table'$crlf";
    +        print "#$crlf";
    +        print $crlf;
    +
    +        echo get_table_def($db, $table, $crlf).";$crlf$crlf";
    +        
    +        if($what == "data")
    +        {
    +            print "#$crlf";
    +            print "# $strDumpingData '$table'$crlf";
    +            print "#$crlf";
    +            print $crlf;
    +        
    +            get_table_content($db, $table, "my_handler");
    +        }
    +        $i++;
    +    }
    +}
    +
    +if(empty($asfile))
    +{
    +    print "
    \n"; + include ("footer.inc.php3"); +} +?> diff --git a/db_printview.php3 b/db_printview.php3 new file mode 100755 index 000000000..556f1c465 --- /dev/null +++ b/db_printview.php3 @@ -0,0 +1,51 @@ +\n"; + echo "$strTable"; + echo "$strRecords"; + while($i < $num_tables) + { + $table = mysql_tablename($tables, $i); + $query = "?server=$server&lang=$lang&db=$db&table=$table&goto=db_details.php3"; + $bgcolor = $cfgBgcolorOne; + $i % 2 ? 0: $bgcolor = $cfgBgcolorTwo; + ?> + + + +   + + \n"; +} + +require ("footer.inc.php3"); +?> diff --git a/db_readdump.php3 b/db_readdump.php3 new file mode 100755 index 000000000..8f524d308 --- /dev/null +++ b/db_readdump.php3 @@ -0,0 +1,41 @@ + diff --git a/extchg.sh b/extchg.sh new file mode 100755 index 000000000..842ab3bff --- /dev/null +++ b/extchg.sh @@ -0,0 +1,43 @@ +#!/bin/sh + +# $Id$ + +# original php3->phtml converter by Pavel Piankov +# modified by Tobias Ratschiller to allow any file extension +# part of the phpMyAdmin distribution + +if [$1 eq ""] +then + echo "Missing first parameter (extension to be changed)" + echo "Usage: extchg " + exit +fi + +if [$2 eq ""] +then + echo "Missing second parameter (extension to change to)" + echo "Usage: extchg " + exit +fi + + +if test ! -s *.$1 +then + echo 'Nothing to convert! Try to copy the script to the directory where you have files to convert.' + exit +fi + + +if test ! -d bak +then + mkdir bak +else + echo 'Directory bak is already there - will try to use it to backup your files...' +fi + +for i in *.$1 + do + sed -e 's/'$1'/'$2'/g' $i > `ls $i|sed -e 's/'$1'/'$2'/g'` + mv $i bak/$i + done; + diff --git a/footer.inc.php3 b/footer.inc.php3 new file mode 100755 index 000000000..75e0a2bdd --- /dev/null +++ b/footer.inc.php3 @@ -0,0 +1,5 @@ + + + + + diff --git a/functions.js b/functions.js new file mode 100755 index 000000000..358069647 --- /dev/null +++ b/functions.js @@ -0,0 +1,26 @@ + + diff --git a/grab_globals.inc.php3 b/grab_globals.inc.php3 new file mode 100644 index 000000000..5b3ea1616 --- /dev/null +++ b/grab_globals.inc.php3 @@ -0,0 +1,18 @@ + \ No newline at end of file diff --git a/header.inc.php3 b/header.inc.php3 new file mode 100755 index 000000000..83d478e26 --- /dev/null +++ b/header.inc.php3 @@ -0,0 +1,45 @@ + + + +phpMyAdmin + + + + + + $strDatabase $db"; + if(isset($table)) + { + echo " - $strTable $table"; + } + echo ""; +} +?> diff --git a/images/bkg.gif b/images/bkg.gif new file mode 100755 index 0000000000000000000000000000000000000000..f329cdc1c4ff8a2495cca29cc492bb4edba61c17 GIT binary patch literal 236 zcmZ?wbhEHbulEcJ3R}z`MQrk+4Qr=Z}s&z+kW%*pML&j*WbSLufPA<_n%)vBjdAaMn%Vr6+2Gc zc=3ZnQq$5iGPAOC=E|KXZ@&C_GLpl}D=Mq1Yu2h=r*6Ia#U-t6?H!$6-Thj9*6G`? we{;*|*!aZc)bz|*v**m6H*2rK{Eep K^mA|Nli|2%hF<1it DSMUu~ literal 0 HcmV?d00001 diff --git a/index.php3 b/index.php3 new file mode 100755 index 000000000..394dc3117 --- /dev/null +++ b/index.php3 @@ -0,0 +1,20 @@ + + + + +phpMyAdmin + + + + + + + +<body bgcolor="#FFFFFF"> + +</body> + + diff --git a/lang/bulgarian-win1251.inc.php3 b/lang/bulgarian-win1251.inc.php3 new file mode 100644 index 000000000..d6480df06 --- /dev/null +++ b/lang/bulgarian-win1251.inc.php3 @@ -0,0 +1,136 @@ + diff --git a/lang/catala.inc.php3 b/lang/catala.inc.php3 new file mode 100644 index 000000000..2644223da --- /dev/null +++ b/lang/catala.inc.php3 @@ -0,0 +1,116 @@ + diff --git a/lang/chinese_big5.inc.php3 b/lang/chinese_big5.inc.php3 new file mode 100644 index 000000000..6e86b112d --- /dev/null +++ b/lang/chinese_big5.inc.php3 @@ -0,0 +1,121 @@ + diff --git a/lang/chinese_gb.inc.php3 b/lang/chinese_gb.inc.php3 new file mode 100644 index 000000000..49aaf3da1 --- /dev/null +++ b/lang/chinese_gb.inc.php3 @@ -0,0 +1,121 @@ + diff --git a/lang/czech-win1250.inc.php3 b/lang/czech-win1250.inc.php3 new file mode 100644 index 000000000..d85454644 --- /dev/null +++ b/lang/czech-win1250.inc.php3 @@ -0,0 +1,144 @@ +Warning: You haven't enabled magic_quotes_gpc in your PHP configuration. PhpMyAdmin needs this to work properly. Please have a look at the configuration section of the PHP manual for information on how to enable it."; +$strEnableMagicQuotes = "POZOR: Nepovolil jsi 'magic_quotes_gpc' v tvé konfiguraci PHP enginu. PhpMyAdmin toto potĝebuje pro svoji korektní praci. Prosím, zkontroluj konfiguraci popĝ. v manuálu pro PHP vyhledej informaci jak toto povolit."; +$strPrintView = "Náhled k vytištìní"; +?> diff --git a/lang/danish.inc.php3 b/lang/danish.inc.php3 new file mode 100644 index 000000000..e8b6b994d --- /dev/null +++ b/lang/danish.inc.php3 @@ -0,0 +1,139 @@ +Advarsel: Du har aktiveret funktionen magic_quotes_gpc i din PHP konfiguration. PhpMyAdmin ikke behøver denne funktion for at kunne virke efter hensigten. Tag venligst et kig i kapitlet om konfiguration i PHP manualen for information om hvordan funktionen ikke aktiveres."; +$strDisplay = "Vis"; +$strDoAQuery = "Kør en forespørgsel på felter (wildcard: \"%\")"; +$strDoYouReally = "Er du sikker på at du vil "; +$strDocu = "Dokumentation"; +$strDrop = "Slet"; +$strDropDB = "Slet database "; +$strDumpingData = "Data dump for tabellen"; +$strEdit = "Ret"; +$strEmpty = "Tøm"; +$strEmptyResultSet = "MySQL returnerede ingen data (fx ingen rækker)."; +$strEnableMagicQuotes = "Advarsel: Du har ikke aktiveret funktionen magic_quotes_gpc i din PHP konfiguration. PhpMyAdmin behøver denne funktion for at kunne virke efter hensigten. Tag venligst et kig i kapitlet om konfiguration i PHP manualen for information om hvordan funktionen aktiveres."; +$strEnclosedBy = "har denne tekstkvalifikator"; +$strEnd = "Slut"; +$strError = "Fejl"; +$strEscapedBy = "afsluttes med"; +$strExtra = "Ekstra"; +$strField = "Feltnavn"; +$strFields = "Felter"; +$strFunction = "Funktion"; +$strGo = "Udfør"; +$strHasBeenAltered = "er ændret."; +$strHasBeenCreated = "er oprettet."; +$strHasBeenDropped = "er slettet."; +$strHasBeenEmptied = "er tømt."; +$strHome = "Hjem"; +$strHost = "Host"; +$strIfYouWish = "Hvis du kun ønsker at importere nogle af tabellens kolonner, angives de med en kommasepereret felt liste."; +$strIndex = "Indekseret"; +$strInsert = "Indsæt"; +$strInsertIntoTable = "Importer til tabel"; +$strInsertNewRow = "Indsæt ny række"; +$strInsertTextfiles = "Importer tekstfil til tabellen"; +$strKeyname = "Nøgle"; +$strLengthSet = "Længde/Værdi"; +$strLimitNumRows = "poster pr. side"; +$strLineFeed = "Linefeed: \\n"; +$strLines = "Linier"; +$strLocationTextfile = "Tekstfilens placering"; +$strLogout = "Log af"; +$strModifications = "Rettelserne er gemt!"; +$strMySQLReloaded = "MySQL genstartet."; +$strMySQLSaid = "MySQL returnerede: "; +$strMySQLShowProcess = "Vis tråde"; +$strMySQLShowStatus = "Vis MySQL runtime information"; +$strMySQLShowVars = "Vis MySQL system variable"; +$strName = "Navn"; +$strNext = "Næste"; +$strNo = "Nej"; +$strNoTablesFound = "Ingen tabeller fundet i databasen."; +$strNull = "Nulværdi"; +$strOftenQuotation = "Ofte anførelsestegn. OPTIONALLY betyder at kun char og varchar felter er omsluttet med det valgte \"tekstkvalifikator\"-tegn."; +$strOptionalControls = "Optional. Kontrollerer hvordan specialtegn skrives eller læses."; +$strOptionally = "OPTIONALLY"; +$strOr = "eller"; +$strPos1 = "Start"; +$strPrevious = "Forrige"; +$strPrimary = "Primær"; +$strPrimaryKey = "Primær nøgle"; +$strPrinterFriendly = "Udskrift venlig version af ovenstående tabel"; +$strPrintView = "Vis (udskriftvenlig)"; +$strProducedAnError = "forsagede en fejl."; +$strProperties = "Egenskaber"; +$strQBE = "Query by Example"; +$strReadTheDocs = "Læs dokumentationen"; +$strRecords = "Poster"; +$strReloadFailed = "Genstart af MySQL fejlede."; +$strReloadMySQL = "Genstart MySQL"; +$strRenameTable = "Omdøb tabel til"; +$strRenameTableOK = "Tabellen \$table er nu omdøbt til: \$new_name"; +$strReplace = "Erstat"; +$strReplaceTable = "Erstat data i tabellen med filens data"; +$strReset = "Nulstil"; +$strRunSQLQuery = "Kør en/flere SQL forespørgsler på database "; +$strRunning = "kører på "; +$strSQLQuery = "SQL-forespørgsel"; +$strSave = "Gem"; +$strSelect = "Vælg"; +$strSelectFields = "Vælg mindst eet felt:"; +$strSelectNumRows = "i forespørgsel"; +$strSend = "send"; +$strShow = "Vis"; +$strShowingRecords = "Viser poster "; +$strStrucCSV = "CSV data"; +$strStrucData = "Struturen og data"; +$strStrucDrop = "Tilføj 'drop table'"; +$strStrucOnly = "Kun strukturen"; +$strSubmit = "Send"; +$strSuccess = "Din SQL-forespørgsel blev eksekveret korrekt"; +$strRowsFrom = "rækker startende fra"; +$strTable = "Tabel: "; +$strTableComments = "Tabel kommentarer"; +$strTableStructure = "Struktur dump for tabellen"; +$strTerminatedBy = "er afgrænset af"; +$strTheContent = "Filens indhold er importeret."; +$strTheContents = "Filens indhold erstatter den valgte tabels rækker for rækker med identisk primær eller unik nøgle."; +$strTheTerminator = "Felterne afgrænses af dette tegn."; +$strTotal = "total"; +$strType = "Datatype"; +$strUnique = "Unik"; +$strValue = "Værdi"; +$strViewDump = "Vis dump (skema) over tabel"; +$strViewDumpDB = "Vis dump (skema) af database"; +$strWelcome = "Velkommen til "; +$strWrongUser = "Forkert brugernavn/kodeord. Adgang Nægtet."; +$strYes = "Ja"; + +?> diff --git a/lang/dutch.inc.php3 b/lang/dutch.inc.php3 new file mode 100644 index 000000000..69a34752d --- /dev/null +++ b/lang/dutch.inc.php3 @@ -0,0 +1,124 @@ + diff --git a/lang/english.inc.php3 b/lang/english.inc.php3 new file mode 100644 index 000000000..0a86fe805 --- /dev/null +++ b/lang/english.inc.php3 @@ -0,0 +1,146 @@ +Warning: You have enabled magic_quotes_gpc in your PHP configuration. This version of PhpMyAdmin cannot work properly with it. Please have a look at the configuration section of the PHP manual for information on how to disable it."; +$strDisplay = "Display"; +$strDoAQuery = "Do a \"query by example\" (wildcard: \"%\")"; +$strDoYouReally = "Do you really want to "; +$strDocu = "Documentation"; +$strDrop = "Drop"; +$strDropDB = "Drop database "; +$strDumpingData = "Dumping data for table"; +$strEdit = "Edit"; +$strEmpty = "Empty"; +$strEmptyResultSet = "MySQL returned an empty result set (i.e. zero rows)."; +$strEnableMagicQuotes = "Warning: You haven't enabled magic_quotes_gpc in your PHP configuration. PhpMyAdmin needs this to work properly. Please have a look at the configuration section of the PHP manual for information on how to enable it."; +$strEnclosedBy = "enclosed by"; +$strEnd = "End"; +$strError = "Error"; +$strEscapedBy = "escaped by"; +$strExtra = "Extra"; +$strField = "Field"; +$strFields = "Fields"; +$strFunction = "Function"; +$strGo = "Go"; +$strHasBeenAltered = "has been altered."; +$strHasBeenCreated = "has been created."; +$strHasBeenDropped = "has been dropped."; +$strHasBeenEmptied = "has been emptied."; +$strHome = "Home"; +$strHost = "Host"; +$strIfYouWish = "If you wish to load only some of a table's columns, specify a comma separated field list."; +$strIndex = "Index"; +$strInsert = "Insert"; +$strInsertIntoTable = "Insert into table"; +$strInsertNewRow = "Insert new row"; +$strInsertTextfiles = "Insert textfiles into table"; +$strKeyname = "Keyname"; +$strLengthSet = "Length/Set"; +$strLimitNumRows = "records per page"; +$strLineFeed = "Linefeed: \\n"; +$strLines = "Lines"; +$strLocationTextfile = "Location of the textfile"; +$strLogout = "Log out"; +$strModifications = "Modifications have been saved"; + +$strMySQLReloaded = "MySQL reloaded."; +$strMySQLSaid = "MySQL said: "; +$strMySQLShowProcess = "Show processes"; +$strMySQLShowStatus = "Show MySQL runtime information"; +$strMySQLShowVars = "Show MySQL system variables"; +$strName = "Name"; +$strNext = "Next"; +$strNo = "No"; +$strNoTablesFound = "No tables found in database."; +$strNull = "Null"; +$strOftenQuotation = "Often quotation marks. OPTIONALLY means that only char and varchar fields are enclosed by the \"enclosed by\"-character."; +$strOptionalControls = "Optional. Controls how to write or read special characters."; +$strOptionally = "OPTIONALLY"; +$strOr = "or"; +$strPos1 = "Begin"; +$strPrevious = "Previous"; +$strPrimary = "Primary"; +$strPrimaryKey = "Primary key"; +$strPrintView = "Print view"; +$strPrinterFriendly = "Printer friendly version of above table"; +$strProducedAnError = "produced an error."; +$strProperties = "Properties"; +$strQBE = "Query by Example"; +$strReadTheDocs = "Read the docs"; +$strRecords = "Records"; +$strReloadFailed = "MySQL reload failed."; +$strReloadMySQL = "Reload MySQL"; +$strRenameTable = "Rename table to"; +$strRenameTableOK = "Table \$table has been renamed to \$new_name"; +$strReplace = "Replace"; +$strReplaceTable = "Replace table data with file"; +$strReset = "Reset"; +$strRowsFrom = "rows starting from"; + +$strRunSQLQuery = "Run SQL query/queries on database "; +$strRunning = "running on "; +$strSQLQuery = "SQL-query"; +$strSave = "Save"; +$strSelect = "Select"; +$strSelectFields = "Select fields (at least one):"; +$strSelectNumRows = "in query"; +$strSend = "Send"; +$strShow = "Show"; +$strShowingRecords = "Showing records "; + +$strStrucCSV = "CSV data"; +$strStrucData = "Structure and data"; +$strStrucDrop = "Add 'drop table'"; +$strStrucOnly = "Structure only"; +$strSubmit = "Submit"; +$strSuccess = "Your SQL-query has been executed successfully"; +$strTable = "table "; +$strTableComments = "Table comments"; +$strTableStructure = "Table structure for table"; +$strTableType = "Table type"; // Robbat2 +$strTerminatedBy = "terminated by"; +$strTheContent = "The content of your file has been inserted."; +$strTheContents = "The contents of the file replaces the contents of the selected table for rows with identical primary or unique key."; +$strTheTerminator = "The terminator of the fields."; +$strTotal = "total"; +$strType = "Type"; +$strUnique = "Unique"; + +$strValue = "Value"; +$strViewDump = "View dump (schema) of table"; +$strViewDumpDB = "View dump (schema) of database"; +$strWelcome = "Welcome to "; +$strWrongUser = "Wrong username/password. Access denied."; +$strYes = "Yes"; + +?> diff --git a/lang/french.inc.php3 b/lang/french.inc.php3 new file mode 100644 index 000000000..246977c4e --- /dev/null +++ b/lang/french.inc.php3 @@ -0,0 +1,162 @@ +Attention: Vous avez positionné magic_quotes_gpc dans la configuration de PHP. Cette version de PhpMyAdmin ne peut fonctionner correctement avec. Veuillez vous référer au paragraphe traitant de la configration dans la documentation de PHP pour positionner cette variable à off."; +$strDisplay = "Display"; +$strDoAQuery = "Recherche par valeur (passepartout: \"%\")"; +$strDoYouReally = "Voulez-vous vraiment effectuer "; +$strDocu = "Documentation"; +$strDrop = "Effacer"; +$strDropDB = "Détruire la base"; +$strDumpingData = "Contenu de la table"; +$strEdit = "Modifier"; +$strEmpty = "Vider"; +$strEmptyResultSet = "MySQL n'a retourné aucun enregistrement."; +$strEnableMagicQuotes = "Attention: Vous n'avez pas positionné magic_quotes_gpc dans la configuration de PHP. PhpMyAdmin en a besoin pour fonctionner correctement. Veuillez vous référer au paragraphe traitant de la configration dans la documentation de PHP pour positionner cette variable."; +$strEnclosedBy = "entouré par"; +$strEnd = "Fin"; +$strError = "Erreur"; +$strEscapedBy = "avec caractère spécial"; +$strExtra = "Extra"; +$strField = "Champ"; +$strFields = "Champs"; +$strFunction = "Fonction"; +$strGo = "Exécuter"; +$strHasBeenAltered = "a été modifié."; +$strHasBeenCreated = "a été créé."; +$strHasBeenDropped = "a été effacé."; +$strHasBeenEmptied = "a été vidé."; +$strHome = "Accueil"; +$strHost = "Serveur"; +$strIfYouWish = "Si vous désirez ne charger que certaines colonnes, indiquez leurs noms, séparés par des virgules."; +$strIndex = "Index"; +$strInsert = "Insérer"; +$strInsertIntoTable = "Insérer dans la table"; +$strInsertNewRow = "Insérer un nouvel enregistrement"; +$strInsertTextfiles = "Insérer un fichier texte dans la table"; +$strKeyname = "Nom de la clé"; +$strLengthSet = "Longueur"; +$strLimitNumRows = "enregistrements par page"; +$strLineFeed = "Saut de ligne: \\n"; +$strLines = "Lignes"; +$strLocationTextfile = "Emplacement du fichier texte"; +$strLogout = "Quitter"; +$strModifications = "Les modifications ont été sauvegardées."; +$strModify = "Modifier"; +$strMySQLReloaded = "MySQL rechargé."; +$strMySQLSaid = "MySQL a répondu:"; +$strMySQLShowProcess = "Afficher les processus"; +$strMySQLShowStatus = "Afficher l'état du serveur MySQL"; +$strMySQLShowVars = "Afficher les variables du serveur MySQL"; +$strName = "Nom"; +$strNext = "Suivant"; +$strNo = "Non"; +$strNoTablesFound = "Aucune table n'a été trouvée dans cette base."; +$strNull = "Null"; +$strOftenQuotation = "Souvent des guillemets. OPTIONNEL signifie que seulement les champs de type char et varchar sont entourés par ce caractère."; +$strOptionalControls = "Optionnel. Indique le caractère qui permet d'enlever l'effet des caractères spéciaux."; +$strOptionally = "OPTIONNEL"; +$strOr = "ou"; +$strPos1 = "Début"; +$strPrevious = "Précédent"; +$strPrimary = "Primaire"; +$strPrimaryKey = "Clé primaire"; +$strPrintView = "Composition"; +$strPrinterFriendly = "Version imprimable de la table"; +$strProducedAnError = "a généré une erreur."; +$strProperties = "Propriétés"; +$strQBE = "Requête par un exemple"; +$strReadTheDocs = "Lire la documentation"; +$strRecords = "Enregistrements"; +$strReloadFailed = "MySQL n'a pu être rechargé."; +$strReloadMySQL = "Recharger MySQL"; +$strRenameTable = "Changer le nom de la table pour"; +$strRenameTableOK = "La table \$table se nomme maintenant \$new_name"; +$strReplace = "Remplacer"; +$strReplaceTable = "Remplacer les données de la table avec le fichier"; +$strReset = "Réinitialiser les valeurs"; +$strRowsFrom = "lignes à partir de"; +$strRunQuery = "Exécuter la requête"; +$strRunSQLQuery = "Exécuter une ou des requêtes sur la base "; +$strRunning = "sur serveur "; +$strSQLQuery = "requête SQL"; +$strSave = "Sauvegarder"; +$strSelect = "Sélectionner"; +$strSelectFields = "Choisir les champs à afficher (au moins un)"; +$strSelectNumRows = "dans la requête"; +$strSend = "Transmettre"; +$strShow = "Afficher"; +$strShowingRecords = "Affichage des enregistrements"; +$strSort = "Tri"; +$strStrucCSV = "Données CSV"; +$strStrucData = "Structure et données"; +$strStrucDrop = "Ajouter des énoncés 'drop table'"; +$strStrucOnly = "Structure seule"; +$strSubmit = "Exécuter"; +$strSuccess = "Votre requête SQL a été exécutée avec succès"; +$strTable = "table "; +$strTableComments = "Commentaires sur la table"; +$strTableStructure = "Structure de la table"; +$strTerminatedBy = "terminé(e)s par"; +$strTheContent = "Le contenu de votre fichier a été inséré."; +$strTheContents = "Le contenu du fichier remplacera le contenu de la table pour les enregistrements ayant une valeur de clé primaire ou unique identique."; +$strTheTerminator = "Le caractère qui sépare chacun des champs."; +$strTotal = "total"; +$strType = "Type"; +$strUnique = "Unique"; +$strUpdateQuery = "Mise-à-jour de la requête"; +$strUseTables = "Utiliser les tables"; +$strValue = "Valeur"; +$strViewDump = "Afficher le schéma de la table"; +$strViewDumpDB = "Afficher le schéma de la base "; +$strWelcome = "Bienvenue à"; +$strWrongUser = "Erreur d'utilisateur/mot de passe. Accès refusé"; +$strYes = "Oui"; +$strMySQLShowProcess = "Afficher les processus"; +$strLogout = "Quitter"; +$strQBE = "Requête par un exemple"; +$strBack = "Retour"; //JPD +$strTableComments = "Commentaires Tables"; //JPD +$strOr = "ou"; //JPD +$strSelectNumRows = "dans la requête"; //JPD +$strCompleteInserts = "INSERT détaillés"; //JPD +$strLimitNumRows = "Enregistrements par page"; //JPD +$strDisplay = "Afficher"; //JPD +$strShow = "Afficher"; //JPD +$strRowsFrom = "Enregistrements à partir de la position"; // JPD +$strEnableMagicQuotes = "Attention: Vous n'avez pas activé magic_quotes_gpc dans votre configuration PHP. PhpMyAdmin en a besoin pour fonctionner correctement. Référez-vous à la rubrique Configuration du manuel PHP pour savoir comment l'activer."; // JPD +$strPrintView = "Imprimer la vue"; //JPD +?> diff --git a/lang/german.inc.php3 b/lang/german.inc.php3 new file mode 100644 index 000000000..31a60854e --- /dev/null +++ b/lang/german.inc.php3 @@ -0,0 +1,126 @@ +Achtung: Sie haben magic_quotes_gpc in Ihrer PHP-Konfigration nicht aktiviert. PhpMyAdmin benötigt dies aber, um korrekt zu funktionieren. Bitte lesen Sie im PHP-Manual (Installation & Configuration) nach, um Informationen darüber z erhalten, wie man magic_quotes_gpc aktiviert."; +$strPrintView = "Druckansicht"; +$strDisableMagicQuotes = "Achtung: Sie haben magic_quotes_gpc in Ihrer PHP-Konfigration aktiviert. Dieses Version von PhpMyAdmin braucht dies nicht aktiviert sein, um korrekt zu funktionieren. Bitte lesen Sie im PHP-Manual (Installation & Configuration) nach, um Informationen darüber zu erhalten, wie man magic_quotes_gpc nicht aktivieren kann."; +?> diff --git a/lang/italian.inc.php3 b/lang/italian.inc.php3 new file mode 100644 index 000000000..9abdd4245 --- /dev/null +++ b/lang/italian.inc.php3 @@ -0,0 +1,135 @@ +char e varchar devono essere chiusi tra caratteri indicati."; +$strOptionalControls = "Opzionale. Questo carattere controlla come scrivere o leggere i caratteri speciali."; +$strOptionally = "OPZIONALE"; +$strPos1 = "Comincia"; +$strPrevious = "Precedente"; +$strPrimary = "Primario"; +$strPrimaryKey = "Chiave primaria"; +$strPrinterFriendly = "Versione printer friendly della tavola precedente"; +$strProducedAnError = "ha causato un errore."; +$strProperties = "Proprietà"; +$strReadTheDocs = "Leggere docomentazione"; +$strRecords = "Record"; +$strReloadFailed = "Ricaricamento di MySQL fallito."; +$strReloadMySQL = "Ricarica MySQL"; +$strRenameTable = "Rinomina la tavola in"; +$strRenameTableOK = "La tavola \$table è stata rinominata \$new_name"; +$strReplace = "Sostituisci"; +$strReplaceTable = "Sostituisci i dati della tavola col file"; +$strReset = "Riavvia"; +$strRunSQLQuery = "Esegui una/più query SQL sul database "; +$strRunning = "in esecuzione su "; +$strSQLQuery = "query SQL"; +$strSave = "Salva"; +$strSelect = "Seleziona"; +$strSelectFields = "Seleziona campi (almeno uno):"; +$strSend = "mandamelo"; +$strShowingRecords = "Visualizzazione record "; +$strStrucCSV = "dati CSV"; +$strStrucData = "Struttura e dati"; +$strStrucDrop = "Aggiungi 'drop table'"; +$strStrucOnly = "Solo Struttura"; +$strSubmit = "Invia"; +$strSuccess = "La query è stata eseguita con successo"; +$strTable = "tavola "; +$strTableStructure = "Struttura della tavola"; +$strTerminatedBy = "con terminatore"; +$strTheContent = "Il contenuto del file è stato inserito."; +$strTheContents = "Il contenuto del file sostituisce le righe della tavola con la stessa chiave primaria o chiave unica."; +$strTheTerminator = "Il carattere terminatore dei campi."; +$strTotal = "Totale"; +$strType = "Tipo"; +$strUnique = "Unico"; +$strValue = "Valore"; +$strViewDump = "Visualizza dump (schema) della tavola"; +$strViewDumpDB = "Visualizza dump (schema) del database"; +$strWelcome = "Benvenuto in "; +$strWrongUser = "Nome utente o password errati. Accesso negato."; +$strYes = "Sì"; +$strMySQLShowProcess = "Visualizza processi"; +$strLogout = "Disconnetti"; +$strQBE = "Query by Example"; +$strBack = "Indietro"; +$strTableComments = "Note sulla tavola"; +$strOr = "o"; +$strSelectNumRows = "nella query"; +$strCompleteInserts = "Inserimenti Completi"; +$strLimitNumRows = "record per pagina"; +$strDisplay = "Display"; +$strShow = "Mostra"; +$strRowsFrom = "righe a partire da"; +$strEnableMagicQuotes = "Attenzuibe: Non hai abilitato l'opzione magic_quotes_gpc nella configurazione del PHP. PhpMyAdmin ne ha bisogno per funzionare correttamente. Si faccia riferimento alla sezione relativa alla configurazione del manuale PHP per informazioni su come abilitare tale opzione."; +$strPrintView = "Print view"; +?> diff --git a/lang/norwegian.inc.php3 b/lang/norwegian.inc.php3 new file mode 100644 index 000000000..d9bec1671 --- /dev/null +++ b/lang/norwegian.inc.php3 @@ -0,0 +1,116 @@ + diff --git a/lang/polish.inc.php3 b/lang/polish.inc.php3 new file mode 100644 index 000000000..1df36d101 --- /dev/null +++ b/lang/polish.inc.php3 @@ -0,0 +1,126 @@ + under GNU license */ + +$strAPrimaryKey = "Dodany zosta³ podstawowy klucz dla "; +$strAccessDenied = "Brak dostêpu"; +$strAction = "Dzia³anie"; +$strAddNewField = "Dodanie nowego pola"; +$strAddSearchConditions = "Dodanie warunków przeszukiwania (warunek dla \"where\"):"; +$strAnIndex = "Dodany zosta³ indeks dla "; +$strAttr = "Atrybuty"; +$strBrowse = "Przeglħdanie"; +$strCarriage = "Znak powrotu: \\r"; +$strChange = "Zmiana"; +$strColumnNames = "Nazwy kolumn"; +$strCopyTable = "Kopiowanie tabeli do:"; +$strCopyTableOK = "Tabela \$table zosta³a przekopiowana do \$new_name."; +$strCreate = "Utworzenie"; +$strCreateNewDatabase = "Utworzenie nowej bazy danych"; +$strCreateNewTable = "Utworzenie nowej tabeli dla bazy danych "; +$strDatabase = "Baza danych "; +$strDatabases = "bazy danych"; +$strDefault = "Domyĥlnie"; +$strDelete = "Skasowanie"; +$strDeleted = "Rekord zosta³ skasowany"; +$strDoAQuery = "Wykonaj \"zaputanie przez przyk³ad\" (znak globalny: \"%\")"; +$strDoYouReally = "Czy na pewno "; +$strDocu = "Dokumentacja"; +$strDrop = "Usuniêcie"; +$strDropDB = "Usuniêcie bazy danych "; +$strDumpingData = "Zrzut danych dla tabeli"; +$strEdit = "Edycja"; +$strEmpty = "Wyczyszczenie"; +$strEmptyResultSet = "MySQL zwróci³ pusty wynik (i.e. zero rekordów)."; +$strEnclosedBy = "zawarty w"; +$strEnd = "Koniec"; +$strError = "B³ħd"; +$strEscapedBy = "poprzedzony przez"; +$strExtra = "Dodatkowy"; +$strField = "Pole"; +$strFields = "Pola"; +$strFunction = "Funkcja"; +$strGo = "Wykonanie"; +$strHasBeenAltered = "zosta³o zamienione."; +$strHasBeenCreated = "zosta³o utworzone."; +$strHasBeenDropped = "zosta³o skasowane."; +$strHasBeenEmptied = "zosta³o wyczyszczone."; +$strHome = "Wejĥcie"; +$strHost = "Host"; +$strIfYouWish = "Proszê podaĉ listê kolumn rozdzielonħ przecinkami aby za³adowaĉ tylko wybrane kolumny."; +$strIndex = "Indeks"; +$strInsert = "Dodanie"; +$strInsertIntoTable = "Dodanie do tabeli"; +$strInsertNewRow = "Dodanie nowego rekordu"; +$strInsertTextfiles = "Dodanie pliku tekstowego do tabeli"; +$strKeyname = "Nazwa klucza"; +$strLengthSet = "D³ugoĥĉ"; +$strLineFeed = "Kod wysuniêcia linii: \\n"; +$strLines = "Linie"; +$strLocationTextfile = "Lokalizacja pliku tekstowego"; +$strModifications = "Modyfikacje zosta³y zapamiêtane"; +$strMySQLReloaded = "MySQL prze³adowany."; +$strMySQLSaid = "MySQL zwróci³ komunikat: "; +$strMySQLShowStatus = "Informacje o stanie serwera MySQL"; +$strMySQLShowVars = "Zmienne systemowe serwera MySQL"; +$strName = "Nazwa"; +$strNext = "Nastêpne"; +$strNo = "Nie"; +$strNoTablesFound = "Nie znaleziono tabeli w bazie danych."; +$strNull = "Null"; +$strOftenQuotation = "Znaki cudzys³owia. OPCJONALNIE oznacza, że tylko pola char oraz varchar sħ zawarte w \"cudzys³owiach\"."; +$strOptionalControls = "Opcjonalnie. Okreĥlenie w jaki sposób zapisaĉ lub odczytaĉ znaki specjalne."; +$strOptionally = "OPCJONALNIE"; +$strPos1 = "Poczħtek"; +$strPrevious = "Poprzednie"; +$strPrimary = "Podstawowy"; +$strPrimaryKey = "Podstawowy klucz"; +$strProducedAnError = "zg³osi³ b³ħd."; +$strProperties = "W³aĥciwoĥci"; +$strReadTheDocs = "Proszê przeczytaĉ dokumentacjê"; +$strRecords = "Rekordy"; +$strReloadFailed = "Nie powiod³o siê prze³adowanie MySQL."; +$strReloadMySQL = "Prze³adowanie MySQL"; +$strRenameTable = "Zmiana nazwy tabeli na"; +$strRenameTableOK = "Tabela \$table ma zmienionħ nazwê na \$new_name"; +$strReplace = "Zamiana"; +$strReplaceTable = "Zamiana danych tabeli z plikiem"; +$strReset = "Reset"; +$strRunSQLQuery = "Wykonanie zapytania SQL do bazy danych "; +$strRunning = "uruchomiony na "; +$strSQLQuery = "zapytanie SQL"; +$strSave = "Zachowanie"; +$strSelect = "Wybór"; +$strSelectFields = "Wybór pól (co najmniej jedno):"; +$strSend = "wys³anie"; +$strShowingRecords = "Pokazanie rekordów "; +$strStrucCSV = "dane CSV"; +$strStrucData = "Struktura i dane"; +$strStrucDrop = "Dodanie 'drop table'"; +$strStrucOnly = "Tylko struktura"; +$strSubmit = "Wys³anie"; +$strSuccess = "Zapytanie SQL zosta³o pomyĥlnie wykonane"; +$strTable = "tabela "; +$strTableStructure = "Struktura tabeli dla "; +$strTerminatedBy = "zakoñczone przez"; +$strTheContent = "Zawartoĥĉ pliku zosta³a do³ħczona."; +$strTheContents = "Zawartoĥĉ pliku zastħpi³a dane wybranej tabeli, których podstawowy lub unikalny klucz by³ identyczny."; +$strTheTerminator = "Znak rozdzielajħcy pola."; +$strTotal = "wszystkich"; +$strType = "Typ"; +$strUnique = "Unikalny"; +$strValue = "Wartoĥĉ"; +$strViewDump = "Zrzut tabeli"; +$strViewDumpDB = "Zrzut bazy danych"; +$strWelcome = "Witamy w "; +$strWrongUser = "B³êdne pola użytkownik/has³o. Brak dostêpu."; +$strYes = "Tak"; +$strMySQLShowProcess = "Pokazuj procesy"; +$strLogin = "Zalogowanie"; +$strLogout = "Wylogowanie"; +$strQBE = "Zapytanie przez przyk³ad"; +$strBack = "Powrót"; +$strTableComments = "Komentarze tabeli"; +$strOr = "lub"; +$strSelectNumRows = "w zapytaniu"; +?> diff --git a/lang/portuguese.inc.php3 b/lang/portuguese.inc.php3 new file mode 100644 index 000000000..7a7a45c64 --- /dev/null +++ b/lang/portuguese.inc.php3 @@ -0,0 +1,123 @@ + diff --git a/lang/russian-koi8.inc.php3 b/lang/russian-koi8.inc.php3 new file mode 100644 index 000000000..9fb0304af --- /dev/null +++ b/lang/russian-koi8.inc.php3 @@ -0,0 +1,133 @@ + diff --git a/lang/russian-win1251.inc.php3 b/lang/russian-win1251.inc.php3 new file mode 100644 index 000000000..23e524896 --- /dev/null +++ b/lang/russian-win1251.inc.php3 @@ -0,0 +1,133 @@ + diff --git a/lang/spanish.inc.php3 b/lang/spanish.inc.php3 new file mode 100644 index 000000000..6ca8fffcf --- /dev/null +++ b/lang/spanish.inc.php3 @@ -0,0 +1,135 @@ + diff --git a/lang/swedish.inc.php3 b/lang/swedish.inc.php3 new file mode 100644 index 000000000..0f2817cc5 --- /dev/null +++ b/lang/swedish.inc.php3 @@ -0,0 +1,148 @@ +Varning: Du har 'magic_quotes_gpc' aktiverat i din PHP konfiguration. Den här versionen av PhpMyAdmin fungerar inte korrekt med det. Läs i din PHP dokumentation om hur du avaktiverar det."; +$strDisplay = "Visa"; +$strDoAQuery = "Utför en \"query by example\" (wildcard: \"%\")"; +$strDoYouReally = "Vill du värkligen "; +$strDocu = "Dokumentation"; +$strDrop = "Dumpa"; +$strDropDB = "Dumpa databas "; +$strDumpingData = "Dumpar data i tabell"; +$strEdit = "Ändra"; +$strEmpty = "Töm"; +$strEmptyResultSet = "MySQL skickade tillbaka ett tommt resultat (i.e. tom rad)."; +$strEnableMagicQuotes = "Varning: Du har inte aktiverat 'magic_quotes_gpc' i din PHP konfiguration. Den här versionen av PhpMyAdmin fungerar inte korrekt utan det. Läs i din PHP dokumentation hur du aktiverar det."; +$strEnclosedBy = "omgivet med"; +$strEnd = "Slut"; +$strError = "Fel"; +$strEscapedBy = "avslutas med"; +$strExtra = "Extra"; +$strField = "Fält"; +$strFields = "Fält"; +$strFunction = "Funktion"; +$strGo = "Kör"; +$strHasBeenAltered = "har ändrats."; +$strHasBeenCreated = "har skapats."; +$strHasBeenDropped = "har dumpats."; +$strHasBeenEmptied = "har tömts."; +$strHome = "Hem"; +$strHost = "Värd"; +$strIfYouWish = "Om du vill ladda bara nċgra av tabellens kolumner, ange en ',' separerad fält lista."; +$strIndex = "Index"; +$strInsert = "Sätt in"; +$strInsertIntoTable = "Sätt in i tabell"; +$strInsertNewRow = "Sätt in ny rad"; +$strInsertTextfiles = "Importera text fil till tabellen"; +$strKeyname = "Nyckel namn"; +$strLengthSet = "Längd/Set"; +$strLimitNumRows = "Tabell inlägg per sida"; +$strLineFeed = "Linefeed: \\n"; +$strLines = "Linjer"; +$strLocationTextfile = "Textfilens plats"; +$strLogout = "Logga ut"; +$strModifications = "Ändringarna har sparats"; + +$strMySQLReloaded = "MySQL har laddats om."; +$strMySQLSaid = "MySQL sa: "; +$strMySQLShowProcess = "Visa processer"; +$strMySQLShowStatus = "Visa MySQL körnings information"; +$strMySQLShowVars = "Visa MySQL system variabler"; +$strName = "Namn"; +$strNext = "Nästa"; +$strNo = "Nej"; +$strNoTablesFound = "Inga tabeller hittade i databasen."; +$strNull = "Noll"; +$strOftenQuotation = "Ofta citat tecken. Frivilligt betyder att bara 'char' och 'varchar' fälten omgivs av \"enclosed by\"-tecken."; +$strOptionalControls = "Tillval. Kontrollerar hur läsning och skrivning av 'special' tecken utförs."; +$strOptionally = "Tillval"; +$strOr = "eller"; +$strPos1 = "Börja"; +$strPrevious = "Föregċende"; +$strPrimary = "Primär"; +$strPrimaryKey = "Primär nyckel"; +$strPrintView = "Skriv ut detta"; +$strPrinterFriendly = "Utskrifts vänlig visning av tabellen"; +$strProducedAnError = "ċtergav ett fel."; +$strProperties = "Inställningar"; +$strQBE = "Frċga som exemplet"; +$strReadTheDocs = "Läs manualen"; +$strRecords = "Insättning"; +$strReloadFailed = "MySQL omladdning fungerade inte."; +$strReloadMySQL = "Ladda om MySQL"; +$strRenameTable = "Döp om tabell till"; +$strRenameTableOK = "Tabell \$table har döpts om till \$new_name"; +$strReplace = "Ersätt"; +$strReplaceTable = "Ersätt tabell med fil"; +$strReset = "Nollställ"; +$strRowsFrom = "rader med början frċn"; + +$strRunSQLQuery = "Utför SQL frċga/frċgor i databas "; +$strRunning = "körs pċ "; +$strSQLQuery = "SQL-frċga"; +$strSave = "Spara"; +$strSelect = "Välj"; +$strSelectFields = "Välj fält (minst en):"; +$strSelectNumRows = "i frċga"; +$strSend = "Skicka"; +$strShow = "Visa"; +$strShowingRecords = "Visar insättningar "; + +$strStrucCSV = "CSV data"; +$strStrucData = "Struktur och data"; +$strStrucDrop = "Lägg till 'dumpa tabell'"; +$strStrucOnly = "Bara struktur"; +$strSubmit = "Sänd"; +$strSuccess = "Din SQL-frċga har utförts korrekt"; +$strTable = "tabell "; +$strTableComments = "Tabell kommentarer"; +$strTableStructure = "Tabell struktur för tabell"; +$strTerminatedBy = "avslutad av"; +$strTheContent = "Filens innehċll har satts in."; +$strTheContents = "Filens innehċll ersätter den valda tabellens rader av primära och identiska nycklar."; +$strTheTerminator = "Avslutninen av fälten."; +$strTotal = "totalt"; +$strType = "Typ"; +$strUnique = "Unik"; + + +$strValue = "Värde"; +$strViewDump = "Visa dump (schema) av tabellen"; +$strViewDumpDB = "Visa dump (schema) av databas"; +$strWelcome = "Välkommen till "; +$strWrongUser = "Fel användarnamn/lösenord. Ċtkommst nekad."; +$strYes = "Ja"; + +?> diff --git a/lang/thai.inc.php3 b/lang/thai.inc.php3 new file mode 100644 index 000000000..6d85a8095 --- /dev/null +++ b/lang/thai.inc.php3 @@ -0,0 +1,148 @@ +Warning: You have enabled magic_quotes_gpc in your PHP configuration. This version of PhpMyAdmin cannot work properly with it. Please have a look at the configuration section of the PHP manual for information on how to disable it."; +$strDisplay = "áÊ´§ĵĊ";#"Display"; +$strDoAQuery = "Do a \"query by example\" (wildcard: \"%\")"; +$strDoYouReally = "µéͧĦÒ·Ġè¨ ";#"Do you really want to "; +$strDocu = "àÍĦÊÒ/¤ÙèÁ×ÍÍéÒ§ÍÔ§";#"Documentation"; +$strDrop = "Drop"; +$strDropDB = "Drop °Òı˘éÍÁÙĊ ";#"Drop database "; +$strDumpingData = "Dump µÒÒ§";#"Dumping data for table"; +$strEdit = "áĦéä˘";#"Edit"; +$strEmpty = "Ċş˘éÍÁÙĊ";#"Empty"; +$strEmptyResultSet = "MySQL ¤×ıĵĊÇèÒ§àğĊèÒĦĊÑşÁÒ (0 áĥÇ).";#"MySQL returned an empty result set (i.e. zero rows)."; +$strEnableMagicQuotes = "Warning: You haven't enabled magic_quotes_gpc in your PHP configuration. PhpMyAdmin needs this to work properly. Please have a look at the configuration section of the PHP manual for information on how to enable it."; +$strEnclosedBy = "ĊéÍÁ´éÇÂ";#"enclosed by"; +$strEnd = "·éÒÂÊĜ´"; +$strError = "ĵÔ´ĊÒ´";#"Error"; +$strEscapedBy = "escape ´éÇÂ";#"escaped by"; +$strExtra = "Extra"; +$strField = "Field"; +$strFields = "¨ÓıÇı Fields"; +$strFunction = "Function"; +$strGo = "Ċ§Á×Í";#"Go"; +$strHasBeenAltered = "ä´éàğĊĠèÂıáğĊ§áĊéÇ";#"has been altered."; +$strHasBeenCreated = "ä´éĥÙĦÊéÒ§áĊéÇ";#"has been created."; +$strHasBeenDropped = "ä´é·ÓĦÒ drop áĊéÇ";#"has been dropped."; +$strHasBeenEmptied = "ä´é·ÓËéÇèÒ§áĊéÇ";#"has been emptied."; +$strHome = "Home"; +$strHost = "Host"; +$strIfYouWish = "If you wish to load only some of a table's columns, specify a comma separated field list."; +$strIndex = "Index"; +$strInsert = "á·Ħ";#"Insert"; +$strInsertIntoTable = "á·Ħà˘éÒäğıµÒÒ§";#"Insert into table"; +$strInsertNewRow = "á·ĦáĥÇËÁè";#"Insert new row"; +$strInsertTextfiles = "á·Ħ˘éÍÁÙĊ¨ÒĦ text file à˘éÒäğıµÒÒ§";#"Insert textfiles into table"; +$strKeyname = "Ş×èÍ key";#"Keyname"; +$strLengthSet = "¤ÇÒÁÂÒÇ/àе";#"Length/Set"; +$strLimitNumRows = "àşĠÂı µèÍËıéÒ";#"records per page"; +$strLineFeed = "Linefeed: \\n"; +$strLines = "ş·Ñ´";#"Lines"; +$strLocationTextfile = "µÓáËıè§˘Í§ text file";#"Location of the textfile"; +$strLogout = "Log out"; +$strModifications = "şÑı·ÖĦĦÒáĦéä˘àĠÂşéÍÂáĊéÇ";#"Modifications have been saved"; + +$strMySQLReloaded = "MySQL reloaded."; +$strMySQLSaid = "MySQL said: "; +$strMySQLShowProcess = "áÊ´§ process µèÒ§ ĉ";#"Show processes"; +$strMySQLShowStatus = "áÊ´§˘éÍÁÙĊ runtime ˘Í§ MySQL";#"Show MySQL runtime information"; +$strMySQLShowVars = "áÊ´§µÑÇáğşş˘Í§ MySQL";#"Show MySQL system variables"; +$strName = "Ş×èÍ";#"Name"; +$strNext = "µèÍäğ";#"Next"; +$strNo = "No"; +$strNoTablesFound = "äÁèşµÒÒ§´ ĉ ı°Òı˘éÍÁÙĊ";#"No tables found in database."; +$strNull = "Null"; +$strOftenQuotation = "Often quotation marks. OPTIONALLY means that only char and varchar fields are enclosed by the \"enclosed by\"-character."; +$strOptionalControls = "Optional. Controls how to write or read special characters."; +$strOptionally = "OPTIONALLY"; +$strOr = "Ë×Í";#"or"; +$strPos1 = "¨Ĝ´àÔèÁµéı";#"Begin"; +$strPrevious = "ĦèÍıËıéÒ";#"Previous"; +$strPrimary = "Primary"; +$strPrimaryKey = "Primary key"; +$strPrintView = "Print view"; +$strPrinterFriendly = "Printer friendly version of above table"; +$strProducedAnError = "produced an error."; +$strProperties = "¤Ĝ³ÊÁşÑµÔ";#"Properties"; +$strQBE = "Query by Example"; +$strReadTheDocs = "ÍèÒı¤ÙèÁ×Í";#"Read the docs"; +$strRecords = "àşĠÂı"; +$strReloadFailed = "MySQL reload failed."; +$strReloadMySQL = "Reload MySQL"; +$strRenameTable = "àğĊĠèÂıŞ×è͵ÒÒ§àğçı";#"Rename table to"; +$strRenameTableOK = "µÒÒ§ \$table ä´éĥÙĦàğĊĠèÂıŞ×èÍàğçı \$new_name";#"Table \$table has been renamed to \$new_name"; +$strReplace = "á·ı·Ġè";#"Replace"; +$strReplaceTable = "á·ı·Ġè˘éÍÁÙĊ´éÇÂäżĊì";#"Replace table data with file"; +$strReset = "Reset"; +$strRowsFrom = "áĥÇ àÔèÁ¨ÒĦáĥÇ·Ġè";#"rows starting from"; + +$strRunSQLQuery = "·Ó§Òı¤íÒÊÑè§ SQL query/queries ĦÑş°Òı˘éÍÁÙĊıĠé ";#"Run SQL query/queries on database "; +$strRunning = "running on "; +$strSQLQuery = "SQL-query"; +$strSave = "àĦçşşÑı·ÖĦ";#"Save"; +$strSelect = "àĊ×ÍĦ";#"Select"; +$strSelectFields = "àĊ×ÍĦ field (ÍÂèÒ§ıéÍÂËıÖè§):";#"Select fields (at least one):"; +$strSelectNumRows = "in query"; +$strSend = "Download";#"Send"; +$strShow = "áÊ´§";#"Show"; +$strShowingRecords = "áÊ´§àşĠÂı·Ġè ";#"Showing records "; + +$strStrucCSV = "˘éÍÁÙĊ CSV";#"CSV data"; +$strStrucData = "·Ñé§â¤§ÊéÒ§áĊ˘éÍÁÙĊ";#"Structure and data"; +$strStrucDrop = "àÔèÁ 'drop table'";#"Add 'drop table'"; +$strStrucOnly = "àİÒ⤧ÊéÒ§";#"Structure only"; +$strSubmit = "Submit"; +$strSuccess = "·Ó§Òı SQL-query àÊç¨àĠÂşéÍÂáĊéÇ";#"Your SQL-query has been executed successfully"; +$strTable = "µÒÒ§ ";#"table "; +$strTableComments = "ËÁÒÂà˵Ĝ˘Í§µÒÒ§ıĠé";#"Table comments"; +$strTableStructure = "⤧ÊéÒ§µÒÒ§ ÊÓËÑşµÒÒ§";#"Table structure for table"; +$strTerminatedBy = "ÊÔéıÊĜ´´éÇÂà¤×èͧËÁÒÂ";#"terminated by"; +$strTheContent = "á·Ħ˘éÍÁÙĊ¨ÒĦäżĊì˘Í§¤Ĝ³áĊéÇ";#"The content of your file has been inserted."; +$strTheContents = "The contents of the file replaces the contents of the selected table for rows with identical primary or unique key."; +$strTheTerminator = "¨Ĝ´ÊÔéıÊĜ´˘Í§ field.";#"The terminator of the fields."; +$strTotal = "·Ñé§ËÁ´";#"total"; +$strType = "Type"; +$strUnique = "Unique"; + + +$strValue = "Value"; +$strViewDump = "´Ù⤧ÊéÒ§˘Í§µÒÒ§";#"View dump (schema) of table"; +$strViewDumpDB = "´Ù⤧ÊéÒ§˘Í§°Òı˘éÍÁÙĊ";#"View dump (schema) of database"; +$strWelcome = "ÂÔı´ĠµéÍıÑşÊÙè ";#"Welcome to "; +$strWrongUser = "Wrong username/password. Access denied."; +$strYes = "Yes"; + +?> diff --git a/ldi_check.php3 b/ldi_check.php3 new file mode 100755 index 000000000..7ffc5d62b --- /dev/null +++ b/ldi_check.php3 @@ -0,0 +1,70 @@ +0) + { $query = $query . "OPTIONALLY "; + } + + if (strlen($enclosed)>0) + { $query = $query . "ENCLOSED BY '$enclosed' "; + } + + if (strlen($escaped)>0) + { $query = $query . "ESCAPED BY '".$stripped_escaped."' "; + } + + if (strlen($line_terminator)>0) + { $query = $query . "LINES TERMINATED BY '".$stripped_line_terminator."' "; + } + + if (strlen($column_name)>0) + { $query = $query . "($column_name)"; + } + + if(get_magic_quotes_gpc()) { + $sql_query = addslashes($query); + } + require("sql.php3"); +} +else +{ require("ldi_table.php3"); +} +?> diff --git a/ldi_table.php3 b/ldi_table.php3 new file mode 100755 index 000000000..65d931d13 --- /dev/null +++ b/ldi_table.php3 @@ -0,0 +1,76 @@ + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


    + +



    + + + + + +    + +
    + +
    + + diff --git a/left.php3 b/left.php3 new file mode 100755 index 000000000..0b1555636 --- /dev/null +++ b/left.php3 @@ -0,0 +1,334 @@ + + + + +phpMyAdmin + + + + + + + + + + +
    + + + +
    + 0) +{ + if(empty($dblist)) + { + $dbs = mysql_list_dbs(); + $num_dbs = mysql_numrows($dbs); + } + else + { + $num_dbs = count($dblist); + } + + for($i=0; $i<$num_dbs; $i++) + { + if (empty($dblist)) + $db = mysql_dbname($dbs, $i); + else + $db = $dblist[$i]; + $j = $i + 2; + ?> + +
    + +     &pos=0&goto=tbl_properties.php3"><?php echo $strBrowse."> 
    + \n"; +} + ?> + + + + diff --git a/lib.inc.php3 b/lib.inc.php3 new file mode 100755 index 000000000..b7211696b --- /dev/null +++ b/lib.inc.php3 @@ -0,0 +1,687 @@ + + + + + + + + +
    +
    " + action= + >" > +
    +
    +
    " + action= + >" > +
    +
    +       + +
    +
    + > + " + onclick="checkFormElementInRange( this.form, 'pos', 0, )" + > + + +
    +
    +
    +
    " + action= + >" > +
    +
    + + "; +} + +function mysql_die($error = "") { + global $strError,$strSQLQuery, $strMySQLSaid, $strBack, $sql_query; + + echo " $strError

    "; + if(isset($sql_query) && !empty($sql_query)) + { + echo "$strSQLQuery:

    $sql_query

    "; + } + if(empty($error)) + echo $strMySQLSaid.mysql_error(); + else + echo $strMySQLSaid.$error; + echo "\n
    $strBack"; + include("footer.inc.php3"); + exit; +} + +function auth() { + global $cfgServer, $strAccessDenied, $strWrongUser; + //$PHP_AUTH_USER = ""; // No need to do this since err 401 allready clears that var + Header("status: 401 Unauthorized"); + Header("HTTP/1.0 401 Unauthorized"); + Header("WWW-authenticate: basic realm=\"phpMySQLAdmin on ".$cfgServer['host']."\""); + echo "".$strAccessDenied."\n"; + echo "

    ".$strWrongUser."

    \n"; + echo "
    "; + exit; +} + +// Use mysql_connect() or mysql_pconnect()? +$connect_func = ($cfgPersistentConnections) ? "mysql_pconnect" : "mysql_connect"; +$dblist = array(); + +reset($cfgServers); +while(list($key, $val) = each($cfgServers)) { + // Don't use servers with no hostname + if (empty($val['host'])) { + unset($cfgServers[$key]); + } +} + +if(empty($server) || !isset($cfgServers[$server]) || !is_array($cfgServers[$server])) + $server = $cfgServerDefault; + +if($server == 0) { + // If no server is selected, make sure that $cfgServer is empty + // (so that nothing will work), and skip server authentication. + // We do NOT exit here, but continue on without logging into + // any server. This way, the welcome page will still come up + // (with no server info) and present a choice of servers in the + // case that there are multiple servers and '$cfgServerDefault = 0' + // is set. + $cfgServer = array(); +} else { + // Otherwise, set up $cfgServer and do the usual login stuff. + $cfgServer = $cfgServers[$server]; + + if(isset($cfgServer['only_db']) && !empty($cfgServer['only_db'])) + $dblist[] = $cfgServer['only_db']; + + if($cfgServer['adv_auth']) { + if (empty($PHP_AUTH_USER) && isset($REMOTE_USER)) + $PHP_AUTH_USER=$REMOTE_USER; + if(empty($PHP_AUTH_PW) && isset($REMOTE_PASSWORD)) + $PHP_AUTH_PW=$REMOTE_PASSWORD; + + if(!isset($old_usr)) { + if(empty($PHP_AUTH_USER)) { + $AUTH=TRUE; + } else { + $AUTH=FALSE; + } + } else { + if($old_usr==$PHP_AUTH_USER) { + // force user to enter a different username + $AUTH=TRUE; + unset($old_usr); + } else { + $AUTH=FALSE; + } + } + + if($AUTH) { + auth(); + } else { + if(empty($cfgServer['port'])) { + $dbh = $connect_func($cfgServer['host'],$cfgServer['stduser'],$cfgServer['stdpass']) or mysql_die(); + } else { + $dbh = $connect_func($cfgServer['host'].":".$cfgServer['port'],$cfgServer['stduser'],$cfgServer['stdpass']) or mysql_die(); + } + $PHP_AUTH_USER = addslashes($PHP_AUTH_USER); + $PHP_AUTH_PW = addslashes($PHP_AUTH_PW); + $rs = mysql_db_query("mysql", "SELECT User, Password, Select_priv FROM user where User = '$PHP_AUTH_USER' AND Password = PASSWORD('$PHP_AUTH_PW')", $dbh) or mysql_die(); + if(@mysql_numrows($rs) <= 0) { + auth(); + } else { + $row = mysql_fetch_array($rs); + if ($row["Select_priv"] != "Y") { + //correction uva 19991215 --------------------------- + //previous code assumed database "mysql" admin table "db" + //column "db" contains literal name of user database, and + //works if so. mysql usage generally (and uva usage + //specifically) allows this column to contain regular + //expressions. (we have all databases owned by a given + //student/faculty/staff beginning with user i.d. and + //governed by default by a single set of privileges with + //regular expression as key. this breaks previous code. + //this maintenance is to fix code to work correctly for + //regular expressions. + //begin correction uva 19991215 pt. 1 --------------------------- + //add "DISTINCT" to next line: need single row only + $rs = mysql_db_query("mysql", "SELECT DISTINCT Db FROM db WHERE Select_priv = 'Y' AND User = '$PHP_AUTH_USER'") or mysql_die(); + //end correction uva 19991215 pt. 1 ----------------------------- + if (@mysql_numrows($rs) <= 0) { + $rs = mysql_db_query("mysql", "SELECT Db FROM tables_priv WHERE Table_priv like '%Select%' AND User = '$PHP_AUTH_USER'") or mysql_die(); + if (@mysql_numrows($rs) <= 0) { + auth(); + } else { + while ($row = mysql_fetch_array($rs)) + $dblist[] = $row["Db"]; + } + } else { + //begin correction uva 19991215 pt. 2 --------------------------- + //see pt. 1, above, for description of change + $uva_mydbs = array(); // will use as associative array + //of the following 2 code lines, + // the 1st is the only line intact from before correction, pt. 2 + // the 2nd replaces $dblist[] = $row["Db"]; + //code following those 2 lines in correction, pt. 2, continues + //populating $dblist[], as previous code did. but it is + //now populated with actual database names instead of with + //regular expressions. + while($row = mysql_fetch_array($rs)) { + $uva_mydbs[ $row["Db"] ] = 1; + } + $uva_alldbs = mysql_list_dbs(); + while($uva_row = mysql_fetch_array($uva_alldbs)) { + $uva_db = $uva_row[0]; + if (isset($uva_mydbs[$uva_db]) && 1 == $uva_mydbs[$uva_db]) { + $dblist[] = $uva_db; + $uva_mydbs[$uva_db] = 0; + } else { + reset($uva_mydbs); + while (list($uva_matchpattern,$uva_value) = each($uva_mydbs)) { + $uva_regex = ereg_replace("%",".+",$uva_matchpattern); + // fixed db name matching 2000-08-28 Benjamin Gandon + if(ereg("^".$uva_regex."$",$uva_db)) { + $dblist[] = $uva_db; + break; + } + } + } + } + //end correction uva 19991215 pt. 2 ----------------------------- + } + } + } + } + $cfgServer['user']=$PHP_AUTH_USER; + $cfgServer['password']=$PHP_AUTH_PW; + } + + if (empty($cfgServer['port'])) { + $link = $connect_func($cfgServer['host'], $cfgServer['user'], $cfgServer['password']) or mysql_die(); + } else { + $link = $connect_func($cfgServer['host'].":".$cfgServer['port'], $cfgServer['user'], $cfgServer['password']) or mysql_die(); + } + + $result = mysql_query("SELECT VERSION() AS version") or mysql_die(); + $row = mysql_fetch_array($result); + define("MYSQL_MAJOR_VERSION", substr($row["version"], 0, 4)); + //BEGIN - Additional Version Info - 2 May 2001 - Robbat2 + define("MYSQL_MINOR_VERSION", substr($row["version"], 5)); //skip the . + //END - Additional Version Info - 2 May 2001 - Robbat2 +} + +// ----------------------------------------------------------------- + +function display_table ($dt_result) { + global $cfgBorder, $cfgBgcolorOne, $cfgBgcolorTwo, $cfgMaxRows, $pos; + global $server, $lang, $db, $table, $sql_query, $sql_order, $cfgOrder, $cfgShowBlob; + global $goto, $strShowingRecords, $strSelectNumRows, $SelectNumRows; + global $strTotal, $strEdit, $strPrevious, $strNext, $strDelete, $strDeleted; + global $strPos1, $strEnd, $sessionMaxRows, $strGo, $strShow, $strRowsFrom; + global $cfgModifyDeleteAtLeft, $cfgModifyDeleteAtRight; + + $cfgMaxRows = isset($sessionMaxRows) ? $sessionMaxRows : $cfgMaxRows; + $sessionMaxRows = isset($sessionMaxRows) ? $sessionMaxRows : $cfgMaxRows; + + load_javascript(); + + $primary = false; + if(!empty($table) && !empty($db)) { + $result = mysql_db_query($db, "SELECT COUNT(*) as total FROM $table") or mysql_die(); + $row = mysql_fetch_array($result); + $total = $row["total"]; + } + + if(!isset($pos)) + $pos = 0; + $pos_next = $pos + $cfgMaxRows; + $pos_prev = $pos - $cfgMaxRows; + + if(isset($total) && $total>1) { + if(isset($SelectNumRows) && $SelectNumRows!=$total) + $selectstring = ", $SelectNumRows $strSelectNumRows"; + else + $selectstring = ""; + $se = isset($se) ? $se : ""; + $lastShownRec = $pos_next - 1; + show_message("$strShowingRecords $pos - $lastShownRec ($se$total $strTotal$selectstring)"); + } else { + show_message($GLOBALS["strSQLQuery"]); + } + ?> + + table; + mysql_field_seek($dt_result, 0); + show_table_navigation($pos_next, $pos_prev, $dt_result); + ?> + + + + + \n"; + } + while($field = mysql_fetch_field($dt_result)) + { + if(@mysql_num_rows($dt_result)>1) + { + $sort_order=urlencode(" order by $field->name $cfgOrder"); + echo "\n"; + } + else + { + echo ""; + } + $table = $field->table; + } + echo "\n"; + $foo = 0; + + while($row = mysql_fetch_row($dt_result)) + { + $primary_key = ""; + //begin correction uva 19991216 --------------------------- + //previous code assumed that all tables have keys, specifically + //that only the phpMyAdmin GUI should support row delete/edit + //only for such tables. although always using keys is arguably + //the prescribed way of defining a relational table, it is not + //required. this will in particular be violated by the novice. we + //want to encourage phpMyAdmin usage by such novices. so the code + //below has been changed to conditionally work as before when the + //table being displayed has one or more keys; but to display delete/edit + //options correctly for tables without keys. + //begin correction uva 19991216 pt. 1 --------------------------- + $uva_nonprimary_condition = ""; + //end correction uva 19991216 pt. 1 ----------------------------- + $bgcolor = $cfgBgcolorOne; + $foo % 2 ? 0: $bgcolor = $cfgBgcolorTwo; + echo ""; + for($i=0; $inumeric == 1) { + if($sql_query == "SHOW PROCESSLIST") + $Id = $row[$i]; + } + if($primary->primary_key > 0) + $primary_key .= " $primary->name = '".addslashes($row[$i])."' AND"; + //begin correction uva 19991216 pt. 2 --------------------------- + //see pt. 1, above, for description of change + $uva_nonprimary_condition .= " $primary->name = '".addslashes($row[$i])."' AND"; + //end correction uva 19991216 pt. 2 ----------------------------- + } + //begin correction uva 19991216 pt. 3 --------------------------- + //see pt. 1, above, for description of change + //prefer primary keys for condition, but use conjunction of + //all values if no primary key + if($primary_key) //use differently and include else + $uva_condition = $primary_key; + else + $uva_condition = $uva_nonprimary_condition; + + // { code no longer conditional on $primary_key + // $primary_key replaced with $uva_condition below + $uva_condition = urlencode(ereg_replace("AND$", "", $uva_condition)); + $query = "server=$server&lang=$lang&db=$db&table=$table&pos=$pos"; + $goto = (isset($goto) && !empty($goto) && empty($GLOBALS["QUERY_STRING"])) ? $goto : "sql.php3"; + $edit_url = "tbl_change.php3"; + $edit_url .= "?primary_key=$uva_condition"; + $edit_url .= "&$query"; + $edit_url .= "&sql_query=".urlencode($sql_query); + $edit_url .= "&goto=$goto"; + // Chistian Schmidt suggest added in $delete_url 2000-08-24 + $delete_url = "sql.php3"; + $delete_url .= "?sql_query=".urlencode("DELETE FROM $table WHERE ").$uva_condition; + $delete_url .= "&$query"; + $delete_url .= "&goto=sql.php3".urlencode("?$query&goto=tbl_properties.php3&sql_query=".urlencode($sql_query)."&zero_rows=".urlencode($strDeleted)); + if($cfgModifyDeleteAtLeft) { + echo ""; + echo ""; + } + + // } code no longer condition on $primary_key + //end correction uva 19991216 pt. 3 ----------------------------- + + if($sql_query == "SHOW PROCESSLIST") + echo "\n"; + + //possibility to have the modify/delete button on the left added + // 2000-08-29 + for($i=0; $inumeric == 1) { + echo "\n"; + } elseif($cfgShowBlob == false && eregi("BLOB", $primary->type)) { + echo "\n"; + } else { + echo "\n"; + } + } + if($cfgModifyDeleteAtRight) { + echo ""; + echo ""; + } + + echo "\n"; + $foo++; + } + echo "
    "; + if(!eregi("SHOW VARIABLES|SHOW PROCESSLIST|SHOW STATUS", $sql_query)) + echo ""; + echo $field->name; + if(!eregi("SHOW VARIABLES|SHOW PROCESSLIST|SHOW STATUS", $sql_query)) + echo ""; + echo "$field->name
    ".$strEdit."".$strDelete."KILL $row[$i]  [BLOB]  ".htmlspecialchars($row[$i])." ".$strEdit."".$strDelete."
    \n"; + + show_table_navigation($pos_next, $pos_prev, $dt_result); +}//display_table + +// Return $table's CREATE definition +// Returns a string containing the CREATE statement on success +function get_table_def($db, $table, $crlf) +{ + global $drop; + + $schema_create = ""; + if(!empty($drop)) + $schema_create .= "DROP TABLE IF EXISTS $table;$crlf"; + + $schema_create .= "CREATE TABLE $table ($crlf"; + + $result = mysql_db_query($db, "SHOW FIELDS FROM $table") or mysql_die(); + while($row = mysql_fetch_array($result)) + { + $schema_create .= " $row[Field] $row[Type]"; + + if(isset($row["Default"]) && (!empty($row["Default"]) || $row["Default"] == "0")) + $schema_create .= " DEFAULT '$row[Default]'"; + if($row["Null"] != "YES") + $schema_create .= " NOT NULL"; + if($row["Extra"] != "") + $schema_create .= " $row[Extra]"; + $schema_create .= ",$crlf"; + } + $schema_create = ereg_replace(",".$crlf."$", "", $schema_create); + $result = mysql_db_query($db, "SHOW KEYS FROM $table") or mysql_die(); + while($row = mysql_fetch_array($result)) + { + $kname=$row['Key_name']; + if(($kname != "PRIMARY") && ($row['Non_unique'] == 0)) + $kname="UNIQUE|$kname"; + if(!isset($index[$kname])) + $index[$kname] = array(); + $index[$kname][] = $row['Column_name']; + } + + while(list($x, $columns) = @each($index)) + { + $schema_create .= ",$crlf"; + if($x == "PRIMARY") + $schema_create .= " PRIMARY KEY (" . implode($columns, ", ") . ")"; + elseif (substr($x,0,6) == "UNIQUE") + $schema_create .= " UNIQUE ".substr($x,7)." (" . implode($columns, ", ") . ")"; + else + $schema_create .= " KEY $x (" . implode($columns, ", ") . ")"; + } + + $schema_create .= "$crlf)"; + if(get_magic_quotes_gpc()) { + return (stripslashes($schema_create)); + } else { + return ($schema_create); + } +} + +// Get the content of $table as a series of INSERT statements. +// After every row, a custom callback function $handler gets called. +// $handler must accept one parameter ($sql_insert); +function get_table_content($db, $table, $handler) +{ + $result = mysql_db_query($db, "SELECT * FROM $table") or mysql_die(); + $i = 0; + while($row = mysql_fetch_row($result)) + { + set_time_limit(60); // HaRa + $table_list = "("; + + for($j=0; $j$strDocu]"); +} + +function show_message($message) { + if(!empty($GLOBALS['reload']) && ($GLOBALS['reload'] == "true")) + { + // Reload the navigation frame via JavaScript + ?> + + +
    + + + + + + + + + +
    +
    +
    + ", nl2br($GLOBALS['sql_query']); + if (isset($GLOBALS["sql_order"])) echo " $GLOBALS[sql_order]"; + if (isset($GLOBALS["pos"])) echo " LIMIT $GLOBALS[pos], $GLOBALS[cfgMaxRows]";?> +
    +
    + diff --git a/main.php3 b/main.php3 new file mode 100755 index 000000000..c6be75a45 --- /dev/null +++ b/main.php3 @@ -0,0 +1,177 @@ + + +

    phpMyAdmin 2.2.0pre3 (unofficial devel-branch)

    + 0) { + // Don't display server info if $server==0 (no server selected) + $res_version = mysql_query("SELECT Version() as version") or mysql_die(); + $row_version = mysql_fetch_array($res_version); + + echo "MySQL $row_version[version] $strRunning " . $cfgServer['host']; + if (!empty($cfgServer['port'])) { + echo ":" . $cfgServer['port']; + } + echo "
    \n"; +} +?> +
    + 0) && isset($mode) && ($mode == "reload")) + { + $result = mysql_query("FLUSH PRIVILEGES"); + if ($result != 0) { + echo "$strMySQLReloaded"; + } else { + echo "$strReloadFailed"; + } + } +?> +
      + 1) +{ + echo "
    • "; + echo '
      '; + echo '
      '; +} + +if($server > 0) { + // Don't display server-related links if $server==0 (no server selected) + if(empty($cfgServer['only_db'])) { + if($cfgServer['adv_auth']) + { + if (empty($cfgServer['port'])) { + $dbh = mysql_connect($cfgServer['host'],$cfgServer['stduser'],$cfgServer['stdpass']); + } else { + $dbh = mysql_connect($cfgServer['host'].":".$cfgServer['port'],$cfgServer['stduser'],$cfgServer['stdpass']); + } + + $rs_usr=mysql_db_query("mysql","select * from user where User=\"".$cfgServer['user']."\"",$dbh); + $result_usr=mysql_fetch_array($rs_usr); + $rs_db=mysql_db_query("mysql","select * from db where User=\"".$cfgServer['user']."\"",$dbh); + + if(mysql_num_rows($rs_db)>0) { + $result_db=mysql_fetch_array($rs_db); + } + + if($result_usr['Create_priv']=='Y') { + $CREATE=TRUE; + } elseif(!empty($result_db) && $result_db['Create_priv']=='Y') { + $CREATE=TRUE; + } else { + $CREATE=FALSE; + } + + if($CREATE) { + ?> +
    • +
      +
      +
      + +
    • "> + + +
    • "> + +
    • "> + +
    • + +
    • + +
    • +
      +
      +
      +
    • "> + +
    • "> + +
    • "> + +
    • + + +
    • +new (but still unofficial) phpMyAdmin-Homepage (sourceforge) +     [ ChangeLog ] +
    • +Official phpMyAdmin-Homepage +
    • +phpMyAdmin + + +
    • +[ ] + +
    + +
    + + diff --git a/select_lang.inc.php3 b/select_lang.inc.php3 new file mode 100755 index 000000000..3d80c395f --- /dev/null +++ b/select_lang.inc.php3 @@ -0,0 +1,152 @@ + array('bg|bulgarian', 'bulgarian-win1251'), + 'ca' => array('ca|catalan', 'catala'), + 'cs' => array('cs|czech', 'czech-win1250'), + 'da' => array('da|danish', 'danish'), + 'de' => array('de([-_][[:alpha:]]{2})?|german', 'german'), + 'en' => array('en([-_][[:alpha:]]{2})?|english', 'english'), + 'es' => array('es([-_][[:alpha:]]{2})?|spanish', 'spanish'), + 'fr' => array('fr([-_][[:alpha:]]{2})?|french', 'french'), + 'it' => array('it|italian', 'italian'), + 'nl' => array('nl([-_][[:alpha:]]{2})?|dutch', 'dutch'), + 'no' => array('no|norwegian', 'norwegian'), + 'pl' => array('pl|polish', 'polish'), + 'pt' => array('pt([-_][[:alpha:]]{2})?|portuguese', 'portuguese'), + 'ru-koi8r' => array('ru|russian', 'russian-koi8'), + 'ru-win1251' => array('ru|russian', 'russian-win1251'), + 'se' => array('se|swedish', 'swedish'), + 'th' => array('th|thai', 'thai'), + 'zh-tw' => array('zh[-_]tw|chinese traditional', 'chinese_big5'), + 'zh' => array('zh|chinese simplified', 'chinese_gb') +); + + +if (!function_exists('pmaLangDetect')) { + +/** + * Analyzes some PHP environment variables to find the most probable language + * that should be used + * + * @param string string to analyze + * @param integer type of the PHP environment variable which value is $str + * + * @global array the list of available translations + * @global string the retained translation keyword + * + * @access private + */ +function pmaLangDetect($str = '', $envType = '') +{ + global $available_languages; + global $lang; + + $notFound = true; + reset($available_languages); + + while ($notFound && list($key, $value) = each($available_languages)) + { + // $envType = 1 for the 'HTTP_ACCEPT_LANGUAGE' environment variable, + // 2 for the 'HTTP_USER_AGENT' one + if (($envType == 1 && eregi('^(' . $value[0] . ')(;q=[0-9]\\.[0-9])?$', $str)) + || ($envType == 2 && eregi('(\(|\[|;[[:space:]])(' . $value[0] . ')(;|\]|\))', $str))) { + $lang = $key; + $notFound = false; + } + } +} // end of the 'pmcLangDetect()' function + +} // end if (!function_exists) + + +/** + * Get some global variables if 'register_globals' is set to 'off' + */ +if (!empty($HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'])) + $HTTP_ACCEPT_LANGUAGE = $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE']; +if (!empty($HTTP_SERVER_VARS['HTTP_USER_AGENT'])) + $HTTP_USER_AGENT = $HTTP_SERVER_VARS['HTTP_USER_AGENT']; +if (!isset($lang)) { + if (isset($HTTP_GET_VARS) && !empty($HTTP_GET_VARS['lang'])) { + $lang = $HTTP_GET_VARS['lang']; + } + if (isset($HTTP_POST_VARS) && !empty($HTTP_POST_VARS['lang'])) { + $lang = $HTTP_POST_VARS['lang']; + } +} + + +/** + * Do the work! + */ +// Lang forced +if (!empty($cfgLang)) { + $lang = $cfgLang; +} + +// If '$lang' is defined, ensure this is a valid translation +if (!empty($lang) && empty($available_languages[$lang])) { + $lang = ''; +} + +// Language is not defined yet : +// 1. try to findout users language by checking it's HTTP_ACCEPT_LANGUAGE +// variable +if (empty($lang) && !empty($HTTP_ACCEPT_LANGUAGE)) { + $accepted = explode(',', $HTTP_ACCEPT_LANGUAGE); + $acceptedCnt = count($accepted); + reset($accepted); + for ($i = 0; $i < $acceptedCnt && empty($lang); $i++) { + pmaLangDetect($accepted[$i], 1); + } +} +// 2. try to findout users language by checking it's HTTP_USER_AGENT variable +if (empty($lang) && !empty($HTTP_USER_AGENT)) { + pmaLangDetect($HTTP_USER_AGENT, 2); +} + +// 3. Didn't catch any valid lang : we use the default settings +if (empty($lang)) { + $lang = $cfgDefaultLang; +} + +// Define the associated filename and load the translation +$lang_file = $lang_path . $available_languages[$lang][1] . '.inc.php3'; +require($lang_file); +?> \ No newline at end of file diff --git a/sql.php3 b/sql.php3 new file mode 100755 index 000000000..28b108bf7 --- /dev/null +++ b/sql.php3 @@ -0,0 +1,111 @@ +"; + ?> +
    + + + + + "> + "> + "> + "> + + +
    + $strInsertNewRow

    "; + } +} //ne drop query +require ("footer.inc.php3"); +?> diff --git a/tbl_addfield.php3 b/tbl_addfield.php3 new file mode 100755 index 000000000..51f503431 --- /dev/null +++ b/tbl_addfield.php3 @@ -0,0 +1,145 @@ + 0) + { + $primary = "ADD PRIMARY KEY ($primary)"; + $sql_query .= "\nALTER TABLE $table $primary"; + $result = mysql_db_query($db, "ALTER TABLE $table $primary") or mysql_die(); + } + + } + + + $index = ''; + + if (isset($field_index)) + { + + for($i=0;$i 0) + { + $index = "ADD INDEX ($index)"; + $sql_query .= "\nALTER TABLE $table $index"; + $result = mysql_db_query($db, "ALTER TABLE $table $index") or mysql_die(); + } + + } + + + $unique = ''; + + if (isset($field_unique)) + { + + for($i=0;$i 0) + { + $unique = "ADD UNIQUE ($unique)"; + $sql_query .= "\nALTER TABLE $table $unique"; + $result = mysql_db_query($db, "ALTER TABLE $table $unique") or mysql_die(); + } + + } + + + $query_keys = $primary.$index.$unique; + $query_keys = ereg_replace(", $", "", $query_keys); + + $message = "$strTable $table $strHasBeenAltered"; + include("tbl_properties.php3"); + exit; +} +else +{ + $action = "tbl_addfield.php3"; + include("tbl_properties.inc.php3"); +} + +require ("footer.inc.php3"); +?> diff --git a/tbl_alter.php3 b/tbl_alter.php3 new file mode 100755 index 000000000..0e96d900f --- /dev/null +++ b/tbl_alter.php3 @@ -0,0 +1,41 @@ + diff --git a/tbl_change.php3 b/tbl_change.php3 new file mode 100755 index 000000000..f70efd59e --- /dev/null +++ b/tbl_change.php3 @@ -0,0 +1,143 @@ + +
    + + + + + +"> + +' . "\n"; +?> + + + + + + + +\n"; + echo "\n"; + switch (ereg_replace("\\(.*", "", $row_table_def['Type'])) + { + case "set": + $type = "set"; + break; + case "enum": + $type = "enum"; + break; + default: + $type = $row_table_def['Type']; + break; + } + echo "\n"; + echo "\n"; + if(isset($row) && isset($row[$field])) + { + $special_chars = htmlspecialchars($row[$field]); + $data = $row[$field]; + } + else + { + $data = $special_chars = ""; + } + + if(strstr($row_table_def["Type"], "text")) + { + echo "\n"; + } + elseif(strstr($row_table_def["Type"], "enum")) + { + $set = str_replace("enum(", "", $row_table_def["Type"]); + $set = ereg_replace("\\)$", "", $set); + $set = explode(",", $set); + + echo ""; + + } + elseif(strstr($row_table_def["Type"], "set")) + { + $set = str_replace("set(", "", $row_table_def["Type"]); + $set = ereg_replace("\)$", "", $set); + + $set = explode(",",$set); + for($vals = explode(",", $data); list($t, $k) = each($vals);) + $vset[$k] = 1; + $size = min(4, count($set)); + echo ""; + } + else + { + echo ""; + } + echo "\n"; +} + +echo "
    $field$type"; + echo "
    "; + +?> +

    + +

    + + diff --git a/tbl_copy.php3 b/tbl_copy.php3 new file mode 100755 index 000000000..e146534f6 --- /dev/null +++ b/tbl_copy.php3 @@ -0,0 +1,36 @@ + diff --git a/tbl_create.php3 b/tbl_create.php3 new file mode 100755 index 000000000..1b273d917 --- /dev/null +++ b/tbl_create.php3 @@ -0,0 +1,100 @@ + 0) + $primary = ", PRIMARY KEY ($primary)"; + + if(!isset($index)) + $index = ""; + + if(!isset($field_index)) + $field_index = array(); + + for($i=0;$i 0) + $index = ", INDEX ($index)"; + if(!isset($unique)) + $unique = ""; + + if(!isset($field_unique)) + $field_unique = array(); + + for($i=0;$i 0) + $unique = ", UNIQUE ($unique)"; + $query_keys = $primary.$index.$unique; + $query_keys = ereg_replace(", $", "", $query_keys); + + // echo "$query $query_keys"; + $sql_query = "CREATE TABLE ".$table." (".$query." ".$query_keys.")"; + //BEGIN - Table Type - 2 May 2001 - Robbat2 + if(!empty($tbl_type)) + $sql_query .= " TYPE = $tbl_type"; + //END - Table Type - 2 May 2001 - Robbat2 + if(MYSQL_MAJOR_VERSION == "3.23" && !empty($comment)) + $sql_query .= " comment = '$comment'"; + $result = mysql_db_query($db, $sql_query) or mysql_die(); + $message = "$strTable $table $strHasBeenCreated"; + include("tbl_properties.php3"); + exit; +} +else +{ + $action = "tbl_create.php3"; + include("tbl_properties.inc.php3"); +} + +require ("footer.inc.php3"); +?> diff --git a/tbl_dump.php3 b/tbl_dump.php3 new file mode 100755 index 000000000..e947f75d1 --- /dev/null +++ b/tbl_dump.php3 @@ -0,0 +1,102 @@ +
    \n";
    +}
    +else
    +{
    +    include("lib.inc.php3");
    +    $ext = "sql";
    +    if($what == "csv")
    +        $ext = "csv";
    +    header("Content-disposition: filename=$table.$ext");
    +	header("Content-type: application/octetstream");
    +	header("Pragma: no-cache");
    +	header("Expires: 0");
    +	
    +    // doing some DOS-CRLF magic...
    +    
    +    if (!isset($HTTP_USER_AGENT))
    +    {
    +    	if (!empty($HTTP_SERVER_VARS) && isset($HTTP_SERVER_VARS['HTTP_USER_AGENT']))
    +    	    $HTTP_USER_AGENT = $HTTP_SERVER_VARS['HTTP_USER_AGENT'];
    +    	else 
    +    	    $HTTP_USER_AGENT = getenv('HTTP_USER_AGENT');
    +    }
    +    $client = $HTTP_USER_AGENT;
    +    //$client = getenv("HTTP_USER_AGENT");
    +     
    +
    +	if(ereg('[^(]*\((.*)\)[^)]*',$client,$regs)) 
    +    {
    +	    $os = $regs[1];
    +        // this looks better under WinX
    +        if (eregi("Win",$os)) 
    +            $crlf="\r\n";
    +	}
    +}
    +
    +function my_handler($sql_insert)
    +{
    +    global $crlf, $asfile;
    +    if(empty($asfile))
    +        echo htmlspecialchars("$sql_insert;$crlf");
    +    else
    +        echo "$sql_insert;$crlf";
    + }
    + 
    +function my_csvhandler($sql_insert)
    +{
    +    global $crlf, $asfile;
    +    if(empty($asfile))
    +        echo htmlspecialchars("$sql_insert;$crlf");
    +    else
    +        echo "$sql_insert;$crlf";
    + }
    +
    +if($what != "csv") 
    +{
    +    print "# phpMyAdmin MySQL-Dump$crlf";
    +    print "# http://phpwizard.net/phpMyAdmin/$crlf";
    +    print "#$crlf";
    +    print "# $strHost: " . $cfgServer['host'];
    +    if(!empty($cfgServer['port'])) 
    +        print ":" . $cfgServer['port'];
    +    print " $strDatabase: $db$crlf";
    +    print "# --------------------------------------------------------$crlf";
    +    print "$crlf#$crlf";
    +    print "# $strTableStructure '$table'$crlf";
    +    print "#$crlf$crlf";
    +
    +    print get_table_def($db, $table, $crlf).";$crlf";
    +
    +	if($what == "data")
    +    {
    +	    print "$crlf#$crlf";
    +        print "# $strDumpingData '$table'$crlf"; 
    +        print "#$crlf$crlf";
    +
    +        get_table_content($db, $table, "my_handler");
    +    }
    +} 
    +else 
    +{ // $what != "csv"
    +  	get_table_csv($db, $table, $separator, "my_csvhandler");
    +}
    +
    +if(empty($asfile))
    +{
    +    print "
    \n"; + include ("footer.inc.php3"); +} +?> diff --git a/tbl_printview.php3 b/tbl_printview.php3 new file mode 100755 index 000000000..bfdb3450b --- /dev/null +++ b/tbl_printview.php3 @@ -0,0 +1,139 @@ + +> + + + + + + + + + + + + + + + + + + + +
      +   + +     
    +0) +{ + ?> +
    + > + + + + + + "; + if($row["Key_name"] == "PRIMARY") + { + $sql_query = urlencode("ALTER TABLE ".$table." DROP PRIMARY KEY"); + $zero_rows = urlencode($strPrimaryKey." ".$strHasBeenDropped); + } + else + { + $sql_query = urlencode("ALTER TABLE ".$table." DROP INDEX ".$row["Key_name"]); + $zero_rows = urlencode($strIndex." ".$row["Key_name"]." ".$strHasBeenDropped); + } + + ?> + + + + "; + } + print "
    \n"; +} + +require ("footer.inc.php3"); +?> diff --git a/tbl_properties.inc.php3 b/tbl_properties.inc.php3 new file mode 100755 index 000000000..7623af675 --- /dev/null +++ b/tbl_properties.inc.php3 @@ -0,0 +1,219 @@ + + +
    + + + + + + + \n"; +} + +?> +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + "> + "> + "> + + > + + + > + + + > +
    +"; + ?> + + + + +

    + +

    +
    +
    diff --git a/tbl_properties.php3 b/tbl_properties.php3 new file mode 100755 index 000000000..16b3e4d8c --- /dev/null +++ b/tbl_properties.php3 @@ -0,0 +1,295 @@ + +
    + + + + +
    "; + + //BEGIN - Table Type - 2 May 2001 - Robbat2 + if(isset($submittype)) + $result = mysql_db_query($db, "ALTER TABLE $table TYPE=$tbl_type") or mysql_die(); + $result = mysql_db_query($db, "SHOW TABLE STATUS LIKE '$table'") or mysql_die(); + $row = mysql_fetch_array($result); + $tbl_type=strtoupper($row['Type']); + ?> +
    + + + + + + +
    + +> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      +   + +     ">&zero_rows=">&zero_rows=">&zero_rows=">&zero_rows=">
    +0) +{ + ?> +
    + > + + + + + + + "; + if($row["Key_name"] == "PRIMARY") + { + $sql_query = urlencode("ALTER TABLE ".$table." DROP PRIMARY KEY"); + $zero_rows = urlencode($strPrimaryKey." ".$strHasBeenDropped); + } + else + { + $sql_query = urlencode("ALTER TABLE ".$table." DROP INDEX ".$row["Key_name"]); + $zero_rows = urlencode($strIndex." ".$row["Key_name"]." ".$strHasBeenDropped); + } + + ?> + + + + + "; + } + print "
    $strDrop";?>
    \n"; + print show_docu("manual_Performance.html#MySQL_indexes"); +} + +?> +
    +
      +
    • +
    • +
      + + + + + + +:
      + + +
      +
    • &pos=0&"> +
    • +
    • +
    • + + + +: +\n"; +echo ' \n"; +echo ' \n"; +while(list ($junk,$fieldname) = each($aryFields)) { + echo ' \n"; +} +echo " \n"; +?> + +
      +
    • +

    • + + + + + + + + + + + + + + + + + + +
      + + + + + +
      + + + +
      + + +
      + + + +
      + + + + + +
      + +
    • :
      + + + + + + +
      +

    • + + + + + +
      + + + +
      + +
    +
    + diff --git a/tbl_qbe.php3 b/tbl_qbe.php3 new file mode 100755 index 000000000..f85e68de2 --- /dev/null +++ b/tbl_qbe.php3 @@ -0,0 +1,521 @@ +\n"; +echo "\n"; + +### Field columns +echo "\n"; +$z=0; +for($x = 0; $x < $col; $x++) +{ + if(isset($InsCol[$x]) && $InsCol[$x]== "on") + { + echo "\n"; + $z++; + } + + if(isset($DelCol[$x]) && $DelCol[$x]== "on") + continue; + echo "\n"; +} +echo "\n"; + +### Sort columns +echo "\n"; +$z = 0; +for($x = 0; $x < $col; $x++) +{ + if(isset($InsCol[$x]) && $InsCol[$x]== "on") + { + echo "\n"; + $z++; + } + if(isset($DelCol[$x]) && $DelCol[$x]== "on") + continue; + echo "\n"; + $z++; +} + +### Show columns +echo "\n"; +$z=0; +for($x = 0; $x < $col; $x++) +{ + if(isset($InsCol[$x]) && $InsCol[$x]== "on") + { + echo "\n"; + $z++; + } + if(isset($DelCol[$x]) && $DelCol[$x]== "on") + continue; + $sel = ""; + if(isset($Show[$x])) + { + $sel = "checked"; + $curShow[$z] = $Show[$x]; + } + echo "\n"; + $z++; +} + +### Criteria columns +echo "\n"; +$z=0; +for($x = 0; $x < $col; $x++) +{ + if(isset($InsCol[$x]) && $InsCol[$x]== "on") + { + echo "\n"; + $z++; + } + if(isset($DelCol[$x]) && $DelCol[$x]== "on") + continue; + if(get_magic_quotes_gpc()) { + $stripped_Criteria = stripslashes($Criteria[$x]); + } else { + $stripped_Criteria = $Criteria[$x]; + } + echo "\n"; + $curCriteria[$z] = $Criteria[$x]; + $z++; +} + +### And/Or columns and rows +$w=0; +for($y = 0; $y <= $row; $y++) +{ + $bgcolor = $cfgBgcolorOne; + if($y % 2 == 0) + $bgcolor = $cfgBgcolorTwo; + if($InsRow[$y]== "on") + { + echo "\n"; + $z=0; + for ($x = 0; $x < $col; $x++) + { + if($InsCol[$x]== "on") + { + $or = "Or".$w; + echo "\n"; + $z++; + } + if($DelCol[$x]== "on") + continue; + $or = "Or".$w; + echo "\n"; + $z++; + } + $w++; + } + if($DelRow[$y]== "on") + continue; + echo "\n"; + $z=0; + for ($x = 0; $x < $col; $x++) + { + if(isset($InsCol[$x]) && $InsCol[$x]== "on") + { + $or = "Or".$w; + echo "\n"; + $z++; + } + if(isset($DelCol[$x]) && $DelCol[$x]== "on") + continue; + $or = "Or".$y; + if(!isset(${$or})) + ${$or} = ""; + if(get_magic_quotes_gpc()) { + $stripped_or = stripslashes(${$or}[$x]); + } else { + $stripped_or = ${$or}[$x]; + } + echo "\n"; + ${"cur".$or}[$z] = ${$or}[$x]; + $z++; + } + $w++; +} + +### Modify columns +echo "\n"; +$z=0; +for($x = 0; $x < $col; $x++) +{ + if(isset($InsCol[$x]) && $InsCol[$x]== "on") + { + $curAndOrCol[$z]=$AndOrCol[$y]; + if($AndOrCol[$z] == 'or') + { + $chk[ 'or'] = "checked"; + $chk[ 'and'] = ""; + } + else + { + $chk[ 'and'] = "checked"; + $chk[ 'or'] = ""; + } + echo "\n"; + $z++; + } + if(isset($DelCol[$x]) && $DelCol[$x]== "on") + continue; + $curAndOrCol[$z]=$AndOrCol[$y]; + if(isset($AndOrCol[$z]) && $AndOrCol[$z] == 'or') + { + $chk[ 'or'] = "checked"; + $chk[ 'and'] = ""; + } + else + { + $chk[ 'and'] = "checked"; + $chk[ 'or'] = ""; + } + echo "\n"; + $z++; +} +echo "
    $strField:\n"; + echo "\n"; + echo "
    Sort:\n"; + echo "\n"; + echo "
    Show:
    Criteria:"; + echo ""; + echo "
    "; + $chk[ 'or'] = "checked"; $chk[ 'and'] = ""; + # Row controls + echo " + + + + + + + +
    Ins:And:
    Del:Or:
    "; + $curAndOrRow[$w]=$AndOrRow[$y]; + if($AndOrRow[$y] == 'and') + { + $chk[ 'and'] = "checked"; + $chk[ 'or'] = ""; + } + else + { + $chk[ 'or'] = "checked"; + $chk[ 'and'] = ""; + } + + # Row controls + echo " + + + + + + + +
    Ins:And:
    Del:Or:
    "; + echo ""; + echo "
    Modify: + Or: + + And: + +
    Ins: + +   Del: + +
    + Or: + + And: + +
    Ins: + +   Del: + +
    \n"; + +### Other controls +echo " + +
    + + +
    Use Tables:
    +
    \n"; +$w--; +echo "\n"; +echo "\n"; +echo "\n"; + +echo "Add/Delete Criteria Row: +
    "; + +echo "Add/Delete Field Columns: +
    "; +echo "\n"; +echo "\n"; +echo "\n"; +echo ""; + +### Generate a query + +echo "
    \n"; +echo "\n"; +echo "\n"; +echo "\n"; +echo "\n"; +echo ""; +echo "
    "; +echo " SQL query on database $db:
    "; +echo "
    "; + +?> + + diff --git a/tbl_rename.php3 b/tbl_rename.php3 new file mode 100755 index 000000000..194b5f30a --- /dev/null +++ b/tbl_rename.php3 @@ -0,0 +1,17 @@ + diff --git a/tbl_replace.php3 b/tbl_replace.php3 new file mode 100755 index 000000000..39bf881a5 --- /dev/null +++ b/tbl_replace.php3 @@ -0,0 +1,108 @@ + diff --git a/tbl_select.php3 b/tbl_select.php3 new file mode 100755 index 000000000..40dffbabc --- /dev/null +++ b/tbl_select.php3 @@ -0,0 +1,118 @@ + +
    + + + + +
    +
    +
    +
    • > + +

    • +
      + +
      +

    • + + + + + + + "; + echo ""; + echo ""; + echo "\n"; + echo "\n"; + echo "\n"; + echo ""; + } + echo "
      $field$type

      "; +?> + + +
    + + 0) $sql_query .= ",$param[$i]"; + $i++; + } + $sql_query .= " from $table"; + if ($where != "") { + $sql_query .= " where $where"; + } else { + $sql_query .= " where 1"; + for ($i=0;$i") $cmp=""; + } + $sql_query .= " and $names[$i] $cmp $quot$fields[$i]$quot"; + } + } + } + Header("Location:sql.php3?sql_query=".urlencode($sql_query)."&goto=db_details.php3&server=$server&lang=$lang&db=$db&table=$table&pos=0&sessionMaxRows=$sessionMaxRows"); + } + +?>