Initial revision
This commit is contained in:
commit
7ff8fedebd
23
CREDITS
Normal file
23
CREDITS
Normal file
@ -0,0 +1,23 @@
|
||||
$Id$
|
||||
|
||||
phpMyAdmin - Credits, in chronological order
|
||||
============================================
|
||||
|
||||
CREDITS, in chronological order
|
||||
-------------------------------
|
||||
|
||||
[tr] - Tobias Ratschiller <tobias@phpwizard.net>
|
||||
* creator of the phpmyadmin project
|
||||
* maintainer from 1998 to summer 2000
|
||||
|
||||
[om] - Olivier Müller <om@omnis.ch>
|
||||
* started sourceforge project
|
||||
* sync'ed different existing CVS trees with
|
||||
new features and bugfixes
|
||||
|
||||
[lc] - Loïc Chapeaux <lolo@phpHeaven.net>
|
||||
[mg] - Mirko Giese <mgiese@users.sourceforge.net>
|
||||
[xx] - ... (to be completed)
|
||||
|
||||
|
||||
|
||||
339
ChangeLog
Executable file
339
ChangeLog
Executable file
@ -0,0 +1,339 @@
|
||||
----------------------
|
||||
phpMyAdmin - Changelog
|
||||
----------------------
|
||||
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2001-05-02 Robin Johnson <robbat2@users.sourceforge.net>
|
||||
* 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 <lolo@phpheaven.net>
|
||||
* 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 <om@omnis.ch>
|
||||
* 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: <? -> <?php (patch from robbat2)
|
||||
* added lang file for Swedish. Tack till David Nordenberg.
|
||||
|
||||
2001-04-28 Olivier Müller <om@omnis.ch>
|
||||
* 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 <om@omnis.ch>
|
||||
|
||||
* docs and code cleanup
|
||||
* announced the http://phpmyadmin.sourceforge.net link
|
||||
on the phpmyadmin forum.
|
||||
|
||||
2001-04-01 Olivier Müller <om@omnis.ch>
|
||||
|
||||
* moved the language files to lang/
|
||||
* now using standard ChangeLog file format
|
||||
|
||||
2001-03-31 Olivier Müller <om@omnis.ch>
|
||||
|
||||
* 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 <textarea> for
|
||||
*text fields.
|
||||
+ Changed $max_inputsize to a CSS value.
|
||||
+ Changed the input field for the sql-query to
|
||||
<textarea>.
|
||||
+ Changed some variables references to prevent warnings.
|
||||
+ Moved "LOAD DATA INFILE" from db_details.php3 to
|
||||
tbl_properties.php3.
|
||||
+ Added htmlspecialchars() to the output of
|
||||
field-contents.
|
||||
+ Due to the changed behavior of SHOW STATUS in MySQL
|
||||
3.22, I've removed this information from the homepage
|
||||
and made seperate links to MySQL internal information.
|
||||
+ Bugfix: when browsing a table, "insert new row" was
|
||||
not visbible.
|
||||
+ Added ORDER BY fieldname to display_table().
|
||||
+ Added the possiblity to rename a table.
|
||||
+ Added the possiblity to copy a table (structure only
|
||||
or structure and data).
|
||||
+ Changed the table-dump to a more memory-efficient way.
|
||||
+ Added $border and $th_bgcolor, to offer the user more
|
||||
control over the look and feel.
|
||||
+ Added support for MySQL-functions.
|
||||
+ Added some information for DEVELOPERS.
|
||||
+ Added stripslashes() to all output of field-types.
|
||||
+ Added a small FAQ to Documentation.html.
|
||||
+ New language: Russian
|
||||
v 1.3.1 - 12/27/1998 + Added complete mulit-language support by outsourcing
|
||||
all strings to a separate file.
|
||||
+ Bugfix: in tbl_addfield.php3 a stripslashes() was
|
||||
missing.
|
||||
+ Changed *.inc to *.inc.php3 to avoid security-
|
||||
problems when .inc-files were not parsed by PHP3.
|
||||
+ New languages: German, French
|
||||
v 1.3.0 - 12/16/1998 + Changed display_table() to show the number of found
|
||||
records.
|
||||
+ Changed display_table() to align=right for numeric
|
||||
fields.
|
||||
+ Changed all PHP3 opening tags to the XML-compliant
|
||||
version.
|
||||
+ Added a "query by example" to tbl_select.php3.
|
||||
+ Added the possibility to specify the length of input-
|
||||
fields when inserting to a table.
|
||||
+ Changed the input-fields to have a maxlength
|
||||
equivalent to the field's size.
|
||||
+ Bugfix: Corrected a typo in tbl_create.php3
|
||||
+ Added a checkbox to the load-data-infile function to
|
||||
allow existing data to be overwritten.
|
||||
+ Added authentification: now you can log with any
|
||||
valid MySQL- user (through HTTP-auth).
|
||||
+ Added the possibility to show only one database
|
||||
(useful when you want to let users adminstrate one own
|
||||
database).
|
||||
+ Added an "Empty" command to tbl_properties.php3.
|
||||
+ Added support for UNIQUE keys when creating a table
|
||||
or adding a field.
|
||||
+ Bugfix: the dump of a table didn't show the correct
|
||||
table-name.
|
||||
+ Bugfix: Inserting a CVS-file with single-quote
|
||||
enclosed fields didn't work.
|
||||
v 1.2.0 - 11/29/1998 + Bugfix: Delete didn't work correctly when a table's
|
||||
primary key spanned multiple colums.
|
||||
+ Changed the texfile-import funtion to import text-files
|
||||
directly from the local file-system via file-upload.
|
||||
+ Added a confirmation when a custom SQL-query was
|
||||
completed succesfully.
|
||||
+ Changed the background image so that the page is
|
||||
readable even with crappy browsers (like IE 4.x or
|
||||
Navigator 4.5/Mac) that don't interpret style sheets
|
||||
correctly.
|
||||
+ Changed tbl_addfield.php3 to allow specifying a
|
||||
primary key or an index when adding a field.
|
||||
+ Added the possibility to create a dump from a table.
|
||||
(port from mysqldump.c)
|
||||
+ Added the missing TODO file.
|
||||
v 1.1.2 - 11/18/1998: + Bugfix: Edit or delete didn't work with a alpha-
|
||||
numerical primary key (' was missing).
|
||||
+ Bugfix: Creating a table with both a primary key
|
||||
and an index didn't work.
|
||||
+ Added the possiblity to browse only selected
|
||||
fields from a table.
|
||||
v 1.1.1 - 11/05/1998: + Bugfix: After a custom SQL-statement the edit-
|
||||
function didn't work.
|
||||
+ Added the possibility to import data from ascii-
|
||||
textfiles.
|
||||
+ Added the possibility to limit the displayed
|
||||
rows to $max_rows.
|
||||
+ Expanded the drop-confirmation to DELETE FROM.
|
||||
v 1.1.0 - 11/03/1998: + Expanded the drop-confirmation to DROP FIELD.
|
||||
+ You can now turn off the confirmations.
|
||||
+ It's now possible to specify the primary key
|
||||
and an index when creating a table.
|
||||
+ Made the background-image larger.
|
||||
+ Bugfix: in tbl_properties.inc, if one primary
|
||||
key was found, it was displayed twice.
|
||||
+ Bugfix: On DROP DATABASE, a wrong confirmation
|
||||
was displayed.
|
||||
+ Added a "nofollow" directive for robots in
|
||||
header.inc.
|
||||
+ Added more documentation (due to several
|
||||
requests).
|
||||
+ Made seperate INSTALL, ChangeLog and TODO
|
||||
files.
|
||||
v 1.0.1 - 10/26/1998: + Added a check when dropping a table or database.
|
||||
+ Bugfix: when a field contained a " it wouldn't
|
||||
be displayed correctly in tbl_change.
|
||||
v 0.9.0 - 09/09/1998: + First internally used version
|
||||
39
DEVELOPERS
Executable file
39
DEVELOPERS
Executable file
@ -0,0 +1,39 @@
|
||||
$Id$
|
||||
|
||||
phpMyAdmin - Developer's Information
|
||||
|
||||
phpMyAdmin is Open Source, so you're invited to contribute to it.
|
||||
Many great features have been written by other people and you too
|
||||
can help to make phpMyAdmin a useful tool.
|
||||
|
||||
If you're planning to contribute source, please read the following
|
||||
information:
|
||||
|
||||
+ All files include header.inc.php3 (layout), lib.inc.php3 (common functions)
|
||||
and config.inc.php3. All configuration data belongs in config.inc.php3.
|
||||
Please keep it free from other code.
|
||||
Commonly used functions should be added to lib.inc.php3.
|
||||
+ Obviously, you're free to use whatever coding style you want. But please
|
||||
try to keep your code as simple as possible: beginners are using phpMyAdmin
|
||||
as an example application.
|
||||
+ Please try to keep up the file-naming conventions. Table-related stuff
|
||||
goes to tbl_*.php3, db-related code to db_*.php3 and so on.
|
||||
+ Please don't use verbose strings in your code, instead add the string
|
||||
(at least) to english.inc.php3 and print() it out.
|
||||
+ If you want to be really helpful, write an entry for the ChangeLog.
|
||||
|
||||
IMPORTANT:
|
||||
With 1.4.1, development has switched to CVS.
|
||||
The following method is preferred for new developers:
|
||||
- fetch the current CVS tree over anonymous CVS:
|
||||
cvs -d :pserver:anon@www.htmlwizard.net:/usr/local/cvsroot login
|
||||
[Password: phpMyAdmin]
|
||||
cvs -d :pserver:anon@www.htmlwizard.net:/usr/local/cvsroot checkout phpMyAdmin
|
||||
[This will create a new sub-directory named phpMyAdmin]
|
||||
- add your stuff
|
||||
- send me the file you've modified, or send me a diff.
|
||||
I've also set up CVSWEB on http://www.htmlwizard.net/cgi-bin/cvsweb.
|
||||
Write access to the CVS tree is granted only to developers who have already
|
||||
contributed something useful to phpMyAdmin. If you're interested in that,
|
||||
please contact me.
|
||||
|
||||
201
Documentation.html
Executable file
201
Documentation.html
Executable file
@ -0,0 +1,201 @@
|
||||
<html>
|
||||
<!-- $Id$ -->
|
||||
<head>
|
||||
<title>phpMyAdmin - Documentation</title>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
.navigation
|
||||
{
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
text-decoration: none;
|
||||
font-size: 10pt;
|
||||
left: 10px;
|
||||
position: relative;
|
||||
color:#000099; font-weight: normal ; text-indent:10pt}
|
||||
.navigation:hover
|
||||
{
|
||||
background-color: #99CCFF; font-weight: bolder}
|
||||
h1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: x-large; font-weight:bold; color: #000066}
|
||||
.simple { font-family: Arial, Helvetica, sans-serif; font-size: smaller; color: #000000}
|
||||
body { font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
|
||||
td { font-family: Arial, Helvetica, sans-serif; font-size: 10pt }
|
||||
h2 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:large; font-weight:bold; color: #000066 }
|
||||
-->
|
||||
</style></head>
|
||||
|
||||
<body bgcolor="#FFFFFF">
|
||||
<h1>phpMyAdmin 2.x.x- Documentation</h1>
|
||||
<p><a href="http://www.htmlwizard.net/phpMyAdmin/" class="navigation">http://www.htmlwizard.net/phpMyAdmin/</a><br>
|
||||
<a href="mailto:tobias@dnet.it" class="navigation">Tobias Ratschiller</a></p>
|
||||
<p>Version history: <a href="ChangeLog">ChangeLog</a><br>
|
||||
Installation instructions: <a href="INSTALL">INSTALL</a><br>
|
||||
General notes: <a href="README">README</a></p>
|
||||
<h2>Configuration</h2>
|
||||
<p>All configurable data is placed in config.inc.php3.</p>
|
||||
<p><b>$cfgServers</b> array<br>
|
||||
Since version 1.4.2, phpMyAdmin supports the adminstration of multiple MySQL-server.
|
||||
Therefore, a $cfgServers-array has been added which contains the login information
|
||||
for the different servers. $cfgServers[1]['host'] contains the hostname of the
|
||||
first server, $cfgServers[2]['host'] the hostname of the second server, etc.
|
||||
If you have only one server to administer, simply leave free the hostname of
|
||||
the other $cfgServer-entries.
|
||||
<p><b>$cfgServers[n]['port']</b> string<br>
|
||||
The port-number of your n-th MySQL-server. Default is 3300 (leave blank).</p>
|
||||
<p><b>$cfgServers[n]['host']</b> string<br>
|
||||
The hostname of your n-th MySQL-server. E.g. localhost.</p>
|
||||
<p><b>$cfgServers[n]['adv_auth']</b> boolean<br>
|
||||
Whether basic or advanced authentication should be used for this server. Basic
|
||||
authentication ($adv_auth = false) is the plain old way: username and password
|
||||
are stored in config.inc.php3. Advanced authentication $adv_auth = true) as
|
||||
introduced in 1.3.0 allows you to log in as any valid MySQL user via HTTP-Auth.
|
||||
All you have to provide in config.inc is a standard user which can connect to
|
||||
MySQL and read the mysql user/db table (see $cfgServers[n]['stduser']).<br>
|
||||
Using advanced authentication is recommended:</p>
|
||||
<ul>
|
||||
<li> when phpMyAdmin is running in a multi-user environment where people have
|
||||
shell-access that you don't want to know the username/password for MySQL.</li>
|
||||
<li>when you want to give users access to their own database and don't want
|
||||
them to play around with others.</li>
|
||||
</ul>
|
||||
<p>Advanced authentication is secure as the standard user needs just read-only-access
|
||||
to the mysql database. MySQL passwords cannot be decrypted easily, so there's
|
||||
no chance for a normal user to look at other users' plaintext passwords.</p>
|
||||
<p><b>$cfgServers[n]['user']</b> string<br>
|
||||
<b>$cfgServers[n]['password']</b> string<br>
|
||||
The user/password-pair which phpMyAdmin will use to connect to this MySQL-server
|
||||
when using basic authentification. Not needed when using advanced authentification.</p>
|
||||
<p><b>$cfgServers[n]['stduser'] </b>string<br>
|
||||
<b>$cfgServers[n]['stdpass']</b> string<br>
|
||||
A user/pasword pair used to verify the real user/password pair when using advanced
|
||||
authentification. This user must be able to connect to MySQL and read the mysql
|
||||
user table. Not needed when using basic authentification.</p>
|
||||
<p><b>$cfgServers[n]['only_db']</b> string<br>
|
||||
If set to a database name, only this database will be shown to the user.</p>
|
||||
<p><b>$cfgServers[n]['verbose']</b> string<br>
|
||||
Only useful when using phpMyAdmin with multiple server entries. If set, this
|
||||
string will be displayed instead of the hostname in the pulldown menu on the
|
||||
main page. This can be useful if you want to show only certain databases on
|
||||
your system, for example.<br>
|
||||
</p>
|
||||
<p><b>$cfgManualBase</b> string<br>
|
||||
If set to an URL which points to the MySQL documentation, appropriate help links
|
||||
are generated.<br>
|
||||
</p>
|
||||
<p><b>$cfgPersistentConnections </b>boolean<br>
|
||||
Whether persistent connections should be used or not (mysql_connect or mysql_pconnect).</p>
|
||||
<p><b>$cfgConfirm </b>boolean<br>
|
||||
Whether a warning ("Are your really sure..") should be displayed when
|
||||
you're about to loose data.</p>
|
||||
<p><b>$cfgMaxRows </b>integer<br>
|
||||
Number of rows displayed when browsing a resultset. If the resultset contains
|
||||
more rows, Previous/Next links will be shown.</p>
|
||||
<p><b>$cfgMaxInputsize </b>integer<br>
|
||||
Size of the edit-field when adding a new record to a table.</p>
|
||||
<p><b>$cfgBorder </b>integer<br>
|
||||
The size of a table's border.</p>
|
||||
<p><b>$cfgThBgcolor </b>string [HTML color]<br>
|
||||
The color (HTML) used for table headers.</p>
|
||||
<p><b>$cfgBgcolorOne </b>string [HTML color]<br>
|
||||
The color (HTML) #1 for table rows.</p>
|
||||
<p><b>$cfgBgcolorTwo </b>string [HTML color]<br>
|
||||
The color (HTML) #2 for table rows.</p>
|
||||
<p><b>$cfgOrder </b>string ["DESC"|"ASC"]<br>
|
||||
Defines whether fields are displayed in ascending ("ASC") order or in descending
|
||||
("DESC") order when you click on the field-name.
|
||||
<p><b>$cfgShowBlob </b>boolean<br>
|
||||
Defines whether BLOB fields are shown when browsing a table's content or not.
|
||||
<p><b>$cfgShowSQL </b>boolean<br>
|
||||
Defines whether sql-queries generated by phpMyAdmin should be displayed or not.
|
||||
<p><b>$cfgColumnTypes </b>array<br>
|
||||
All possible types of a MySQL column. In most cases you don't need to edit this.</p>
|
||||
<p><b>$cfgFunctions </b>array<br>
|
||||
A list of functions MySQL supports. In most cases you don't need to edit this.</p>
|
||||
<p><b>$cfgAttributeTypes </b>array<br>
|
||||
Possible attributes for fields. In most cases you don't need to edit this.</p>
|
||||
|
||||
<h2>FAQ - Frequently Asked Questions</h2>
|
||||
<p><b>I can't insert new rows into a table - MySQL brings up a SQL-error.<br>
|
||||
</b>
|
||||
Examine the SQL error with care. I've found that many programmers specifying a wrong field-type. Common errors include:</p>
|
||||
<ul>
|
||||
<li>Using VARCHAR without a size argument
|
||||
<li>Using TEXT or BLOB with a size argument </li>
|
||||
</ul>
|
||||
<p>
|
||||
Also, look at the syntax chapter in the MySQL manual to confirm that your syntax is correct.</p>
|
||||
<p><b>phpMyAdmin can't connect to MySQL. What's wrong?<br>
|
||||
</b>
|
||||
Either there is an error with your PHP setup or your username/password is
|
||||
wrong. Try to make a small script which uses mysql_connect and see if it works.
|
||||
If it doesn't, it may be you haven't even compiled MySQL support into PHP.</p>
|
||||
<p><b>I cannot edit the content of a table, even if the README says this is a
|
||||
feature of phpMyAdmin.<br>
|
||||
</b>phpMyAdmin allows only editing of a table's content if the table contains
|
||||
a primary or unique key.</p>
|
||||
<p><b>phpMyAdmin always gives "Access denied" when using advanced authentification.<br>
|
||||
</b>This could happen for some reasons:
|
||||
<ul>
|
||||
<li>$stduser/$stdpassword is wrong. Try to turn off $adv_auth and use this username and password to connect to MySQL.
|
||||
<li>The username/password your specify in the login-dialog is wrong. Try the same as above and see if it works.
|
||||
|
||||
<li>You have already setup a security mechanism for the phpMyAdmin-directory,
|
||||
eg. a .htaccess file. This would interfere with phpMyAdmin's authentification,
|
||||
so remove it.
|
||||
</ul>
|
||||
<p><b>I would like to help out with the development of phpMyAdmin. How should I proceed?<br>
|
||||
</b>
|
||||
The following method is preferred for new developers:
|
||||
<ul>
|
||||
<li>fetch the current CVS tree over anonymous CVS:<br>
|
||||
cvs -d :pserver:anon@www.htmlwizard.net:/usr/local/cvsroot login<br>
|
||||
[Password: phpMyAdmin]
|
||||
cvs -d :pserver:anon@www.htmlwizard.net:/usr/local/cvsroot checkout phpMyAdmin<br>
|
||||
[This will create a new sub-directory named phpMyAdmin]
|
||||
<li>add your stuff
|
||||
<li>send me the modified files (tar'ed and gzip'ed)
|
||||
Write access to the CVS tree is granted only to experienced developers who have already contributed something useful to phpMyAdmin.<br>
|
||||
Also, have a look at the file DEVELOPERS.
|
||||
</ul>
|
||||
<p><b>What's the preferred way of making phpMyAdmin secure against evil access?<br>
|
||||
</b> This depends on your system. If you're running a server which cannot be
|
||||
accessed by other people, it's sufficient to use the directory protection bundled
|
||||
with your webserver (with Apache you can use .htaccess files, for example).
|
||||
If other people have telnet access to your server, it's not a good idea to store
|
||||
the MySQL password in clear text in your config.inc.php3 file. You should use
|
||||
phpMyAdmin's advanced authentification feature in this case.
|
||||
<p><b>How can I insert a null value into my table?<br>
|
||||
</b> Enter "null", without the quotes, as the field's value. This
|
||||
is especially useful for Timestamp ot AutoIncrement fields.
|
||||
<p><b>I'm an ISP. Can I setup one central copy of phpMyAdmin or do I need to install
|
||||
it for each customer?<br>
|
||||
</b> Since version 2.0.3, you can setup a central copy of phpMyAdmin for all
|
||||
your users. The development of this feature was kindly sponsored by NetCologne
|
||||
GmbH.<br>
|
||||
This requires a properly setup MySQL user management and phpMyAdmin's advanced
|
||||
authentication. phpMyAdmin performs these steps, when authenticating a user:
|
||||
<ol>
|
||||
<li>Select all entries from the mysql.user table where the username/password
|
||||
matches the challenging user. If no rows are returned, the authentication
|
||||
has failed. Otherwise, phpMyAdmin continues with step 2.</li>
|
||||
<li>If the user's global Select_Priv is "N" (ie the user is not allowed
|
||||
to access <i>all</i> databases), phpMyAdmin searches the mysql.db table for
|
||||
entries with Select_Priv = "Y" belonging to the user. If no entries
|
||||
are found, the authentication has failed. Otherwise, phpMyAdmin shows all
|
||||
databases the user is allowed to view.<br>
|
||||
If the user's global Select_Priv is "Y", all databases in the system
|
||||
are shown.<br>
|
||||
</li>
|
||||
</ol>
|
||||
<p>This means that you need to add a user to the mysql database as following:<br>
|
||||
INSERT INTO user (Host, User, Password, Select_priv, Insert_priv, Update_priv,
|
||||
Delete_priv, Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv,
|
||||
File_priv, Grant_priv, References_priv, Index_priv, Alter_priv) VALUES ('localhost',
|
||||
'foo', PASSWORD('bar'), 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N',
|
||||
'N', 'N', 'N') <br>
|
||||
INSERT INTO db (Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv,
|
||||
Create_priv, Drop_priv, Grant_priv, References_priv, Index_priv, Alter_priv)
|
||||
VALUES ('localhost', 'foo_db', 'foo', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', '', '',
|
||||
'', '') <br>
|
||||
Then only the "foo_db" database will be displayed to user "foo".</p>
|
||||
</body>
|
||||
</html>
|
||||
44
INSTALL
Executable file
44
INSTALL
Executable file
@ -0,0 +1,44 @@
|
||||
$Id$
|
||||
|
||||
phpMyAdmin - Installation
|
||||
|
||||
Preface:
|
||||
phpMyAdmin can administer a whole MySQL-server (needs a super-user)
|
||||
but also a single database. To accomplish the latter you'll need
|
||||
a properly set up MySQL-user who can read/write only the desired
|
||||
database. It's up to you to look up the appropiate part in the
|
||||
MySQL manual.
|
||||
|
||||
Quick Install:
|
||||
[1] Untar the distribution (be sure to untar the subdirectories)
|
||||
tar xvf phpMyAdmin_x.x.x.tar
|
||||
[2] Open the file config.inc.php3 in your favourite editor and change
|
||||
the values for host, user and password to fit your environment.
|
||||
Have a lok at Documentation.html for an explanation of all values.
|
||||
[3] It is recommended that you protect the directory in which
|
||||
you installed phpMyAdmin (unless it's on a closed intranet),
|
||||
for example with HTTP-AUTH (in a .htaccess-file).
|
||||
[4] Open the file <www.your-host.com>/<your-install-dir>/index.php3
|
||||
in your browser. phpMyAdmin should now display a welcome screen
|
||||
and your databases.
|
||||
|
||||
Installation notes:
|
||||
+ Be sure to protect the phpMyAdmin-directory. By default, it is not
|
||||
protected in any way! It shouldn't be readable by anyone and
|
||||
especially not by search-engines. Although I've added a "nofollow"
|
||||
directive on every page, there may be search-engines that don't
|
||||
care about that and still follow the links on the page.
|
||||
Think of AltaVista following a link named "Drop Database"
|
||||
You can get an overview of Apache's authentification methods at
|
||||
http://www.apacheweek.com/features/userauth . Another tutorial is at
|
||||
http://deepthought.texsci.edu/protected_dirs.html
|
||||
+ PHP3 should be configured to have magic_quotes=on. In the module
|
||||
version of PHP3 this can also be set on a per-directory base with
|
||||
php3_magic_quotes_gpc on in an .htaccess file or in your Apache's
|
||||
access.conf.
|
||||
+ If you don't use the extension ".php3" for your scripts, you can use
|
||||
the bundled script "extchg.sh" to modify phpMyAdmin (or any other script)
|
||||
to work with a different extension. Beware though, that currently changing
|
||||
the extension from .html to something other won't work (it'd change all
|
||||
"string".htmlspecialchars() constructs).
|
||||
|
||||
278
LICENSE
Executable file
278
LICENSE
Executable file
@ -0,0 +1,278 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
106
README
Executable file
106
README
Executable file
@ -0,0 +1,106 @@
|
||||
$Id$
|
||||
|
||||
phpMyAdmin - Readme
|
||||
===================
|
||||
|
||||
A set of PHP-scripts to adminstrate MySQL over the WWW.
|
||||
|
||||
Version 2.2.0 - xx/xx/2001
|
||||
http://phpmyadmin.sourceforge.net/
|
||||
|
||||
Copyright (C) 1998-2000 Tobias Ratschiller <tobias@phpwizard.net>
|
||||
Copyright (C) 2001- Olivier Müller <om@omnis.ch>
|
||||
Loïc Chapeaux <lolo@phpHeaven.net>
|
||||
[check CREDITS file for more details]
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
Requirements:
|
||||
PHP3 or PHP4
|
||||
MySQL (tested with 3.21.x, 3.22.x and 3.23.x
|
||||
a web-browser (doh!)
|
||||
|
||||
Summary:
|
||||
phpMyAdmin is intended to handle the adminstration of MySQL over the WWW.
|
||||
Currently it can:
|
||||
- create and drop databases
|
||||
- create, copy, drop and alter tables
|
||||
- delete, edit and add fields
|
||||
- execute any SQL-statement, even batch-queries
|
||||
- manage keys on fields
|
||||
- load text files into tables
|
||||
- create and read dumps of tables
|
||||
- export and import CSV data
|
||||
- administer one single database
|
||||
|
||||
Download:
|
||||
You can get the newest version at http://www.phpwizard.net/projects/phpMyAdmin/.
|
||||
|
||||
Credits:
|
||||
This work is based on Peter Kuppelwieser's MySQL-Webadmin. It was his idea
|
||||
to create a web-based interface to MySQL using PHP3. Although I have not
|
||||
used any of his source-code, there are some concepts I've borrowed from
|
||||
him. phpMyAdmin was created because Peter told me he wasn't going to further
|
||||
develop his (great) tool.
|
||||
Thanks go to
|
||||
- Amalesh Kempf <ak-lsml@living-source.com> who contributed the code for
|
||||
the check when dropping a table or database. He also suggested that you
|
||||
should be able to specify the primary key on tbl_create.php3. To version
|
||||
1.1.1 he contributed the ldi_*.php3-set (Import text-files) as well as
|
||||
a bug-report. Plus many smaller improvements.
|
||||
- Jan Legenhausen <jan@nrw.net>: He made many of the changes that were
|
||||
introduced in 1.3.0 (including quite significant ones like the
|
||||
authentification). For 1.4.1 he enhanced the table-dump feature. Plus
|
||||
bug-fixes and help.
|
||||
- Marc Delisle <DelislMa@CollegeSherbrooke.qc.ca> made phpMyAdmin language-
|
||||
independent by outsourcing the strings to a separate file. He also
|
||||
contributed the French translation.
|
||||
- Alexandr Bravo <abravo@hq.admiral.ru> who contributed tbl_select.php3,
|
||||
a feature to display only some fields from a table.
|
||||
- Chris Jackson <chrisj@ctel.net> added support for MySQL functions in
|
||||
tbl_change.php3. He also added the "Query by Example" feature in 2.0.
|
||||
- Dave Walton <walton@nordicdms.com> added support for multiple servers and
|
||||
is a regular contributor for bug-fixes.
|
||||
- Gabriel Ash <ga244@is8.nyu.edu> contributed the random access features
|
||||
for 2.0.6.
|
||||
The following people have contributed minor changes, enhancements, bugfixes
|
||||
or support for a new language:
|
||||
Jim Kraai, Jordi Bruguera, Miquel Obrador, Geert Lund, Thomas Kleemann, Alexander Leidinger,
|
||||
Kiko Albiol, Daniel C. Chao, Pavel Piankov, Sascha Kettler, Joe Pruett,
|
||||
Renato Lins, Mark Kronsbein, Jannis Hermanns, G. Wieggers.
|
||||
|
||||
And thanks to everyone else who sent me email with suggestions, bug-reports and
|
||||
or just some feedback.
|
||||
|
||||
Installation:
|
||||
Please see the INSTALL file.
|
||||
For info on configuration have a look Documentation.html
|
||||
|
||||
ChangeLog:
|
||||
Now in ChangeLog
|
||||
|
||||
Documentation:
|
||||
Basic documentation available in Documentation.html
|
||||
|
||||
Enjoy,
|
||||
Tobias Ratschiller & Devel team
|
||||
|
||||
PS: Please, don't send us emails with question like "How do I compile
|
||||
PHP3 with MySQL-support". I do answer all emails regarding
|
||||
phpMyAdmin, but I just don't have the time to be your free helpdesk.
|
||||
Please send your questions to the appropiate mailinglists.
|
||||
Before contacting me, please read the Documentation.html (esp. the FAQ-
|
||||
part).
|
||||
|
||||
22
TODO
Executable file
22
TODO
Executable file
@ -0,0 +1,22 @@
|
||||
$Id$
|
||||
|
||||
phpMyAdmin - Todo
|
||||
=================
|
||||
|
||||
High priority
|
||||
-------------
|
||||
[ ] code cleanup, and release
|
||||
|
||||
Normal priority
|
||||
---------------
|
||||
[ ] create a new project homepage
|
||||
|
||||
Low priority
|
||||
------------
|
||||
[ ] add a [save & insert] button on the record insert form.
|
||||
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
[ ] Todo [X] Done [.] On the way/currently thinking about it
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
128
config.inc.php3
Executable file
128
config.inc.php3
Executable file
@ -0,0 +1,128 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
/*
|
||||
* phpMyAdmin Configuration File
|
||||
* All directives are explained in Documentation.html
|
||||
*/
|
||||
|
||||
// The $cfgServers array starts with $cfgServers[1]. Do not use $cfgServers[0].
|
||||
// You can disable a server config entry by setting host to ''.
|
||||
$cfgServers[1]['host'] = 'mysql.sourceforge.net'; // MySQL hostname
|
||||
$cfgServers[1]['port'] = ''; // MySQL port - leave blank for default port
|
||||
$cfgServers[1]['adv_auth'] = false; // Use advanced authentication?
|
||||
$cfgServers[1]['stduser'] = ''; // MySQL standard user (only needed with advanced auth)
|
||||
$cfgServers[1]['stdpass'] = ''; // MySQL standard password (only needed with advanced auth)
|
||||
$cfgServers[1]['user'] = 'phpmyadmin'; // MySQL user (only needed with basic auth)
|
||||
$cfgServers[1]['password'] = 'test99'; // MySQL password (only needed with basic auth)
|
||||
$cfgServers[1]['only_db'] = 'phpMyAdmin'; // If set to a db-name, only this db is accessible
|
||||
$cfgServers[1]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname
|
||||
|
||||
$cfgServers[2]['host'] = '';
|
||||
$cfgServers[2]['port'] = '';
|
||||
$cfgServers[2]['adv_auth'] = false;
|
||||
$cfgServers[2]['stduser'] = '';
|
||||
$cfgServers[2]['stdpass'] = '';
|
||||
$cfgServers[2]['user'] = 'root';
|
||||
$cfgServers[2]['password'] = '';
|
||||
$cfgServers[2]['only_db'] = '';
|
||||
$cfgServers[2]['verbose'] = '';
|
||||
|
||||
$cfgServers[3]['host'] = '';
|
||||
$cfgServers[3]['port'] = '';
|
||||
$cfgServers[3]['adv_auth'] = false;
|
||||
$cfgServers[3]['stduser'] = '';
|
||||
$cfgServers[3]['stdpass'] = '';
|
||||
$cfgServers[3]['user'] = 'root';
|
||||
$cfgServers[3]['password'] = '';
|
||||
$cfgServers[3]['only_db'] = '';
|
||||
$cfgServers[3]['verbose'] = '';
|
||||
|
||||
// If you have more than one server configured, you can set $cfgServerDefault
|
||||
// to any one of them to autoconnect to that server when phpMyAdmin is started,
|
||||
// or set it to 0 to be given a list of servers without logging in
|
||||
// If you have only one server configured, $cfgServerDefault *MUST* be
|
||||
// set to that server.
|
||||
$cfgServerDefault = 1; // Default server (0 = no default server)
|
||||
$cfgServer = '';
|
||||
unset($cfgServers[0]);
|
||||
|
||||
$cfgManualBase = "http://www.mysql.com/documentation/mysql/bychapter/";
|
||||
|
||||
$cfgConfirm = true;
|
||||
$cfgPersistentConnections = false;
|
||||
|
||||
$cfgBorder = "0";
|
||||
$cfgThBgcolor = "#D3DCE3";
|
||||
$cfgBgcolorOne = "#CCCCCC";
|
||||
$cfgBgcolorTwo = "#DDDDDD";
|
||||
$cfgMaxRows = 30;
|
||||
$cfgMaxInputsize = "300px";
|
||||
$cfgOrder = "ASC";
|
||||
$cfgShowBlob = true;
|
||||
$cfgShowSQL = true;
|
||||
|
||||
|
||||
$cfgModifyDeleteAtLeft = true;
|
||||
$cfgModifyDeleteAtRight = false;
|
||||
|
||||
|
||||
$cfgDefaultLang = "en"; // default language to use, if not browser-defined or user-defined
|
||||
// $cfgLang = "en"; // force: always use this language - must be defined in select_lang.inc.php3
|
||||
require("select_lang.inc.php3"); // load language file
|
||||
|
||||
|
||||
$cfgColumnTypes = array(
|
||||
"TINYINT",
|
||||
"SMALLINT",
|
||||
"MEDIUMINT",
|
||||
"INT",
|
||||
"BIGINT",
|
||||
"FLOAT",
|
||||
"DOUBLE",
|
||||
"DECIMAL",
|
||||
"DATE",
|
||||
"DATETIME",
|
||||
"TIMESTAMP",
|
||||
"TIME",
|
||||
"YEAR",
|
||||
"CHAR",
|
||||
"VARCHAR",
|
||||
"TINYBLOB",
|
||||
"TINYTEXT",
|
||||
"TEXT",
|
||||
"BLOB",
|
||||
"MEDIUMBLOB",
|
||||
"MEDIUMTEXT",
|
||||
"LONGBLOB",
|
||||
"LONGTEXT",
|
||||
"ENUM",
|
||||
"SET");
|
||||
|
||||
$cfgFunctions = array(
|
||||
"ASCII",
|
||||
"CHAR",
|
||||
"SOUNDEX",
|
||||
"CURDATE",
|
||||
"CURTIME",
|
||||
"ENCRYPT",
|
||||
"FROM_DAYS",
|
||||
"FROM_UNIXTIME",
|
||||
"NOW",
|
||||
"PASSWORD",
|
||||
"PERIOD_ADD",
|
||||
"PERIOD_DIFF",
|
||||
"TO_DAYS",
|
||||
"USER",
|
||||
"WEEKDAY",
|
||||
"RAND");
|
||||
|
||||
$cfgAttributeTypes = array(
|
||||
"",
|
||||
"BINARY",
|
||||
"UNSIGNED",
|
||||
"UNSIGNED ZEROFILL");
|
||||
|
||||
// Setting magic_quotes_runtime - do not change!
|
||||
set_magic_quotes_runtime(0);
|
||||
?>
|
||||
14
db_create.php3
Executable file
14
db_create.php3
Executable file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
require("header.inc.php3");
|
||||
|
||||
$result = mysql_query("CREATE DATABASE $db") or mysql_die();
|
||||
|
||||
$message = "$strDatabase $db $strHasBeenCreated";
|
||||
require("db_details.php3");
|
||||
|
||||
?>
|
||||
130
db_details.php3
Executable file
130
db_details.php3
Executable file
@ -0,0 +1,130 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
|
||||
|
||||
if(!isset($message))
|
||||
{
|
||||
include("header.inc.php3");
|
||||
}
|
||||
else
|
||||
{
|
||||
show_message($message);
|
||||
}
|
||||
|
||||
$tables = mysql_list_tables($db);
|
||||
$num_tables = @mysql_numrows($tables);
|
||||
|
||||
if($num_tables == 0)
|
||||
{
|
||||
echo $strNoTablesFound;
|
||||
}
|
||||
else
|
||||
{
|
||||
$i = 0;
|
||||
|
||||
echo "<table border=$cfgBorder>\n";
|
||||
echo "<th>$strTable</th>";
|
||||
echo "<th colspan=6>$strAction</th>";
|
||||
echo "<th>$strRecords</th>";
|
||||
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;
|
||||
?>
|
||||
<tr bgcolor="<?php echo $bgcolor;?>">
|
||||
|
||||
<td class=data><b><?php echo $table;?></b></td>
|
||||
<td><a href="sql.php3<?php echo $query;?>&sql_query=<?php echo urlencode("SELECT * FROM $table");?>&pos=0"><?php echo $strBrowse; ?></a></td>
|
||||
<td><a href="tbl_select.php3<?php echo $query;?>"><?php echo $strSelect; ?></a></td>
|
||||
<td><a href="tbl_change.php3<?php echo $query;?>"><?php echo $strInsert; ?></a></td>
|
||||
<td><a href="tbl_properties.php3<?php echo $query;?>"><?php echo $strProperties; ?></a></td>
|
||||
<td><a href="sql.php3<?php echo $query;?>&reload=true&sql_query=<?php echo urlencode("DROP TABLE $table");?>&zero_rows=<?php echo urlencode($strTable." ".$table." ".$strHasBeenDropped);?>"><?php echo $strDrop; ?></a></td>
|
||||
<td><a href="sql.php3<?php echo $query;?>&sql_query=<?php echo urlencode("DELETE FROM $table");?>&zero_rows=<?php echo urlencode($strTable." ".$table." ".$strHasBeenEmptied);?>"><?php echo $strEmpty; ?></a></td>
|
||||
<td align="right"> <?php count_records($db,$table) ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
|
||||
echo "</table>\n";
|
||||
}
|
||||
$query = "?server=$server&lang=$lang&db=$db&goto=db_details.php3";
|
||||
?>
|
||||
<hr>
|
||||
<div align="left">
|
||||
<ul>
|
||||
<li><a href="db_printview.php3<?php echo $query;?>"><?php echo $strPrintView;?></a>
|
||||
<li>
|
||||
<form method="post" action="db_readdump.php3" enctype="multipart/form-data">
|
||||
<input type="hidden" name="server" value="<?php echo $server;?>">
|
||||
<input type="hidden" name="lang" value="<?php echo $lang;?>">
|
||||
<input type="hidden" name="pos" value="0">
|
||||
<input type="hidden" name="db" value="<?php echo $db;?>">
|
||||
<input type="hidden" name="goto" value="db_details.php3">
|
||||
<input type="hidden" name="zero_rows" value="<?php echo $strSuccess; ?>">
|
||||
<?php echo $strRunSQLQuery.$db." ".show_docu("manual_Reference.html#Select");?>:<br>
|
||||
<textarea name="sql_query" cols="40" rows="3" wrap="VIRTUAL" style="width: <?php
|
||||
echo $cfgMaxInputsize;?>"></textarea><br>
|
||||
<?php echo "<i>$strOr</i> $strLocationTextfile";?>:<br>
|
||||
<input type="file" name="sql_file"><br>
|
||||
<input type="submit" name="SQL" value="<?php echo $strGo; ?>">
|
||||
</form>
|
||||
<li><a href="tbl_qbe.php3<?php echo $query;?>"><?php echo $strQBE;?></a>
|
||||
<li><form method="post" action="db_dump.php3"><?php echo $strViewDumpDB;?><br>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="radio" name="what" value="structure" checked><?php echo $strStrucOnly;?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="drop" value="1"><?php echo $strStrucDrop;?>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<input type="submit" value="<?php echo $strGo;?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="radio" name="what" value="data"><?php echo $strStrucData;?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="asfile" value="sendit"><?php echo $strSend;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="showcolumns" value="yes"><?php echo $strCompleteInserts; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="server" value="<?php echo $server;?>">
|
||||
<input type="hidden" name="lang" value="<?php echo $lang;?>">
|
||||
<input type="hidden" name="db" value="<?php echo $db;?>">
|
||||
</form>
|
||||
<li>
|
||||
<form method="post" action="tbl_create.php3">
|
||||
<input type="hidden" name="server" value="<?php echo $server;?>">
|
||||
<input type="hidden" name="lang" value="<?php echo $lang;?>">
|
||||
<input type="hidden" name="db" value="<?php echo $db;?>">
|
||||
<?php echo $strCreateNewTable.$db;?>:<br>
|
||||
<?php echo $strName.":"; ?> <input type="text" name="table"><br>
|
||||
<?php echo $strFields.":"; ?> <input type="text" name="num_fields" size=2>
|
||||
<input type="submit" value="<?php echo $strGo; ?>">
|
||||
</form>
|
||||
|
||||
<li>
|
||||
<a href="sql.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>&db=<?php echo $db;?>&sql_query=<?php echo urlencode("DROP DATABASE $db");?>&zero_rows=<?php echo urlencode($strDatabase." ".$db." ".$strHasBeenDropped);?>&goto=main.php3&reload=true"><?php echo $strDropDB." ".$db;?></a> <?php print show_docu("manual_Reference.html#Drop_database");?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
require ("footer.inc.php3");
|
||||
?>
|
||||
112
db_dump.php3
Executable file
112
db_dump.php3
Executable file
@ -0,0 +1,112 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
|
||||
@set_time_limit(600);
|
||||
$crlf="\n";
|
||||
if(empty($asfile))
|
||||
{
|
||||
include("header.inc.php3");
|
||||
echo "<div align=left><pre>\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 "</pre></div>\n";
|
||||
include ("footer.inc.php3");
|
||||
}
|
||||
?>
|
||||
51
db_printview.php3
Executable file
51
db_printview.php3
Executable file
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
|
||||
if(!isset($message))
|
||||
{
|
||||
include("header.inc.php3");
|
||||
}
|
||||
else
|
||||
{
|
||||
show_message($message);
|
||||
}
|
||||
|
||||
$tables = mysql_list_tables($db);
|
||||
$num_tables = @mysql_numrows($tables);
|
||||
|
||||
if($num_tables == 0)
|
||||
{
|
||||
echo $strNoTablesFound;
|
||||
}
|
||||
else
|
||||
{
|
||||
$i = 0;
|
||||
|
||||
echo "<table border=$cfgBorder>\n";
|
||||
echo "<th>$strTable</th>";
|
||||
echo "<th>$strRecords</th>";
|
||||
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;
|
||||
?>
|
||||
<tr bgcolor="<?php echo $bgcolor;?>">
|
||||
|
||||
<td class=data><b><?php echo $table;?></b></td>
|
||||
<td align="right"> <?php count_records($db,$table) ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
|
||||
echo "</table>\n";
|
||||
}
|
||||
|
||||
require ("footer.inc.php3");
|
||||
?>
|
||||
41
db_readdump.php3
Executable file
41
db_readdump.php3
Executable file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
@set_time_limit(10000);
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
|
||||
include("lib.inc.php3");
|
||||
|
||||
if(!empty($sql_file) && $sql_file != "none" && ereg("^php[0-9A-Za-z_.-]+$", basename($sql_file))) {
|
||||
$sql_query = fread(fopen($sql_file, "r"), filesize($sql_file));
|
||||
}
|
||||
|
||||
$pieces = split_string($sql_query, ";");
|
||||
|
||||
if (count($pieces) == 1 && !empty($pieces[0])) {
|
||||
if(!get_magic_quotes_gpc()) {
|
||||
$sql_query = addslashes(trim($pieces[0]));
|
||||
} else {
|
||||
$sql_query = trim($pieces[0]);
|
||||
}
|
||||
include ("sql.php3");
|
||||
exit;
|
||||
}
|
||||
|
||||
include("header.inc.php3");
|
||||
for ($i=0; $i<count($pieces); ++$i) {
|
||||
$pieces[$i] = trim($pieces[$i]);
|
||||
if(!empty($pieces[$i])) {
|
||||
$result = mysql_db_query ($db, $pieces[$i]) or mysql_die();
|
||||
}
|
||||
}
|
||||
|
||||
$sql_query = stripslashes($sql_query);
|
||||
$message = $strSuccess;
|
||||
|
||||
include("db_details.php3");
|
||||
|
||||
?>
|
||||
43
extchg.sh
Executable file
43
extchg.sh
Executable file
@ -0,0 +1,43 @@
|
||||
#!/bin/sh
|
||||
|
||||
# $Id$
|
||||
|
||||
# original php3->phtml converter by Pavel Piankov <pashah@spb.sitek.net>
|
||||
# modified by Tobias Ratschiller to allow any file extension
|
||||
# part of the phpMyAdmin distribution <http://phpwizard.net/phpMyAdmin>
|
||||
|
||||
if [$1 eq ""]
|
||||
then
|
||||
echo "Missing first parameter (extension to be changed)"
|
||||
echo "Usage: extchg <extension to change from> <extension to change to>"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [$2 eq ""]
|
||||
then
|
||||
echo "Missing second parameter (extension to change to)"
|
||||
echo "Usage: extchg <extension to change from> <extension to change to>"
|
||||
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;
|
||||
|
||||
5
footer.inc.php3
Executable file
5
footer.inc.php3
Executable file
@ -0,0 +1,5 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
26
functions.js
Executable file
26
functions.js
Executable file
@ -0,0 +1,26 @@
|
||||
<!--
|
||||
|
||||
var isFormElementInRange;
|
||||
|
||||
function checkFormElementInRange (form, name, min, max ) {
|
||||
|
||||
isFormElementInRange = true;
|
||||
var val = parseInt( eval( "form." + name + ".value" ));
|
||||
|
||||
if(isNaN(val)) {
|
||||
isFormElementInRange = false;
|
||||
return false;
|
||||
}
|
||||
if (val < min || val > max ) {
|
||||
alert( val +" is not a valid row number!" );
|
||||
isFormElementInRange = false;
|
||||
eval( "form."+ name + ".focus()");
|
||||
eval( "form."+ name + ".select()");
|
||||
}else {
|
||||
eval( "form."+ name + ".value = val" );
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
//-->
|
||||
|
||||
18
grab_globals.inc.php3
Normal file
18
grab_globals.inc.php3
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/* $Id$ */;
|
||||
|
||||
/**
|
||||
* This library grabs the names and values of the variables sent or posted to a
|
||||
* script in the '$HTTP_*_VARS' arrays and sets simple globals variables from
|
||||
* them
|
||||
*/
|
||||
if (!empty($HTTP_GET_VARS)) {
|
||||
while(list($name, $value) = each($HTTP_GET_VARS))
|
||||
$$name = $value;
|
||||
}
|
||||
|
||||
if (!empty($HTTP_POST_VARS)) {
|
||||
while(list($name, $value) = each($HTTP_POST_VARS))
|
||||
$$name = $value;
|
||||
}
|
||||
?>
|
||||
45
header.inc.php3
Executable file
45
header.inc.php3
Executable file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
include("lib.inc.php3");
|
||||
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>phpMyAdmin</title>
|
||||
<style type="text/css">
|
||||
//<!--
|
||||
body { font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
|
||||
th { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold; background-color: <?php echo $cfgThBgcolor;?>;}
|
||||
td { font-family: Arial, Helvetica, sans-serif; font-size: 10pt;}
|
||||
form { font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
|
||||
h1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16pt; font-weight: bold}
|
||||
A:link { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; text-decoration: none; color: blue}
|
||||
A:visited { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; text-decoration: none; color: blue}
|
||||
A:hover { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; text-decoration: underline; color: red}
|
||||
A:link.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000}
|
||||
A:visited.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000}
|
||||
A:hover.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: red;}
|
||||
.nav { font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000}
|
||||
|
||||
//-->
|
||||
</style>
|
||||
<!--
|
||||
<META HTTP-EQUIV="Expires" CONTENT="Fri, Jun 12 1981 08:20:00 GMT">
|
||||
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
||||
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
|
||||
-->
|
||||
</head>
|
||||
|
||||
<body bgcolor="#F5F5F5" text="#000000" background="images/bkg.gif">
|
||||
<?php
|
||||
if(isset($db))
|
||||
{
|
||||
echo "<h1> $strDatabase $db";
|
||||
if(isset($table))
|
||||
{
|
||||
echo " - $strTable $table";
|
||||
}
|
||||
echo "</h1>";
|
||||
}
|
||||
?>
|
||||
BIN
images/bkg.gif
Executable file
BIN
images/bkg.gif
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 236 B |
BIN
images/browse.gif
Executable file
BIN
images/browse.gif
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 276 B |
BIN
images/minus.gif
Executable file
BIN
images/minus.gif
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 56 B |
BIN
images/plus.gif
Executable file
BIN
images/plus.gif
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 59 B |
BIN
images/spacer.gif
Executable file
BIN
images/spacer.gif
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 51 B |
20
index.php3
Executable file
20
index.php3
Executable file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
// Process config file to determine default server (if any)
|
||||
require('lib.inc.php3');
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>phpMyAdmin</title>
|
||||
</head>
|
||||
|
||||
<frameset cols="150,*" rows="*" border="0" frameborder="0">
|
||||
<frame src="left.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>" name="nav">
|
||||
<frame src="main.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>" name="phpmain">
|
||||
</frameset>
|
||||
<noframes>
|
||||
<body bgcolor="#FFFFFF">
|
||||
|
||||
</body>
|
||||
</noframes>
|
||||
</html>
|
||||
136
lang/bulgarian-win1251.inc.php3
Normal file
136
lang/bulgarian-win1251.inc.php3
Normal file
@ -0,0 +1,136 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
$strAPrimaryKey = "Бeшe добавен първичeн ключ към ";
|
||||
$strAccessDenied = "Отказан достъп";
|
||||
$strAction = "Действие";
|
||||
$strAddNewField = "Добави ново поле";
|
||||
$strAddSearchConditions = "Добави условие за търсене (тяло за \"where\" условие):";
|
||||
$strAnIndex = "Беше добавен индекс за ";
|
||||
$strAttr = "Атрибути";
|
||||
$strBrowse = "Прелисти";
|
||||
$strCarriage = "Символ CR: \\r";
|
||||
$strChange = "Промени";
|
||||
$strColumnNames = "Название на колона";
|
||||
$strCopyTable = "Копирай таблицата в:";
|
||||
$strCopyTableOK = "Таблица \$table беше копирана в \$new_name.";
|
||||
$strCreate = "Създай";
|
||||
$strCreateNewDatabase = "Създай нова БД";
|
||||
$strCreateNewTable = "Създай нова таблица в БД ";
|
||||
$strDatabase = "БД ";
|
||||
$strDatabases = "База Данни";
|
||||
$strDefault = "По подразбиране";
|
||||
$strDelete = "Изтрий";
|
||||
$strDeleted = "Редът беше изтрит";
|
||||
$strDoAQuery = "Изпълни \"запитване по заявка\" (символ за заместване: \"%\")";
|
||||
$strDoYouReally = "Действително ли желаете ";
|
||||
$strDocu = "Документация";
|
||||
$strDrop = "Унищожи";
|
||||
$strDropDB = "Унищожи БД ";
|
||||
$strDumpingData = "Дъмп (схема) на данните в таблицата";
|
||||
$strEdit = "Редактиране";
|
||||
$strEmpty = "Изпразни";
|
||||
$strEmptyResultSet = "MySQL върна празен резултат (т.е. нула редове).";
|
||||
$strEnclosedBy = "Заградени с ";
|
||||
$strEnd = "Край";
|
||||
$strError = "Грешка";
|
||||
$strEscapedBy = "Символ Escape";
|
||||
$strExtra = "Допълнително";
|
||||
$strField = "Поле";
|
||||
$strFields = "Полета";
|
||||
$strFunction = "Функция";
|
||||
$strGo = "Изпълни";
|
||||
$strHasBeenAltered = "беше променена.";
|
||||
$strHasBeenCreated = "беше създадена.";
|
||||
$strHasBeenDropped = "беше унищожена.";
|
||||
$strHasBeenEmptied = "беше изпразнена.";
|
||||
$strHome = "Начало";
|
||||
$strHost = "Хост";
|
||||
$strIfYouWish = "Ако желаете да заредите само някои колони от таблицата, укажете списък на полетата разделени със запетаи.";
|
||||
$strIndex = "Индекс";
|
||||
$strInsert = "Вмъкни";
|
||||
$strInsertIntoTable = "Вмъкни в таблицата";
|
||||
$strInsertNewRow = "Вмъкни нов ред";
|
||||
$strInsertTextfiles = "Вмъкни текстови файлове в таблицата";
|
||||
$strKeyname = "Име на ключа";
|
||||
$strLengthSet = "Дължина";
|
||||
$strLineFeed = "Символ за край на ред: \\n";
|
||||
$strLines = "Редове";
|
||||
$strLocationTextfile = "Месторазположение на текстовия файл";
|
||||
$strModifications = "Промените бяха съхранени";
|
||||
$strMySQLReloaded = "MySQL е презареден.";
|
||||
$strMySQLSaid = "MySQL отговори: ";
|
||||
$strMySQLShowStatus = "Покажи състоянието на MySQL";
|
||||
$strMySQLShowVars = "Покажи системните променливи на MySQL";
|
||||
$strName = "Име";
|
||||
$strNext = "Следващ";
|
||||
$strNo = "Не";
|
||||
$strNoTablesFound = "В БД няма таблици.";
|
||||
$strNull = "Нула";
|
||||
$strOftenQuotation = "Обикновено кавички. ПО ИЗБОР означава, че само полета char и varchar се заграждат в кавички.";
|
||||
$strOptionalControls = "По избор. Контролира как да се четат или пишат специални символи.";
|
||||
$strOptionally = "ПО ИЗБОР";
|
||||
$strPos1 = "Начало";
|
||||
$strPrevious = "Предишен";
|
||||
$strPrimary = "Първичен";
|
||||
$strPrimaryKey = "Първичен ключ";
|
||||
$strProducedAnError = "доведе до грешка.";
|
||||
$strProperties = "Свойства";
|
||||
$strReadTheDocs = "Прочети документацията";
|
||||
$strRecords = "Записи";
|
||||
$strReloadFailed = "Неуспешен опит за презареждане на MySQL.";
|
||||
$strReloadMySQL = "Презареди MySQL";
|
||||
$strRenameTable = "Преименувай таблицата на";
|
||||
$strRenameTableOK = "Таблица \$table беше преименувана на \$new_name";
|
||||
$strReplace = "Замести";
|
||||
$strReplaceTable = "Замести данните от таблицата с данните от файла";
|
||||
$strReset = "Изчисти";
|
||||
$strRunSQLQuery = "Изпълни SQL запитване за БД ";
|
||||
$strRunning = "стартиран на ";
|
||||
$strSQLQuery = "SQL-запитване";
|
||||
$strSave = "Запиши";
|
||||
$strSelect = "Избери";
|
||||
$strSelectFields = "Избери поле (минимум едно):";
|
||||
$strSend = "изпрати";
|
||||
$strShowingRecords = "Показва записи ";
|
||||
$strStrucCSV = "CSV данни";
|
||||
$strStrucData = "Структура и данни";
|
||||
$strStrucDrop = "Добави 'изтрий таблицата'";
|
||||
$strStrucOnly = "Само структурата";
|
||||
$strSubmit = "Изпълни";
|
||||
$strSuccess = "Вашето SQL-запитване беше изпълнено успешно";
|
||||
$strTable = "Таблица ";
|
||||
$strTableStructure = "Структура на таблица";
|
||||
$strTerminatedBy = "Завършват на";
|
||||
$strTheContent = "Съдържанието на файла беше импортирано.";
|
||||
$strTheContents = "Съдържанието на файла замества съдържанието на таблицата за редове с идентични първични или уникални ключове.";
|
||||
$strTheTerminator = "Символ за край на поле.";
|
||||
$strTotal = "всичко";
|
||||
$strType = "Тип";
|
||||
$strUnique = "Уникално";
|
||||
$strValue = "Стойност";
|
||||
$strViewDump = "Покажи дъмп (схема) на таблицата";
|
||||
$strViewDumpDB = "Покажи дъмп (схема) на БД";
|
||||
$strWelcome = "Добре дошли в ";
|
||||
$strWrongUser = "Грешно име/парола. Отказан достъп.";
|
||||
$strYes = "Да";
|
||||
$strMySQLShowProcess = "Покажи процесите";
|
||||
$strLogout = "Изход от системата";
|
||||
$strQBE = "Запитване по пример";
|
||||
//$strSort = "Сортирай";
|
||||
//$strAscending = "Възходящ";
|
||||
//$strDescending = "Низходящ";
|
||||
$strShow = "Покажи";
|
||||
//$strCriteria = "Критерий";
|
||||
//$strAnd = "И";
|
||||
$strOr = "Или";
|
||||
//$strModify = "Измени";
|
||||
//$strAddDeleteRow = "Добави/изтрий ред по критерий";
|
||||
//$strAddDeleteColumn = "Добави/изтрий колона по критерий";
|
||||
//$strUpdateQuery = "Допълни Запитването";
|
||||
//$strRunQuery = "Изпълни Запитването";
|
||||
//$strUseTables = "Използвай таблицата";
|
||||
$strBack = "Назад";
|
||||
$strTableComments = "Коментари към таблицата";
|
||||
$strSelectNumRows = "в запитването";
|
||||
?>
|
||||
116
lang/catala.inc.php3
Normal file
116
lang/catala.inc.php3
Normal file
@ -0,0 +1,116 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
$strAccessDenied = "Access denegat";
|
||||
$strWrongUser = "Usuari i/o clau erronis. Access denegat.";
|
||||
$strMySQLSaid = "MySQL diu: ";
|
||||
$strShowingRecords = "Mostrant registres: ";
|
||||
$strTotal = "total";
|
||||
$strDatabase = "Base de dades ";
|
||||
$strTable = "taula ";
|
||||
$strError = "Errada";
|
||||
$strDatabases = "bases de dades";
|
||||
$strHome = "Inici";
|
||||
$strWelcome = "Benvingut a ";
|
||||
$strRunning = "funcionant a ";
|
||||
$strMySQLReloaded = "MySQL reiniciat.";
|
||||
$strCreateNewDatabase = "Crea una nova base de dades";
|
||||
$strCreate = "Crear";
|
||||
$strReloadMySQL = "Rellegir el MySQL";
|
||||
$strHasBeenCreated = "ha estat creada.";
|
||||
$strNoTablesFound = "Base de dades sense taules.";
|
||||
$strEmptyResultSet = "MySQL ha retornat un conjunt buit (p.e. cap fila).";
|
||||
$strBrowse = "Navega";
|
||||
$strSelect = "Sel·lecciona";
|
||||
$strInsert = "Inserta";
|
||||
$strProperties = "Propietats";
|
||||
$strHasBeenDropped = "ha estat eliminada.";
|
||||
$strHasBeenEmptied = "ha estat buidada.";
|
||||
$strHasBeenAltered = "ha estat alterada.";
|
||||
$strDrop = "Eliminar";
|
||||
$strEmpty = "Buidar";
|
||||
$strSuccess = "La vostra comanda SQL ha estat executada amb èxit";
|
||||
$strRunSQLQuery = "Executa la comanda SQL a la base de dades ";
|
||||
$strGo = "Executar";
|
||||
$strCreateNewTable = "Crear una taula nova a la base de dades ";
|
||||
$strDropDB = "Eliminar base de dades ";
|
||||
$strName = "Nom";
|
||||
$strFields = "Camps";
|
||||
$strField = "Camp";
|
||||
$strAttr = "Atributs";
|
||||
$strType = "Tipus";
|
||||
$strValue = "Valor";
|
||||
$strInsertTextfiles = "Inserir fitxers de text a la taula";
|
||||
$strLocationTextfile = "Ubicació del fitxer de text";
|
||||
$strReplaceTable = "Substituïr les dades de la taula pel fitxer ";
|
||||
$strReplace = "Substituïr";
|
||||
$strTheContents = "El contingut del fitxer substituïrà els continguts de les taules sel.leccionades a les files que contenen la mateixa clau única o primària";
|
||||
$strTerminatedBy = "acabat per";
|
||||
$strTheTerminator = "El separador de camps.";
|
||||
$strEnclosedBy = "tancat entre";
|
||||
$strOptionally = "OPCIONALMENT";
|
||||
$strOftenQuotation = "Marques sintàctiques. OPCIONALMENT vol dir que només els camps de tipus char i varchar van \"tancats dins\" \"-aquest caràcter.";
|
||||
$strEscapedBy = "escapat per";
|
||||
$strOptionalControls = "Opcional. Controla com llegir o escriure caràcters especials.";
|
||||
$strLines = "Línies";
|
||||
$strCarriage = "Retorn de línia: \\r";
|
||||
$strLineFeed = "Salt de línia: \\n";
|
||||
$strInsertIntoTable = "Inserir a la taula";
|
||||
$strColumnNames = "Nom de les col·lumnes";
|
||||
$strIfYouWish = "Si només vols carregar algunes col.lumnes de la taula, especifica-ho amb una llista separada per comes.";
|
||||
$strTheContent = "El contingut del fitxer especificat ha estat inserit.";
|
||||
$strSubmit = "Enviar";
|
||||
$strReset = "Esborrar";
|
||||
$strReadTheDocs = "Llegeix la documentació";
|
||||
$strDoYouReally = "Realment vols ";
|
||||
$strYes = "Si";
|
||||
$strNo = "No";
|
||||
$strInsertNewRow = "Inserir nova fila";
|
||||
$strSave = "Guardar";
|
||||
$strHost = "Servidor";
|
||||
$strTableStructure = "Estructura de la taula";
|
||||
$strDumpingData = "Volcant dades de la taula";
|
||||
$strNull = "Nul";
|
||||
$strDefault = "Defecte";
|
||||
$strExtra = "Extra";
|
||||
$strAction = "Acció";
|
||||
$strChange = "Canvi";
|
||||
$strAPrimaryKey = "Afegida una clau primària a ";
|
||||
$strAnIndex = "Afegit un índex a ";
|
||||
$strPrimary = "Primària";
|
||||
$strIndex = "Index";
|
||||
$strUnique = "Única";
|
||||
$strKeyname = "NomClau";
|
||||
$strPrimaryKey = "Clau Primària";
|
||||
$strAddNewField = "Afegir un camp nou";
|
||||
$strViewDump = "Veure un esquema de la taula";
|
||||
$strLengthSet = "Longitud";
|
||||
$strSQLQuery = "crida SQL";
|
||||
$strProducedAnError = "ha produït una errada.";
|
||||
$strModifications = "Les modificacions han estat guardades";
|
||||
$strSelectFields = "Sel·lecciona els camps (un com a mínim):";
|
||||
$strAddSearchConditions = "Afegeix condicions de recerca (cos de la clàusula \"where\"):";
|
||||
$strDoAQuery = "Fer un \"petició segons exemple\" (comodí: \"%\")";
|
||||
$strDeleted = "La fila ha estat esborrada";
|
||||
$strDelete = "Esborrar";
|
||||
$strEdit = "Editar";
|
||||
$strPrevious = "Anterior";
|
||||
$strNext = "Següent";
|
||||
$strMySQLShowStatus = "Mostra la informació de funcionament del MySQL";
|
||||
$strMySQLShowVars = "Mostra les variables de sistema del MySQL";
|
||||
$strRenameTable = "Renombrar les taules a";
|
||||
$strRenameTableOK = "La taula \$table ha canviat de nom. Ara es diu \$new_name";
|
||||
$strCopyTable = "Copiar la taula a:";
|
||||
$strStrucOnly = "Només l'estructura";
|
||||
$strStrucData = "Estructura i dades";
|
||||
$strCopyTableOK = "La taula \$table ha estat copiada a \$new_name.";
|
||||
$strFunction = "Funció";
|
||||
$strRunSQLQuery = "Fer consula/es SQL a la base de dades ";
|
||||
$strViewDumpDB = "Veure l'esquema de la base de dades";
|
||||
$strPos1 = "Inici";
|
||||
$strEnd = "Final";
|
||||
$strStrucCSV = "dades CSV ";
|
||||
$strSend = "enviar";
|
||||
$strRecords = "Registres";
|
||||
$strDocu = "Documentació";
|
||||
?>
|
||||
121
lang/chinese_big5.inc.php3
Normal file
121
lang/chinese_big5.inc.php3
Normal file
@ -0,0 +1,121 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
$strAPrimaryKey = "已經建立了一個主鍵於 ";
|
||||
$strAccessDenied = "訪問被拒絕";
|
||||
$strAction = "執行操作";
|
||||
$strAddNewField = "添加新字段";
|
||||
$strAddSearchConditions = "添加檢索條件 (\"where\" 語句的主體):";
|
||||
$strAnIndex = "已經添加了一個索引於 ";
|
||||
$strAttr = "屬性";
|
||||
$strBrowse = "瀏覽";
|
||||
$strCarriage = "回車: \\r";
|
||||
$strChange = "改變";
|
||||
$strColumnNames = "字段名";
|
||||
$strCopyTable = "復制數據表為:";
|
||||
$strCopyTableOK = "數據表 \$table 已經成功復制為 \$new_name。";
|
||||
$strCreate = "建立";
|
||||
$strCreateNewDatabase = "建立一個新的數據庫";
|
||||
$strCreateNewTable = "建立一個新的數據表與數據庫 ";
|
||||
$strDatabase = "數據庫 ";
|
||||
$strDatabases = "數據庫";
|
||||
$strDefault = "缺省值";
|
||||
$strDelete = "刪除";
|
||||
$strDeleted = "該記錄已經被刪除。";
|
||||
$strDoAQuery = "請執行 \"查詢示例\" (通配符: \"%\")";
|
||||
$strDoYouReally = "請確認要 ";
|
||||
$strDocu = "文檔";
|
||||
$strDrop = "丟棄";
|
||||
$strDropDB = "丟棄數據庫 ";
|
||||
$strDumpingData = "導出下面的數據庫內容";
|
||||
$strEdit = "編輯";
|
||||
$strEmpty = "清空";
|
||||
$strEmptyResultSet = "MySQL 返回的查詢結果為空。 (原因可能為:沒有找到符合條件的記錄。)";
|
||||
$strEnclosedBy = "由何字符括起來";
|
||||
$strEnd = "結束";
|
||||
$strError = "錯誤";
|
||||
$strEscapedBy = "轉義符";
|
||||
$strExtra = "額外";
|
||||
$strField = "字段";
|
||||
$strFields = "字段";
|
||||
$strFunction = "功能";
|
||||
$strGo = "開始";
|
||||
$strHasBeenAltered = "已經被修改。";
|
||||
$strHasBeenCreated = "已經建立。";
|
||||
$strHasBeenDropped = "已經被丟棄。";
|
||||
$strHasBeenEmptied = "已經被清空。";
|
||||
$strHome = "主目錄";
|
||||
$strHost = "主機";
|
||||
$strIfYouWish = "如果你要指定調入的字段,那麼請給出用逗號隔開的字段列表。";
|
||||
$strIndex = "索引";
|
||||
$strInsert = "插入";
|
||||
$strInsertIntoTable = "插入於數據表";
|
||||
$strInsertNewRow = "插入新記錄";
|
||||
$strInsertTextfiles = "從文本文件中提取數據,插入到數據表:";
|
||||
$strKeyname = "鍵名";
|
||||
$strLengthSet = "長度/Set";
|
||||
$strLineFeed = "換行:\\n";
|
||||
$strLines = "行數 ";
|
||||
$strLocationTextfile = "文本文件的位置";
|
||||
$strModifications = "修改後的數據已經存盤。";
|
||||
$strMySQLReloaded = "MySQL 重新啟動完成。";
|
||||
$strMySQLSaid = "MySQL 返回:";
|
||||
$strMySQLShowStatus = "顯示 MySQL 的運行信息";
|
||||
$strMySQLShowVars = "顯示 MySQL 的繫統變量";
|
||||
$strName = "名字";
|
||||
$strNext = "下一個";
|
||||
$strNo = "否";
|
||||
$strNoTablesFound = "數據庫中沒有數據表。";
|
||||
$strNull = "Null";
|
||||
$strOftenQuotation = "通常為引號。 ”選中“ 表示使用引號。因為隻有 char 和 varchar 類型的數據需要用引號括起來。";
|
||||
$strOptionalControls = "可選。用於讀取或寫入特殊的字符。";
|
||||
$strOptionally = "選中";
|
||||
$strPos1 = "開始";
|
||||
$strPrevious = "前一個";
|
||||
$strPrimary = "鍵名";
|
||||
$strPrimaryKey = "主鍵";
|
||||
$strProducedAnError = "產生一個錯誤。";
|
||||
$strProperties = "屬性";
|
||||
$strReadTheDocs = "參照以下文檔 ";
|
||||
$strRecords = "記錄";
|
||||
$strReloadFailed = "MySQL 重起失敗。";
|
||||
$strReloadMySQL = "重起 MySQL";
|
||||
$strRenameTable = "將數據表改名為";
|
||||
$strRenameTableOK = "數據表 \$table 名字已經被該成 \$new_name。";
|
||||
$strReplace = "替換";
|
||||
$strReplaceTable = "將數據表的數據用以下文本文件替換:";
|
||||
$strReset = "重置";
|
||||
$strRunSQLQuery = "在下面指定的數據庫中運行 SQL 語句: ";
|
||||
$strRunning = "運行於 ";
|
||||
$strSQLQuery = "SQL 語句";
|
||||
$strSave = "存儲";
|
||||
$strSelect = "選擇";
|
||||
$strSelectFields = "至少選擇一個字段:";
|
||||
$strSend = "發送";
|
||||
$strShowingRecords = "顯示記錄 ";
|
||||
$strStrucCSV = "CSV 數據";
|
||||
$strStrucData = "結構和數據";
|
||||
$strStrucDrop = "添加 'drop table'";
|
||||
$strStrucOnly = "隻選擇結構";
|
||||
$strSubmit = "發送";
|
||||
$strSuccess = "你運行的 SQL 語句已經成功運行了。";
|
||||
$strTable = "數據表 ";
|
||||
$strTableStructure = "數據表的結構";
|
||||
$strTerminatedBy = "語句結束符:";
|
||||
$strTheContent = "文件中的內容已經插入到數據表中。";
|
||||
$strTheContents = "文件中的內容將會取代 所選定的數據表中具有 相同的主鍵或唯一鍵的 記錄。";
|
||||
$strTheTerminator = "這些字段的結束符";
|
||||
$strTotal = "總計";
|
||||
$strType = "類型";
|
||||
$strUnique = "唯一";
|
||||
$strValue = "值";
|
||||
$strViewDump = "查看數據表的結構和摘要信息。";
|
||||
$strViewDumpDB = "查看數據庫的結構和摘要信息。";
|
||||
$strWelcome = "歡迎使用 ";
|
||||
$strWrongUser = "密碼錯誤,訪問被拒絕。";
|
||||
$strYes = "是";
|
||||
$strMySQLShowProcess = "顯示進程";
|
||||
$strLogout = "退出繫統";
|
||||
$strQBE = "查詢模板";
|
||||
$strBack = "返回";
|
||||
?>
|
||||
121
lang/chinese_gb.inc.php3
Normal file
121
lang/chinese_gb.inc.php3
Normal file
@ -0,0 +1,121 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
$strAPrimaryKey = "已经建立了一个主键于 ";
|
||||
$strAccessDenied = "访问被拒绝";
|
||||
$strAction = "执行操作";
|
||||
$strAddNewField = "添加新字段";
|
||||
$strAddSearchConditions = "添加检索条件 (\"where\" 语句的主体):";
|
||||
$strAnIndex = "已经添加了一个索引于 ";
|
||||
$strAttr = "属性";
|
||||
$strBrowse = "浏览";
|
||||
$strCarriage = "回车: \\r";
|
||||
$strChange = "改变";
|
||||
$strColumnNames = "字段名";
|
||||
$strCopyTable = "复制数据表为:";
|
||||
$strCopyTableOK = "数据表 \$table 已经成功复制为 \$new_name。";
|
||||
$strCreate = "建立";
|
||||
$strCreateNewDatabase = "建立一个新的数据库";
|
||||
$strCreateNewTable = "建立一个新的数据表与数据库 ";
|
||||
$strDatabase = "数据库 ";
|
||||
$strDatabases = "数据库";
|
||||
$strDefault = "缺省值";
|
||||
$strDelete = "删除";
|
||||
$strDeleted = "该记录已经被删除。";
|
||||
$strDoAQuery = "请执行 \"查询示例\" (通配符: \"%\")";
|
||||
$strDoYouReally = "请确认要 ";
|
||||
$strDocu = "文档";
|
||||
$strDrop = "丢弃";
|
||||
$strDropDB = "丢弃数据库 ";
|
||||
$strDumpingData = "导出下面的数据库内容";
|
||||
$strEdit = "编辑";
|
||||
$strEmpty = "清空";
|
||||
$strEmptyResultSet = "MySQL 返回的查询结果为空。 (原因可能为:没有找到符合条件的记录。)";
|
||||
$strEnclosedBy = "由何字符括起来";
|
||||
$strEnd = "结束";
|
||||
$strError = "错误";
|
||||
$strEscapedBy = "转义符";
|
||||
$strExtra = "额外";
|
||||
$strField = "字段";
|
||||
$strFields = "字段";
|
||||
$strFunction = "功能";
|
||||
$strGo = "开始";
|
||||
$strHasBeenAltered = "已经被修改。";
|
||||
$strHasBeenCreated = "已经建立。";
|
||||
$strHasBeenDropped = "已经被丢弃。";
|
||||
$strHasBeenEmptied = "已经被清空。";
|
||||
$strHome = "主目录";
|
||||
$strHost = "主机";
|
||||
$strIfYouWish = "如果你要指定调入的字段,那么请给出用逗号隔开的字段列表。";
|
||||
$strIndex = "索引";
|
||||
$strInsert = "插入";
|
||||
$strInsertIntoTable = "插入于数据表";
|
||||
$strInsertNewRow = "插入新记录";
|
||||
$strInsertTextfiles = "从文本文件中提取数据,插入到数据表:";
|
||||
$strKeyname = "键名";
|
||||
$strLengthSet = "长度/Set";
|
||||
$strLineFeed = "换行:\\n";
|
||||
$strLines = "行数 ";
|
||||
$strLocationTextfile = "文本文件的位置";
|
||||
$strModifications = "修改后的数据已经存盘。";
|
||||
$strMySQLReloaded = "MySQL 重新启动完成。";
|
||||
$strMySQLSaid = "MySQL 返回:";
|
||||
$strMySQLShowStatus = "显示 MySQL 的运行信息";
|
||||
$strMySQLShowVars = "显示 MySQL 的系统变量";
|
||||
$strName = "名字";
|
||||
$strNext = "下一个";
|
||||
$strNo = "否";
|
||||
$strNoTablesFound = "数据库中没有数据表。";
|
||||
$strNull = "Null";
|
||||
$strOftenQuotation = "通常为引号。 ”选中“ 表示使用引号。因为只有 char 和 varchar 类型的数据需要用引号括起来。";
|
||||
$strOptionalControls = "可选。用于读取或写入特殊的字符。";
|
||||
$strOptionally = "选中";
|
||||
$strPos1 = "开始";
|
||||
$strPrevious = "前一个";
|
||||
$strPrimary = "键名";
|
||||
$strPrimaryKey = "主键";
|
||||
$strProducedAnError = "产生一个错误。";
|
||||
$strProperties = "属性";
|
||||
$strReadTheDocs = "参照以下文档 ";
|
||||
$strRecords = "记录";
|
||||
$strReloadFailed = "MySQL 重起失败。";
|
||||
$strReloadMySQL = "重起 MySQL";
|
||||
$strRenameTable = "将数据表改名为";
|
||||
$strRenameTableOK = "数据表 \$table 名字已经被该成 \$new_name。";
|
||||
$strReplace = "替换";
|
||||
$strReplaceTable = "将数据表的数据用以下文本文件替换:";
|
||||
$strReset = "重置";
|
||||
$strRunSQLQuery = "在下面指定的数据库中运行 SQL 语句: ";
|
||||
$strRunning = "运行于 ";
|
||||
$strSQLQuery = "SQL 语句";
|
||||
$strSave = "存储";
|
||||
$strSelect = "选择";
|
||||
$strSelectFields = "至少选择一个字段:";
|
||||
$strSend = "发送";
|
||||
$strShowingRecords = "显示记录 ";
|
||||
$strStrucCSV = "CSV 数据";
|
||||
$strStrucData = "结构和数据";
|
||||
$strStrucDrop = "添加 'drop table'";
|
||||
$strStrucOnly = "只选择结构";
|
||||
$strSubmit = "发送";
|
||||
$strSuccess = "你运行的 SQL 语句已经成功运行了。";
|
||||
$strTable = "数据表 ";
|
||||
$strTableStructure = "数据表的结构";
|
||||
$strTerminatedBy = "语句结束符:";
|
||||
$strTheContent = "文件中的内容已经插入到数据表中。";
|
||||
$strTheContents = "文件中的内容将会取代 所选定的数据表中具有 相同的主键或唯一键的 记录。";
|
||||
$strTheTerminator = "这些字段的结束符";
|
||||
$strTotal = "总计";
|
||||
$strType = "类型";
|
||||
$strUnique = "唯一";
|
||||
$strValue = "值";
|
||||
$strViewDump = "查看数据表的结构和摘要信息。";
|
||||
$strViewDumpDB = "查看数据库的结构和摘要信息。";
|
||||
$strWelcome = "欢迎使用 ";
|
||||
$strWrongUser = "密码错误,访问被拒绝。";
|
||||
$strYes = "是";
|
||||
$strMySQLShowProcess = "显示进程";
|
||||
$strLogout = "退出系统";
|
||||
$strQBE = "查询模板";
|
||||
$strBack = "返回";
|
||||
?>
|
||||
144
lang/czech-win1250.inc.php3
Normal file
144
lang/czech-win1250.inc.php3
Normal file
@ -0,0 +1,144 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
$strAPrimaryKey = "Byl přidán primární klíč na ";
|
||||
$strAccessDenied = "Přístup odepřen";
|
||||
$strAction = "Akce";
|
||||
$strAddNewField = "Přidat nové pole";
|
||||
$strAddSearchConditions = "Přidat vyhledávací parametry (obsah dotazu po \"where\" příkazu):";
|
||||
$strAfter = "Po";
|
||||
$strAnIndex = "Byl přidán index na ";
|
||||
$strAtBeginningOfTable = "Na začátku tabulky";
|
||||
$strAtEndOfTable = "Na konci tabulky";
|
||||
$strAttr = "Atributy";
|
||||
$strBrowse = "Projít";
|
||||
$strCarriage = "Návrat vozíku (Carriage return): \\r";
|
||||
$strChange = "Změnit";
|
||||
$strColumnNames = "Názvy sloupců";
|
||||
$strCopyTable = "Zkopírovat tabulku do:";
|
||||
$strCopyTableOK = "Tabulka \$table byla zkopírována do \$new_name.";
|
||||
$strCreate = "Vytvořit";
|
||||
$strCreateNewDatabase = "Vytvořit novou databázi";
|
||||
$strCreateNewTable = "Vytvořit novou tabulku v databázi ";
|
||||
$strDatabase = "Databáze ";
|
||||
$strDatabases = "databáze";
|
||||
$strDefault = "Vychozí";
|
||||
$strDelete = "Smazat";
|
||||
$strDeleted = "Řádek byl smazán";
|
||||
//$strDoAQuery = "Do a \"query by example\" (wildcard: \"%\")";
|
||||
$strDoAQuery = "Do a \"query by example\" (wildcard: \"%\")";
|
||||
$strDoYouReally = "Opravdu si přeješ vykonat příkaz ";
|
||||
$strDocu = "Dokumentace";
|
||||
$strDrop = "Odstranit";
|
||||
$strDropDB = "Odstranit databázi ";
|
||||
$strDumpingData = "Dumpuji data pro tabulku";
|
||||
//$strDumpingData = "Dumping data for table";
|
||||
$strEdit = "Editovat";
|
||||
$strEmpty = "Vyprázdnit";
|
||||
//$strEmptyResultSet = "MySQL returned an empty result set (i.e. zero rows).";
|
||||
$strEmptyResultSet = "MySQL vrátil prázdný výsledek (tj. nulový počet řádků).";
|
||||
$strEnclosedBy = "uzavřen do";
|
||||
$strEnd = "Konec";
|
||||
$strError = "Chyba";
|
||||
$strEscapedBy = "uvozeno pomocí";
|
||||
//$strEscapedBy = "escaped by";
|
||||
$strExtra = "Extra";
|
||||
$strField = "Pole";
|
||||
$strFields = "Počet polí";
|
||||
$strFunction = "Funkce";
|
||||
$strGo = "Proveď";
|
||||
$strHasBeenAltered = "byla změněna.";
|
||||
$strHasBeenCreated = "byla vytvořena.";
|
||||
$strHasBeenDropped = "byla odstraněna.";
|
||||
$strHasBeenEmptied = "byla vyprázdněna.";
|
||||
$strHome = "Domu";
|
||||
$strHost = "Hostitel";
|
||||
//$strIfYouWish = "If you wish to load only some of a table's columns, specify a comma separated field list.";
|
||||
$strIfYouWish = "Pokud si přeješ natáhnout jenom určité sloupce z tabulky, specifikuj je jako seznam polí oddělených čárkou.";
|
||||
$strIndex = "Index";
|
||||
$strInsert = "Vložit";
|
||||
$strInsertIntoTable = "Vložit do tabulky";
|
||||
$strInsertNewRow = "Vložit nový řádek";
|
||||
$strInsertTextfiles = "Vložit textové soubory do tabulky";
|
||||
$strKeyname = "Klíčovy název";
|
||||
$strLengthSet = "Délka/Set";
|
||||
$strLineFeed = "Ukončení řádku (Linefeed): \\n";
|
||||
//$strLineFeed = "Linefeed: \\n";
|
||||
$strLines = "Řádek";
|
||||
$strLocationTextfile = "Umístění textového souboru";
|
||||
$strModifications = "Změny byly uloženy";
|
||||
$strMySQLReloaded = "MySQL znovu-načtena.";
|
||||
$strMySQLSaid = "MySQL hlásí: ";
|
||||
$strMySQLShowStatus = "Ukázat MySQL runtime informace";
|
||||
$strMySQLShowVars = "Ukázat MySQL systemove proměnné";
|
||||
$strName = "Název";
|
||||
$strNext = "Další";
|
||||
$strNo = "Ne";
|
||||
$strNoTablesFound = "V databázi nebyla nalezena ani jedna tabulka.";
|
||||
$strNull = "Nulový";
|
||||
$strOftenQuotation = "Často uvozující znaky. OPTIONALLY znamená, že pouze pole typu CHAR a VARCHAR jsou uzavřeny do \"uzavíracích \" znaků.";
|
||||
//$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.";
|
||||
$strOptionalControls = "Volitelné. Určuje jak zapisovat nebo číst speciální znaky.";
|
||||
$strOptionally = "Volitelně";
|
||||
$strPos1 = "Začátek";
|
||||
$strPrevious = "Předchozí";
|
||||
$strPrimary = "Primární";
|
||||
$strPrimaryKey = "Primární klíč";
|
||||
$strPrinterFriendly = "Verze určená pro tisk";
|
||||
$strProducedAnError = "vytvořil chybu.";
|
||||
$strProperties = "Vlastnosti";
|
||||
$strReadTheDocs = "Přečti dokumentaci";
|
||||
$strRecords = "Záznamů";
|
||||
$strReloadFailed = "Znovunačtení MySQL selhalo.";
|
||||
$strReloadMySQL = "Znovunačtení MySQL";
|
||||
$strRenameTable = "Přejmenovat tabulku na";
|
||||
$strRenameTableOK = "Tabulka \$table byla přejmenována na \$new_name";
|
||||
$strReplace = "Přepsat";
|
||||
$strReplaceTable = "Přepsat data tabulky souborem";
|
||||
$strReset = "P§vodní (reset)";
|
||||
$strRunSQLQuery = "Spusť SQL dotaz(y) na databázi ";
|
||||
$strRunning = "běžící na ";
|
||||
$strSQLQuery = "SQL-dotaz";
|
||||
$strSave = "Ulož";
|
||||
$strSelect = "Vybrat";
|
||||
$strSelectFields = "Zvol pole (alespoň jedno):";
|
||||
$strSend = "Pošli";
|
||||
$strShowingRecords = "Ukazuji záznamy ";
|
||||
$strStrucCSV = "CSV data";
|
||||
$strStrucData = "Strukturu a data";
|
||||
$strStrucDrop = "Přidej 'Vymaž tabulku'";
|
||||
$strStrucOnly = "Pouze strukturu";
|
||||
$strSubmit = "Odešli";
|
||||
$strSuccess = "Tvůj SQL-dotaz byl úspěšně vykonán";
|
||||
$strTable = "Tabulka ";
|
||||
$strTableStructure = "Struktura tabulky pro tabulku";
|
||||
$strTerminatedBy = "ukončen";
|
||||
$strTheContent = "Obsah tvého souboru byl vložen";
|
||||
//$strTheContents = "The contents of the file replaces the contents of the selected table for rows with identical primary or unique key.";
|
||||
$strTheContents = "Obsah souboru přepíše obsah zvolené tabulky v těch řádcích, kde je identický primární nebo unikátní klíč.";
|
||||
$strTheTerminator = "Ukončení polí.";
|
||||
$strTotal = "celkem";
|
||||
$strType = "Typ";
|
||||
$strUnique = "Unikátní";
|
||||
$strValue = "Hodnota";
|
||||
$strViewDump = "Ukaž dump (schema) tabulky";
|
||||
$strViewDumpDB = "Ukaž dump (schema) databáze";
|
||||
$strWelcome = "Vítej v ";
|
||||
$strWrongUser = "Špatné uživatelské jméno/heslo. Přístup odepřen.";
|
||||
$strYes = "Ano";
|
||||
$strMySQLShowProcess = "Zobraz procesy";
|
||||
$strLogout = "Odhlásit se";
|
||||
$strQBE = "Dotaz podle příkladu";
|
||||
$strBack = "Zpět";
|
||||
$strTableComments = "Komentáře k tabulce";
|
||||
$strOr = "nebo";
|
||||
$strSelectNumRows = "v dotazu";
|
||||
$strCompleteInserts = "Uplné vloženi";
|
||||
$strLimitNumRows = "záznamu na stránku";
|
||||
$strDisplay = "Zobraz";
|
||||
$strShow = "Zobraz";
|
||||
$strRowsFrom = "řadky začínající od";
|
||||
//$strEnableMagicQuotes = "<b>Warning:</b> 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 = "<b>POZOR:</b> 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í";
|
||||
?>
|
||||
139
lang/danish.inc.php3
Normal file
139
lang/danish.inc.php3
Normal file
@ -0,0 +1,139 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
$DanishLanguageVer = "2.1.0/2000-07-31";
|
||||
|
||||
$strAPrimaryKey = "Der er oprettet en primær nøgle på feltet ";
|
||||
$strAccessDenied = "Adgang Nægtet";
|
||||
$strAction = "Handling";
|
||||
$strAddNewField = "Tilføj nyt felt";
|
||||
$strAddSearchConditions = "Tilføj søge kriterier (body of the \"where\" clause):";
|
||||
$strAfter = "Efter";
|
||||
$strAnIndex = "Der er oprettet et indeks på feltet ";
|
||||
$strAtBeginningOfTable = "I begyndelsen af tabel";
|
||||
$strAtEndOfTable = "I slutning af tabel";
|
||||
$strAttr = "Attributer";
|
||||
$strBack = "Tilbage";
|
||||
$strBrowse = "Vis";
|
||||
$strCarriage = "Carriage return: \\r";
|
||||
$strChange = "Ændre";
|
||||
$strColumnNames = "Kolonne navne";
|
||||
$strCompleteInserts = "Lav komplette inserts";
|
||||
$strCopyTable = "Kopier tabel til:";
|
||||
$strCopyTableOK = "Tabellen \$table er nu kopieret til: \$new_name.";
|
||||
$strCreate = "Opret";
|
||||
$strCreateNewDatabase = "Opret ny database";
|
||||
$strCreateNewTable = "Opret ny tabel i database ";
|
||||
$strDatabase = "Database: ";
|
||||
$strDatabases = "databaser";
|
||||
$strDefault = "Standardværdi";
|
||||
$strDelete = "Slet";
|
||||
$strDeleted = "Rækken er slettet!";
|
||||
$strDisableMagicQuotes = "<B>Advarsel:</B> 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 = "<B>Advarsel:</B> 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";
|
||||
|
||||
?>
|
||||
124
lang/dutch.inc.php3
Normal file
124
lang/dutch.inc.php3
Normal file
@ -0,0 +1,124 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
$strAPrimaryKey = "Een primaire sleutel is toegevoegd aan ";
|
||||
$strAccessDenied = "Toegang geweigerd ";
|
||||
$strAction = "Aktie";
|
||||
$strAddNewField = "Nieuw veld toevoegen";
|
||||
$strAddSearchConditions = "Zoekcondities toevoegen (het \"where\" gedeelte van de query):";
|
||||
$strAnIndex = "Een index is toegevoegd aan ";
|
||||
$strAttr = "Attributen";
|
||||
$strBrowse = "Verkennen";
|
||||
$strCarriage = "Carriage return: \\r";
|
||||
$strChange = "Veranderen";
|
||||
$strColumnNames = "Kolomnamen";
|
||||
$strCopyTable = "Kopieer tabel naar:";
|
||||
$strCopyTableOK = "Tabel \$table is gekopieerd naar \$new_name.";
|
||||
$strCreate = "Aanmaken";
|
||||
$strCreateNewDatabase = "Nieuwe database aanmaken";
|
||||
$strCreateNewTable = "Nieuwe tabel aanmaken in database ";
|
||||
$strDatabase = "Database ";
|
||||
$strDatabases = "databases";
|
||||
$strDefault = "Standaardwaarde";
|
||||
$strDelete = "Verwijderen";
|
||||
$strDeleted = "De rij is verwijderd";
|
||||
$strDoAQuery = "Voer een query op basis van een vergelijking uit (wildcard: \"%\")";
|
||||
$strDoYouReally = "Weet u zeker dat u wilt ";
|
||||
$strDocu = "Documentatie";
|
||||
$strDrop = "Verwijderen";
|
||||
$strDropDB = "Verwijder database ";
|
||||
$strDumpingData = "Gegevens worden uitgevoerd voor tabel";
|
||||
$strEdit = "Wijzigen";
|
||||
$strEmpty = "Legen";
|
||||
$strEmptyResultSet = "MySQL retourneerde een lege result set (0 rijen).";
|
||||
$strEnclosedBy = "enclosed by";
|
||||
$strEnd = "Einde";
|
||||
$strError = "Fout";
|
||||
$strEscapedBy = "escaped by";
|
||||
$strExtra = "Extra";
|
||||
$strField = "Veld";
|
||||
$strFields = "Velden";
|
||||
$strFunction = "Functie";
|
||||
$strGo = "Start";
|
||||
$strHasBeenAltered = "is veranderd.";
|
||||
$strHasBeenCreated = "is aangemaakt.";
|
||||
$strHasBeenDropped = "is verwijderd.";
|
||||
$strHasBeenEmptied = "is leeggemaakt.";
|
||||
$strHome = "Home";
|
||||
$strHost = "Host";
|
||||
$strIfYouWish = "Indien u slechts enkele van de tabelkolommen wilt laden, voer dan een door komma\'s gescheiden veld lijst in.";
|
||||
$strIndex = "Index";
|
||||
$strInsert = "Invoegen";
|
||||
$strInsertIntoTable = "Invoegen in tabel";
|
||||
$strInsertNewRow = "Nieuwe rij invoegen";
|
||||
$strInsertTextfiles = "Invoegen tekstbestanden in tabel";
|
||||
$strKeyname = "Sleutelnaam";
|
||||
$strLengthSet = "Lengte";
|
||||
$strLineFeed = "Linefeed: \\n";
|
||||
$strLines = "Regels";
|
||||
$strLocationTextfile = "Locatie van het tekstbestand";
|
||||
$strModifications = "Wijzigingen opgeslagen.";
|
||||
$strMySQLReloaded = "MySQL opnieuw geladen.";
|
||||
$strMySQLSaid = "MySQL retourneerde: ";
|
||||
$strMySQLShowStatus = "MySQL runtime informatie";
|
||||
$strMySQLShowVars = "MySQL systeemvariabelen";
|
||||
$strName = "Naam";
|
||||
$strNext = "Volgende";
|
||||
$strNo = "Nee";
|
||||
$strNoTablesFound = "Geen tabellen gevonden in de 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 = "OPTIONEEL";
|
||||
$strPos1 = "Begin";
|
||||
$strPrevious = "Vorige";
|
||||
$strPrimary = "Primaire sleutel";
|
||||
$strPrimaryKey = "Primaire sleutel";
|
||||
$strProducedAnError = "leverde een fout op.";
|
||||
$strProperties = "Eigenschappen";
|
||||
$strReadTheDocs = "Lees de documentatie";
|
||||
$strRecords = "Records";
|
||||
$strReloadFailed = "Opnieuw laden van MySQL mislukt.";
|
||||
$strReloadMySQL = "MySQL opnieuw laden.";
|
||||
$strRenameTable = "Tabel hernoemen naar";
|
||||
$strRenameTableOK = "Tabel \$table is hernoemd naar \$new_name";
|
||||
$strReplace = "Vervangen";
|
||||
$strReplaceTable = "Vervang tabelgegevens met bestand";
|
||||
$strReset = "Reset";
|
||||
$strRunSQLQuery = "SQL query/queries uitvoeren op database ";
|
||||
$strRunning = "wordt uitgevoerd op ";
|
||||
$strSQLQuery = "SQL-query";
|
||||
$strSave = "Opslaan";
|
||||
$strSelect = "Selecteren";
|
||||
$strSelectFields = "Selecteer velden (tenminste 1):";
|
||||
$strSend = "verzenden";
|
||||
$strShowingRecords = "Records laten zien ";
|
||||
$strStrucCSV = "CSV gegevens";
|
||||
$strStrucData = "Structuur en gegevens";
|
||||
$strStrucDrop = "'drop table' toevoegen";
|
||||
$strStrucOnly = "Alleen structuur";
|
||||
$strSubmit = "Verzenden";
|
||||
$strSuccess = "Uw SQL-query is succesvol uitgevoerd.";
|
||||
$strTable = "Tabel ";
|
||||
$strTableStructure = "Tabel structuur voor tabel";
|
||||
$strTerminatedBy = "eindigend op";
|
||||
$strTheContent = "De inhoud van uw bestanden is ingevoegd.";
|
||||
$strTheContents = "De inhoud van het bestand vervangt de inhoud van de geselecteerde tabel voor rijen met een identieke primaire of unieke sleutel.";
|
||||
$strTheTerminator = "De \'terminator\' van de velden.";
|
||||
$strTotal = "totaal";
|
||||
$strType = "Type";
|
||||
$strUnique = "Unieke waarde";
|
||||
$strValue = "Waarde";
|
||||
$strViewDump = "Bekijk een dump (schema) van tabel";
|
||||
$strViewDumpDB = "Bekijk een dump (schema) van database";
|
||||
$strWelcome = "Welkom op ";
|
||||
$strWrongUser = "Verkeerde gebruikersnaam/wachtwoord. Toegang geweigerd.";
|
||||
$strYes = "Ja";
|
||||
$strMySQLShowProcess = "Laat processen zien";
|
||||
$strLogout = "Uitloggen";
|
||||
$strQBE = "Query opbouwen";
|
||||
$strBack = "Terug";
|
||||
$strTableComments = "Tabel opmerkingen";
|
||||
$strOr = "of";
|
||||
$strSelectNumRows = "in query";
|
||||
?>
|
||||
146
lang/english.inc.php3
Normal file
146
lang/english.inc.php3
Normal file
@ -0,0 +1,146 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
$strAPrimaryKey = "A primary key has been added on ";
|
||||
$strAccessDenied = "Access denied";
|
||||
$strAction = "Action";
|
||||
|
||||
$strAddNewField = "Add new field";
|
||||
$strAddSearchConditions = "Add search conditions (body of the \"where\" clause):";
|
||||
$strAfter = "After";
|
||||
$strAnIndex = "An index has been added on ";
|
||||
|
||||
$strAtBeginningOfTable = "At Beginning of Table";
|
||||
$strAtEndOfTable = "At End of Table";
|
||||
$strAttr = "Attributes";
|
||||
$strBack = "Back";
|
||||
$strBrowse = "Browse";
|
||||
$strCarriage = "Carriage return: \\r";
|
||||
$strChange = "Change";
|
||||
$strColumnNames = "Column names";
|
||||
$strCompleteInserts = "Complete inserts";
|
||||
$strCopyTable = "Copy table to:";
|
||||
$strCopyTableOK = "Table \$table has been copied to \$new_name.";
|
||||
$strCreate = "Create";
|
||||
$strCreateNewDatabase = "Create new database";
|
||||
$strCreateNewTable = "Create new table on database ";
|
||||
|
||||
$strDatabase = "Database ";
|
||||
$strDatabases = "databases";
|
||||
$strDefault = "Default";
|
||||
$strDelete = "Delete";
|
||||
$strDeleted = "The row has been deleted";
|
||||
|
||||
$strDisableMagicQuotes = "<b>Warning:</b> 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 = "<b>Warning:</b> 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";
|
||||
|
||||
?>
|
||||
162
lang/french.inc.php3
Normal file
162
lang/french.inc.php3
Normal file
@ -0,0 +1,162 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
/* french.inc.php3 2000/08/24 Benjamin Gandon */
|
||||
|
||||
$strAPrimaryKey = "Une clé primaire a été ajoutée sur";
|
||||
$strAccessDenied = "Accès refusé";
|
||||
$strAction = "Action";
|
||||
$strAddDeleteColumn = "Ajouter/effacer une colonne de critères";
|
||||
$strAddDeleteRow = "Ajouter/effacer une ligne de critères";
|
||||
$strAddNewField = "Ajouter un champ";
|
||||
$strAddSearchConditions = "Critères de recherche (pour l'énoncé \"where\"):";
|
||||
$strAfter = "Après";
|
||||
$strAnIndex = "Un index a été ajouté sur ";
|
||||
$strAnd = "et";
|
||||
$strAscending = "Croissant";
|
||||
$strAtBeginningOfTable = "En début de Table";
|
||||
$strAtEndOfTable = "En fin de Table";
|
||||
$strAttr = "Attributes";
|
||||
$strBack = "Retour";
|
||||
$strBrowse = "Afficher";
|
||||
$strCarriage = "Retour de chariot: \\r";
|
||||
$strChange = "Modifier";
|
||||
$strColumnNames = "Nom des colonnes";
|
||||
$strCompleteInserts = "Insertions complètes";
|
||||
$strCopyTable = "Copier la table vers:";
|
||||
$strCopyTableOK = "La table \$table a été copiée vers \$new_name.";
|
||||
$strCreate = "Créer";
|
||||
$strCreateNewDatabase = "Créer une base de données";
|
||||
$strCreateNewTable = "Créer une nouvelle table sur la base ";
|
||||
$strCriteria = "Critère";
|
||||
$strDatabase = "Base de données";
|
||||
$strDatabases = "bases de données";
|
||||
$strDefault = "Defaut";
|
||||
$strDelete = "Effacer";
|
||||
$strDeleted = "L'enregistrement a été effacé";
|
||||
$strDescending = "Décroissant";
|
||||
$strDisableMagicQuotes = "<b>Attention:</b> 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 = "<b>Attention:</b> 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 = "<b>Attention:</b> 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
|
||||
?>
|
||||
126
lang/german.inc.php3
Normal file
126
lang/german.inc.php3
Normal file
@ -0,0 +1,126 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
$strAPrimaryKey = "Ein Primarschlüssel wurde für folgendes Feld hinzugefügt: ";
|
||||
$strAccessDenied = "Zugriff verweigert.";
|
||||
$strAction = "Aktion";
|
||||
$strAddNewField = "Neues Feld hinzufügen";
|
||||
$strAddSearchConditions = "Suchkondition (Argumente für das WHERE-Statement):";
|
||||
$strAnIndex = "Ein Index wurde für folgendes Feld hinzugefügt: ";
|
||||
$strAttr = "Attribute";
|
||||
$strBrowse = "Anzeigen";
|
||||
$strCarriage = "Carriage return: \\r";
|
||||
$strChange = "Ändern";
|
||||
$strColumnNames = "Spaltennamen";
|
||||
$strCopyTable = "Tabelle kopieren nach:";
|
||||
$strCopyTableOK = "Tabelle \$table wurde kopiert nach \$new_name.";
|
||||
$strCreate = "Erzeugen";
|
||||
$strCreateNewDatabase = "Neue Datenbank erzeugen";
|
||||
$strCreateNewTable = "Neue Tabelle erstellen in Datenbank ";
|
||||
$strDatabase = "Datenbank ";
|
||||
$strDatabases = "Datenbanken";
|
||||
$strDefault = "Default";
|
||||
$strDelete = "Löschen";
|
||||
$strDeleted = "Die Zeile wurde gelöscht.";
|
||||
$strDoAQuery = "Suche über Beispielwerte (\"query by example\") (Platzhalter: \"%\")";
|
||||
$strDoYouReally = "Möchten Sie wirklich diese Abfrage ausführen: ";
|
||||
$strDocu = "Dokumentation";
|
||||
$strDrop = "Löschen";
|
||||
$strDropDB = "Datenbank löschen:";
|
||||
$strDumpingData = "Daten für Tabelle";
|
||||
$strEdit = "Ändern";
|
||||
$strEmpty = "Leeren";
|
||||
$strEmptyResultSet = "MySQL lieferte ein leeres Resultset zurück (d.h. null Zeilen).";
|
||||
$strEnclosedBy = "eingeschlossen von";
|
||||
$strEnd = "Ende";
|
||||
$strError = "Fehler";
|
||||
$strEscapedBy = "escaped von";
|
||||
$strExtra = "Extra";
|
||||
$strField = "Feld";
|
||||
$strFields = "Felder";
|
||||
$strFunction = "Funktion";
|
||||
$strGo = "OK";
|
||||
$strHasBeenAltered = "wurde geändert.";
|
||||
$strHasBeenCreated = "wurde erzeugt.";
|
||||
$strHasBeenDropped = "wurde gelöscht.";
|
||||
$strHasBeenEmptied = "wurde geleert.";
|
||||
$strHome = "Home";
|
||||
$strHost = "Host";
|
||||
$strIfYouWish = "Wenn Sie nur bestimmte Spalten importieren möchten, geben Sie diese bitte hier an.";
|
||||
$strIndex = "Index";
|
||||
$strInsert = "Einfügen";
|
||||
$strInsertIntoTable = "In Tabelle einfügen";
|
||||
$strInsertNewRow = "Neue Zeile einfügen";
|
||||
$strInsertTextfiles = "Textdatei in Tabelle einfügen";
|
||||
$strKeyname = "Name";
|
||||
$strLengthSet = "Länge/Set";
|
||||
$strLineFeed = "Linefeed: \\n";
|
||||
$strLines = "Zeilen";
|
||||
$strLocationTextfile = "Datei";
|
||||
$strModifications = "Änderungen gespeichert.";
|
||||
$strMySQLReloaded = "MySQL neu gestartet.";
|
||||
$strMySQLSaid = "MySQL meldet: ";
|
||||
$strMySQLShowStatus = "MySQL-Laufzeit-Informationen anzeigen";
|
||||
$strMySQLShowVars = "MySQL-System-Variablen anzeigen";
|
||||
$strName = "Name";
|
||||
$strNext = "Nächste";
|
||||
$strNo = "Nein";
|
||||
$strNoTablesFound = "Keine Tabellen in der Datenbank gefunden.";
|
||||
$strNull = "Null";
|
||||
$strOftenQuotation = "Häufig Anführungszeichen. OPTIONALLY bedeutet, daß nur Textfelder von den angegeben Zeichen eingeschlossen sind.";
|
||||
$strOptionalControls = "Optional. Bestimmt, wie Sonderzeichen kenntlich gemacht werden..";
|
||||
$strOptionally = "OPTIONALLY";
|
||||
$strPos1 = "Anfang";
|
||||
$strPrevious = "Vorherige";
|
||||
$strPrimary = "Primärschlüssel";
|
||||
$strPrimaryKey = "Primärschlüssel";
|
||||
$strProducedAnError = "erzeugte einen Fehler.";
|
||||
$strProperties = "Eigenschaften";
|
||||
$strReadTheDocs = "MySQL-Dokumentation zu LOAD DATA INFILE lesen";
|
||||
$strRecords = "Einträge";
|
||||
$strReloadFailed = "MySQL Neuladen fehlgeschlagen.";
|
||||
$strReloadMySQL = "MySQL neu starten";
|
||||
$strRenameTable = "Tabelle umbennen in";
|
||||
$strRenameTableOK = "Tabelle \$table wurde umbenannt in \$new_name.";
|
||||
$strReplace = "Ersetzen";
|
||||
$strReplaceTable = "Tabelleninhalt ersetzen";
|
||||
$strReset = "Zurücksetzen";
|
||||
$strRunSQLQuery = "SQL-Befehl(e) ausführen in Datenbank ";
|
||||
$strRunning = "auf ";
|
||||
$strSQLQuery = "SQL-Befehl";
|
||||
$strSave = "Speichern";
|
||||
$strSelect = "Teilw. anzeigen";
|
||||
$strSelectFields = "Felder auswählen (mind. eines):";
|
||||
$strSend = "senden";
|
||||
$strShowingRecords = "Zeige Records ";
|
||||
$strStrucCSV = "CSV-Daten";
|
||||
$strStrucData = "Struktur und Daten";
|
||||
$strStrucDrop = "Mit 'drop table'";
|
||||
$strStrucOnly = "Nur Struktur";
|
||||
$strSubmit = "Abschicken";
|
||||
$strSuccess = "Ihr SQL-Befehl wurde erfolgreich ausgeführt.";
|
||||
$strTable = "Tabelle ";
|
||||
$strTableStructure = "Tabellenstruktur für Tabelle";
|
||||
$strTerminatedBy = "getrennt mit";
|
||||
$strTheContent = "Der Inhalt Ihrer Datei wurde eingefügt.";
|
||||
$strTheContents = "Der Inhalt der CSV-Datei ersetzt die Einträge mit den gleichen Primär- oder Unique-Schlüsseln.";
|
||||
$strTheTerminator = "Der Trenner zwischen den Feldern.";
|
||||
$strTotal = "insgesamt";
|
||||
$strType = "Typ";
|
||||
$strUnique = "Unique";
|
||||
$strValue = "Wert";
|
||||
$strViewDump = "Dump (Schema) der Tabelle anzeigen";
|
||||
$strViewDumpDB = "Dump (Schema) der Datenbank anzeigen";
|
||||
$strWelcome = "Willkommen bei ";
|
||||
$strWrongUser = "Falscher Benutzername/Passwort. Zugriff verweigert.";
|
||||
$strYes = "Ja";
|
||||
$strMySQLShowProcess = "Prozesse anzeigen";
|
||||
$strLogout = "Neu einloggen";
|
||||
$strQBE = "Query by Example";
|
||||
$strBack = "Zurück";
|
||||
$strTableComments = "Tabellen-Kommentar";
|
||||
$strOr = "oder";
|
||||
$strEnableMagicQuotes = "<b>Achtung:</b> 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 = "<b>Achtung:</b> 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.";
|
||||
?>
|
||||
135
lang/italian.inc.php3
Normal file
135
lang/italian.inc.php3
Normal file
@ -0,0 +1,135 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
$strAPrimaryKey = "E' stata creata una chiave primaria per ";
|
||||
$strAccessDenied = "Accesso negato";
|
||||
$strAction = "Azione";
|
||||
$strAddNewField = "Aggiungi un nuovo campo";
|
||||
$strAddSearchConditions = "Aggiungi condizioni di ricerca (corpo della clausola \"where\"):";
|
||||
$strAfter = "Dopo";
|
||||
$strAnIndex = "E' stato aggiunto un indice per ";
|
||||
$strAtBeginningOfTable = "All'inizio della tavola";
|
||||
$strAtEndOfTable = "Alla fine della tavola";
|
||||
$strAttr = "Attributi";
|
||||
$strBrowse = "Mostra";
|
||||
$strCarriage = "Ritorno carrello: \\r";
|
||||
$strChange = "Modifica";
|
||||
$strColumnNames = "Nomi delle colonne";
|
||||
$strCopyTable = "Copia la tavola su:";
|
||||
$strCopyTableOK = "La tavola \$table è stata copiata su \$new_name.";
|
||||
$strCreate = "Crea";
|
||||
$strCreateNewDatabase = "Crea un nuovo database";
|
||||
$strCreateNewTable = "Crea una nuova tavola nel database ";
|
||||
$strDatabase = "Database ";
|
||||
$strDatabases = "database";
|
||||
$strDefault = "Default";
|
||||
$strDelete = "Cancella";
|
||||
$strDeleted = "La riga è stata cancellata";
|
||||
$strDoAQuery = "Esegui \"query by example\" (carattere jolly: \"%\")";
|
||||
$strDoYouReally = "Confermi: ";
|
||||
$strDocu = "Documentazione";
|
||||
$strDrop = "Elimina";
|
||||
$strDropDB = "Elimina database ";
|
||||
$strDumpingData = "Travaso dati per la tavola";
|
||||
$strEdit = "Modifica";
|
||||
$strEmpty = "Vuota";
|
||||
$strEmptyResultSet = "MySQL ha restituito un insieme vuoto (i.e. zero righe).";
|
||||
$strEnclosedBy = "chiusi tra";
|
||||
$strEnd = "Fine";
|
||||
$strError = "Errore";
|
||||
$strEscapedBy = "con escape";
|
||||
$strExtra = "Extra";
|
||||
$strField = "Campo";
|
||||
$strFields = "Campi";
|
||||
$strFunction = "Funzione";
|
||||
$strGo = "Esegui";
|
||||
$strHasBeenAltered = "è stato modificato.";
|
||||
$strHasBeenCreated = "è stato creato.";
|
||||
$strHasBeenDropped = "è stato eliminato.";
|
||||
$strHasBeenEmptied = "è stato vuotato.";
|
||||
$strHome = "Home";
|
||||
$strHost = "Host";
|
||||
$strIfYouWish = "Per caricare i dati solo per alcune colonne della tabella, specifare la lista dei campi (separati da virgole).";
|
||||
$strIndex = "Indice";
|
||||
$strInsert = "Inserisci";
|
||||
$strInsertIntoTable = "Inserisci nella tavola";
|
||||
$strInsertNewRow = "Inserisci una nuova riga";
|
||||
$strInsertTextfiles = "Inserisci un file di testo nella tavola";
|
||||
$strKeyname = "Nome della chiave";
|
||||
$strLengthSet = "Lunghezza/Set";
|
||||
$strLineFeed = "Salto riga: \\n";
|
||||
$strLines = "Linee";
|
||||
$strLocationTextfile = "Posizione del file di testo";
|
||||
$strModifications = "Le modifiche sono state salvate";
|
||||
$strMySQLReloaded = "MySQL ricaricato.";
|
||||
$strMySQLSaid = "MySQL ha detto: ";
|
||||
$strMySQLShowStatus = "Visualizza le informazioni runtime di MySQL";
|
||||
$strMySQLShowVars = "Visualizza le variabili di sistema di MySQL";
|
||||
$strName = "Nome";
|
||||
$strNext = "Prossimo";
|
||||
$strNo = "No";
|
||||
$strNoTablesFound = "Non ci sono tavole nel database.";
|
||||
$strNull = "Null";
|
||||
$strOftenQuotation = "Spesso doppi apici (virgolette). OPZIONALE indica che solo campi <I>char</I> e <I>varchar</I> 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 <I>printer friendly</I> 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 = "<b>Attenzuibe:</b> 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";
|
||||
?>
|
||||
116
lang/norwegian.inc.php3
Normal file
116
lang/norwegian.inc.php3
Normal file
@ -0,0 +1,116 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
$strAccessDenied = "Ingen tilgang";
|
||||
$strAttr = "Attributes";
|
||||
$strWrongUser = "Ugyldig brukernavn/passord. Ingen tilgang.";
|
||||
$strMySQLSaid = "MySQL sa: ";
|
||||
$strShowingRecords = "Viser rader ";
|
||||
$strTotal = "totalt";
|
||||
$strDatabase = "Database ";
|
||||
$strTable = "tabell ";
|
||||
$strError = "Feil";
|
||||
$strDatabases = "databaser";
|
||||
$strHome = "Hjem";
|
||||
$strWelcome = "Velkommen til ";
|
||||
$strRunning = "som kjører på ";
|
||||
$strMySQLReloaded = "MySQL omstartet.";
|
||||
$strCreateNewDatabase = "Opprett ny database";
|
||||
$strCreate = "Opprett";
|
||||
$strReloadMySQL = "Omstart av MySQL";
|
||||
$strHasBeenCreated = "er opprettet.";
|
||||
$strNoTablesFound = "Ingen tabeller i databasen.";
|
||||
$strEmptyResultSet = "MySQL returnerte tomt resultat (m.a.o. ingen rader).";
|
||||
$strBrowse = "Se på";
|
||||
$strSelect = "Spørring";
|
||||
$strInsert = "Sett inn";
|
||||
$strProperties = "Egenskaper";
|
||||
$strHasBeenDropped = "er slettet.";
|
||||
$strHasBeenEmptied = "er tømt.";
|
||||
$strHasBeenAltered = "er endret.";
|
||||
$strDrop = "Slett";
|
||||
$strEmpty = "Tøm";
|
||||
$strSuccess = "Kommandoen/spørringen er utført";
|
||||
$strRunSQLQuery = "Kjør SQL-spørring mot database ";
|
||||
$strGo = "Utfør";
|
||||
$strCreateNewTable = "Opprett ny tabell i database ";
|
||||
$strDropDB = "Slett databasen ";
|
||||
$strName = "Navn";
|
||||
$strFields = "Felter";
|
||||
$strField = "Felt";
|
||||
$strType = "Type";
|
||||
$strValue = "Verdi";
|
||||
$strInsertTextfiles = "Les tekstfil inn i tabell";
|
||||
$strLocationTextfile = "Plassering av filen";
|
||||
$strReplaceTable = "Erstatt tabell med filen";
|
||||
$strReplace = "Erstatt";
|
||||
$strTheContents = "Innholdet av filen erstatter valgt tabell for rader med lik identifikator eller unikt felt";
|
||||
$strTerminatedBy = "avsluttet med";
|
||||
$strTheTerminator = "Tegn som angir slutt på felter.";
|
||||
$strEnclosedBy = "omfattet av";
|
||||
$strOptionally = "Valgfritt";
|
||||
$strOftenQuotation = "Ofte anførselstegn. Valgfritt innebærer at kun tekstfelter (\"char\" og \"varchar\") felter er omfattet av tegnet.";
|
||||
$strEscapedBy = "\"escaped\" av";
|
||||
$strOptionalControls = "Valgfritt. Angir hvordan spesialtegn skrives eller leses.";
|
||||
$strLines = "Linjer";
|
||||
$strCarriage = "Carriage return: \\r";
|
||||
$strLineFeed = "Linefeed: \\n";
|
||||
$strInsertIntoTable = "Sett inn i tabell";
|
||||
$strColumnNames = "Kolonnenavn";
|
||||
$strIfYouWish = "Hvis du ønsker å kun lese inn enkelte av tabellens kolonner, angi en komme-separert felt-liste.";
|
||||
$strTheContent = "Innholdet av filen er lagt inn.";
|
||||
$strSubmit = "Send";
|
||||
$strReset = "Tøm skjema";
|
||||
$strReadTheDocs = "Les dokumentasjonen";
|
||||
$strDoYouReally = "Vil du virkelig ";
|
||||
$strYes = "Ja";
|
||||
$strNo = "Nei";
|
||||
$strInsertNewRow = "Sett inn ny rad";
|
||||
$strSave = "Lagre";
|
||||
$strHost = "Host";
|
||||
$strTableStructure = "Tabell-struktur for tabell";
|
||||
$strDumpingData = "Data-ark for tabell";
|
||||
$strNull = "Null";
|
||||
$strDefault = "Default";
|
||||
$strExtra = "Ekstra";
|
||||
$strAction = "Handling";
|
||||
$strChange = "Endre";
|
||||
$strAPrimaryKey = "En primærnøkkel er lagt til for ";
|
||||
$strAnIndex = "En indeks er lagt til for ";
|
||||
$strPrimary = "Primær";
|
||||
$strIndex = "Indeks";
|
||||
$strUnique = "Unik";
|
||||
$strKeyname = "Nøkkel";
|
||||
$strPrimaryKey = "Primærnøkkel";
|
||||
$strAddNewField = "Legg til felt";
|
||||
$strViewDump = "Vis dump (skjema) av tabell";
|
||||
$strLengthSet = "Lengde/Sett";
|
||||
$strSQLQuery = "SQL-spørring";
|
||||
$strProducedAnError = "resulterte i en feil.";
|
||||
$strModifications = "Endringene er lagret";
|
||||
$strSelectFields = "Velg felt (minst ett):";
|
||||
$strAddSearchConditions = "Legg til søke-kriterier (innhold i \"where\"-setningen):";
|
||||
$strDoAQuery = "Utfør en \"query by example\" (wildcard: \"%\")";
|
||||
$strDeleted = "Raden er slettet";
|
||||
$strDelete = "Slett";
|
||||
$strEdit = "Endre";
|
||||
$strPrevious = "Forrige";
|
||||
$strNext = "Neste";
|
||||
$strMySQLShowStatus = "Vis MySQL runtime informasjon";
|
||||
$strMySQLShowVars = "Vis MySQL systemvariabler";
|
||||
$strRenameTable = "Endre tabellens navn";
|
||||
$strRenameTableOK = "Tabellen \$table har fått nytt navn \$new_name";
|
||||
$strCopyTable = "Kopier tabell til:";
|
||||
$strStrucOnly = "Kun struktur";
|
||||
$strStrucData = "Struktur og data";
|
||||
$strCopyTableOK = "Tabellen \$table er kopiert til \$new_name.";
|
||||
$strFunction = "Funksjon";
|
||||
$strRunSQLQuery = "Run SQL query/queries on database ";
|
||||
$strViewDumpDB = "Vis dump (skjema) av database";
|
||||
$strPos1 = "Start";
|
||||
$strEnd = "Slutt";
|
||||
$strStrucCSV = "CSV data";
|
||||
$strSend = "send";
|
||||
$strRecords = "Rader";
|
||||
$strDocu = "Dokumentasjon";
|
||||
?>
|
||||
126
lang/polish.inc.php3
Normal file
126
lang/polish.inc.php3
Normal file
@ -0,0 +1,126 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
/* 1999-2000 (c) Piotr Roszatycki <dexter@debian.org> 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";
|
||||
?>
|
||||
123
lang/portuguese.inc.php3
Normal file
123
lang/portuguese.inc.php3
Normal file
@ -0,0 +1,123 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
/* thebest@information4u.com / camillai@mandic.com.br */
|
||||
|
||||
$strAPrimaryKey = "Chave primária acrescentada na ";
|
||||
$strAccessDenied = "Acesso Negado";
|
||||
$strAction = "Ações";
|
||||
$strAddNewField = "Adiciona novo campo";
|
||||
$strAddSearchConditions = "Condição de Pesquisa (Complemento da clausula \"where\"):";
|
||||
$strAnIndex = "Um indice foi adicionado na ";
|
||||
$strAttr = "Atributos";
|
||||
$strBrowse = "Visualiza";
|
||||
$strCarriage = "Carriage return: \\r";
|
||||
$strChange = "Muda";
|
||||
$strColumnNames = "Nome da Colunas";
|
||||
$strCopyTable = "Copia tabela para:";
|
||||
$strCopyTableOK = "Tabela \$table copiada para \$new_name.";
|
||||
$strCreate = "Cria";
|
||||
$strCreateNewDatabase = "Cria novo banco de dados";
|
||||
$strCreateNewTable = "Cria nova tabela no banco de dados ";
|
||||
$strDatabase = "Banco de Dados ";
|
||||
$strDatabases = "Banco de Dados";
|
||||
$strDefault = "Default";
|
||||
$strDelete = "Remove";
|
||||
$strDeleted = "Registro eliminado";
|
||||
$strDoAQuery = "Faça uma \"query by example\" (wildcard: \"%\")";
|
||||
$strDoYouReally = "Confirma : ";
|
||||
$strDocu = "Documentação";
|
||||
$strDrop = "Elimina";
|
||||
$strDropDB = "Elimina o banco de dados: ";
|
||||
$strDumpingData = "Extraindo dados da tabela";
|
||||
$strEdit = "Edita";
|
||||
$strEmpty = "Limpa";
|
||||
$strEmptyResultSet = "MySQL retornou um set vazio (ex. zero regs).";
|
||||
$strEnclosedBy = "enclosed by";
|
||||
$strEnd = "Fim";
|
||||
$strError = "Erro";
|
||||
$strEscapedBy = "escaped by";
|
||||
$strExtra = "Extra";
|
||||
$strField = "Campo";
|
||||
$strFields = "Qtd Campos";
|
||||
$strFunction = "Funçoes";
|
||||
$strGo = "Executa";
|
||||
$strHasBeenAltered = "foi alterado.";
|
||||
$strHasBeenCreated = "foi criado.";
|
||||
$strHasBeenDropped = "foi eliminado.";
|
||||
$strHasBeenEmptied = "foi esvaziado.";
|
||||
$strHome = "Home";
|
||||
$strHost = "Host";
|
||||
$strIfYouWish = "Para carregar apenas algumas colunas da tabela, faça uma lista separada por virgula.";
|
||||
$strIndex = "Index";
|
||||
$strInsert = "Insere";
|
||||
$strInsertIntoTable = "Insere na tabela";
|
||||
$strInsertNewRow = "Insere novo registro";
|
||||
$strInsertTextfiles = "Insere arquivo texto na tabela";
|
||||
$strKeyname = "Keyname";
|
||||
$strLengthSet = "Tamanho/Set";
|
||||
$strLineFeed = "Linefeed: \\n";
|
||||
$strLines = "Linhas";
|
||||
$strLocationTextfile = "Localização do arquivo textos";
|
||||
$strModifications = "Modificações foram salvas";
|
||||
$strMySQLReloaded = "MySQL reiniciado.";
|
||||
$strMySQLSaid = "Mensagens do MySQL : ";
|
||||
$strMySQLShowStatus = "Mostra informação de runtime do MySql";
|
||||
$strMySQLShowVars = "Mostra variáveis de sistema do MySQL";
|
||||
$strName = "Nome";
|
||||
$strNext = "Próximo";
|
||||
$strNo = "Não";
|
||||
$strNoTablesFound = "Nenhuma table encontrada no banco de dados";
|
||||
$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";
|
||||
$strPos1 = "Inicio";
|
||||
$strPrevious = "Anterior";
|
||||
$strPrimary = "Primary";
|
||||
$strPrimaryKey = "Chave Primária";
|
||||
$strProducedAnError = "produziu um erro.";
|
||||
$strProperties = "Propriedades";
|
||||
$strReadTheDocs = "Leia os docs";
|
||||
$strRecords = "Registros";
|
||||
$strReloadFailed = "Reinicialização do MySQL falhou.";
|
||||
$strReloadMySQL = "Reinicializa o MySQL";
|
||||
$strRenameTable = "Renomeia a tabela para ";
|
||||
$strRenameTableOK = "Tabela \$table renomeada para \$new_name";
|
||||
$strReplace = "Substituir";
|
||||
$strReplaceTable = "Substituir os dados da tabela pelos do arquivo";
|
||||
$strReset = "Reset";
|
||||
$strRunSQLQuery = "Executa SQL query no banco de dados ";
|
||||
$strRunning = "Rodando em ";
|
||||
$strSQLQuery = "SQL-query";
|
||||
$strSave = "Salva";
|
||||
$strSelect = "Seleciona";
|
||||
$strSelectFields = "Seleciones os campos (no mínimo 1)";
|
||||
$strSend = "envia";
|
||||
$strShowingRecords = "Mostrando registros ";
|
||||
$strStrucCSV = "Dados CSV";
|
||||
$strStrucData = "Estrutura e dados";
|
||||
$strStrucDrop = "Adiciona 'drop table'";
|
||||
$strStrucOnly = "Somente estrutura";
|
||||
$strSubmit = "Submete";
|
||||
$strSuccess = "Sua SQL-query foi executada com sucesso";
|
||||
$strTable = "tabela ";
|
||||
$strTableStructure = "Estrutura da tabela";
|
||||
$strTerminatedBy = "terminado por";
|
||||
$strTheContent = "O conteúdo do seu arquivo foi inserido";
|
||||
$strTheContents = "O conteúdo do arquivo substituiu o conteúdo da tabela que tinha a mesma chave primária ou única";
|
||||
$strTheTerminator = "Terminador de campos.";
|
||||
$strTotal = "total";
|
||||
$strType = "Tipo";
|
||||
$strUnique = "Unique";
|
||||
$strValue = "Value";
|
||||
$strViewDump = "Ver o esquema da tabela";
|
||||
$strViewDumpDB = "Ver o esquema do banco de dados";
|
||||
$strWelcome = "Benvindo ao ";
|
||||
$strWrongUser = "Usuário ou Senha errado. Acesso Negado.";
|
||||
$strYes = "Sim";
|
||||
$strMySQLShowProcess = "Mostra os Processos";
|
||||
$strLogout = "Log out";
|
||||
$strQBE = "Query by Example";
|
||||
$strBack = "Voltar";
|
||||
$strTableComments = "Comentários da tabela";
|
||||
?>
|
||||
133
lang/russian-koi8.inc.php3
Normal file
133
lang/russian-koi8.inc.php3
Normal file
@ -0,0 +1,133 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
$strAPrimaryKey = "Был добавлен первичный ключ к ";
|
||||
$strAccessDenied = "В доступе отказано";
|
||||
$strAction = "Действие";
|
||||
$strAddNewField = "Добавить новое поле";
|
||||
$strAddSearchConditions = "Добавить условия поиска (тело для \"where\" условия):";
|
||||
$strAnIndex = "Был добавлен индекс для ";
|
||||
$strAttr = "Атрибуты";
|
||||
$strBrowse = "Пролистать";
|
||||
$strCarriage = "Возврат каретки: \\r";
|
||||
$strChange = "Изменить";
|
||||
$strColumnNames = "Названия колонок";
|
||||
$strCopyTable = "Скопировать таблицу в:";
|
||||
$strCopyTableOK = "Таблица \$table была скопирована в \$new_name.";
|
||||
$strCreate = "Создать";
|
||||
$strCreateNewDatabase = "Создать новую БД";
|
||||
$strCreateNewTable = "Создать новую таблицу в БД ";
|
||||
$strDatabase = "БД ";
|
||||
$strDatabases = "Базы Данных";
|
||||
$strDefault = "По умолчанию";
|
||||
$strDelete = "Удалить";
|
||||
$strDeleted = "Ряд был удален";
|
||||
$strDoAQuery = "Выполнить \"запрос по примеру\" (символ подставновки: \"%\")";
|
||||
$strDoYouReally = "Вы действительно желаете ";
|
||||
$strDocu = "Документация";
|
||||
$strDrop = "Уничтожить";
|
||||
$strDropDB = "Уничтожить БД ";
|
||||
$strDumpingData = "Сдампать данные таблицы";
|
||||
$strEdit = "Редактировать";
|
||||
$strEmpty = "Пустота";
|
||||
$strEmptyResultSet = "MySQL вернула пустой результат (т.е. ноль рядов).";
|
||||
$strEnclosedBy = "заключенный в";
|
||||
$strEnd = "Конец";
|
||||
$strError = "Ошибка";
|
||||
$strEscapedBy = "завершаемые через";
|
||||
$strExtra = "Дополнительно";
|
||||
$strField = "Поле";
|
||||
$strFields = "Поля";
|
||||
$strFunction = "Функция";
|
||||
$strGo = "Пошел";
|
||||
$strHasBeenAltered = "была изменена.";
|
||||
$strHasBeenCreated = "была создана.";
|
||||
$strHasBeenDropped = "была уничтожена.";
|
||||
$strHasBeenEmptied = "была опустошена.";
|
||||
$strHome = "К началу";
|
||||
$strHost = "Хост";
|
||||
$strIfYouWish = "Если Вы желаете загрузить только некоторые столбцы таблицы, укажите разделенный запятыми список полей.";
|
||||
$strIndex = "Индекс";
|
||||
$strInsert = "Вставить";
|
||||
$strInsertIntoTable = "Вставить в таблицу";
|
||||
$strInsertNewRow = "Вставить новый ряд";
|
||||
$strInsertTextfiles = "Вставить текстовые файлы в таблицу";
|
||||
$strKeyname = "Имя ключа";
|
||||
$strLengthSet = "Длинна";
|
||||
$strLineFeed = "Символ окончания линии: \\n";
|
||||
$strLines = "Линии";
|
||||
$strLocationTextfile = "Месторасположение текстового файла";
|
||||
$strModifications = "Модификации были сохранены";
|
||||
$strMySQLReloaded = "MySQL перезагружена.";
|
||||
$strMySQLSaid = "MySQL сказала: ";
|
||||
$strMySQLShowStatus = "Показать состояние MySQL";
|
||||
$strMySQLShowVars = "Показать системные переменные MySQL";
|
||||
$strName = "Имя";
|
||||
$strNext = "Следующий";
|
||||
$strNo = "Нет";
|
||||
$strNoTablesFound = "В БД не обнаружено таблиц.";
|
||||
$strNull = "Ноль";
|
||||
$strOftenQuotation = "Обычно кавычки. ПО ВЫБОРУ означает, что только поля char и varchar заключаются в кавычки.";
|
||||
$strOptionalControls = "По выбору. Контролирует как читать или писать специальные символы.";
|
||||
$strOptionally = "ПО ВЫБОРУ";
|
||||
$strPos1 = "Начало";
|
||||
$strPrevious = "Предыдущий";
|
||||
$strPrimary = "Первичный";
|
||||
$strPrimaryKey = "Первичный ключ";
|
||||
$strProducedAnError = "привела к ошибке.";
|
||||
$strProperties = "Свойства";
|
||||
$strReadTheDocs = "Почитать документацию";
|
||||
$strRecords = "Записи";
|
||||
$strReloadFailed = "Не удалось перезагрузить MySQL.";
|
||||
$strReloadMySQL = "Перезагрузить MySQL";
|
||||
$strRenameTable = "Переименовать таблицу в";
|
||||
$strRenameTableOK = "Таблица \$table была переименована в \$new_name";
|
||||
$strReplace = "Заместить";
|
||||
$strReplaceTable = "Заместить данные таблицы данными из файла";
|
||||
$strReset = "Переустановить";
|
||||
$strRunSQLQuery = "Выполнить SQL запрос(ы) на БД ";
|
||||
$strRunning = "запущено на ";
|
||||
$strSQLQuery = "SQL-запрос";
|
||||
$strSave = "Сохранить";
|
||||
$strSelect = "Выбрать";
|
||||
$strSelectFields = "Выбрать поля (минимум одно):";
|
||||
$strSend = "послать";
|
||||
$strShowingRecords = "Показывает записи ";
|
||||
$strStrucCSV = "CSV данные";
|
||||
$strStrucData = "Структура и данные";
|
||||
$strStrucDrop = "Добавить 'удалить таблицу'";
|
||||
$strStrucOnly = "Только структуру";
|
||||
$strSubmit = "Выполнить";
|
||||
$strSuccess = "Ваш SQL-запрос был успешно выполнен";
|
||||
$strTable = "таблица ";
|
||||
$strTableStructure = "Структура таблицы для таблицы";
|
||||
$strTerminatedBy = "Завершается через";
|
||||
$strTheContent = "Содержимое файла было импортировано.";
|
||||
$strTheContents = "Содержимое файла замещает содержимое таблицы для рядов с идентичными первичными или уникальными ключами.";
|
||||
$strTheTerminator = "Символ окончания полей.";
|
||||
$strTotal = "всего";
|
||||
$strType = "Тип";
|
||||
$strUnique = "Уникальное";
|
||||
$strValue = "Значение";
|
||||
$strViewDump = "Просмотреть дамп (схему) таблицы";
|
||||
$strViewDumpDB = "Просмотреть дамп (схему) БД";
|
||||
$strWelcome = "Добро пожаловать в ";
|
||||
$strWrongUser = "Ошибочный логин/пароль. В доступе отказано.";
|
||||
$strYes = "Да";
|
||||
$strMySQLShowProcess = "Показать процессы";
|
||||
$strLogout = "Выйти из системы";
|
||||
$strQBE = "Запрос по примеру";
|
||||
//$strSort = "Отсортировать";
|
||||
//$strAscending = "Восходящий";
|
||||
//$strDescending = "Нисходящий";
|
||||
$strShow = "Показать";
|
||||
//$strCriteria = "Критерий";
|
||||
//$strAnd = "И";
|
||||
$strOr = "Или";
|
||||
//$strModify = "Изменить";
|
||||
//$strAddDeleteRow = "Добавить/удалить ряд критерия";
|
||||
//$strAddDeleteColumn = "Добавить/удалить столбец критерия";
|
||||
//$strUpdateQuery = "Дополнить Запрос";
|
||||
//$strRunQuery = "Выполнить Запрос";
|
||||
//$strUseTables = "Использовать таблицы";
|
||||
?>
|
||||
133
lang/russian-win1251.inc.php3
Normal file
133
lang/russian-win1251.inc.php3
Normal file
@ -0,0 +1,133 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
$strAPrimaryKey = "Был добавлен первичный ключ к ";
|
||||
$strAccessDenied = "В доступе отказано";
|
||||
$strAction = "Действие";
|
||||
$strAddNewField = "Добавить новое поле";
|
||||
$strAddSearchConditions = "Добавить условия поиска (тело для \"where\" условия):";
|
||||
$strAnIndex = "Был добавлен индекс для ";
|
||||
$strAttr = "Атрибуты";
|
||||
$strBrowse = "Пролистать";
|
||||
$strCarriage = "Возврат каретки: \\r";
|
||||
$strChange = "Изменить";
|
||||
$strColumnNames = "Названия колонок";
|
||||
$strCopyTable = "Скопировать таблицу в:";
|
||||
$strCopyTableOK = "Таблица \$table была скопирована в \$new_name.";
|
||||
$strCreate = "Создать";
|
||||
$strCreateNewDatabase = "Создать новую БД";
|
||||
$strCreateNewTable = "Создать новую таблицу в БД ";
|
||||
$strDatabase = "БД ";
|
||||
$strDatabases = "Базы Данных";
|
||||
$strDefault = "По умолчанию";
|
||||
$strDelete = "Удалить";
|
||||
$strDeleted = "Ряд был удален";
|
||||
$strDoAQuery = "Выполнить \"запрос по примеру\" (символ подставновки: \"%\")";
|
||||
$strDoYouReally = "Вы действительно желаете ";
|
||||
$strDocu = "Документация";
|
||||
$strDrop = "Уничтожить";
|
||||
$strDropDB = "Уничтожить БД ";
|
||||
$strDumpingData = "Сдампать данные таблицы";
|
||||
$strEdit = "Редактировать";
|
||||
$strEmpty = "Пустота";
|
||||
$strEmptyResultSet = "MySQL вернула пустой результат (т.е. ноль рядов).";
|
||||
$strEnclosedBy = "заключенный в";
|
||||
$strEnd = "Конец";
|
||||
$strError = "Ошибка";
|
||||
$strEscapedBy = "завершаемые через";
|
||||
$strExtra = "Дополнительно";
|
||||
$strField = "Поле";
|
||||
$strFields = "Поля";
|
||||
$strFunction = "Функция";
|
||||
$strGo = "Пошел";
|
||||
$strHasBeenAltered = "была изменена.";
|
||||
$strHasBeenCreated = "была создана.";
|
||||
$strHasBeenDropped = "была уничтожена.";
|
||||
$strHasBeenEmptied = "была опустошена.";
|
||||
$strHome = "К началу";
|
||||
$strHost = "Хост";
|
||||
$strIfYouWish = "Если Вы желаете загрузить только некоторые столбцы таблицы, укажите разделенный запятыми список полей.";
|
||||
$strIndex = "Индекс";
|
||||
$strInsert = "Вставить";
|
||||
$strInsertIntoTable = "Вставить в таблицу";
|
||||
$strInsertNewRow = "Вставить новый ряд";
|
||||
$strInsertTextfiles = "Вставить текстовые файлы в таблицу";
|
||||
$strKeyname = "Имя ключа";
|
||||
$strLengthSet = "Длинна";
|
||||
$strLineFeed = "Символ окончания линии: \\n";
|
||||
$strLines = "Линии";
|
||||
$strLocationTextfile = "Месторасположение текстового файла";
|
||||
$strModifications = "Модификации были сохранены";
|
||||
$strMySQLReloaded = "MySQL перезагружена.";
|
||||
$strMySQLSaid = "MySQL сказала: ";
|
||||
$strMySQLShowStatus = "Показать состояние MySQL";
|
||||
$strMySQLShowVars = "Показать системные переменные MySQL";
|
||||
$strName = "Имя";
|
||||
$strNext = "Следующий";
|
||||
$strNo = "Нет";
|
||||
$strNoTablesFound = "В БД не обнаружено таблиц.";
|
||||
$strNull = "Ноль";
|
||||
$strOftenQuotation = "Обычно кавычки. ПО ВЫБОРУ означает, что только поля char и varchar заключаются в кавычки.";
|
||||
$strOptionalControls = "По выбору. Контролирует как читать или писать специальные символы.";
|
||||
$strOptionally = "ПО ВЫБОРУ";
|
||||
$strPos1 = "Начало";
|
||||
$strPrevious = "Предыдущий";
|
||||
$strPrimary = "Первичный";
|
||||
$strPrimaryKey = "Первичный ключ";
|
||||
$strProducedAnError = "привела к ошибке.";
|
||||
$strProperties = "Свойства";
|
||||
$strReadTheDocs = "Почитать документацию";
|
||||
$strRecords = "Записи";
|
||||
$strReloadFailed = "Не удалось перезагрузить MySQL.";
|
||||
$strReloadMySQL = "Перезагрузить MySQL";
|
||||
$strRenameTable = "Переименовать таблицу в";
|
||||
$strRenameTableOK = "Таблица \$table была переименована в \$new_name";
|
||||
$strReplace = "Заместить";
|
||||
$strReplaceTable = "Заместить данные таблицы данными из файла";
|
||||
$strReset = "Переустановить";
|
||||
$strRunSQLQuery = "Выполнить SQL запрос(ы) на БД ";
|
||||
$strRunning = "запущено на ";
|
||||
$strSQLQuery = "SQL-запрос";
|
||||
$strSave = "Сохранить";
|
||||
$strSelect = "Выбрать";
|
||||
$strSelectFields = "Выбрать поля (минимум одно):";
|
||||
$strSend = "послать";
|
||||
$strShowingRecords = "Показывает записи ";
|
||||
$strStrucCSV = "CSV данные";
|
||||
$strStrucData = "Структура и данные";
|
||||
$strStrucDrop = "Добавить 'удалить таблицу'";
|
||||
$strStrucOnly = "Только структуру";
|
||||
$strSubmit = "Выполнить";
|
||||
$strSuccess = "Ваш SQL-запрос был успешно выполнен";
|
||||
$strTable = "таблица ";
|
||||
$strTableStructure = "Структура таблицы для таблицы";
|
||||
$strTerminatedBy = "Завершается через";
|
||||
$strTheContent = "Содержимое файла было импортировано.";
|
||||
$strTheContents = "Содержимое файла замещает содержимое таблицы для рядов с идентичными первичными или уникальными ключами.";
|
||||
$strTheTerminator = "Символ окончания полей.";
|
||||
$strTotal = "всего";
|
||||
$strType = "Тип";
|
||||
$strUnique = "Уникальное";
|
||||
$strValue = "Значение";
|
||||
$strViewDump = "Просмотреть дамп (схему) таблицы";
|
||||
$strViewDumpDB = "Просмотреть дамп (схему) БД";
|
||||
$strWelcome = "Добро пожаловать в ";
|
||||
$strWrongUser = "Ошибочный логин/пароль. В доступе отказано.";
|
||||
$strYes = "Да";
|
||||
$strMySQLShowProcess = "Показать процессы";
|
||||
$strLogout = "Выйти из системы";
|
||||
$strQBE = "Запрос по примеру";
|
||||
//$strSort = "Отсортировать";
|
||||
//$strAscending = "Восходящий";
|
||||
//$strDescending = "Нисходящий";
|
||||
$strShow = "Показать";
|
||||
//$strCriteria = "Критерий";
|
||||
//$strAnd = "И";
|
||||
$strOr = "Или";
|
||||
//$strModify = "Изменить";
|
||||
//$strAddDeleteRow = "Добавить/удалить ряд критерия";
|
||||
//$strAddDeleteColumn = "Добавить/удалить столбец критерия";
|
||||
//$strUpdateQuery = "Дополнить Запрос";
|
||||
//$strRunQuery = "Выполнить Запрос";
|
||||
//$strUseTables = "Использовать таблицы";
|
||||
?>
|
||||
135
lang/spanish.inc.php3
Normal file
135
lang/spanish.inc.php3
Normal file
@ -0,0 +1,135 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
/* Tradiccion al castellano Kiko Albio: STN */
|
||||
// Some Corrections: Wasim Juned - wasimjuned@home.com
|
||||
|
||||
$strAPrimaryKey = "Se ha ingresado una nueva clave primaria en ";
|
||||
$strAccessDenied = "Acceso denegado ";
|
||||
$strAction = "Acción";
|
||||
$strAddNewField = "Ingresar nuevo campo";
|
||||
$strAddSearchConditions = "Ingresar condiciones de búsqueda (cuerpo de la clausula \"where\"):";
|
||||
$strAnIndex = "Un índice se ha ingresado en ";
|
||||
$strAttr = "Atributos";
|
||||
$strBrowse = "Examinar";
|
||||
$strCarriage = "Retorno de carro: \\r";
|
||||
$strChange = "Cambio";
|
||||
$strColumnNames = "Nombre de columnas";
|
||||
$strCopyTable = "Copiar tablas a :";
|
||||
$strCopyTableOK = "La tabla \$table ha sido copiada a \$new_name.";
|
||||
$strCreate = "Crear";
|
||||
$strCreateNewDatabase = "Crear nueva base de datos";
|
||||
$strCreateNewTable = "Crear nueva tabla en base de datos ";
|
||||
$strDatabase = "Base De Datos ";
|
||||
$strDatabases = "Bases de datos";
|
||||
$strDefault = "Defecto";
|
||||
$strDelete = "Borrar";
|
||||
$strDeleted = "La fila se ha borrado";
|
||||
$strDoAQuery = "Realizar un \"query by example\" (wildcard: \"%\")";
|
||||
$strDoYouReally = "Desea realmente hacer ";
|
||||
$strDocu = "Documentación";
|
||||
$strDrop = "Eliminar";
|
||||
$strDropDB = "Eliminar base de datos ";
|
||||
$strDumpingData = "Volcar la base de datos para la tabla";
|
||||
$strEdit = "Editar";
|
||||
$strEmpty = "Vaciar";
|
||||
$strEmptyResultSet = "MySQL ha devuelto un valor vacío (i.e. cero columnas).";
|
||||
$strEnclosedBy = "Encerrado por";
|
||||
$strEnd = "Fin";
|
||||
$strError = "Error";
|
||||
$strEscapedBy = "Escapado por";
|
||||
$strExtra = "Extra";
|
||||
$strField = "Campo";
|
||||
$strFields = "Campos";
|
||||
$strFunction = "Función";
|
||||
$strGo = "Siga";
|
||||
$strHasBeenAltered = "se ha alterado.";
|
||||
$strHasBeenCreated = "se ha creado.";
|
||||
$strHasBeenDropped = "se ha eliminado.";
|
||||
$strHasBeenEmptied = "se ha vaciado.";
|
||||
$strHome = "Home";
|
||||
$strHost = "Host";
|
||||
$strIfYouWish = "Si deseas cargar solo una de las columnas de la tabla, espedificar una coma separando los campos.";
|
||||
$strIndex = "Indice";
|
||||
$strInsert = "Insertar";
|
||||
$strInsertIntoTable = "Insertar in tabla";
|
||||
$strInsertNewRow = "Insertar nueva fila";
|
||||
$strInsertTextfiles = "Insertar archivo de texto en la tabla";
|
||||
$strKeyname = "Nombre de la clave";
|
||||
$strLengthSet = "Configurar longitud";
|
||||
$strLineFeed = "Retorno de carro: \\n";
|
||||
$strLines = "Lineas";
|
||||
$strLocationTextfile = "Localización del archivo de texto";
|
||||
$strModifications = "Se han salvado las modificaciones";
|
||||
$strMySQLReloaded = "Reinicio de MySQL.";
|
||||
$strMySQLSaid = "MySQL ha dicho: ";
|
||||
$strMySQLShowStatus = "Mostrar información de marcha de MySQL";
|
||||
$strMySQLShowVars = "Mostrar las variables del sistema MySQL";
|
||||
$strName = "Nombre";
|
||||
$strNext = "Próxima";
|
||||
$strNo = "No";
|
||||
$strNoTablesFound = "No se han encontrado tablas en la base de datos.";
|
||||
$strNull = "Null";
|
||||
$strOftenQuotation = "A menudo comillas. OPCIONALMENTE signifíca que únicamente los campos char y varchar estan encerrados por el \"enclosed by\"-character.";
|
||||
$strOptionalControls = "Optional. Controls how to write or read special characters.";
|
||||
$strOptionally = "OPCIONALMENTE";
|
||||
$strPos1 = "Empezar";
|
||||
$strPrevious = "Previo";
|
||||
$strPrimary = "Primary";
|
||||
$strPrimaryKey = "Primary key";
|
||||
$strProducedAnError = "se produjo un error.";
|
||||
$strProperties = "Propiedades";
|
||||
$strReadTheDocs = "Leer los documentos";
|
||||
$strRecords = "Campos";
|
||||
$strReloadFailed = "El reinicio de MySQL ha fallado.";
|
||||
$strReloadMySQL = "Reinicio de MySQL";
|
||||
$strRenameTable = "Renombrar tabla a";
|
||||
$strRenameTableOK = "Tabla \$table se ha renombrado a \$new_name";
|
||||
$strReplace = "Reemplazar";
|
||||
$strReplaceTable = "Reemplazar datos de tabla con archivo";
|
||||
$strReset = "Reset";
|
||||
$strRunSQLQuery = "Ejecutar SQL query/queries en la base de datos ";
|
||||
$strRunning = "ejecutandose on ";
|
||||
$strSQLQuery = "SQL-query";
|
||||
$strSave = "Salvar";
|
||||
$strSelect = "Seleccionar";
|
||||
$strSelectFields = "Seleccionar campos (al menos uno):";
|
||||
$strSend = "enviar";
|
||||
$strShowingRecords = "Mostrando campos ";
|
||||
$strStrucCSV = "Datos CSV ";
|
||||
$strStrucData = "Estructura y datos";
|
||||
$strStrucDrop = "Aqadir 'drop table'";
|
||||
$strStrucOnly = "Unicamente estructura ";
|
||||
$strSubmit = "Enviar";
|
||||
$strSuccess = "Su query-SQL ha sido ejecutado con ixito";
|
||||
$strTable = "tabla ";
|
||||
$strTableStructure = "Estructura de tabla para tabla";
|
||||
$strTerminatedBy = "terminado por";
|
||||
$strTheContent = "El contenido de su archivo ha sido insertado.";
|
||||
$strTheContents = "El contenido del archivo reemplaza el contenido de la tabla seleccionada para las columnas identicas primarias o znicas.";
|
||||
$strTheTerminator = "El terminador de los campos.";
|
||||
$strTotal = "total";
|
||||
$strType = "Tipo";
|
||||
$strUnique = "Unico";
|
||||
$strValue = "Valor";
|
||||
$strViewDump = "Mostrar volcado esquema de la tabla";
|
||||
$strViewDumpDB = "Ver volcado esquema de la base de datos";
|
||||
$strWelcome = "Bienvenido a ";
|
||||
$strWrongUser = "Usuario/password equivocado. Acesso denegado.";
|
||||
$strYes = "Si" ;
|
||||
$strMySQLShowProcess = "Mostrar procesos";
|
||||
$strLogout = "Salir";
|
||||
$strQBE = "Query de ejemplo";
|
||||
//$strSort = "Ordenar";
|
||||
//$strAscending = "Asendente";
|
||||
//$strDescending = "Descendente";
|
||||
$strShow = "Mostrar";
|
||||
//$strCriteria = "Criterio";
|
||||
//$strAnd = "Y";
|
||||
$strOr = "O";
|
||||
//$strModify = "Modificar";
|
||||
//$strAddDeleteRow = "Aqadir/borrar fila de criterio";
|
||||
//$strAddDeleteColumn = "Aqadir/borrar columna de criterio";
|
||||
//$strUpdateQuery = "Update Query";
|
||||
//$strRunQuery = "Ejecutar Query";
|
||||
//$strUseTables = "Usar tablas";
|
||||
?>
|
||||
148
lang/swedish.inc.php3
Normal file
148
lang/swedish.inc.php3
Normal file
@ -0,0 +1,148 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
$strAPrimaryKey = "En primär nyckel har aktiverats ";
|
||||
$strAccessDenied = "Åtkommst nekad";
|
||||
$strAction = "Handling";
|
||||
|
||||
|
||||
$strAddNewField = "Lägg till nytt fält";
|
||||
$strAddSearchConditions = "Lägg till sök kreterier (body of the \"where\" clause):";
|
||||
$strAfter = "Efter";
|
||||
$strAnIndex = "Ett index har lagts till ";
|
||||
|
||||
|
||||
$strAtBeginningOfTable = "I början av tabellen";
|
||||
$strAtEndOfTable = "I slutet av tabellen";
|
||||
$strAttr = "Attributer";
|
||||
$strBack = "Bakåt";
|
||||
$strBrowse = "Visa";
|
||||
$strCarriage = "Rad byte: \\r";
|
||||
$strChange = "Ändra";
|
||||
$strColumnNames = "Kolumn namn";
|
||||
$strCompleteInserts = "Kompletta insättningar";
|
||||
$strCopyTable = "Kopiera tabellen till:";
|
||||
$strCopyTableOK = "Tabellen \$table har kopierats till \$new_name.";
|
||||
$strCreate = "Skapa";
|
||||
$strCreateNewDatabase = "Skapa ny databas";
|
||||
$strCreateNewTable = "Skapa nya tabeller i databas ";
|
||||
|
||||
$strDatabase = "Databas ";
|
||||
$strDatabases = "databaser";
|
||||
$strDefault = "Standard";
|
||||
$strDelete = "Radera";
|
||||
$strDeleted = "Raden har raderats";
|
||||
|
||||
$strDisableMagicQuotes = "<b>Varning:</b> 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 = "<b>Varning:</b> 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";
|
||||
|
||||
?>
|
||||
148
lang/thai.inc.php3
Normal file
148
lang/thai.inc.php3
Normal file
@ -0,0 +1,148 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
$strAPrimaryKey = "ä´éà¾ÔèÁ primary key áÅéÇãËé¡Ñº ";#"A primary key has been added on ";
|
||||
$strAccessDenied = "äÁè͹ØÒµãËéãªé§Ò¹";#Access denied";
|
||||
$strAction = "¡ÃзӡÒÃ";
|
||||
|
||||
|
||||
$strAddNewField = "à¾ÔèÁ field ãËÁè";#"Add new field";
|
||||
$strAddSearchConditions = "à¾ÔèÁà§×è͹䢤é¹ËÒ (ã¹Êèǹ¢Í§ where):";#"Add search conditions (body of the \"where\" clause):";
|
||||
$strAfter = "ËÅѧ";#"After";
|
||||
$strAnIndex = "ä´éà¾ÔèÁ index áÅéÇãËé¡Ñº ";#"An index has been added on ";
|
||||
|
||||
|
||||
$strAtBeginningOfTable = "·Õè¨Ø´àÃÔèÁµé¹¢Í§µÒÃÒ§";#"At Beginning of Table";
|
||||
$strAtEndOfTable = "·Õè¨Ø´ÊØ´·éÒ¢ͧµÒÃÒ§";#"At End of Table";
|
||||
$strAttr = "Attributes";
|
||||
$strBack = "Âé͹¡ÅѺ";#"Back";
|
||||
$strBrowse = "à»Ô´´Ù";#"Browse";
|
||||
$strCarriage = "Carriage return: \\r";
|
||||
$strChange = "à»ÅÕè¹";#"Change";
|
||||
$strColumnNames = "ª×èͤÍÅÑÁ¹ì";"Column names";
|
||||
$strCompleteInserts = "Complete inserts";
|
||||
$strCopyTable = "ÊíÒà¹ÒµÒÃÒ§à»ç¹ :";#"Copy table to:";
|
||||
$strCopyTableOK = "µÒÃÒ§ \$table ä´é·íÒ¡ÒÃÊíÒà¹Òä»à»ç¹ \$new_name àÃÕºÃéÍÂáÅéÇ.";#"Table \$table has been copied to \$new_name.";
|
||||
$strCreate = "ÊÃéÒ§";#"Create";
|
||||
$strCreateNewDatabase = "ÊÃéÒ§°Ò¹¢éÍÁÙÅãËÁè";#"Create new database";
|
||||
$strCreateNewTable = "ÊÃéÒ§µÒÃÒ§ã¹°Ò¹¢éÍÁÙŹÕé ";#"Create new table on database ";
|
||||
|
||||
$strDatabase = "°Ò¹¢éÍÁÙÅ ";#"Database ";
|
||||
$strDatabases = "°Ò¹¢éÍÁÙÅ";#"databases";
|
||||
$strDefault = "Default";
|
||||
$strDelete = "ź";#"Delete";
|
||||
$strDeleted = "źá¶ÇÍÍ¡àÃÕºÃéÍÂáÅéÇ";#"The row has been deleted";
|
||||
|
||||
$strDisableMagicQuotes = "<b>Warning:</b> 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 = "<b>Warning:</b> 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";
|
||||
|
||||
?>
|
||||
70
ldi_check.php3
Executable file
70
ldi_check.php3
Executable file
@ -0,0 +1,70 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
/* This file checks and builds the sql-string for
|
||||
LOAD DATA INFILE 'file_name.txt' [REPLACE | IGNORE] INTO TABLE table_name
|
||||
[FIELDS
|
||||
[TERMINATED BY '\t']
|
||||
[OPTIONALLY] ENCLOSED BY "]
|
||||
[ESCAPED BY '\\' ]]
|
||||
[LINES TERMINATED BY '\n']
|
||||
[(column_name,...)]
|
||||
*/
|
||||
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
|
||||
if (isset($btnLDI) && ($textfile != "none"))
|
||||
{
|
||||
if(!isset($replace))
|
||||
$replace = "";
|
||||
|
||||
$textfile=addslashes($textfile);
|
||||
|
||||
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$stripped_field_terminater = stripslashes($field_terminater);
|
||||
$stripped_escaped = stripslashes($escaped);
|
||||
$stripped_line_terminator = stripslashes($line_terminator);
|
||||
} else {
|
||||
$stripped_field_terminater = $field_terminater;
|
||||
$stripped_escaped = $escaped;
|
||||
$stripped_line_terminator = $line_terminator;
|
||||
}
|
||||
$query = "LOAD DATA LOCAL INFILE '$textfile' $replace INTO TABLE $into_table ";
|
||||
if (isset($field_terminater))
|
||||
{ $query = $query . "FIELDS TERMINATED BY '".$stripped_field_terminater."' ";
|
||||
}
|
||||
|
||||
if (isset($enclose_option) && strlen($enclose_option)>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");
|
||||
}
|
||||
?>
|
||||
76
ldi_table.php3
Executable file
76
ldi_table.php3
Executable file
@ -0,0 +1,76 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
// This file inserts a textfile into a table
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
require("header.inc.php3");
|
||||
|
||||
$tables = mysql_list_tables($db);
|
||||
$num_tables = @mysql_numrows($tables);
|
||||
?>
|
||||
|
||||
<form action="ldi_check.php3" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="goto" value="tbl_properties.php3">
|
||||
<table border="1">
|
||||
<tr>
|
||||
<td><?php echo $strLocationTextfile; ?></td>
|
||||
<td colspan=2><input type="file" name="textfile"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $strReplaceTable; ?></td>
|
||||
<td><input type="checkbox" name="replace" value="REPLACE"><?php echo $strReplace; ?></td>
|
||||
<td><?php echo $strTheContents; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $strFields; ?><br><?php echo $strTerminatedBy; ?></td>
|
||||
<td><input type="text" name="field_terminater" size="2" maxlength="2" value=";"></td>
|
||||
<td><?php echo $strTheTerminator; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $strFields; ?><br><?php echo $strEnclosedBy; ?></td>
|
||||
<td><input type="text" name="enclosed" size="1" maxlength="1" value=""">
|
||||
<input type="Checkbox" name="enclose_option" value="OPTIONALLY"><?php echo $strOptionally; ?>
|
||||
</td>
|
||||
<td><?php echo $strOftenQuotation; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $strFields; ?><br><?php echo $strEscapedBy; ?></td>
|
||||
<td><input type="text" name="escaped" size="2" maxlength="2" value="\\"></td>
|
||||
<td><?php echo $strOptionalControls; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $strLines; ?><br><?php echo $strTerminatedBy; ?></td>
|
||||
<td><input type="text" name="line_terminator" size="8" maxlength="8" value="\n"></td>
|
||||
<td><?php echo $strCarriage; ?><br><?php echo $strLineFeed; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $strColumnNames; ?></td>
|
||||
<td><input type="text" name="column_name"></td>
|
||||
<td><?php echo $strIfYouWish; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" align="center"><?php print show_docu("manual_Reference.html#Load");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" align="center">
|
||||
<input type="Hidden" name="server" value="<?php echo $server ?>">
|
||||
<input type="Hidden" name="db" value="<?php echo $db; ?>">
|
||||
<input type="Hidden" name="table" value="<?php echo $table; ?>">
|
||||
<input type="Hidden" name="zero_rows" value="<?php echo $strTheContent; ?>">
|
||||
<input type="Hidden" name="into_table" value="<?php echo $table; ?>">
|
||||
<input type="Submit" name="btnLDI" value=" <?php echo $strSubmit; ?> ">
|
||||
<input type="Reset" value=" <?php echo $strReset; ?> ">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
<?php
|
||||
|
||||
require ("footer.inc.php3");
|
||||
?>
|
||||
334
left.php3
Executable file
334
left.php3
Executable file
@ -0,0 +1,334 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
require("lib.inc.php3");
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>phpMyAdmin</title>
|
||||
|
||||
<script LANGUAGE="JavaScript" type="text/javascript">
|
||||
<!--
|
||||
// These scripts were originally found on cooltype.com.
|
||||
// Modified 01/01/1999 by Tobias Ratschiller for linuxapps.com
|
||||
|
||||
// Modified 7th June 2000 by Brian Birtles for Mozilla 5.0
|
||||
// compatibility for phpMyAdmin
|
||||
|
||||
document.onmouseover = doDocumentOnMouseOver ;
|
||||
document.onmouseout = doDocumentOnMouseOut ;
|
||||
|
||||
function doDocumentOnMouseOver() {
|
||||
var eSrc = window.event.srcElement ;
|
||||
if (eSrc.className == "item") {
|
||||
window.event.srcElement.className = "highlight";
|
||||
}
|
||||
}
|
||||
|
||||
function doDocumentOnMouseOut() {
|
||||
var eSrc = window.event.srcElement ;
|
||||
if (eSrc.className == "highlight") {
|
||||
window.event.srcElement.className = "item";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var bV=parseInt(navigator.appVersion);
|
||||
NS4=(document.layers) ? true : false;
|
||||
IE4=((document.all)&&(bV>=4)) ? true : false;
|
||||
DOM=(!document.layers && !document.all && bV>=4) ? true : false; // A hack to guess if the browser supports the DOM
|
||||
capable = (NS4 || IE4 || DOM) ? true : false;
|
||||
|
||||
function expandIt(){return}
|
||||
function expandAll(){return}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<script language="JavaScript1.2" type="text/javascript">
|
||||
<!--
|
||||
isExpanded = false;
|
||||
|
||||
function getIndex(el) {
|
||||
ind = null;
|
||||
for (i=0; i<document.layers.length; i++) {
|
||||
whichEl = document.layers[i];
|
||||
if (whichEl.id == el) {
|
||||
ind = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return ind;
|
||||
}
|
||||
|
||||
function arrange() {
|
||||
nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height;
|
||||
for (i=firstInd+1; i<document.layers.length; i++) {
|
||||
whichEl = document.layers[i];
|
||||
if (whichEl.visibility != "hide") {
|
||||
whichEl.pageY = nextY;
|
||||
nextY += whichEl.document.height;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function initIt() {
|
||||
if (NS4) {
|
||||
for (i=0; i<document.layers.length; i++) {
|
||||
whichEl = document.layers[i];
|
||||
if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";
|
||||
}
|
||||
arrange();
|
||||
} else if(IE4) {
|
||||
tempColl = document.all.tags("DIV");
|
||||
for (i=0; i<tempColl.length; i++) {
|
||||
if (tempColl(i).className == "child") tempColl(i).style.display = "none";
|
||||
}
|
||||
} else if(DOM) {
|
||||
tempColl = document.getElementsByTagName("DIV");
|
||||
for (i=0; i<tempColl.length; i++) {
|
||||
if (tempColl(i).className == "child") tempColl(i).style.visibility = "hidden";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function expandIt(el, unexpand) {
|
||||
if (!capable) return;
|
||||
if (IE4) {
|
||||
expandIE(el, unexpand);
|
||||
} else if(NS4) {
|
||||
expandNS(el, unexpand);
|
||||
} else if(DOM) {
|
||||
expandDOM(el, unexpand);
|
||||
}
|
||||
}
|
||||
|
||||
function expandIE(el, unexpand) {
|
||||
whichEl = eval(el + "Child");
|
||||
|
||||
// Modified Tobias Ratschiller 01-01-99:
|
||||
// event.srcElement obviously only works when clicking directly
|
||||
// on the image. Changed that to use the images's ID instead (so
|
||||
// you've to provide a valid ID!).
|
||||
|
||||
//whichIm = event.srcElement;
|
||||
whichIm = eval(el+"Img");
|
||||
|
||||
if (whichEl.style.display == "none") {
|
||||
whichEl.style.display = "block";
|
||||
whichIm.src = "images/minus.gif";
|
||||
}
|
||||
else {
|
||||
if (unexpand) {
|
||||
whichEl.style.display = "none";
|
||||
whichIm.src = "images/plus.gif";
|
||||
}
|
||||
}
|
||||
window.event.cancelBubble = true ;
|
||||
}
|
||||
|
||||
function expandNS(el, unexpand) {
|
||||
whichEl = eval("document." + el + "Child");
|
||||
whichIm = eval("document." + el + "Parent.document.images['imEx']");
|
||||
if (whichEl.visibility == "hide") {
|
||||
whichEl.visibility = "show";
|
||||
whichIm.src = "images/minus.gif";
|
||||
} else {
|
||||
if (unexpand) {
|
||||
whichEl.visibility = "hide";
|
||||
whichIm.src = "images/plus.gif";
|
||||
}
|
||||
}
|
||||
arrange();
|
||||
}
|
||||
|
||||
function expandDOM(el, unexpand) {
|
||||
|
||||
whichEl = document.getElementById(el + "Child");
|
||||
whichIm = document.getElementById(el + "Img");
|
||||
|
||||
if (whichEl.style.visibility != "visible") {
|
||||
whichEl.style.visibility = "visible";
|
||||
whichIm.src = "images/minus.gif";
|
||||
} else {
|
||||
if (unexpand) {
|
||||
whichEl.style.visibility = "hidden";
|
||||
whichIm.src = "images/plus.gif";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function showAll() {
|
||||
for (i=firstInd; i<document.layers.length; i++) {
|
||||
whichEl = document.layers[i];
|
||||
whichEl.visibility = "show";
|
||||
}
|
||||
}
|
||||
|
||||
function expandAll(isBot) {
|
||||
// Brian Birtles 7-Jun-00 : This fn might be unnecessary (for phpMyAdmin).
|
||||
// My changes are certainly untested.
|
||||
newSrc = (isExpanded) ? "images/plus.gif" : "images/minus.gif";
|
||||
|
||||
if (NS4) {
|
||||
// TR-02-01-99: Don't need that
|
||||
// document.images["imEx"].src = newSrc;
|
||||
for (i=firstInd; i<document.layers.length; i++) {
|
||||
whichEl = document.layers[i];
|
||||
if (whichEl.id.indexOf("Parent") != -1) {
|
||||
whichEl.document.images["imEx"].src = newSrc;
|
||||
}
|
||||
if (whichEl.id.indexOf("Child") != -1) {
|
||||
whichEl.visibility = (isExpanded) ? "hide" : "show";
|
||||
}
|
||||
}
|
||||
|
||||
arrange();
|
||||
if (isBot && isExpanded) scrollTo(0,document.layers[firstInd].pageY);
|
||||
} else if(IE4) {
|
||||
divColl = document.all.tags("DIV");
|
||||
for (i=0; i<divColl.length; i++) {
|
||||
if (divColl(i).className == "child") {
|
||||
divColl(i).style.display = (isExpanded) ? "none" : "block";
|
||||
}
|
||||
}
|
||||
imColl = document.images.item("imEx");
|
||||
for (i=0; i<imColl.length; i++) {
|
||||
imColl(i).src = newSrc;
|
||||
}
|
||||
} else if(DOM) {
|
||||
divColl = document.getElementsByTagName("DIV");
|
||||
for (i=0; i<divColl.length; i++) {
|
||||
if (divColl(i).className == "child") {
|
||||
divColl(i).style.visibility = (isExpanded) ? "hidden" : "visible";
|
||||
}
|
||||
}
|
||||
imColl = document.getElementsByName("imEx");
|
||||
for (i=0; i<imColl.length; i++) {
|
||||
imColl(i).src = newSrc;
|
||||
}
|
||||
}
|
||||
|
||||
isExpanded = !isExpanded;
|
||||
}
|
||||
|
||||
with (document) {
|
||||
if(DOM) {
|
||||
// Brian Birtles : This is not the ideal method of doing this
|
||||
// but under the 7th June '00 Mozilla build (and many before
|
||||
// it) Mozilla did not treat text between <style> tags as
|
||||
// style information unless it was written with the one call
|
||||
// to write().
|
||||
var lstyle = "<style type='text/css'>";
|
||||
lstyle += ".child {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration:none; visibility:hidden}";
|
||||
lstyle += ".parent {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration:none;}";
|
||||
lstyle += ".item { color: darkblue; text-decoration:none; font-size: 8pt;}";
|
||||
lstyle += ".highlight { color: red; font-size: 8pt;}";
|
||||
lstyle += ".heada { font: 12px/13px; Times}";
|
||||
lstyle += "DIV { color:black; }";
|
||||
lstyle += "</style>";
|
||||
write(lstyle);
|
||||
} else {
|
||||
write("<style type='text/css'>");
|
||||
if (NS4) {
|
||||
write(".parent {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration:none; position:absolute; visibility:hidden; color: black;}");
|
||||
write(".child {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt;color: #000000; position:absolute; visibility:hidden}");
|
||||
write(".item { color: darkblue; text-decoration:none;}");
|
||||
write(".regular {font-family: Arial,Helvetica,sans-serif; position:absolute; visibility:hidden}");
|
||||
write("DIV { color:black; }");
|
||||
} else if(IE4) {
|
||||
write(".child {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration:none; display:none}");
|
||||
write(".parent {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration:none;}");
|
||||
write(".item { color: darkblue; text-decoration:none; font-size: 8pt;}");
|
||||
write(".highlight { color: red; font-size: 8pt;}");
|
||||
write(".heada { font: 12px/13px; Times}");
|
||||
write("DIV { color:black; }");
|
||||
}
|
||||
write("</style>");
|
||||
}
|
||||
}
|
||||
|
||||
onload = initIt;
|
||||
|
||||
//-->
|
||||
</script>
|
||||
<base target="phpmain">
|
||||
<style type="text/css">
|
||||
//<!--
|
||||
body { font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
|
||||
//-->
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body bgcolor="#D0DCE0">
|
||||
<DIV ID="el1Parent" CLASS="parent">
|
||||
<A class="item" HREF="main.php3?server=<?php echo $server; ?>&lang=<?php echo $lang; ?>">
|
||||
<FONT color="black" class="heada">
|
||||
<?php echo $strHome;?> </FONT></A>
|
||||
</DIV>
|
||||
<?php
|
||||
// Don't display database info if $server==0 (no server selected)
|
||||
// This is the case when there are multiple servers and
|
||||
// '$cfgServerDefault = 0' is set. In that case, we want the welcome
|
||||
// to appear with no database info displayed.
|
||||
if($server > 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;
|
||||
?>
|
||||
<div ID="el<?php echo $j;?>Parent" CLASS="parent">
|
||||
<a class="item" HREF="db_details.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>&db=<?php echo $db;?>" onClick="expandIt('el<?php echo $j;?>', true); return false;">
|
||||
<img NAME="imEx" SRC="images/plus.gif" BORDER="0" ALT="+" width="9" height="9" ID="el<?php echo $j;?>Img"></a>
|
||||
<a class="item" HREF="db_details.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>&db=<?php echo $db;?>" onClick="expandIt('el<?php echo $j;?>', false);">
|
||||
<font color="black" class="heada">
|
||||
<?php echo $db;?>
|
||||
</font></a>
|
||||
</div>
|
||||
<div ID="el<?php echo $j;?>Child" CLASS="child">
|
||||
<?php
|
||||
$tables = mysql_list_tables($db);
|
||||
$num_tables = @mysql_numrows($tables);
|
||||
|
||||
for($j=0; $j<$num_tables; $j++)
|
||||
{
|
||||
$table = mysql_tablename($tables, $j);
|
||||
?>
|
||||
<nobr> <a target="phpmain" href="sql.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>&db=<?php echo $db;?>&table=<?php echo urlencode($table);?>&sql_query=<?php echo urlencode("SELECT * FROM $table");?>&pos=0&goto=tbl_properties.php3"><img src="images/browse.gif" border="0" alt="<?php echo $strBrowse.": ".$table;?>"></a> <a class="item" target="phpmain" HREF="tbl_properties.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>&db=<?php echo $db;?>&table=<?php echo urlencode($table);?>"><?php echo $table;?></a></nobr><br>
|
||||
<?php
|
||||
}
|
||||
|
||||
echo "</div>\n";
|
||||
}
|
||||
?>
|
||||
<script LANGUAGE="JavaScript1.2">
|
||||
<!--
|
||||
if (NS4) {
|
||||
firstEl = "el1Parent";
|
||||
firstInd = getIndex(firstEl);
|
||||
showAll();
|
||||
arrange();
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
687
lib.inc.php3
Executable file
687
lib.inc.php3
Executable file
@ -0,0 +1,687 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
require("config.inc.php3");
|
||||
|
||||
if(!defined("__LIB_INC__")) {
|
||||
define("__LIB_INC__", 1);
|
||||
|
||||
function show_table_navigation($pos_next, $pos_prev, $dt_result) {
|
||||
global $pos, $cfgMaxRows, $lang, $server, $db, $table, $sql_query;
|
||||
global $sql_order, $sessionMaxRows, $SelectNumRows, $goto;
|
||||
global $strPos1, $strPrevious, $strShow, $strRowsFrom, $strEnd;
|
||||
|
||||
?>
|
||||
<!-- beginning of table navigation bar -->
|
||||
<table border=0><tr>
|
||||
<td>
|
||||
<form method="post"
|
||||
onsubmit="return <?php echo ( $pos >= $cfgMaxRows ? "true" : "false" ); ?>"
|
||||
action=<?php echo
|
||||
"\"sql.php3?server=$server&lang=$lang&db=$db&table=$table&sql_query=".urlencode($sql_query)."&sql_order=".urlencode($sql_order)."&pos=0&sessionMaxRows=$sessionMaxRows\"";?>
|
||||
><input type="submit" value="<?php echo $strPos1 . " <<" ; ?>" >
|
||||
</form>
|
||||
</td>
|
||||
<td>
|
||||
<form method="post" onsubmit="return <?php echo ( $pos >= $cfgMaxRows ? "true" : "false" ); ?>"
|
||||
action=<?php echo
|
||||
"\"sql.php3?server=$server&&lang=$lang&db=$db&table=$table&sql_query=".urlencode($sql_query)."&sql_order=".urlencode($sql_order)."&pos=$pos_prev&sessionMaxRows=$sessionMaxRows\"";?>
|
||||
><input type="submit" value="<?php echo $strPrevious ." <" ; ?>" >
|
||||
</form>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<table><tr><td>
|
||||
<form method="post" onsubmit="return isFormElementInRange;"
|
||||
action=<?php echo
|
||||
"\"sql.php3?server=$server&&lang=$lang&db=$db&table=$table&sql_query=".urlencode($sql_query)."&sql_order=".urlencode($sql_order)."&pos=$pos&sessionMaxRows=$sessionMaxRows\"";?>
|
||||
>
|
||||
<input type="submit" value="<?php echo "> ". $strShow ; ?>"
|
||||
onclick="checkFormElementInRange( this.form, 'pos', 0, <?php echo ( $SelectNumRows - 1 ); ?> )"
|
||||
>
|
||||
<input type="text" name="sessionMaxRows" size="3" value="<?php echo $sessionMaxRows ; ?>">
|
||||
<?php echo $strRowsFrom ?> <input name="pos" type="text" size="3"
|
||||
value="<?php echo ( $pos_next >= $SelectNumRows ? '' : $pos_next ) ; ?>">
|
||||
</form>
|
||||
</td></tr></table>
|
||||
</td>
|
||||
<td>
|
||||
<form method="post"
|
||||
onsubmit="return <?php echo
|
||||
( isset($SelectNumRows) && $pos + $sessionMaxRows < $SelectNumRows && mysql_num_rows($dt_result) >= $sessionMaxRows ?
|
||||
"true" : "false" ); ?>"
|
||||
action=<?php printf (
|
||||
"\"sql.php3?server=$server&lang=$lang&db=$db&table=$table&sql_query=%s&sql_order=%s&pos=%d&sessionMaxRows=%d&goto=%s\"", urlencode($sql_query),urlencode($sql_order),$SelectNumRows - $sessionMaxRows, $sessionMaxRows, $goto);?>
|
||||
><input type="submit" value="<?php echo ">> " . $strEnd ; ?>" >
|
||||
</form>
|
||||
</td>
|
||||
</tr></table>
|
||||
<!-- end of table navigation bar -->
|
||||
<?php
|
||||
}
|
||||
|
||||
function load_javascript () {
|
||||
echo "\n<script language=\"javascript\" src=\"functions.js\" > </script>";
|
||||
}
|
||||
|
||||
function mysql_die($error = "") {
|
||||
global $strError,$strSQLQuery, $strMySQLSaid, $strBack, $sql_query;
|
||||
|
||||
echo "<b> $strError </b><p>";
|
||||
if(isset($sql_query) && !empty($sql_query))
|
||||
{
|
||||
echo "$strSQLQuery: <pre>$sql_query</pre><p>";
|
||||
}
|
||||
if(empty($error))
|
||||
echo $strMySQLSaid.mysql_error();
|
||||
else
|
||||
echo $strMySQLSaid.$error;
|
||||
echo "\n<br><a href=\"javascript:history.go(-1)\">$strBack</a>";
|
||||
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 "<HTML><HEAD><TITLE>".$strAccessDenied."</TITLE></HEAD>\n";
|
||||
echo "<BODY BGCOLOR=#FFFFFF><BR><BR><CENTER><H1>".$strWrongUser."</H1>\n";
|
||||
echo "</CENTER></BODY></HTML>";
|
||||
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"]);
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<?php
|
||||
|
||||
$field = mysql_fetch_field($dt_result);
|
||||
$table = $field->table;
|
||||
mysql_field_seek($dt_result, 0);
|
||||
show_table_navigation($pos_next, $pos_prev, $dt_result);
|
||||
?>
|
||||
|
||||
<table border="<?php echo $cfgBorder;?>">
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
if($cfgModifyDeleteAtLeft) {
|
||||
echo "<td></td><td></td>\n";
|
||||
}
|
||||
while($field = mysql_fetch_field($dt_result))
|
||||
{
|
||||
if(@mysql_num_rows($dt_result)>1)
|
||||
{
|
||||
$sort_order=urlencode(" order by $field->name $cfgOrder");
|
||||
echo "<th>";
|
||||
if(!eregi("SHOW VARIABLES|SHOW PROCESSLIST|SHOW STATUS", $sql_query))
|
||||
echo "<A HREF=\"sql.php3?server=$server&lang=$lang&db=$db&pos=$pos&sql_query=".urlencode($sql_query)."&sql_order=$sort_order&table=$table\">";
|
||||
echo $field->name;
|
||||
if(!eregi("SHOW VARIABLES|SHOW PROCESSLIST|SHOW STATUS", $sql_query))
|
||||
echo "</a>";
|
||||
echo "</th>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<th>$field->name</th>";
|
||||
}
|
||||
$table = $field->table;
|
||||
}
|
||||
echo "</tr>\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 "<tr bgcolor=$bgcolor>";
|
||||
for($i=0; $i<mysql_num_fields($dt_result); ++$i)
|
||||
{
|
||||
if(!isset($row[$i]))
|
||||
$row[$i] = '';
|
||||
$primary = mysql_fetch_field($dt_result,$i);
|
||||
if($primary->numeric == 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 "<td><a href=\"$edit_url\">".$strEdit."</a></td>";
|
||||
echo "<td><a href=\"$delete_url\">".$strDelete."</a></td>";
|
||||
}
|
||||
|
||||
// } code no longer condition on $primary_key
|
||||
//end correction uva 19991216 pt. 3 -----------------------------
|
||||
|
||||
if($sql_query == "SHOW PROCESSLIST")
|
||||
echo "<td align=right><a href='sql.php3?db=mysql&sql_query=".urlencode("KILL $Id")."&goto=main.php3'>KILL</a></td>\n";
|
||||
|
||||
//possibility to have the modify/delete button on the left added
|
||||
// 2000-08-29
|
||||
for($i=0; $i<mysql_num_fields($dt_result); ++$i) {
|
||||
if(!isset($row[$i])) $row[$i] = '';
|
||||
$primary = mysql_fetch_field($dt_result,$i);
|
||||
if($primary->numeric == 1) {
|
||||
echo "<td align=right> $row[$i] </td>\n";
|
||||
} elseif($cfgShowBlob == false && eregi("BLOB", $primary->type)) {
|
||||
echo "<td align=right> [BLOB] </td>\n";
|
||||
} else {
|
||||
echo "<td> ".htmlspecialchars($row[$i])." </td>\n";
|
||||
}
|
||||
}
|
||||
if($cfgModifyDeleteAtRight) {
|
||||
echo "<td><a href=\"$edit_url\">".$strEdit."</a></td>";
|
||||
echo "<td><a href=\"$delete_url\">".$strDelete."</a></td>";
|
||||
}
|
||||
|
||||
echo "</tr>\n";
|
||||
$foo++;
|
||||
}
|
||||
echo "</table>\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<mysql_num_fields($result);$j++)
|
||||
$table_list .= mysql_field_name($result,$j).", ";
|
||||
|
||||
$table_list = substr($table_list,0,-2);
|
||||
$table_list .= ")";
|
||||
|
||||
if(isset($GLOBALS["showcolumns"]))
|
||||
$schema_insert = "INSERT INTO $table $table_list VALUES (";
|
||||
else
|
||||
$schema_insert = "INSERT INTO $table VALUES (";
|
||||
|
||||
for($j=0; $j<mysql_num_fields($result);$j++)
|
||||
{
|
||||
if(!isset($row[$j]))
|
||||
$schema_insert .= " NULL,";
|
||||
elseif($row[$j] != "")
|
||||
{
|
||||
$dummy = "";
|
||||
$srcstr = $row[$j];
|
||||
for($xx=0; $xx < strlen($srcstr); $xx++)
|
||||
{
|
||||
$yy = strlen($dummy);
|
||||
if($srcstr[$xx] == "\\") $dummy .= "\\\\";
|
||||
if($srcstr[$xx] == "'") $dummy .= "\\'";
|
||||
if($srcstr[$xx] == "\"") $dummy .= "\\\"";
|
||||
if($srcstr[$xx] == "\x00") $dummy .= "\\0";
|
||||
if($srcstr[$xx] == "\x0a") $dummy .= "\\n";
|
||||
if($srcstr[$xx] == "\x0d") $dummy .= "\\r";
|
||||
if($srcstr[$xx] == "\x08") $dummy .= "\\b";
|
||||
if($srcstr[$xx] == "\t") $dummy .= "\\t";
|
||||
if($srcstr[$xx] == "\x1a") $dummy .= "\\Z";
|
||||
if(strlen($dummy) == $yy) $dummy .= $srcstr[$xx];
|
||||
}
|
||||
$schema_insert .= " '".$dummy."',";
|
||||
}
|
||||
// $schema_insert .= " '".addslashes($row[$j])."',";
|
||||
else
|
||||
$schema_insert .= " '',";
|
||||
}
|
||||
$schema_insert = ereg_replace(",$", "", $schema_insert);
|
||||
$schema_insert .= ")";
|
||||
$handler(trim($schema_insert));
|
||||
++$i;
|
||||
}
|
||||
return (true);
|
||||
}
|
||||
|
||||
function count_records ($db,$table)
|
||||
{
|
||||
$result = mysql_db_query($db, "select count(*) as num from $table");
|
||||
$num = mysql_result($result,0,"num");
|
||||
echo $num;
|
||||
}
|
||||
|
||||
// Get the content of $table as a CSV output.
|
||||
// $sep contains the separation string.
|
||||
// After every row, a custom callback function $handler gets called.
|
||||
// $handler must accept one parameter ($sql_insert);
|
||||
function get_table_csv($db, $table, $sep, $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
|
||||
$schema_insert = "";
|
||||
for($j=0; $j<mysql_num_fields($result);$j++)
|
||||
{
|
||||
if(!isset($row[$j]))
|
||||
$schema_insert .= "NULL".$sep;
|
||||
elseif ($row[$j] != "")
|
||||
$schema_insert .= "$row[$j]".$sep;
|
||||
else
|
||||
$schema_insert .= "".$sep;
|
||||
}
|
||||
$schema_insert = str_replace($sep."$", "", $schema_insert);
|
||||
$handler(trim($schema_insert));
|
||||
++$i;
|
||||
}
|
||||
return (true);
|
||||
}
|
||||
|
||||
function show_docu($link) {
|
||||
global $cfgManualBase, $strDocu;
|
||||
|
||||
if(!empty($cfgManualBase))
|
||||
return("[<a href=\"$cfgManualBase/$link\">$strDocu</a>]");
|
||||
}
|
||||
|
||||
function show_message($message) {
|
||||
if(!empty($GLOBALS['reload']) && ($GLOBALS['reload'] == "true"))
|
||||
{
|
||||
// Reload the navigation frame via JavaScript
|
||||
?>
|
||||
<script language="JavaScript1.2">
|
||||
parent.frames.nav.location.reload();
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div align="left">
|
||||
<table border="<?php echo $GLOBALS['cfgBorder'];?>">
|
||||
<tr>
|
||||
<td bgcolor="<?php echo $GLOBALS['cfgThBgcolor'];?>">
|
||||
<b><?php echo $message;?><b><br>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
if($GLOBALS['cfgShowSQL'] == true && !empty($GLOBALS['sql_query']))
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td bgcolor="<?php echo $GLOBALS['cfgBgcolorOne'];?>">
|
||||
<?php echo $GLOBALS['strSQLQuery'].":\n<br>", nl2br($GLOBALS['sql_query']);
|
||||
if (isset($GLOBALS["sql_order"])) echo " $GLOBALS[sql_order]";
|
||||
if (isset($GLOBALS["pos"])) echo " LIMIT $GLOBALS[pos], $GLOBALS[cfgMaxRows]";?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
function split_string($sql, $delimiter) {
|
||||
$sql = trim($sql);
|
||||
$char = "";
|
||||
$last_char = "";
|
||||
$ret = array();
|
||||
$in_string = false;
|
||||
|
||||
$i = 0;
|
||||
$in_string = FALSE;
|
||||
$escaped = FALSE;
|
||||
while($i < strlen($sql))
|
||||
{
|
||||
if($sql[$i] == "#" and ($sql[$i-1] == "\n" or $i==0) and !$in_string)
|
||||
{
|
||||
$j=1;
|
||||
while($sql[$i+$j] != "\n")
|
||||
$j++;
|
||||
$sql = substr($sql,0,$i) . substr($sql,$i+$j);
|
||||
}
|
||||
else
|
||||
{
|
||||
if($escaped)
|
||||
$escaped = FALSE;
|
||||
else
|
||||
{
|
||||
if($sql[$i] == "\\")
|
||||
{
|
||||
$escaped = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
if($sql[$i] == "'" or $sql[$i] == "\"")
|
||||
{
|
||||
if($in_string == $sql[$i])
|
||||
$in_string = FALSE;
|
||||
else
|
||||
$in_string = $sql[$i];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
// $sql = ereg_replace("#[^\n]*\n", "", $sql); !! NOT !!
|
||||
|
||||
|
||||
for($i=0; $i<strlen($sql); ++$i) {
|
||||
$char = $sql[$i];
|
||||
// if delimiter found, add the parsed part to the returned array
|
||||
if($char == $delimiter && !$in_string) {
|
||||
$ret[] = substr($sql, 0, $i);
|
||||
$sql = substr($sql, $i + 1);
|
||||
$i = 0;
|
||||
$last_char = "";
|
||||
}
|
||||
// if we are in a string, check for end of string
|
||||
if($in_string && ($char == $in_string) && $last_char != "\\") {
|
||||
$in_string = false;
|
||||
}
|
||||
// if not in a string, check for start of a string
|
||||
elseif(!$in_string && ($char == "\"" || $char == "'") && ($last_char != "\\")) {
|
||||
$in_string = $char;
|
||||
}
|
||||
$last_char = $char;
|
||||
}
|
||||
// if there is a rest, add it to the returned array
|
||||
if (!empty($sql)) {
|
||||
$ret[] = $sql;
|
||||
}
|
||||
|
||||
return($ret);
|
||||
}
|
||||
|
||||
} // $__LIB_INC__
|
||||
// -----------------------------------------------------------------
|
||||
?>
|
||||
177
main.php3
Executable file
177
main.php3
Executable file
@ -0,0 +1,177 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
|
||||
if (!isset($message)) {
|
||||
include("header.inc.php3");
|
||||
} else {
|
||||
include("header.inc.php3");
|
||||
include("lib.inc.php3");
|
||||
show_message($message);
|
||||
}
|
||||
?>
|
||||
|
||||
<h1><?php echo $strWelcome ?> phpMyAdmin 2.2.0pre3 (unofficial devel-branch)</h1>
|
||||
<?php
|
||||
if ($server > 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 "<b>MySQL $row_version[version] $strRunning " . $cfgServer['host'];
|
||||
if (!empty($cfgServer['port'])) {
|
||||
echo ":" . $cfgServer['port'];
|
||||
}
|
||||
echo "</b><br>\n";
|
||||
}
|
||||
?>
|
||||
<div align="left">
|
||||
<?php
|
||||
|
||||
if (($server > 0) && isset($mode) && ($mode == "reload"))
|
||||
{
|
||||
$result = mysql_query("FLUSH PRIVILEGES");
|
||||
if ($result != 0) {
|
||||
echo "<b>$strMySQLReloaded</b>";
|
||||
} else {
|
||||
echo "<b>$strReloadFailed</b>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
if(count($cfgServers) > 1)
|
||||
{
|
||||
echo "<li>";
|
||||
echo '<form action="index.php3" target="_top"><select name="server">';
|
||||
|
||||
reset($cfgServers);
|
||||
while(list($key, $val) = each($cfgServers)) {
|
||||
if(!empty($val['host'])) {
|
||||
echo "<option value=\"$key\"";
|
||||
if(!empty($server) && ($server == $key)) {
|
||||
echo " selected";
|
||||
}
|
||||
echo ">";
|
||||
print(!empty($val['verbose']) ? $val['verbose'] : $val['host']);
|
||||
|
||||
if(!empty($val['port'])) {
|
||||
echo ":" . $val['port'];
|
||||
}
|
||||
if(!empty($val['only_db']))
|
||||
echo " - ".$val['only_db'];
|
||||
echo "\n";
|
||||
}
|
||||
}
|
||||
echo '</select><input type="hidden" name="lang" value="'.$lang.'">';
|
||||
echo '<input type="submit" value="'.$strGo.'"></form>';
|
||||
}
|
||||
|
||||
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) {
|
||||
?>
|
||||
<li>
|
||||
<form method="post" action="db_create.php3">
|
||||
<?php echo $strCreateNewDatabase;?> <?php print show_docu("manual_Reference.html#Create_database");?><br><input type="Hidden" name="server" value="<?php echo $server; ?>"><input type="hidden" name="lang" value="<?php echo $lang;?>"><input type="hidden" name="reload" value="true"><input type="text" name="db"><input type="submit" value="<?php echo $strCreate; ?>">
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($result_usr['References_priv']=='Y') {
|
||||
?>
|
||||
<li><a href="sql.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>&db=mysql&sql_query=<?php echo urlencode("SHOW STATUS");?>">
|
||||
<?php echo $strMySQLShowStatus;?></a> <?php print show_docu("manual_Reference.html#Show");?>
|
||||
|
||||
<li><a href="sql.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>&db=mysql&sql_query=<?php echo urlencode("SHOW VARIABLES");?>">
|
||||
<?php echo $strMySQLShowVars;?></a> <?php print show_docu("manual_Performance.html#Performance");
|
||||
}
|
||||
|
||||
if($result_usr['Process_priv']=='Y') {
|
||||
?>
|
||||
<li><a href="sql.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>&db=mysql&sql_query=<?php echo urlencode("SHOW PROCESSLIST");?>">
|
||||
<?php echo $strMySQLShowProcess;?></a> <?php print show_docu("manual_Reference.html#Show");
|
||||
}
|
||||
|
||||
if($result_usr['Reload_priv']=='Y') {
|
||||
?>
|
||||
<li>
|
||||
<a href="main.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>&mode=reload"><?php echo $strReloadMySQL; ?></a> <?php print show_docu("manual_Reference.html#Flush");
|
||||
}
|
||||
?>
|
||||
<li><a href="index.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>&old_usr=<?php echo $PHP_AUTH_USER;?>" target="_top"><b><?php echo $strLogout; ?></b></a>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{ //No AdvAuth
|
||||
?>
|
||||
<li>
|
||||
<form method="post" action="db_create.php3">
|
||||
<?php echo $strCreateNewDatabase;?> <?php print show_docu("manual_Reference.html#Create_database");?><br><input type="Hidden" name="server" value="<?php echo $server; ?>"><input type="hidden" name="lang" value="<?php echo $lang;?>"><input type="hidden" name="reload" value="true"><input type="text" name="db"><input type="submit" value="<?php echo $strCreate; ?>">
|
||||
</form>
|
||||
<li><a href="sql.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>&db=mysql&sql_query=<?php echo urlencode("SHOW STATUS");?>">
|
||||
<?php echo $strMySQLShowStatus;?></a> <?php print show_docu("manual_Reference.html#Show");?>
|
||||
<li><a href="sql.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>&db=mysql&sql_query=<?php echo urlencode("SHOW VARIABLES");?>">
|
||||
<?php echo $strMySQLShowVars;?></a> <?php print show_docu("manual_Performance.html#Performance");?>
|
||||
<li><a href="sql.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>&db=mysql&sql_query=<?php echo urlencode("SHOW PROCESSLIST");?>">
|
||||
<?php echo $strMySQLShowProcess;?></a> <?php print show_docu("manual_Reference.html#Show");?>
|
||||
<li>
|
||||
<a href="main.php3?server=<?php echo $server;?>&lang=<?php echo $lang;?>&mode=reload"><?php echo $strReloadMySQL; ?></a> <?php print show_docu("manual_Reference.html#Flush");
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<li>
|
||||
<a href="http://phpmyadmin.sourceforge.net/" target="_top">new (but still unofficial) phpMyAdmin-Homepage</a> (sourceforge)
|
||||
[ <a href="ChangeLog" target="_top">ChangeLog</a> ]
|
||||
<li>
|
||||
<a href="http://phpwizard.net/projects/phpMyAdmin/" target="_top">Official phpMyAdmin-Homepage</a>
|
||||
<li>
|
||||
<a href="Documentation.html" target="_top">phpMyAdmin <?php print $strDocu;?></a>
|
||||
|
||||
|
||||
<li><?php
|
||||
reset($available_languages);
|
||||
while(list ($id,$tmplang) = each ($available_languages) ) {
|
||||
$lang_name = ucfirst(substr(strstr($tmplang[0], '|'), 1));
|
||||
?>
|
||||
[ <a href="index.php3?server=<?php echo $server;?>&lang=<?php echo $id;?>" target="_top" title="<?php echo $lang_name;?>"><?php echo $id;?></a> ]
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require ("footer.inc.php3");
|
||||
?>
|
||||
152
select_lang.inc.php3
Executable file
152
select_lang.inc.php3
Executable file
@ -0,0 +1,152 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
/*
|
||||
* phpMyAdmin Language Loading File - lolo@phpheaven.net 01may2001
|
||||
*/
|
||||
|
||||
/**
|
||||
* Define the path to the translations directory and get some variables
|
||||
* from system arrays if 'register_globals' is set to 'off'
|
||||
*/
|
||||
$lang_path = 'lang/';
|
||||
|
||||
|
||||
/**
|
||||
* All the suported languages have to be listed in the array below.
|
||||
* 1. The key key must be the "official" ISO language code and, if required,
|
||||
* the dialect code. It can also contains some informations about the
|
||||
* charset (see the Russian case).
|
||||
* These code are displayed at the starting page of phpMyAdmin.
|
||||
* 2. The first of the values associated to the key is used in a regular
|
||||
* expression to find some keywords corresponding to the language inside two
|
||||
* environment variables.
|
||||
* These values contains:
|
||||
* - the "official" ISO language code and, if required, the dialect code
|
||||
* also ('bu' for Bulgarian, 'fr([-_][[:alpha:]]{2})?' for all French
|
||||
* dialects, 'zh[-_]tw' for Chinese traditional...);
|
||||
* - the '|' character (it means 'OR');
|
||||
* - the full language name.
|
||||
* 3. The second values associated to the key is the name of the file to load
|
||||
* without the 'inc.php3' extension.
|
||||
*
|
||||
* Beware that the sorting order (first values associated to keys by
|
||||
* alphabetical reverse order in the array) is important: 'zh-tw' (chinese
|
||||
* traditional) must be detected before 'zh' (chinese simplified) for
|
||||
* example.
|
||||
*/
|
||||
$available_languages = array(
|
||||
'bg' => 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);
|
||||
?>
|
||||
111
sql.php3
Executable file
111
sql.php3
Executable file
@ -0,0 +1,111 @@
|
||||
<?php
|
||||
/* $Id$ */;
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
require("lib.inc.php3");
|
||||
|
||||
if(isset($goto) && $goto == "sql.php3")
|
||||
{
|
||||
$goto = "sql.php3?server=$server&lang=$lang&db=$db&table=$table&pos=$pos&sql_query=".urlencode($sql_query);
|
||||
}
|
||||
|
||||
// Go back to further page if table should not be dropped
|
||||
|
||||
|
||||
if(isset($btnDrop) && $btnDrop == $strNo) {
|
||||
if(file_exists("./$goto")) {
|
||||
include(preg_replace('/\.\.*/', '.', $goto));
|
||||
} else {
|
||||
Header("Location: $goto");
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
// Check if table should be dropped
|
||||
$is_drop_sql_query = eregi("DROP +(TABLE|DATABASE)|ALTER TABLE +[[:alnum:]_]* +DROP|DELETE FROM", $sql_query); // Get word "drop"
|
||||
|
||||
if(!$cfgConfirm)
|
||||
$btnDrop = $strYes;
|
||||
|
||||
if($is_drop_sql_query && !isset($btnDrop)) {
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$stripped_sql_query = stripslashes($sql_query);
|
||||
} else {
|
||||
$stripped_sql_query = $sql_query;
|
||||
}
|
||||
include("header.inc.php3");
|
||||
echo $strDoYouReally.urldecode($stripped_sql_query)."?<br>";
|
||||
?>
|
||||
<form action="sql.php3" method="post" enctype="application/x-www-form-urlencoded">
|
||||
<input type="hidden" name="sql_query" value="<?php echo urldecode($stripped_sql_query); ?>">
|
||||
<input type="hidden" name="server" value="<?php echo $server ?>">
|
||||
<input type="hidden" name="lang" value="<?php echo $lang;?>">
|
||||
<input type="hidden" name="db" value="<?php echo $db ?>">
|
||||
<input type="hidden" name="zero_rows" value="<?php echo isset($zero_rows) ? $zero_rows : "";?>">
|
||||
<input type="hidden" name="table" value="<?php echo isset($table) ? $table : "";?>">
|
||||
<input type="hidden" name="goto" value="<?php echo isset($goto) ? $goto : "";?>">
|
||||
<input type="hidden" name="reload" value="<?php echo isset($reload) ? $reload : "";?>">
|
||||
<input type="Submit" name="btnDrop" value="<?php echo $strYes; ?>">
|
||||
<input type="Submit" name="btnDrop" value="<?php echo $strNo; ?>">
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
// if table should be dropped or other queries should be perfomed
|
||||
//elseif (!$is_drop_sql_query || $btnDrop == $strYes)
|
||||
else {
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$sql_query = isset($sql_query) ? stripslashes($sql_query) : '';
|
||||
$sql_order = isset($sql_order) ? stripslashes($sql_order) : '';
|
||||
}
|
||||
if(isset($sessionMaxRows) )
|
||||
$cfgMaxRows = $sessionMaxRows;
|
||||
$sql_limit = (isset($pos) && eregi("^SELECT", $sql_query) && !eregi("LIMIT[ 0-9,]+$", $sql_query)) ? " LIMIT $pos, $cfgMaxRows" : '';
|
||||
$result = mysql_db_query($db, $sql_query.$sql_order.$sql_limit);
|
||||
// the same SELECT without LIMIT
|
||||
if(eregi("^SELECT", $sql_query))
|
||||
{
|
||||
$array=split('from|FROM',$sql_query,2); //read only the from-part of the query
|
||||
$count_query="select count(*) as count from $array[1]"; //and make a count(*) to count the entries
|
||||
$OPresult = mysql_db_query($db, $count_query);
|
||||
$SelectNumRows = mysql_result($OPresult,'0','count');
|
||||
}
|
||||
|
||||
if(!$result)
|
||||
{
|
||||
$error = mysql_error();
|
||||
include("header.inc.php3");
|
||||
mysql_die($error);
|
||||
}
|
||||
|
||||
$num_rows = @mysql_num_rows($result);
|
||||
|
||||
if($num_rows < 1)
|
||||
{
|
||||
if(file_exists("./$goto"))
|
||||
{
|
||||
include("header.inc.php3");
|
||||
if(isset($zero_rows) && !empty($zero_rows))
|
||||
$message = $zero_rows;
|
||||
else
|
||||
$message = $strEmptyResultSet;
|
||||
include(preg_replace('/\.\.*/', '.', $goto));
|
||||
}
|
||||
else
|
||||
{
|
||||
$message = $zero_rows;
|
||||
Header("Location: $goto");
|
||||
}
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
include("header.inc.php3");
|
||||
display_table($result);
|
||||
if(!eregi("SHOW VARIABLES|SHOW PROCESSLIST|SHOW STATUS", $sql_query))
|
||||
echo "<p><a href=\"tbl_change.php3?server=$server&lang=$lang&db=$db&table=$table&pos=$pos&goto=$goto&sql_query=".urlencode($sql_query)."\"> $strInsertNewRow</a></p>";
|
||||
}
|
||||
} //ne drop query
|
||||
require ("footer.inc.php3");
|
||||
?>
|
||||
145
tbl_addfield.php3
Executable file
145
tbl_addfield.php3
Executable file
@ -0,0 +1,145 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
require("header.inc.php3");
|
||||
|
||||
if(isset($submit))
|
||||
{
|
||||
$query = "";
|
||||
for($i=0; $i<count($field_name); ++$i)
|
||||
{
|
||||
$query .= "$field_name[$i] $field_type[$i] ";
|
||||
if($field_length[$i] != "") {
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$query .= "(".stripslashes($field_length[$i]).") ";
|
||||
} else {
|
||||
$query .= "(".($field_length[$i]).") ";
|
||||
}
|
||||
}
|
||||
|
||||
if($field_attribute[$i] != "")
|
||||
$query .= "$field_attribute[$i] " ;
|
||||
if($field_default[$i] != "") {
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$query .= "DEFAULT '".stripslashes($field_default[$i])."' ";
|
||||
} else {
|
||||
$query .= "DEFAULT '".($field_default[$i])."' ";
|
||||
}
|
||||
}
|
||||
|
||||
$query .= "$field_null[$i] $field_extra[$i]";
|
||||
|
||||
if($after_field != "--end--") {
|
||||
// only the first field can be added somewhere else than at the end
|
||||
if ($i == 0) {
|
||||
if ($after_field == "--first--") {
|
||||
$query .= " FIRST ";
|
||||
} else {
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$query .= " AFTER ".stripslashes($after_field)." ";
|
||||
} else {
|
||||
$query .= " AFTER ".$after_field." ";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$query .= " AFTER ".stripslashes($field_name[$i-1])." ";
|
||||
} else {
|
||||
$query .= " AFTER ".($field_name[$i-1])." ";
|
||||
}
|
||||
}
|
||||
}
|
||||
$query .= ", ADD ";
|
||||
|
||||
}
|
||||
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$query = stripslashes(ereg_replace(", ADD $", "", $query));
|
||||
} else {
|
||||
$query = ereg_replace(", ADD $", "", $query);
|
||||
}
|
||||
|
||||
$sql_query = "ALTER TABLE $table ADD $query";
|
||||
$result = mysql_db_query($db, "ALTER TABLE $table ADD $query");
|
||||
|
||||
$primary = '';
|
||||
|
||||
if (isset($field_primary))
|
||||
{
|
||||
|
||||
for($i=0;$i<count($field_primary);$i++)
|
||||
{
|
||||
$j = $field_primary[$i];
|
||||
$primary .= "$field_name[$j], ";
|
||||
}
|
||||
$primary = ereg_replace(", $", "", $primary);
|
||||
if(count($field_primary) > 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<count($field_index);$i++)
|
||||
{
|
||||
$j = $field_index[$i];
|
||||
$index .= "$field_name[$j], ";
|
||||
}
|
||||
$index = ereg_replace(", $", "", $index);
|
||||
if(count($field_index) > 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<count($field_unique);$i++)
|
||||
{
|
||||
$j = $field_unique[$i];
|
||||
$unique .= "$field_name[$j], ";
|
||||
}
|
||||
$unique = ereg_replace(", $", "", $unique);
|
||||
if(count($field_unique) > 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");
|
||||
?>
|
||||
41
tbl_alter.php3
Executable file
41
tbl_alter.php3
Executable file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
require("header.inc.php3");
|
||||
|
||||
if(isset($submit))
|
||||
{
|
||||
if(!isset($query))
|
||||
$query = "";
|
||||
$query .= " $field_orig[0] $field_name[0] $field_type[0] ";
|
||||
if($field_length[0] != "")
|
||||
$query .= "($field_length[0]) ";
|
||||
if($field_attribute[0] != "")
|
||||
$query .= "$field_attribute[0] ";
|
||||
if($field_default[0] != "")
|
||||
$query .= "DEFAULT '$field_default[0]' ";
|
||||
|
||||
$query .= "$field_null[0] $field_extra[0]";
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$query = stripslashes($query);
|
||||
}
|
||||
//optimization fix - 2 May 2001 - Robbat2
|
||||
$sql_query = "ALTER TABLE $table CHANGE $query";
|
||||
$result = mysql_db_query($db, $sql_query) or mysql_die();
|
||||
$message = "$strTable $table $strHasBeenAltered";
|
||||
include("tbl_properties.php3");
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = mysql_db_query($db, "SHOW FIELDS FROM $table LIKE '$field'") or mysql_die();
|
||||
$num_fields = mysql_num_rows($result);
|
||||
$action = "tbl_alter.php3";
|
||||
include("tbl_properties.inc.php3");
|
||||
}
|
||||
|
||||
require ("footer.inc.php3");
|
||||
?>
|
||||
143
tbl_change.php3
Executable file
143
tbl_change.php3
Executable file
@ -0,0 +1,143 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
require("header.inc.php3");
|
||||
|
||||
$table_def = mysql_db_query($db, "SHOW FIELDS FROM $table");
|
||||
|
||||
if(isset($primary_key)) {
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$primary_key = stripslashes($primary_key);
|
||||
}
|
||||
$result = mysql_db_query($db, "SELECT * FROM $table WHERE $primary_key");
|
||||
$row = mysql_fetch_array($result);
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = mysql_db_query($db, "SELECT * FROM $table LIMIT 1");
|
||||
}
|
||||
|
||||
?>
|
||||
<form method="post" action="tbl_replace.php3">
|
||||
<input type="hidden" name="server" value="<?php echo $server;?>">
|
||||
<input type="hidden" name="lang" value="<?php echo $lang;?>">
|
||||
<input type="hidden" name="db" value="<?php echo $db;?>">
|
||||
<input type="hidden" name="table" value="<?php echo $table;?>">
|
||||
<input type="hidden" name="goto" value="<?php echo $goto;?>">
|
||||
<input type="hidden" name="sql_query" value="<?php echo isset($sql_query) ? $sql_query : "";?>">
|
||||
<input type="hidden" name="pos" value="<?php echo isset($pos) ? $pos : 0;?>">
|
||||
<?php
|
||||
|
||||
if(isset($primary_key))
|
||||
echo '<input type="hidden" name="primary_key" value="' . htmlspecialchars($primary_key) . '">' . "\n";
|
||||
?>
|
||||
<table border="<?php echo $cfgBorder;?>">
|
||||
<tr>
|
||||
<th><?php echo $strField; ?></th>
|
||||
<th><?php echo $strType; ?></th>
|
||||
<th><?php echo $strFunction; ?></th>
|
||||
<th><?php echo $strValue; ?></th>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
for($i=0;$i<mysql_num_rows($table_def);$i++)
|
||||
{
|
||||
$row_table_def = mysql_fetch_array($table_def);
|
||||
$field = $row_table_def["Field"];
|
||||
if(($row_table_def['Type'] == "datetime") AND ($row[$field] == ""))
|
||||
$row[$field] = date("Y-m-d H:i:s", time());
|
||||
$len = @mysql_field_len($result,$i);
|
||||
|
||||
$bgcolor = $cfgBgcolorOne;
|
||||
$i % 2 ? 0: $bgcolor = $cfgBgcolorTwo;
|
||||
echo "<tr bgcolor=".$bgcolor.">\n";
|
||||
echo "<td>$field</td>\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 "<td>$type</td>\n";
|
||||
echo "<td><select name=\"funcs[$field]\"><option>\n";
|
||||
for($j=0; $j<count($cfgFunctions); $j++)
|
||||
echo "<option>$cfgFunctions[$j]\n";
|
||||
echo "</select></td>\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 "<td><textarea name=fields[$field] style=\"width:$cfgMaxInputsize;\" rows=5>$special_chars</textarea></td>\n";
|
||||
}
|
||||
elseif(strstr($row_table_def["Type"], "enum"))
|
||||
{
|
||||
$set = str_replace("enum(", "", $row_table_def["Type"]);
|
||||
$set = ereg_replace("\\)$", "", $set);
|
||||
$set = explode(",", $set);
|
||||
|
||||
echo "<td><select name=fields[$field]>\n";
|
||||
echo "<option value=\"\">\n";
|
||||
for($j=0; $j<count($set);$j++)
|
||||
{
|
||||
echo '<option value="'.substr($set[$j], 1, -1).'"';
|
||||
if($data == substr($set[$j], 1, -1) || ($data == "" && substr($set[$j], 1, -1) == $row_table_def["Default"]))
|
||||
echo " selected";
|
||||
echo ">".htmlspecialchars(substr($set[$j], 1, -1))."\n";
|
||||
}
|
||||
echo "</select></td>";
|
||||
|
||||
}
|
||||
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 "<td><input type=\"hidden\" name=\"fields[$field]\" value=\"\$set\$\">";
|
||||
echo "<select name=field_${field}[] size=$size multiple>\n";
|
||||
for($j=0; $j<count($set);$j++)
|
||||
{
|
||||
echo '<option value="'.htmlspecialchars(substr($set[$j], 1, -1)).'"';
|
||||
if($vset[substr($set[$j], 1, -1)])
|
||||
echo " selected";
|
||||
echo ">".htmlspecialchars(substr($set[$j], 1, -1))."\n";
|
||||
}
|
||||
echo "</select></td>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<td><input type=text name=fields[$field] value=\"".$special_chars."\" style=\"width:$cfgMaxInputsize;\" maxlength=$len></td>";
|
||||
}
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
echo "</table>";
|
||||
|
||||
?>
|
||||
<p>
|
||||
<input type="submit" value="<?php echo $strSave; ?>">
|
||||
</form>
|
||||
|
||||
<?php
|
||||
require ("footer.inc.php3");
|
||||
?>
|
||||
36
tbl_copy.php3
Executable file
36
tbl_copy.php3
Executable file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
require("header.inc.php3");
|
||||
|
||||
function my_handler($sql_insert)
|
||||
{
|
||||
global $table, $db, $new_name;
|
||||
|
||||
$sql_insert = ereg_replace("INSERT INTO $table", "INSERT INTO $new_name", $sql_insert);
|
||||
$result = mysql_db_query($db, $sql_insert) or mysql_die();
|
||||
$sql_query = $sql_insert;
|
||||
}
|
||||
|
||||
$sql_structure = get_table_def($db, $table, "\n");
|
||||
$sql_structure = ereg_replace("CREATE TABLE $table", "CREATE TABLE $new_name", $sql_structure);
|
||||
|
||||
$result = mysql_db_query($db, $sql_structure) or mysql_die();
|
||||
|
||||
if (isset($sql_query))
|
||||
$sql_query .= "\n$sql_structure";
|
||||
else
|
||||
$sql_query = "$sql_structure";
|
||||
|
||||
//$sql_query .= "\n$sql_structure";
|
||||
|
||||
|
||||
if($what == "data")
|
||||
get_table_content($db, $table, "my_handler");
|
||||
|
||||
eval("\$message = \"$strCopyTableOK\";");
|
||||
include("db_details.php3");
|
||||
?>
|
||||
100
tbl_create.php3
Executable file
100
tbl_create.php3
Executable file
@ -0,0 +1,100 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
require("header.inc.php3");
|
||||
|
||||
if(isset($submit))
|
||||
{
|
||||
if(!isset($query))
|
||||
$query = "";
|
||||
for($i=0; $i<count($field_name); $i++)
|
||||
{
|
||||
$query .= "$field_name[$i] $field_type[$i] ";
|
||||
if($field_length[$i] != "")
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$query .= "(".stripslashes($field_length[$i]).") ";
|
||||
} else {
|
||||
$query .= "(".($field_length[$i]).") ";
|
||||
}
|
||||
if($field_attribute[$i] != "")
|
||||
$query .= "$field_attribute[$i] ";
|
||||
if($field_default[$i] != "")
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$query .= "DEFAULT '".stripslashes($field_default[$i])."' ";
|
||||
} else {
|
||||
$query .= "DEFAULT '".($field_default[$i])."' ";
|
||||
}
|
||||
$query .= "$field_null[$i] $field_extra[$i], ";
|
||||
}
|
||||
$query = ereg_replace(", $", "", $query);
|
||||
|
||||
if(!isset($primary))
|
||||
$primary = "";
|
||||
|
||||
if(!isset($field_primary))
|
||||
$field_primary = array();
|
||||
|
||||
for($i=0;$i<count($field_primary);$i++)
|
||||
{
|
||||
$j = $field_primary[$i];
|
||||
$primary .= "$field_name[$j], ";
|
||||
}
|
||||
$primary = ereg_replace(", $", "", $primary);
|
||||
if(count($field_primary) > 0)
|
||||
$primary = ", PRIMARY KEY ($primary)";
|
||||
|
||||
if(!isset($index))
|
||||
$index = "";
|
||||
|
||||
if(!isset($field_index))
|
||||
$field_index = array();
|
||||
|
||||
for($i=0;$i<count($field_index);$i++)
|
||||
{
|
||||
$j = $field_index[$i];
|
||||
$index .= "$field_name[$j], ";
|
||||
}
|
||||
$index = ereg_replace(", $", "", $index);
|
||||
if(count($field_index) > 0)
|
||||
$index = ", INDEX ($index)";
|
||||
if(!isset($unique))
|
||||
$unique = "";
|
||||
|
||||
if(!isset($field_unique))
|
||||
$field_unique = array();
|
||||
|
||||
for($i=0;$i<count($field_unique);$i++)
|
||||
{
|
||||
$j = $field_unique[$i];
|
||||
$unique .= "$field_name[$j], ";
|
||||
}
|
||||
$unique = ereg_replace(", $", "", $unique);
|
||||
if(count($field_unique) > 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");
|
||||
?>
|
||||
102
tbl_dump.php3
Executable file
102
tbl_dump.php3
Executable file
@ -0,0 +1,102 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
|
||||
@set_time_limit(600);
|
||||
$crlf="\n";
|
||||
|
||||
if(empty($asfile))
|
||||
{
|
||||
include("header.inc.php3");
|
||||
print "<div align=left><pre>\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 "</pre></div>\n";
|
||||
include ("footer.inc.php3");
|
||||
}
|
||||
?>
|
||||
139
tbl_printview.php3
Executable file
139
tbl_printview.php3
Executable file
@ -0,0 +1,139 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
|
||||
if(!isset($message))
|
||||
{
|
||||
include("header.inc.php3");
|
||||
}
|
||||
else
|
||||
show_message($message);
|
||||
|
||||
unset($sql_query);
|
||||
if(MYSQL_MAJOR_VERSION == "3.23")
|
||||
{
|
||||
$result = mysql_db_query($db, "SHOW TABLE STATUS LIKE '$table'") or mysql_die();
|
||||
$row = mysql_fetch_array($result);
|
||||
if(!empty($row["Comment"]))
|
||||
{
|
||||
echo "$strTableComments: $row[Comment]";
|
||||
}
|
||||
}
|
||||
|
||||
$result = mysql_db_query($db, "SHOW KEYS FROM $table") or mysql_die();
|
||||
$primary = "";
|
||||
|
||||
while($row = mysql_fetch_array($result))
|
||||
if ($row["Key_name"] == "PRIMARY")
|
||||
$primary .= "$row[Column_name], ";
|
||||
|
||||
$result = mysql_db_query($db, "SHOW FIELDS FROM $table") or mysql_die();
|
||||
|
||||
?>
|
||||
<table border=<?php echo $cfgBorder;?>>
|
||||
<TR>
|
||||
<TH><?php echo $strField; ?></TH>
|
||||
<TH><?php echo $strType; ?></TH>
|
||||
<TH><?php echo $strAttr; ?></TH>
|
||||
<TH><?php echo $strNull; ?></TH>
|
||||
<TH><?php echo $strDefault; ?></TH>
|
||||
<TH><?php echo $strExtra; ?></TH>
|
||||
</TR>
|
||||
|
||||
<?php
|
||||
$i=0;
|
||||
|
||||
while($row= mysql_fetch_array($result))
|
||||
{
|
||||
$query = "server=$server&lang=$lang&db=$db&table=$table&goto=tbl_properties.php3";
|
||||
$bgcolor = $cfgBgcolorOne;
|
||||
$i % 2 ? 0: $bgcolor = $cfgBgcolorTwo;
|
||||
$i++;
|
||||
?>
|
||||
<tr bgcolor="<?php echo $bgcolor;?>">
|
||||
<td><?php echo $row["Field"];?> </td>
|
||||
<td>
|
||||
<?php
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$Type = stripslashes($row["Type"]);
|
||||
} else {
|
||||
$Type = $row["Type"];
|
||||
}
|
||||
$Type = eregi_replace("BINARY", "", $Type);
|
||||
$Type = eregi_replace("ZEROFILL", "", $Type);
|
||||
$Type = eregi_replace("UNSIGNED", "", $Type);
|
||||
echo $Type;
|
||||
?> </td>
|
||||
<td>
|
||||
<?php
|
||||
$binary = eregi("BINARY", $row["Type"], $test);
|
||||
$unsigned = eregi("UNSIGNED", $row["Type"], $test);
|
||||
$zerofill = eregi("ZEROFILL", $row["Type"], $test);
|
||||
$strAttribute="";
|
||||
if ($binary)
|
||||
$strAttribute="BINARY";
|
||||
if ($unsigned)
|
||||
$strAttribute="UNSIGNED";
|
||||
if ($zerofill)
|
||||
$strAttribute="UNSIGNED ZEROFILL";
|
||||
echo $strAttribute;
|
||||
$strAttribute="";
|
||||
?>
|
||||
</td>
|
||||
<td><?php if ($row["Null"] == "") { echo $strNo;} else {echo $strYes;}?> </td>
|
||||
<td><?php if(isset($row["Default"])) echo $row["Default"];?> </td>
|
||||
<td><?php echo $row["Extra"];?> </td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<?php
|
||||
|
||||
$result = mysql_db_query($db, "SHOW KEYS FROM ".$table) or mysql_die();
|
||||
if(mysql_num_rows($result)>0)
|
||||
{
|
||||
?>
|
||||
<br>
|
||||
<table border=<?php echo $cfgBorder;?>>
|
||||
<tr>
|
||||
<th><?php echo $strKeyname; ?></th>
|
||||
<th><?php echo $strUnique; ?></th>
|
||||
<th><?php echo $strField; ?></th>
|
||||
</tr>
|
||||
<?php
|
||||
for($i=0 ; $i<mysql_num_rows($result); $i++)
|
||||
{
|
||||
$row = mysql_fetch_array($result);
|
||||
echo "<tr>";
|
||||
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);
|
||||
}
|
||||
|
||||
?>
|
||||
<td><?php echo $row["Key_name"];?></td>
|
||||
<td><?php
|
||||
if($row["Non_unique"]=="0")
|
||||
echo $strYes;
|
||||
else
|
||||
echo $strNo;
|
||||
?></td>
|
||||
<td><?php echo $row["Column_name"];?></td>
|
||||
<?php
|
||||
echo "</tr>";
|
||||
}
|
||||
print "</table>\n";
|
||||
}
|
||||
|
||||
require ("footer.inc.php3");
|
||||
?>
|
||||
219
tbl_properties.inc.php3
Executable file
219
tbl_properties.inc.php3
Executable file
@ -0,0 +1,219 @@
|
||||
<!-- $Id$ */ -->
|
||||
|
||||
<form method="post" action="<?php echo $action;?>">
|
||||
<input type="hidden" name="server" value="<?php echo $server;?>">
|
||||
<input type="hidden" name="lang" value="<?php echo $lang;?>">
|
||||
<input type="hidden" name="db" value="<?php echo $db;?>">
|
||||
<input type="hidden" name="table" value="<?php echo $table;?>">
|
||||
<?php
|
||||
if($action == "tbl_create.php3")
|
||||
{
|
||||
?>
|
||||
<input type="hidden" name="reload" value="true">
|
||||
<?php
|
||||
}
|
||||
elseif($action == "tbl_addfield.php3")
|
||||
{
|
||||
echo '<input type="hidden" name="after_field" value="'.$after_field."\">\n";
|
||||
}
|
||||
|
||||
?>
|
||||
<table border=<?php echo $cfgBorder;?>>
|
||||
<tr>
|
||||
<th><?php echo $strField; ?></th>
|
||||
<th><?php echo $strType; ?></th>
|
||||
<th><?php echo $strLengthSet; ?></th>
|
||||
<th><?php echo $strAttr; ?></th>
|
||||
<th><?php echo $strNull; ?></th>
|
||||
<th><?php echo $strDefault; ?></th>
|
||||
<th><?php echo $strExtra; ?></th>
|
||||
|
||||
<?php
|
||||
if($action == "tbl_create.php3" || $action == "tbl_addfield.php3")
|
||||
{
|
||||
?>
|
||||
<th><?php echo $strPrimary; ?></th>
|
||||
<th><?php echo $strIndex; ?></th>
|
||||
<th><?php echo $strUnique; ?></th>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
for($i=0 ; $i<$num_fields; $i++)
|
||||
{
|
||||
if(isset($result))
|
||||
$row = mysql_fetch_array($result);
|
||||
$bgcolor = $cfgBgcolorOne;
|
||||
$i % 2 ? 0: $bgcolor = $cfgBgcolorTwo;
|
||||
?>
|
||||
<tr bgcolor="<?php echo $bgcolor;?>">
|
||||
<td>
|
||||
<input type="text" name="field_name[]" size="10" value="<?php if(isset($row) && isset($row["Field"])) echo $row["Field"];?>">
|
||||
<input type="hidden" name="field_orig[]" value="<?php if(isset($row) && isset($row["Field"])) echo $row["Field"];?>"></td>
|
||||
<td><select name="field_type[]">
|
||||
<?php
|
||||
$row["Type"] = empty($row["Type"]) ? '' : $row["Type"];
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$Type = stripslashes($row["Type"]);
|
||||
} else {
|
||||
$Type = $row["Type"];
|
||||
}
|
||||
$Type = eregi_replace("BINARY", "", $Type);
|
||||
$Type = eregi_replace("ZEROFILL", "", $Type);
|
||||
$Type = eregi_replace("UNSIGNED", "", $Type);
|
||||
// $Length = eregi_replace("$Type|\\(|\\)", "", $Type);
|
||||
// Strange: $Type would always match $Type, so replaced with version below:
|
||||
// I Huneke (Logica) 29 September 1999
|
||||
#$Length = eregi_replace("\\(|\\)", "", $Type);
|
||||
$Length = $Type;
|
||||
$Type = eregi_replace("\\(.*\\)", "", $Type);
|
||||
$Type = chop($Type);
|
||||
// Add test to ensure we're not trying to replace blank with blank
|
||||
// I Huneke (Logica) 29 September 1999
|
||||
if(!empty($Type))
|
||||
{
|
||||
$Length = eregi_replace("^$Type\(", "", $Length);
|
||||
$Length = eregi_replace("\)$", "", trim($Length));
|
||||
}
|
||||
$Length = htmlspecialchars(chop($Length));
|
||||
if($Length == $Type)
|
||||
$Length = "";
|
||||
for($j=0;$j<count($cfgColumnTypes);$j++)
|
||||
{
|
||||
echo "<option value=$cfgColumnTypes[$j]";
|
||||
if(strtoupper($Type) == strtoupper($cfgColumnTypes[$j]))
|
||||
echo " selected";
|
||||
echo ">$cfgColumnTypes[$j]</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
<td><input type="text" name="field_length[]" size="8" value="<?php echo $Length;?>"></td>
|
||||
<td><select name="field_attribute[]">
|
||||
<?php
|
||||
$binary = eregi("BINARY", $row["Type"], $test_attribute1);
|
||||
$unsigned = eregi("UNSIGNED", $row["Type"], $test_attribute2);
|
||||
$zerofill = eregi("ZEROFILL", $row["Type"], $test_attribute3);
|
||||
$strAttribute = "";
|
||||
if($binary)
|
||||
$strAttribute="BINARY";
|
||||
if($unsigned)
|
||||
$strAttribute="UNSIGNED";
|
||||
if($zerofill)
|
||||
$strAttribute="UNSIGNED ZEROFILL";
|
||||
for($j=0;$j<count($cfgAttributeTypes);$j++)
|
||||
{
|
||||
echo "<option value=\"$cfgAttributeTypes[$j]\"";
|
||||
if(strtoupper($strAttribute) == strtoupper($cfgAttributeTypes[$j]))
|
||||
echo " selected";
|
||||
echo ">$cfgAttributeTypes[$j]</option>\n";
|
||||
}
|
||||
?>
|
||||
</select></td>
|
||||
<td><select name="field_null[]">
|
||||
<?php
|
||||
if(!isset($row) || !isset($row["Null"]) || $row["Null"] == "")
|
||||
{
|
||||
?>
|
||||
<option value=" not null">not null</option>
|
||||
<option value="">null</option>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<option value="">null</option>
|
||||
<option value="not null">not null</option>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</select></td>
|
||||
<td><input type="text" name="field_default[]" size="8" value="<?php if(isset($row) && isset($row["Default"])) echo $row["Default"];?>"></td>
|
||||
<td><select name="field_extra[]">
|
||||
<?php
|
||||
if(!isset($row) || !isset($row["Extra"]) || $row["Extra"] == "")
|
||||
{
|
||||
?>
|
||||
<option value=""></option>
|
||||
<option value="AUTO_INCREMENT">auto_increment</option>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<option value="AUTO_INCREMENT">auto_increment</option>
|
||||
<option value=""></option>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</select></td>
|
||||
|
||||
<?php
|
||||
if($action == "tbl_create.php3" || $action == "tbl_addfield.php3")
|
||||
{
|
||||
?>
|
||||
<td align="center">
|
||||
<input type="checkbox" name="field_primary[]" value="<?php echo $i;?>"
|
||||
<?php
|
||||
if(isset($row) && isset($row["Key"]) && $row["Key"] == "PRI")
|
||||
echo "checked";
|
||||
?>
|
||||
>
|
||||
</td>
|
||||
<td align="center">
|
||||
<input type="checkbox" name="field_index[]" value="<?php echo $i;?>"
|
||||
<?php
|
||||
if(isset($row) && isset($row["Key"]) && $row["Key"] == "MUL")
|
||||
echo "checked";
|
||||
?>
|
||||
>
|
||||
</td>
|
||||
<td align="center">
|
||||
<input type="checkbox" name="field_unique[]" value="<?php echo $i;?>"
|
||||
<?php
|
||||
if(isset($row) && isset($row["Key"]) && $row["Key"] == "UNI")
|
||||
echo "checked";
|
||||
?>
|
||||
>
|
||||
</td>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<?php
|
||||
if($action == "tbl_create.php3" && MYSQL_MAJOR_VERSION == "3.23")
|
||||
{
|
||||
echo "$strTableComments:<br>";
|
||||
?>
|
||||
<input type="text" name="comment" style="width: <?php echo $cfgMaxInputsize;?>" maxlength="80">
|
||||
<?php
|
||||
}
|
||||
//BEGIN - Table Type - 2 May 2001 - Robbat2
|
||||
if($action == "tbl_create.php3")
|
||||
{
|
||||
echo $strTableType.":"; ?>
|
||||
<select name="tbl_type">
|
||||
<option>Default</option>
|
||||
<option value="BDB">BerkeleyDB</option>
|
||||
<?php // Not yet in MySQL <option value="GEMINI">Gemini</option> ?>
|
||||
<option value="HEAP">Heap</option>
|
||||
<option value="ISAM">ISAM</option>
|
||||
<?php // Not yet in MySQL <option value="InnoDB">InnoDB</option> ?>
|
||||
<option value="MERGE">Merge</option>
|
||||
<option value="MYISAM">MyISAM</option>
|
||||
</select>
|
||||
<?php
|
||||
}
|
||||
//END - Table Type - 2 May 2001 - Robbat2
|
||||
?>
|
||||
<p>
|
||||
<input type="submit" name="submit" value="<?php echo $strSave;?>">
|
||||
</p>
|
||||
</form>
|
||||
<center><?php print show_docu("manual_Reference.html#Create_table");?></center>
|
||||
295
tbl_properties.php3
Executable file
295
tbl_properties.php3
Executable file
@ -0,0 +1,295 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
|
||||
if(!isset($message))
|
||||
{
|
||||
include("header.inc.php3");
|
||||
}
|
||||
else
|
||||
show_message($message);
|
||||
|
||||
unset($sql_query);
|
||||
if(MYSQL_MAJOR_VERSION == "3.23")
|
||||
{
|
||||
if(isset($submitcomment))
|
||||
$result = mysql_db_query($db, "ALTER TABLE $table comment='$comment'") or mysql_die();
|
||||
$result = mysql_db_query($db, "SHOW TABLE STATUS LIKE '$table'") or mysql_die();
|
||||
$row = mysql_fetch_array($result);
|
||||
//Fix to Comment editing so that you can add comments - 2 May 2001 - Robbat2
|
||||
?>
|
||||
<form method='post' action='tbl_properties.php3'>
|
||||
<input type="hidden" name="server" value="<?php echo $server;?>">
|
||||
<input type="hidden" name="lang" value="<?php echo $lang;?>">
|
||||
<input type="hidden" name="db" value="<?php echo $db;?>">
|
||||
<input type="hidden" name="table" value="<?php echo $table;?>">
|
||||
<?php
|
||||
echo "$strTableComments: <input type='text' name='comment' value='$row[Comment]'><input type='submit' name='submitcomment' value='$strGo'></form>";
|
||||
|
||||
//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']);
|
||||
?>
|
||||
<form method='post' action='tbl_properties.php3'>
|
||||
<input type="hidden" name="server" value="<?php echo $server;?>">
|
||||
<input type="hidden" name="lang" value="<?php echo $lang;?>">
|
||||
<input type="hidden" name="db" value="<?php echo $db;?>">
|
||||
<input type="hidden" name="table" value="<?php echo $table;?>">
|
||||
<?php echo $strTableType.":";?>
|
||||
<select name='tbl_type'>
|
||||
<option <?php if($tbl_type == "BDB") echo 'selected';?> value="BDB">BerkeleyDB</option>
|
||||
<?php //Not in MySQL yet <option <?php if($tbl_type == "GEMINI") echo 'selected';? >value="GEMINI">Gemini</option> ?>
|
||||
<option <?php if($tbl_type == "HEAP") echo 'selected';?> value="HEAP">Heap</option>
|
||||
<option <?php if($tbl_type == "ISAM") echo 'selected';?> value="ISAM">ISAM</option>
|
||||
<?php //Not in MySQL yet <option <?php if($tbl_type == "INNODB") echo 'selected';? > value="InnoDB">InnoDB</option> ?>
|
||||
<option <?php if($tbl_type == "MRG_MYISAM") echo 'selected';?> value="MERGE">Merge</option>
|
||||
<option <?php if($tbl_type == "MYISAM") echo 'selected';?> value="MYISAM">MyISAM</option>
|
||||
</select>
|
||||
<input type='submit' name='submittype' value='<?php echo $strGo; ?>'></form>
|
||||
<?php
|
||||
//END - Table Type - 2 May 2001 - Robbat2
|
||||
}
|
||||
|
||||
$result = mysql_db_query($db, "SHOW KEYS FROM $table") or mysql_die();
|
||||
$primary = "";
|
||||
|
||||
while($row = mysql_fetch_array($result))
|
||||
if ($row["Key_name"] == "PRIMARY")
|
||||
$primary .= "$row[Column_name], ";
|
||||
|
||||
$result = mysql_db_query($db, "SHOW FIELDS FROM $table") or mysql_die();
|
||||
|
||||
?>
|
||||
<table border=<?php echo $cfgBorder;?>>
|
||||
<TR>
|
||||
<TH><?php echo $strField; ?></TH>
|
||||
<TH><?php echo $strType; ?></TH>
|
||||
<TH><?php echo $strAttr; ?></TH>
|
||||
<TH><?php echo $strNull; ?></TH>
|
||||
<TH><?php echo $strDefault; ?></TH>
|
||||
<TH><?php echo $strExtra; ?></TH>
|
||||
<?php if (!(isset($printer_friendly) && $printer_friendly)) { ?>
|
||||
<TH COLSPAN=5><?php echo $strAction; ?></TH>
|
||||
<?php } ?>
|
||||
</TR>
|
||||
|
||||
<?php
|
||||
$i=0;
|
||||
|
||||
$aryFields = array();
|
||||
|
||||
while($row= mysql_fetch_array($result))
|
||||
{
|
||||
$aryFields[] = $row["Field"];
|
||||
$query = "server=$server&lang=$lang&db=$db&table=$table&goto=tbl_properties.php3";
|
||||
$bgcolor = $cfgBgcolorOne;
|
||||
$i % 2 ? 0: $bgcolor = $cfgBgcolorTwo;
|
||||
$i++;
|
||||
?>
|
||||
<tr bgcolor="<?php echo $bgcolor;?>">
|
||||
<td><?php echo $row["Field"];?> </td>
|
||||
<td>
|
||||
<?php
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$Type = stripslashes($row["Type"]);
|
||||
} else {
|
||||
$Type = $row["Type"];
|
||||
}
|
||||
$Type = eregi_replace("BINARY", "", $Type);
|
||||
$Type = eregi_replace("ZEROFILL", "", $Type);
|
||||
$Type = eregi_replace("UNSIGNED", "", $Type);
|
||||
echo $Type;
|
||||
?> </td>
|
||||
<td>
|
||||
<?php
|
||||
$binary = eregi("BINARY", $row["Type"], $test);
|
||||
$unsigned = eregi("UNSIGNED", $row["Type"], $test);
|
||||
$zerofill = eregi("ZEROFILL", $row["Type"], $test);
|
||||
$strAttribute="";
|
||||
if ($binary)
|
||||
$strAttribute="BINARY";
|
||||
if ($unsigned)
|
||||
$strAttribute="UNSIGNED";
|
||||
if ($zerofill)
|
||||
$strAttribute="UNSIGNED ZEROFILL";
|
||||
echo $strAttribute;
|
||||
$strAttribute="";
|
||||
?>
|
||||
</td>
|
||||
<td><?php if ($row["Null"] == "") { echo $strNo;} else {echo $strYes;}?> </td>
|
||||
<td><?php if(isset($row["Default"])) echo $row["Default"];?> </td>
|
||||
<td><?php echo $row["Extra"];?> </td>
|
||||
|
||||
<?php if (!(isset($printer_friendly) && $printer_friendly)) { ?>
|
||||
<td><a href="tbl_alter.php3?<?php echo $query;?>&field=<?php echo $row["Field"];?>"><?php echo $strChange; ?></a></td>
|
||||
<td><a href="sql.php3?<?php echo $query;?>&sql_query=<?php echo urlencode("ALTER TABLE ".$table." DROP ".$row["Field"]);?>&zero_rows=<?php echo urlencode($row["Field"]." ".$strHasBeenDropped);?>"><?php echo $strDrop; ?></a></td>
|
||||
<td><a href="sql.php3?<?php echo $query;?>&sql_query=<?php echo urlencode("ALTER TABLE ".$table." DROP PRIMARY KEY, ADD PRIMARY KEY($primary".$row["Field"].")");?>&zero_rows=<?php echo urlencode($strAPrimaryKey.$row["Field"]);?>"><?php echo $strPrimary; ?></a></td>
|
||||
<td><a href="sql.php3?<?php echo $query;?>&sql_query=<?php echo urlencode("ALTER TABLE ".$table." ADD INDEX(".$row["Field"].")");?>&zero_rows=<?php echo urlencode($strAnIndex.$row["Field"]);?>"><?php echo $strIndex; ?></a></td>
|
||||
<td><a href="sql.php3?<?php echo $query;?>&sql_query=<?php echo urlencode("ALTER TABLE ".$table." ADD UNIQUE(".$row["Field"].")");?>&zero_rows=<?php echo urlencode($strAnIndex.$row["Field"]);?>"><?php echo $strUnique; ?></a></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<?php
|
||||
|
||||
$result = mysql_db_query($db, "SHOW KEYS FROM ".$table) or mysql_die();
|
||||
if(mysql_num_rows($result)>0)
|
||||
{
|
||||
?>
|
||||
<br>
|
||||
<table border=<?php echo $cfgBorder;?>>
|
||||
<tr>
|
||||
<th><?php echo $strKeyname; ?></th>
|
||||
<th><?php echo $strUnique; ?></th>
|
||||
<th><?php echo $strField; ?></th>
|
||||
<th><?php echo $strAction; ?></th>
|
||||
</tr>
|
||||
<?php
|
||||
for($i=0 ; $i<mysql_num_rows($result); $i++)
|
||||
{
|
||||
$row = mysql_fetch_array($result);
|
||||
echo "<tr>";
|
||||
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);
|
||||
}
|
||||
|
||||
?>
|
||||
<td><?php echo $row["Key_name"];?></td>
|
||||
<td><?php
|
||||
if($row["Non_unique"]=="0")
|
||||
echo $strYes;
|
||||
else
|
||||
echo $strNo;
|
||||
?></td>
|
||||
<td><?php echo $row["Column_name"];?></td>
|
||||
<td><?php echo "<a href=\"sql.php3?$query&sql_query=$sql_query&zero_rows=$zero_rows\">$strDrop</a>";?></td>
|
||||
<?php
|
||||
echo "</tr>";
|
||||
}
|
||||
print "</table>\n";
|
||||
print show_docu("manual_Performance.html#MySQL_indexes");
|
||||
}
|
||||
|
||||
?>
|
||||
<div align="left">
|
||||
<ul>
|
||||
<li><a href="tbl_printview.php3?<?php echo $query;?>"><?php echo $strPrintView; ?></a>
|
||||
<li>
|
||||
<form method="post" action="db_readdump.php3">
|
||||
<input type="hidden" name="server" value="<?php echo $server;?>">
|
||||
<input type="hidden" name="lang" value="<?php echo $lang;?>">
|
||||
<input type="hidden" name="pos" value="0">
|
||||
<input type="hidden" name="db" value="<?php echo $db;?>">
|
||||
<input type="hidden" name="goto" value="db_details.php3">
|
||||
<input type="hidden" name="zero_rows" value="<?php echo $strSuccess; ?>">
|
||||
<?php echo $strRunSQLQuery.$db." ".show_docu("manual_Reference.html#Select");?>:<br>
|
||||
<textarea name="sql_query" cols="40" rows="3" wrap="VIRTUAL" style="width: <?php
|
||||
echo $cfgMaxInputsize;?>">select * from <?php echo $table?> where 1</textarea>
|
||||
<input type="submit" name="SQL" value="<?php echo $strGo; ?>">
|
||||
</form>
|
||||
<li><a href="sql.php3?sql_query=<?php echo urlencode("SELECT * FROM $table");?>&pos=0&<?php echo $query;?>"><?php echo $strBrowse; ?></a>
|
||||
<li><a href="tbl_select.php3?<?php echo $query;?>"><?php echo $strSelect; ?></a>
|
||||
<li><a href="tbl_change.php3?<?php echo $query;?>"><?php echo $strInsert; ?></a>
|
||||
<li><form method="post" action="tbl_addfield.php3"> <input type="hidden" name="server" value="<?php echo $server;?>">
|
||||
<input type="hidden" name="lang" value="<?php echo $lang;?>">
|
||||
<input type="hidden" name="db" value="<?php echo $db;?>">
|
||||
<input type="hidden" name="table" value="<?php echo $table;?>">
|
||||
<?php echo " ".$strAddNewField; ?>: <input name="num_fields" size=2 maxlength=2 value=1>
|
||||
<?php
|
||||
echo " ";
|
||||
echo " <select name=\"after_field\">\n";
|
||||
echo ' <option value="--end--">'.$strAtEndOfTable."</option>\n";
|
||||
echo ' <option value="--first--">'.$strAtBeginningOfTable."</option>\n";
|
||||
while(list ($junk,$fieldname) = each($aryFields)) {
|
||||
echo ' <option value="'.$fieldname.'">'.$strAfter.' '.$fieldname."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
?>
|
||||
<input type="submit" value="<?php echo $strGo;?>">
|
||||
</form>
|
||||
<li><a href="ldi_table.php3?<?php echo $query;?>"><?php echo $strInsertTextfiles; ?></a>
|
||||
<li><form method="post" action="tbl_dump.php3"><?php echo $strViewDump;?><br>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="radio" name="what" value="structure" checked><?php echo $strStrucOnly;?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="drop" value="1"><?php echo $strStrucDrop;?>
|
||||
</td>
|
||||
<td colspan="3">
|
||||
<input type="submit" value="<?php echo $strGo;?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="radio" name="what" value="data"><?php echo $strStrucData;?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="asfile" value="sendit"><?php echo $strSend;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="showcolumns" value="yes"><?php echo $strCompleteInserts; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="radio" name="what" value="csv"><?php echo $strStrucCSV;?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $strTerminatedBy;?> <input type="text" name="separator" size=1 value=";">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="hidden" name="server" value="<?php echo $server;?>">
|
||||
<input type="hidden" name="lang" value="<?php echo $lang;?>">
|
||||
<input type="hidden" name="db" value="<?php echo $db;?>">
|
||||
<input type="hidden" name="table" value="<?php echo $table;?>">
|
||||
</form>
|
||||
|
||||
<li><form method="post" action="tbl_rename.php3"><?php echo $strRenameTable;?>:<br>
|
||||
<input type="hidden" name="server" value="<?php echo $server;?>">
|
||||
<input type="hidden" name="lang" value="<?php echo $lang;?>">
|
||||
<input type="hidden" name="db" value="<?php echo $db;?>">
|
||||
<input type="hidden" name="table" value="<?php echo $table;?>">
|
||||
<input type="hidden" name="reload" value="true">
|
||||
<input type="text" name="new_name"><input type="submit" value="<?php echo $strGo;?>">
|
||||
</form>
|
||||
<li><form method="post" action="tbl_copy.php3"><?php echo $strCopyTable;?><br>
|
||||
<input type="hidden" name="server" value="<?php echo $server;?>">
|
||||
<input type="hidden" name="lang" value="<?php echo $lang;?>">
|
||||
<input type="hidden" name="db" value="<?php echo $db;?>">
|
||||
<input type="hidden" name="table" value="<?php echo $table;?>">
|
||||
<input type="hidden" name="reload" value="true">
|
||||
<input type="text" name="new_name"><br>
|
||||
<input type="radio" name="what" value="structure" checked><?php echo $strStrucOnly;?>
|
||||
<input type="radio" name="what" value="data"><?php echo $strStrucData;?>
|
||||
<input type="submit" value="<?php echo $strGo;?>">
|
||||
</form>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
require ("footer.inc.php3");
|
||||
?>
|
||||
521
tbl_qbe.php3
Executable file
521
tbl_qbe.php3
Executable file
@ -0,0 +1,521 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
|
||||
require( "header.inc.php3");
|
||||
|
||||
if(empty($Columns))
|
||||
$Columns = 3; # initial number of columns
|
||||
|
||||
if(!isset($Add_Col))
|
||||
$Add_Col = "";
|
||||
|
||||
if(!isset($Add_Row))
|
||||
$Add_Row = "";
|
||||
|
||||
if(!isset($Rows))
|
||||
$Rows = "";
|
||||
|
||||
if(!isset($InsCol))
|
||||
$InsCol = "";
|
||||
|
||||
if(!isset($DelCol))
|
||||
$DelCol = "";
|
||||
|
||||
if(!isset($Criteria))
|
||||
$Criteria = "";
|
||||
|
||||
if(!isset($InsRow))
|
||||
$InsRow = "";
|
||||
|
||||
if(!isset($DelRow))
|
||||
$DelRow = "";
|
||||
|
||||
if(!isset($AndOrRow))
|
||||
$AndOrRow = "";
|
||||
|
||||
if(!isset($AndOrCol))
|
||||
$AndOrCol = "";
|
||||
|
||||
|
||||
$wid = "12";
|
||||
$widem = $wid. "em";
|
||||
$col = $Columns + $Add_Col;
|
||||
|
||||
if($col < 0)
|
||||
$col = 0;
|
||||
$row = $Rows + $Add_Row;
|
||||
if($row < 0)
|
||||
$row = 0;
|
||||
|
||||
$tbl_result = mysql_list_tables ($db);
|
||||
$i = 0; $k = 0;
|
||||
|
||||
if(!empty($TableList))
|
||||
{
|
||||
for($x=0; $x<sizeof($TableList); $x++)
|
||||
$tbl_names[$TableList[$x]] = "selected";
|
||||
}
|
||||
|
||||
while($i < mysql_num_rows($tbl_result))
|
||||
{
|
||||
$tbl = mysql_tablename ($tbl_result, $i);
|
||||
$fld_results = mysql_list_fields($db, $tbl);
|
||||
$j = 0;
|
||||
|
||||
if(empty($tbl_names[$tbl]) && !empty($TableList))
|
||||
$tbl_names[$tbl]= "";
|
||||
else
|
||||
$tbl_names[$tbl]= "selected";
|
||||
|
||||
if($tbl_names[$tbl]== "selected")
|
||||
{
|
||||
$fld[$k++] = "$tbl.*";
|
||||
while($j < mysql_num_fields($fld_results))
|
||||
{
|
||||
$fld[$k] = mysql_field_name ($fld_results, $j);
|
||||
$fld[$k] = "$tbl.$fld[$k]";
|
||||
$k++;
|
||||
$j++;
|
||||
}
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
echo "<form action='tbl_qbe.php3' method='POST'>\n";
|
||||
echo "<table border='$cfgBorder'><tr>\n";
|
||||
|
||||
### Field columns
|
||||
echo "<td align='RIGHT' bgcolor='$cfgThBgcolor'><b>$strField:</b></td>\n";
|
||||
$z=0;
|
||||
for($x = 0; $x < $col; $x++)
|
||||
{
|
||||
if(isset($InsCol[$x]) && $InsCol[$x]== "on")
|
||||
{
|
||||
echo "<td align=center bgcolor='$cfgBgcolorOne'><select style='width: $widem;' name='Field[$z]' size='1'>\n";
|
||||
echo "<option value=''></option>\n";
|
||||
for($y = 0; $y < sizeof($fld); $y++)
|
||||
{
|
||||
$sel = "";
|
||||
if($fld[$y] == "")
|
||||
$sel = "selected";
|
||||
echo "<option $sel value='$fld[$y]'>$fld[$y]</option>\n";
|
||||
}
|
||||
echo "</select>\n";
|
||||
echo "</td>\n";
|
||||
$z++;
|
||||
}
|
||||
|
||||
if(isset($DelCol[$x]) && $DelCol[$x]== "on")
|
||||
continue;
|
||||
echo "<td align=center bgcolor='$cfgBgcolorOne'><select style='width: $widem;' name='Field[$z]' size='1'>\n";
|
||||
echo "<option value=''></option>\n";
|
||||
for($y = 0; $y < sizeof($fld); $y++)
|
||||
{
|
||||
$sel = "";
|
||||
if($fld[$y] == $Field[$x])
|
||||
{
|
||||
$curField[$z]=$Field[$x];
|
||||
$sel = "selected";}
|
||||
echo "<option $sel value='$fld[$y]'>$fld[$y]</option>\n";
|
||||
}
|
||||
$z++;
|
||||
echo "</select>\n";
|
||||
echo "</td>\n";
|
||||
}
|
||||
echo "</tr><tr>\n";
|
||||
|
||||
### Sort columns
|
||||
echo "<td align='RIGHT' bgcolor='$cfgThBgcolor'><b>Sort:</b></td>\n";
|
||||
$z = 0;
|
||||
for($x = 0; $x < $col; $x++)
|
||||
{
|
||||
if(isset($InsCol[$x]) && $InsCol[$x]== "on")
|
||||
{
|
||||
echo "<td align=center bgcolor='$cfgBgcolorTwo'><select style='width: $widem;' name='Sort[$z]' size='1'>\n";
|
||||
echo "<option value=''></option>\n";
|
||||
echo "<option value='ASC'>Ascending</option>\n";
|
||||
echo "<option value='DESC'>Decending</option>\n";
|
||||
echo "</select>\n";
|
||||
echo "</td>\n";
|
||||
$z++;
|
||||
}
|
||||
if(isset($DelCol[$x]) && $DelCol[$x]== "on")
|
||||
continue;
|
||||
echo "<td align=center bgcolor='$cfgBgcolorTwo'><select style='width: $widem;' name='Sort[$z]' size='1'>\n";
|
||||
echo "<option value=''></option>\n";
|
||||
if($Sort[$x] == "ASC")
|
||||
{
|
||||
$curSort[$z]=$Sort[$x];
|
||||
$sel = "selected";
|
||||
}
|
||||
else
|
||||
$sel = "";
|
||||
echo "<option $sel value='ASC'>Ascending</option>\n";
|
||||
if($Sort[$x] == "DESC")
|
||||
{
|
||||
$curSort[$z]=$Sort[$x];
|
||||
$sel = "selected";
|
||||
}
|
||||
else
|
||||
$sel = "";
|
||||
echo "<option $sel value='DESC'>Desending</option>\n";
|
||||
echo "</select>\n";
|
||||
echo "</td>\n";
|
||||
$z++;
|
||||
}
|
||||
|
||||
### Show columns
|
||||
echo "</tr><tr><td align='RIGHT' bgcolor='$cfgThBgcolor'><b>Show:</b></td>\n";
|
||||
$z=0;
|
||||
for($x = 0; $x < $col; $x++)
|
||||
{
|
||||
if(isset($InsCol[$x]) && $InsCol[$x]== "on")
|
||||
{
|
||||
echo "<td align='CENTER'><input type='Checkbox' name='Show[$z]'></td>\n";
|
||||
$z++;
|
||||
}
|
||||
if(isset($DelCol[$x]) && $DelCol[$x]== "on")
|
||||
continue;
|
||||
$sel = "";
|
||||
if(isset($Show[$x]))
|
||||
{
|
||||
$sel = "checked";
|
||||
$curShow[$z] = $Show[$x];
|
||||
}
|
||||
echo "<td align='CENTER' bgcolor='$cfgBgcolorOne'><input type='Checkbox' $sel name='Show[$z]'></td>\n";
|
||||
$z++;
|
||||
}
|
||||
|
||||
### Criteria columns
|
||||
echo "</tr><tr><td align='RIGHT' bgcolor='$cfgThBgcolor'><b>Criteria:</b></td>\n";
|
||||
$z=0;
|
||||
for($x = 0; $x < $col; $x++)
|
||||
{
|
||||
if(isset($InsCol[$x]) && $InsCol[$x]== "on")
|
||||
{
|
||||
echo "<td align=center bgcolor='$cfgBgcolorTwo'><input type='Text' name='Criteria[$z]' value='' style='width: $widem;' size='20'></td>\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 "<td align=center bgcolor='$cfgBgcolorTwo'>";
|
||||
echo "<input type=\"Text\" name=\"Criteria[$z]\" value=\"".$stripped_Criteria."\" style=\"width: $widem;\" size=\"20\">";
|
||||
echo "</td>\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 "</tr><tr><td nowrap align='RIGHT' bgcolor='$bgcolor'>";
|
||||
$chk[ 'or'] = "checked"; $chk[ 'and'] = "";
|
||||
# Row controls
|
||||
echo "
|
||||
<table bgcolor='$bgcolor'><tr>
|
||||
<td align=right nowrap><small>Ins:</small><input type='checkbox' name='InsRow[$w]'></td>
|
||||
<td align=right><b>And:</b></td>
|
||||
<td><input type='radio' ".$chk[ 'and']. " name='AndOrRow[$w]' value='and'></td></tr>
|
||||
</tr><td align=right nowrap><small>Del:</small><input type='checkbox' name='DelRow[$w]'></td>
|
||||
<td align=right><b>Or:</b></td>
|
||||
<td><input type='radio' ".$chk[ 'or']. " name='AndOrRow[$w]' value='or'></td></tr>
|
||||
</table></td>\n";
|
||||
$z=0;
|
||||
for ($x = 0; $x < $col; $x++)
|
||||
{
|
||||
if($InsCol[$x]== "on")
|
||||
{
|
||||
$or = "Or".$w;
|
||||
echo "<td align=center bgcolor='$bgcolor'><textarea style='width: $widem;' rows=2 name='".$or. "[$z]'></textarea></td>\n";
|
||||
$z++;
|
||||
}
|
||||
if($DelCol[$x]== "on")
|
||||
continue;
|
||||
$or = "Or".$w;
|
||||
echo "<td align=center bgcolor='$bgcolor'><textarea rows=2 style='width: $widem;' name='".$or. "[$z]'></textarea></td>\n";
|
||||
$z++;
|
||||
}
|
||||
$w++;
|
||||
}
|
||||
if($DelRow[$y]== "on")
|
||||
continue;
|
||||
echo "</tr><tr><td nowrap align='RIGHT'>";
|
||||
$curAndOrRow[$w]=$AndOrRow[$y];
|
||||
if($AndOrRow[$y] == 'and')
|
||||
{
|
||||
$chk[ 'and'] = "checked";
|
||||
$chk[ 'or'] = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
$chk[ 'or'] = "checked";
|
||||
$chk[ 'and'] = "";
|
||||
}
|
||||
|
||||
# Row controls
|
||||
echo "
|
||||
<table bgcolor='$bgcolor'><tr>
|
||||
<td align=right nowrap><small>Ins:</small><input type='checkbox' name='InsRow[$w]'></td>
|
||||
<td align=right><b>And:</b></td>
|
||||
<td><input type='radio' ".$chk[ 'and']. " name='AndOrRow[$w]' value='and'></td></tr>
|
||||
</tr><td align=right nowrap><small>Del:</small><input type='checkbox' name='DelRow[$w]'></td>
|
||||
<td align=right><b>Or:</b></td>
|
||||
<td><input type='radio' ".$chk[ 'or']. " name='AndOrRow[$w]' value='or'></td></tr>
|
||||
</table></td>\n";
|
||||
$z=0;
|
||||
for ($x = 0; $x < $col; $x++)
|
||||
{
|
||||
if(isset($InsCol[$x]) && $InsCol[$x]== "on")
|
||||
{
|
||||
$or = "Or".$w;
|
||||
echo "<td bgcolor='$bgcolor'><textarea style='width: $widem;' rows=2 name='".$or. "[$z]'></textarea></td>\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 "<td bgcolor='$bgcolor'>";
|
||||
echo "<textarea rows=2 style='width: $widem;' name='Or".$w. "[$z]'>".$stripped_or. "</textarea>";
|
||||
echo "</td>\n";
|
||||
${"cur".$or}[$z] = ${$or}[$x];
|
||||
$z++;
|
||||
}
|
||||
$w++;
|
||||
}
|
||||
|
||||
### Modify columns
|
||||
echo "</tr><tr><td align='RIGHT'><b>Modify:</b></td>\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 "<td align=center>
|
||||
<b>Or:</b>
|
||||
<input type='radio' ".$chk[ 'or']. " name='AndOrCol[$z]' value='or'>
|
||||
<b>And:</b>
|
||||
<input type='radio' ".$chk[ 'and']. " name='AndOrCol[$z]' value='and'>
|
||||
<br>Ins:
|
||||
<input type='checkbox' name='InsCol[$z]'>
|
||||
Del:
|
||||
<input type='checkbox' name='DelCol[$z]'>
|
||||
</td>\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 "<td align=center>
|
||||
<b>Or:</b>
|
||||
<input type='radio' ".$chk[ 'or']. " name='AndOrCol[$z]' value='or'>
|
||||
<b>And:</b>
|
||||
<input type='radio' ".$chk[ 'and']. " name='AndOrCol[$z]' value='and'>
|
||||
<br>Ins:
|
||||
<input type='checkbox' name='InsCol[$z]'>
|
||||
Del:
|
||||
<input type='checkbox' name='DelCol[$z]'>
|
||||
</td>\n";
|
||||
$z++;
|
||||
}
|
||||
echo "</table>\n";
|
||||
|
||||
### Other controls
|
||||
echo "
|
||||
<table border=0><tr>
|
||||
<td valign='TOP'>
|
||||
<table border=0 align='LEFT' valign='TOP'><tr>
|
||||
<td rowspan='3' valign='TOP'>Use Tables:<br>
|
||||
<select name='TableList[]' size='7' multiple>";
|
||||
|
||||
while(list( $key, $val ) = each($tbl_names))
|
||||
echo "<option value='$key' $val>$key</option>\n";
|
||||
echo "</select></td>
|
||||
<td colspan='2' align='RIGHT' valign='BOTTOM'>\n";
|
||||
$w--;
|
||||
echo "<input type='hidden' value='$db' name='db'>\n";
|
||||
echo "<input type='hidden' value='$z' name='Columns'>\n";
|
||||
echo "<input type='hidden' value='$w' name='Rows'>\n";
|
||||
|
||||
echo "Add/Delete Criteria Row: <SELECT size=1 name='Add_Row'>
|
||||
<OPTION value='-3'>-3</OPTION>
|
||||
<OPTION value='-2'>-2</OPTION>
|
||||
<OPTION value='-1'>-1</OPTION>
|
||||
<OPTION selected value='0'>0</OPTION>
|
||||
<OPTION value='1'>1</OPTION>
|
||||
<OPTION value='2'>2</OPTION>
|
||||
<OPTION value='3'>3</OPTION>
|
||||
</SELECT>
|
||||
</td></tr><tr><td colspan='2' align='RIGHT' valign='BOTTOM'>";
|
||||
|
||||
echo "Add/Delete Field Columns: <SELECT size=1 name='Add_Col'>
|
||||
<OPTION value='-3'>-3</OPTION>
|
||||
<OPTION value='-2'>-2</OPTION>
|
||||
<OPTION value='-1'>-1</OPTION>
|
||||
<OPTION selected value='0'>0</OPTION>
|
||||
<OPTION value='1'>1</OPTION>
|
||||
<OPTION value='2'>2</OPTION>
|
||||
<OPTION value='3'>3</OPTION>
|
||||
</SELECT>
|
||||
</td></tr><tr valign=top><td>";
|
||||
echo "<input type='Submit' name='modify' value='Update Query'>\n";
|
||||
echo "<input type='hidden' name='server' value='$server'>\n";
|
||||
echo "<input type='hidden' name='lang' value='$lang'>\n";
|
||||
echo "</form></td><td>";
|
||||
|
||||
### Generate a query
|
||||
|
||||
echo "<form method='get' action='sql.php3'>\n";
|
||||
echo "<input type='hidden' name='server' value='$server'>\n";
|
||||
echo "<input type='hidden' name='lang' value='$lang'>\n";
|
||||
echo "<input type='hidden' name='goto' value='db_details.php3'>\n";
|
||||
echo "<input type='hidden' name='db' value='$db'>\n";
|
||||
echo "<input type='hidden' name='zero_rows' value='Your SQL-query has been executed successfully'>";
|
||||
echo "<input type='submit' name='SQL' value='Submit Query'></td></tr></table></td><td>";
|
||||
echo " SQL query on database <b>$db</b>:<br>";
|
||||
echo "<textarea cols=30 rows=7 name='sql_query'>";
|
||||
|
||||
# SELECT
|
||||
$last_select = 0;
|
||||
if(!isset($qry_select))
|
||||
$qry_select = "";
|
||||
for($x=0; $x<$col; $x++)
|
||||
{
|
||||
if($last_select && !empty($curField[$x]) && isset($curShow[$x]) && $curShow[$x]== 'on')
|
||||
$qry_select .= ", ";
|
||||
if(!empty($curField[$x]) && isset($curShow[$x]) && $curShow[$x]== 'on')
|
||||
{
|
||||
$qry_select .= $curField[$x];
|
||||
$last_select = 1;
|
||||
}
|
||||
}
|
||||
if(!empty($qry_select))
|
||||
echo "SELECT ".$qry_select. "\n";
|
||||
|
||||
# FROM
|
||||
if(!isset($TableList))
|
||||
$TableList = array();
|
||||
|
||||
if(!isset($qry_from))
|
||||
$qry_from = "";
|
||||
for($x=0; $x<sizeof($TableList); $x++)
|
||||
{
|
||||
if($x)
|
||||
$qry_from .= ", ";
|
||||
$qry_from .= "$TableList[$x]";
|
||||
}
|
||||
if(!empty($qry_select))
|
||||
echo "FROM ".$qry_from. "\n";
|
||||
|
||||
# WHERE
|
||||
$qry_where = "(";
|
||||
for($x=0; $x<$col; $x++)
|
||||
{
|
||||
if(!empty($curField[$x]) && !empty($curCriteria[$x]) && $x && isset($last_where))
|
||||
$qry_where .= strtoupper($curAndOrCol[$last_where]);
|
||||
if(!empty($curField[$x]) && !empty($curCriteria[$x]))
|
||||
{
|
||||
$qry_where .= "($curField[$x] $curCriteria[$x])";
|
||||
$last_where = $x;
|
||||
}
|
||||
}
|
||||
|
||||
$qry_where .= ")";
|
||||
# OR rows ${"cur".$or}[$x]
|
||||
if(!isset($curAndOrRow))
|
||||
$curAndOrRow = array();
|
||||
for($y=0; $y<=$row; $y++)
|
||||
{
|
||||
$qry_orwhere = "(";
|
||||
$last_orwhere = "";
|
||||
for($x=0; $x<$col; $x++)
|
||||
{
|
||||
if(!empty($curField[$x]) && !empty(${ "curOr".$y}[$x]) && $x)
|
||||
$qry_orwhere .= strtoupper($curAndOrCol[$last_orwhere]);
|
||||
if(!empty($curField[$x]) && !empty(${ 'curOr'.$y}[$x]))
|
||||
{
|
||||
$qry_orwhere .= "($curField[$x] ".${ 'curOr'.$y}[$x]. ")";
|
||||
$last_orwhere = $x;
|
||||
}
|
||||
}
|
||||
$qry_orwhere .= ")";
|
||||
if($qry_orwhere != "()")
|
||||
$qry_where .= "\n".strtoupper(isset($curAndOrRow[$y]) ? $curAndOrRow[$y]: "").$qry_orwhere;
|
||||
}
|
||||
|
||||
if($qry_where != "()")
|
||||
if(get_magic_quotes_gpc()) {
|
||||
echo "WHERE ".stripslashes($qry_where). "\n";
|
||||
} else {
|
||||
echo "WHERE ".($qry_where). "\n";
|
||||
}
|
||||
|
||||
# ORDER BY
|
||||
$last_orderby=0;
|
||||
if(!isset($qry_orderby))
|
||||
$qry_orderby = "";
|
||||
|
||||
for ($x=0; $x<$col; $x++)
|
||||
{
|
||||
if($last_orderby && $x && !empty($curField[$x]) && !empty($curSort[$x]))
|
||||
$qry_orderby .= ", ";
|
||||
if(!empty($curField[$x]) && !empty($curSort[$x]))
|
||||
{
|
||||
$qry_orderby .= "$curField[$x] $curSort[$x]";
|
||||
$last_orderby = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($qry_orderby))
|
||||
echo "ORDER BY ".$qry_orderby. "\n";
|
||||
|
||||
echo "</textarea></form></td></tr></table>";
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
require ( "footer.inc.php3");
|
||||
?>
|
||||
17
tbl_rename.php3
Executable file
17
tbl_rename.php3
Executable file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
|
||||
$old_name = $table;
|
||||
$table = $new_name;
|
||||
require("header.inc.php3");
|
||||
|
||||
$result = mysql_db_query($db, "ALTER TABLE $old_name RENAME $new_name") or mysql_die();
|
||||
$table = $old_name;
|
||||
eval("\$message = \"$strRenameTableOK\";");
|
||||
$table = $new_name;
|
||||
include("tbl_properties.php3");
|
||||
?>
|
||||
108
tbl_replace.php3
Executable file
108
tbl_replace.php3
Executable file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
require("lib.inc.php3");
|
||||
|
||||
|
||||
if($goto == "sql.php3")
|
||||
{
|
||||
$goto = "sql.php3?server=$server&lang=$lang&db=$db&table=$table&pos=$pos&sql_query=".urlencode($sql_query);
|
||||
|
||||
}
|
||||
|
||||
reset($fields);
|
||||
reset($funcs);
|
||||
|
||||
if(isset($primary_key)) {
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$primary_key = stripslashes($primary_key);
|
||||
} else {
|
||||
$primary_key = $primary_key;
|
||||
}
|
||||
$valuelist = '';
|
||||
while(list($key, $val) = each($fields)) {
|
||||
switch (strtolower($val)) {
|
||||
case 'null':
|
||||
break;
|
||||
case '$set$':
|
||||
// if we have a set, then construct the value
|
||||
$f = "field_$key";
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$val = "'".($$f?implode(',',$$f):'')."'";
|
||||
} else {
|
||||
$val = "'".addslashes($$f?implode(',',$$f):'')."'";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$val = "'".$val."'";
|
||||
} else {
|
||||
$val = "'".addslashes($val)."'";
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if(empty($funcs[$key])) {
|
||||
$valuelist .= "$key = $val, ";
|
||||
} else {
|
||||
$valuelist .= "$key = $funcs[$key]($val), ";
|
||||
}
|
||||
}
|
||||
$valuelist = ereg_replace(', $', '', $valuelist);
|
||||
$query = "UPDATE $table SET $valuelist WHERE $primary_key";
|
||||
} else {
|
||||
$fieldlist = '';
|
||||
$valuelist = '';
|
||||
while(list($key, $val) = each($fields)) {
|
||||
$fieldlist .= "$key, ";
|
||||
switch (strtolower($val)) {
|
||||
case 'null':
|
||||
break;
|
||||
case '$set$':
|
||||
$f = "field_$key";
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$val = "'".($$f?implode(',',$$f):'')."'";
|
||||
} else {
|
||||
$val = "'".addslashes($$f?implode(',',$$f):'')."'";
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if(get_magic_quotes_gpc()) {
|
||||
$val = "'".$val."'";
|
||||
} else {
|
||||
$val = "'".addslashes($val)."'";
|
||||
}
|
||||
break;
|
||||
}
|
||||
if(empty($funcs[$key])) {
|
||||
$valuelist .= "$val, ";
|
||||
} else {
|
||||
$valuelist .= "$funcs[$key]($val), ";
|
||||
}
|
||||
}
|
||||
$fieldlist = ereg_replace(', $', '', $fieldlist);
|
||||
$valuelist = ereg_replace(', $', '', $valuelist);
|
||||
$query = "INSERT INTO $table ($fieldlist) VALUES ($valuelist)";
|
||||
}
|
||||
|
||||
$sql_query = $query;
|
||||
$result = mysql_db_query($db, $query);
|
||||
|
||||
if(!$result) {
|
||||
$error = mysql_error();
|
||||
include("header.inc.php3");
|
||||
mysql_die($error);
|
||||
} else {
|
||||
if(file_exists("./$goto")) {
|
||||
include("header.inc.php3");
|
||||
$message = $strModifications;
|
||||
include(preg_replace('/\.\.*/', '.', $goto));
|
||||
} else {
|
||||
Header("Location: $goto");
|
||||
}
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
118
tbl_select.php3
Executable file
118
tbl_select.php3
Executable file
@ -0,0 +1,118 @@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
require("grab_globals.inc.php3");
|
||||
|
||||
|
||||
if(!isset($param) || $param[0] == "")
|
||||
{
|
||||
require("header.inc.php3");
|
||||
$result = mysql_list_fields($db, $table);
|
||||
if (!$result)
|
||||
{
|
||||
mysql_die();
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<form method="POST" ACTION="tbl_select.php3">
|
||||
<input type="hidden" name="server" value="<?php echo $server;?>">
|
||||
<input type="hidden" name="lang" value="<?php echo $lang;?>">
|
||||
<input type="hidden" name="db" value="<?php echo $db;?>">
|
||||
<input type="hidden" name="table" value="<?php echo $table;?>">
|
||||
<?php echo $strSelectFields; ?><br>
|
||||
<select multiple NAME="param[]" size="10">
|
||||
|
||||
<?php
|
||||
for ($i=0 ; $i<mysql_num_fields($result); $i++)
|
||||
{
|
||||
$field = mysql_field_name($result,$i);
|
||||
if($i >= 0)
|
||||
echo "<option value=$field selected>$field</option>\n";
|
||||
else
|
||||
echo "<option value=$field>$field</option>\n";
|
||||
}
|
||||
?>
|
||||
|
||||
</select><br>
|
||||
<div align="left">
|
||||
<ul><li><?php echo $strDisplay; ?> <input type="text" size=4 name = "sessionMaxRows" value=<?php echo $cfgMaxRows; ?>>
|
||||
<?php echo $strLimitNumRows; ?>
|
||||
<li><?php echo $strAddSearchConditions; ?><br>
|
||||
<input type="text" name="where"> <?php print show_docu("manual_Reference.html#Functions");?><br>
|
||||
|
||||
<br>
|
||||
<li><?php echo $strDoAQuery; ?><br>
|
||||
<table border="<?php echo $cfgBorder;?>">
|
||||
<tr>
|
||||
<th><?php echo $strField; ?></th>
|
||||
<th><?php echo $strType; ?></th>
|
||||
<th><?php echo $strValue; ?></th>
|
||||
</tr>
|
||||
<?php
|
||||
$result = mysql_list_fields($db, $table);
|
||||
for ($i=0;$i<mysql_num_fields($result);$i++)
|
||||
{
|
||||
$field = mysql_field_name($result,$i);;
|
||||
$type = mysql_field_type($result,$i);
|
||||
$len = mysql_field_len($result,$i);
|
||||
$bgcolor = $cfgBgcolorOne;
|
||||
$i % 2 ? 0: $bgcolor = $cfgBgcolorTwo;
|
||||
|
||||
echo "<tr bgcolor=".$bgcolor.">";
|
||||
echo "<td>$field</td>";
|
||||
echo "<td>$type</td>";
|
||||
echo "<td><input type=text name=fields[] style=\"width: ".$cfgMaxInputsize."\" maxlength=".$len."></td>\n";
|
||||
echo "<input type=hidden name=names[] value=\"$field\">\n";
|
||||
echo "<input type=hidden name=types[] value=\"$type\">\n";
|
||||
echo "</tr>";
|
||||
}
|
||||
echo "</table><br>";
|
||||
?>
|
||||
|
||||
<input name="SUBMIT" value="<?php echo $strGo; ?>" type="SUBMIT">
|
||||
</form></ul>
|
||||
|
||||
<?php
|
||||
}
|
||||
require ("footer.inc.php3");
|
||||
}
|
||||
else
|
||||
{
|
||||
$sql_query="SELECT $param[0]";
|
||||
$i=0;
|
||||
$c=count($param);
|
||||
while($i < $c)
|
||||
{
|
||||
if($i>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<count($fields);$i++)
|
||||
{
|
||||
if (!empty($fields) && $fields[$i] != "") {
|
||||
$quot="";
|
||||
if ($types[$i]=="string"||$types[$i]=="blob") {
|
||||
$quot="\"";
|
||||
$cmp="like";
|
||||
} elseif($types[$i]=="date"||$types[$i]=="time") {
|
||||
$quot="\"";
|
||||
$cmp="=";
|
||||
} else {
|
||||
$cmp="=";
|
||||
$quot="";
|
||||
if (substr($fields[$i],0,1)=="<" || substr($fields[$i],0,1)==">") $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");
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user