diff --git a/ChangeLog b/ChangeLog index 4580beedaf..a8f2eacfb1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,7 @@ phpMyAdmin - ChangeLog + Patch #3497179 Contest-5: Add user: Allow create DB w/same name + grant u_% + Patch #3498201 Contest-6: Export all privileges + Patch #3502814 for rfe #3187077 Change password buttons should match ++ rfe #3488640 Expand table-group in non-light navigation frame if only one 3.5.0.0 (not yet released) + rfe #2021981 [interface] Add support for mass prefix change. diff --git a/Documentation.html b/Documentation.html index 9342d48ed3..976944b72c 100644 --- a/Documentation.html +++ b/Documentation.html @@ -1,14 +1,12 @@ - + - +
- - - + + +session support
(see
FAQ 1.31)
, the Standard PHP Library (SPL) extension and JSON support.
zip extension.mcrypt extension
+ is strongly suggested for most users and is required for
64–bit machines. Not using mcrypt will cause phpMyAdmin to
load pages significantly slower.
libxml extension.1) phpMyAdmin can compress (Zip, GZip -RFC 1952- or Bzip2 formats) dumps and CSV exports if you use - PHP with Zlib support (--with-zlib) and/or Bzip2 support - (--with-bz2). Proper support may also need changes in - php.ini.
+ PHP with Zlib support (--with-zlib) and/or Bzip2 support
+ (--with-bz2). Proper support may also need changes in
+ php.ini.
\r").
phpMyAdmin-x.x.x-all-languages.tar.gz.
tar -xzvf phpMyAdmin_x.x.x-all-languages.tar.gz in your webserver's
document root. If you don't have direct access to your document root,
put the files in a directory on your local machine, and, after step 4,
transfer the directory on your web server using, for example, ftp.config.inc.php, but now a wizard-style setup script is
provided for those who prefer a graphical installation. Creating a
- config.inc.php is still a quick way to get started and needed for some advanced features.
+ config.inc.php is still a quick way to get started and needed for some advanced features.
config.inc.php (you can copy
+ config.sample.inc.php to get minimal configuration
file) in the main (top-level) phpMyAdmin directory (the one
- that contains index.php). phpMyAdmin first loads
- libraries/config.default.php and then overrides those
- values with anything found in config.inc.php. If the
+ that contains index.php). phpMyAdmin first loads
+ libraries/config.default.php and then overrides those
+ values with anything found in config.inc.php. If the
default value is okay for a particular setting, there is no
- need to include it in config.inc.php. You'll need a
+ need to include it in config.inc.php. You'll need a
few directives to get going, a simple configuration may look
like this:
@@ -251,9 +249,9 @@ $cfg['Servers'][$i]['auth_type'] = 'config';
For a full explanation of possible configuration values, see the
Configuration Section of this document.config.inc.php, you can use the
Setup Script. First you must
- manually create a folder config in the phpMyAdmin
+ manually create a folder config in the phpMyAdmin
directory. This is a security measure. On a Linux/Unix system you
can use the following commands:
@@ -270,19 +268,19 @@ chmod o+w config/config.inc.php # give it world writable permissions
web server has read and write access to it. FAQ
1.26 can help with this.
- Next, open setup/
- in your browser. Note that changes are not saved to
- disk until explicitly choose Save from the
- Configuration area of the screen. Normally the script saves
- the new config.inc.php to the config/ directory, but if
+ Next, open setup/
+ in your browser. Note that changes are not saved to
+ disk until explicitly choose Save from the
+ Configuration area of the screen. Normally the script saves
+ the new config.inc.php to the config/ directory, but if
the webserver does not have the proper permissions you may see the
- error "Cannot load or save configuration." Ensure that the
- config/ directory exists and has the proper permissions -
- or use the Download link to save the config file locally
+ error "Cannot load or save configuration." Ensure that the
+ config/ directory exists and has the proper permissions -
+ or use the Download link to save the config file locally
and upload (via FTP or some similar means) to the proper location.
- Once the file has been saved, it must be moved out of the
- config/ directory and the permissions must be reset, again
+ Once the file has been saved, it must be moved out of the
+ config/ directory and the permissions must be reset, again
as a security measure:
mv config/config.inc.php . # move file to current directory
@@ -293,13 +291,13 @@ rm -rf config # remove not needed directory
the file with your favorite editor, if you prefer to set some
advanced options which the setup script does not provide.auth_type "config", it is suggested that you
protect the phpMyAdmin installation directory because using
config does not require a user to
enter a password to access the phpMyAdmin installation. Use of an alternate
authentication method is recommended, for example with
- HTTP–AUTH in a .htaccess file or switch to using
- auth_type cookie or http. See the
+ HTTP–AUTH in a .htaccess file or switch to using
+ auth_type cookie or http. See the
multi–user sub–section of this
FAQ for additional
information, especially
@@ -309,9 +307,9 @@ rm -rf config # remove not needed directory
and your databases, or a login dialog if using
HTTP or cookie
authentication mode../libraries and
+ ./setup/lib subfolders in your webserver configuration. For
+ Apache you can use supplied .htaccess file in that folder, for other
webservers, you should configure this yourself. Such configuration
prevents from possible path exposure and cross side scripting
vulnerabilities that might happen to be found in that code.Please look at your ./examples/ directory, where you should find a - file called create_tables.sql. (If you are using a Windows server, pay +
Please look at your ./examples/ directory, where you should find a
+ file called create_tables.sql. (If you are using a Windows server, pay
special attention to
FAQ 1.23).
If you already had this infrastructure and upgraded to MySQL 4.1.2 - or newer, please use ./examples/upgrade_tables_mysql_4_1_2+.sql - and then create new tables by importing ./examples/create_tables.sql.
+ or newer, please use ./examples/upgrade_tables_mysql_4_1_2+.sql + and then create new tables by importing ./examples/create_tables.sql.You can use your phpMyAdmin to create the tables for you. Please be aware that you may need special (administrator) privileges to create the database and tables, and that the script may need some tuning, depending on the database name.
-After having imported the ./examples/create_tables.sql file, you - should specify the table names in your ./config.inc.php file. The +
After having imported the ./examples/create_tables.sql file, you
+ should specify the table names in your ./config.inc.php file. The
directives used for that can be found in the Configuration
section. You will also need to have a controluser with the proper rights
to those tables (see section Using
@@ -358,32 +356,32 @@ rm -rf config # remove not needed directory
Simply copy ./config.inc.php from your previous installation into the newly
+ Simply copy ./config.inc.php from your previous installation into the newly
unpacked one. Configuration files from old versions may
require some tweaking as some options have been changed or removed; in
- particular, the definition of $cfg['AttributeTypes'] has changed
+ particular, the definition of You should not copy libraries/config.default.php
- over config.inc.php because the default configuration file
+ You should not copy If you have upgraded your MySQL server from a version previous to 4.1.2 to
version 5.x or newer and if you use the phpMyAdmin configuration storage,
you should run the SQL script
- found in examples/upgrade_tables_mysql_4_1_2+.sql.Upgrading from an older version
-$cfg['AttributeTypes'] has changed
so you better remove it from your file and just use the default one.
- For compatibility with PHP 6, remove a set_magic_quotes_runtime(0);
+ For compatibility with PHP 6, remove a set_magic_quotes_runtime(0);
statement that you might find near the end of your configuration file.libraries/config.default.php
+ over config.inc.php because the default configuration file
is version-specific.examples/upgrade_tables_mysql_4_1_2+.sql.
--skip-show-database.SELECT privilege on the `mysql`.`user` (all columns except
+ `Password`), `mysql`.`db` (all columns), `mysql`.`host`
+ (all columns) and `mysql`.`tables_priv` (all columns except
+ `Grantor` and `Timestamp`) tables.config.inc.php
file under the
-
- $cfg['Servers'][$i]['controluser'] and
-
- $cfg['Servers'][$i]['controlpass'] settings.
+ $cfg['Servers'][$i]['controluser'] and
+
+ $cfg['Servers'][$i]['controlpass'] settings.pma as the
+ controluser and pmapass as the controlpass, but this is
+ only an example: use something else in your file! Input these
statements from the phpMyAdmin SQL
Query window or mysql command–line client.localhost with the webserver's host
if it's not the same as the MySQL server's one.
@@ -444,12 +442,12 @@ GRANT SELECT, INSERT, UPDATE, DELETE ON <pma_db>.* TO 'pma'@'localhost';
configuration storage be set up).
GRANT ALL PRIVILEGES ON user_base.* TO 'real_user'@localhost IDENTIFIED BY 'real_password';
@@ -478,7 +476,7 @@ GRANT ALL PRIVILEGES ON user_base.* TO 'real_user'@localhost IDENTIFIED BY 'real
1.35.mcrypt extension will speed up access considerably, but is
not required.config.inc.php:
$cfg['Servers'][$i]['auth_swekey_config'] = '/etc/swekey.conf';
-You then have to create the swekey.conf file that will associate
+You then have to create the swekey.conf file that will associate
each user with their Swekey Id. It is important to place this file outside
-of your web server's document root (in the example, it is located in /etc). A self documented sample file is provided
-in the examples directory. Feel free to use it with your own
+of your web server's document root (in the example, it is located in /etc). A self documented sample file is provided
+in the examples directory. Feel free to use it with your own
users' information.
If you want to purchase a Swekey please visit
http://phpmyadmin.net/auth_key
@@ -570,26 +568,26 @@ since this link provides funding for phpMyAdmin.
Warning for Mac
users: PHP does not seem to like
Mac end of lines character
- ("\r"). So ensure you choose the option that allows to use
- the *nix end of line character ("\n") in your text editor
+ ("\r"). So ensure you choose the option that allows to use
+ the *nix end of line character ("\n") in your text editor
before saving a script you have modified.
Configuration note:
- Almost all configurable data is placed in config.inc.php. If this file
+ Almost all configurable data is placed in config.inc.php. If this file
does not exist, please refer to the Quick install
section to create one. This file only needs to contain the parameters you want to
change from their corresponding default value in
- libraries/config.default.php.
libraries/config.default.php.
The parameters which relate to design (like colors) are placed in
- themes/themename/layout.inc.php. You might also want to create
- config.footer.inc.php and config.header.inc.php files to add
+ themes/themename/layout.inc.php. You might also want to create
+ config.footer.inc.php and config.header.inc.php files to add
your site specific code to be included on start and end of each page.
http://www.your_web.net/path_to_your_phpMyAdmin_directory/.
Note also that the URL on
some web servers are case–sensitive.
Don’t forget the trailing slash at the end.TRUE to stop this message from appearing.
TRUE to stop this message
from appearing.TRUE to stop this message
from appearing.true allows a page located on a different
domain to call phpMyAdmin inside a frame, and is a potential security
hole allowing cross-frame scripting attacks../libraries/config.default.php, there is only one section for
server definition, however you can put as many as you need in
- ./config.inc.php, copy that block or needed parts (you don't
+ ./config.inc.php, copy that block or needed parts (you don't
have to define all settings, just those you need to change).mysql command–line client, issue the status command.
Among the resulting information displayed will be the socket used.'socket' and 'tcp'. It defaults to 'tcp' as that
is nearly guaranteed to be available on all MySQL servers, while
sockets are not supported on some platforms.mysql :
The classic MySQL extension.mysqli :
The improved MySQL extension. This extension became available
with PHP 5.0.0 and is the recommended way to connect to a server
running MySQL 4.1.x or newer.--skip-show-database, to enable a multi-user installation
(HTTP or cookie
authentication mode).SELECT privilege on the
+ mysql.user (all columns except "Password"),
+ mysql.db (all columns) and mysql.tables_priv (all columns
+ except "Grantor" and "Timestamp") tables.
This account is used to check what databases the user will see at
login.['HTTP'|'http'|'cookie'|'config'|'signon']
$auth_type = 'config')
is the plain old way: username and password are stored in
- config.inc.php.$auth_type = 'cookie') as introduced in
2.2.3 allows you to log in as any valid MySQL user with the
help of cookies. Username and password are stored in
cookies during the session and password is deleted when it
ends. This can also allow you to log in in arbitrary server if
- $cfg['AllowArbitraryServer'] enabled.
+ $cfg['AllowArbitraryServer'] enabled.
$auth_type = 'HTTP') as introduced in 1.3.0
allows you to log in as any valid MySQL user via HTTP-Auth.$auth_type = 'signon')
as introduced in 2.10.0 allows you to log in from prepared PHP
session data or using supplied PHP script. This is useful for implementing single signon
from another application.
@@ -830,8 +828,8 @@ since this link provides funding for phpMyAdmin.
will be shown to the user. Since phpMyAdmin 2.2.1, this/these
database(s) name(s) may contain MySQL wildcards characters
("_" and "%"): if you want to use literal instances
- of these characters, escape them (I.E. use 'my\_db' and not
- 'my_db').'my\_db' and not
+ 'my_db').$cfg['Servers'][$i]['only_db'] = array('db1', 'db2');
$cfg['Servers'][$i]['only_db'] = array('db3', 'db4', '*');
instead to tell phpMyAdmin that it should display db3 and db4 on top, and the rest in alphabetic
order.$cfg['Servers'][$i]['pmadb']. For a multi-user installation,
set this parameter to the name of your central database containing
the phpMyAdmin configuration storage.
@@ -902,7 +900,7 @@ since this link provides funding for phpMyAdmin.
To allow the usage of this functionality:
$cfg['Servers'][$i]['bookmarktable']
$cfg['Servers'][$i]['relation']
master_db
+ must be the same as foreign_db. Those columns have been put in
future development of the cross-db relations.
@@ -963,7 +961,7 @@ since this link provides funding for phpMyAdmin.
table. To allow the usage of this functionality:
$cfg['Servers'][$i]['table_info'] (e.g.
'pma_table_info')$cfg['Servers'][$i]['table_coords'] and
+ $cfg['Servers'][$i]['pdf_pages']$cfg['Servers'][$i]['column_info'] (e.g.
'pma_column_info')$cfg['Servers'][$i]['column_comments'] to
+ $cfg['Servers'][$i]['column_info']
$cfg['Servers'][$i]['history']
(e.g. 'pma_history')
$cfg['Servers'][$i]['recent'] (e.g. 'pma_recent')$cfg['Servers'][$i]['table_uiprefs'] (e.g. 'pma_table_uiprefs')$cfg['Servers'][$i]['tracking'] (e.g. 'pma_tracking')$cfg['Servers'][$i]['userconfig']$cfg['Servers'][$i]['designer_coords'] (e.g. 'pma_designer_coords')
TRUE (default) phpMyAdmin will check if you have the
latest table structure available. If not, it will emit a warning to the
superuser.false for this parameter prevents unintended access
to a MySQL server with was left with an empty password for root or
on which an anonymous (blank) user is defined.
'deny,allow' then the system applies
all deny rules followed by allow rules. Access is allowed by default. Any
client which does not match a Deny command or does match an Allow command
will be allowed access to the server. 'allow,deny' then the system
applies all allow rules followed by deny rules. Access is denied by
default. Any client which does not match an Allow directive or does
match a Deny directive will be denied access to the server.'%' as
+ a wildcard in the username field.@@ -1315,28 +1313,28 @@ CREATE DATABASE,ALTER DATABASE,DROP DATABASEHaving an empty rule list is equivalent to either using - 'allow % from all' if your rule order is set to - 'deny,allow' or 'deny % from all' if your rule order - is set to 'allow,deny' or 'explicit'.
'allow % from all' if your rule order is set to
+ 'deny,allow' or 'deny % from all' if your rule order
+ is set to 'allow,deny' or 'explicit'.xxx.xxx.xxx.xxx (an exact IP address)xxx.xxx.xxx.[yyy-zzz] (an IP address range)xxx.xxx.xxx.xxx/nn (CIDR, Classless Inter-Domain Routing type IP addresses)xxx.xxx.xxx.xx[yyy-zzz] (partial
IP address range)INFORMATION_SCHEMA to retrieve information (use SHOW commands instead), because of speed issues when many databases are present. Currently used in some parts of the code, more to come.
SHOW
+ DATABASES command used to fetch the name of available databases will
probably be too slow, so it can be replaced by faster commands (see
- libraries/config.default.php for examples).
+ libraries/config.default.php for examples).
$cfg['ServerDefault'] 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.$cfg['ServerDefault']
MUST be set to that server.$cfg['blowfish_secret'].
TRUE.
TRUE.
main.php.
main)
+ or in a new one (new). Note: use new if you are
+ linking to phpmyadmin.net.30. To disable the filter completely some high number
can he used (e.g. 9999)$cfg['Servers'][$i]['verbose'].
disable_functions = phpinfo()@@ -1672,10 +1670,10 @@ CREATE DATABASE,ALTER DATABASE,DROP DATABASE
DESC|ASC|SMART]ASC) order,
+ in descending (DESC) order or in a "smart"
+ (SMART) order - I.E. descending order for columns of type TIME,
DATE, DATETIME and TIMESTAMP, ascending order else- by default.BLOB or BINARY columns are protected
from editing when browsing a table's content. Valid values are:
- FALSE to allow editing of all columns;'blob' to allow editing of all columns except BLOBS;'all' to disallow editing of all BINARY or
+ BLOB columns.TRUE, use less graphically intense tabs on the top of the
mainframe.TRUE, will display icons instead of text for db and table
properties links (like 'Browse', 'Select', 'Insert', ...).'both' if you want icons AND text.FALSE, will only show text.$cfg['Export']['charset'] and $cfg['Import']['charset'].
X-Forwarded-For) header coming from the proxy 1.2.3.4:
$cfg['TrustedProxies'] =
array('1.2.3.4' => 'HTTP_X_FORWARDED_FOR');
@@ -1892,7 +1890,7 @@ $cfg['TrustedProxies'] =
it's not world writable. However, phpMyAdmin could be installed on
a NTFS filesystem mounted on a non-Windows server, in which case the
permissions seems wrong but in fact cannot be detected. In this case
- a sysadmin would set this parameter to FALSE. Default is TRUE.
+ a sysadmin would set this parameter to FALSE. Default is TRUE.
themes/themename/layout.inc.php.
themes/themename/layout.inc.php.
themes/themename/layout.inc.php.
TRUE activates the navi pointer (when LeftFrameLight
+ is FALSE).themes/themename/layout.inc.php.
themes/themename/layout.inc.php.
themes/themename/layout.inc.php.
themes/themename/layout.inc.php.
themes/themename/layout.inc.php.
arial, sans-serif.themes/themename/layout.inc.php.
monospace. This one is used in textarea.themes/themename/layout.inc.php.
TRUE you can enable the
display of column comments in Browse or Property display. In browse
mode, the comments are shown inside the header. In property mode,
comments are displayed using a CSS-formatted dashed-line below the
@@ -2054,7 +2052,7 @@ $cfg['TrustedProxies'] =
$cfg_SQLValidator.
open_basedir for uploaded
files, see FAQ
1.11.
open_basedir restriction, you need to create a
temporary directory in some directory accessible by the web
server. However for security reasons, this directory should be outside
the tree published by webserver. If you cannot avoid having this
directory published by webserver, place at least an empty
- index.html file there, so that directory listing is not
+ index.html file there, so that directory listing is not
possible.
quick to display the minimum number of options to configurecustom to display every available option to configurecustom-no-form same as custom but does not display the option of using quick exportSQL link
or icon is always displayed on the left panel. If JavaScript is enabled in
your browser, a click on this opens a distinct query window, which is
a direct interface to enter SQL queries. Otherwise, the right panel
changes to display a query box.$cfg['QueryWindowWidth'] and $cfg['QueryWindowHeight']
- both integers for the size in pixels. Note that normally, those
- parameters will be modified in layout.inc.php for the
+ parameters will be modified in layout.inc.php for the
theme you are using.$cfg['EditInWindow'] is set to true, a click on [Edit]
from the results page (in the "Showing Rows" section)
opens the query window and puts the current query
inside it. If set to false, clicking on the link puts the SQL
@@ -2221,7 +2219,7 @@ setfacl -d -m "g:www-data:rwx" tmp
use that feature. It currently is only tested with Internet Explorer 6
and Mozilla 1.x.
$cfg['QueryHistoryDB'] is set to TRUE, all your Queries are logged
to a table, which has to be created by you (see $cfg['Servers'][$i]['history']). If set to FALSE,
all your queries will be appended to the form, but only as long as
@@ -2239,11 +2237,11 @@ setfacl -d -m "g:www-data:rwx" tmp
uncheck the button whenever you definitely want the query window to
get updated even though you have made alterations.
$cfg['QueryHistoryDB'] is set to TRUE you can specify the amount of
+ saved history items using $cfg['QueryHistoryMax'].
$cfg['QueryWindowDefTab'] you can specify the
default tab to be used when opening the query window. It can be set to
either 'sql', 'files', 'history' or 'full'.'closed', the visual sliders are initially in a
+ closed state. A value of 'open' does the reverse. To completely
+ disable all visual sliders, use 'disabled'.$cfg array)
that users can't set through user preferences. For possible values, refer
- to libraries/config/user_preferences.forms.php.libraries/config/user_preferences.forms.php.cfg['ThemePath']).html|none]'none'.
em|px|pt|ex]
$cfg['SQP']['fmtInd'] you can change the amount of this indent.
+ $cfg['SQP']['fmtIndUnit'] which
specifies the units of the indent amount that you specified. This is
used via stylesheets."#...\n""-- ...\n""/*...*/""("")"",""." ";""@foo""'`anonymous
and any password, so we use those by default. Instead, if
you have an account with them, you can put your login details
here, and it will be used in place of the anonymous login.To enable transformations, you have to setup the column_info table +
To enable transformations, you have to setup the column_info table
and the proper directives. Please see the Configuration
section on how to do so.
For a general overview of all available transformations and their options, you can consult your - <www.your-host.com>/<your-install-dir>/transformation_overview.php + <www.your-host.com>/<your-install-dir>/transformation_overview.php installation.
For a tutorial on how to effectively use transformations, see our @@ -2469,7 +2467,7 @@ setfacl -d -m "g:www-data:rwx" tmp
Go to your tbl_structure.php page (i.e. reached through +
Go to your tbl_structure.php page (i.e. reached through clicking on the 'Structure' link for a table). There click on "Change" (or change icon) and there you will see three new fields at @@ -2530,14 +2528,14 @@ setfacl -d -m "g:www-data:rwx" tmp for, but pay attention to option usage as well as what the transformation does to your column.
-There is a basic file called 'global.inc.php'. This function can be included by +
There is a basic file called 'global.inc.php'. This function can be included by any other transform function and provides some basic functions.
There are 5 possible file names:
[mimetype]_[subtype]__[transform].inc.phpPMA_transform_[mimetype]_[subtype]__[transform]()'.text_html__formatted.inc.phpPMA_transform_text_html__formatted()
[mimetype]__[transform].inc.phpPMA_transform_[mimetype]__[transform]()'.text__formatted.inc.phpPMA_transform_text__formatted()
[mimetype]_[subtype].inc.phptext_plain.inc.php[mimetype].inc.phptext.inc.phpglobal__[transform].inc.phpPMA_transform_global__[transform]()'.global__formattedPMA_transform_global__formatted()
So generally use '_' to split up mimetype and subtype, and '__' to provide a @@ -2623,17 +2621,17 @@ setfacl -d -m "g:www-data:rwx" tmp without a transform function.
To create a new transform function please see
- libraries/transformations/template_generator.sh.
+ libraries/transformations/template_generator.sh.
To create a new, empty mimetype please see
- libraries/transformations/template_generator_mimetype.sh.
libraries/transformations/template_generator_mimetype.sh.
A transform function always gets passed three variables:
- Try to set the $cfg['OBGzip']
- directive to FALSE in your config.inc.php file and the
- zlib.output_compression directive to Off in your php
+ directive to FALSE in your config.inc.php file and the
+ zlib.output_compression directive to Off in your php
configuration file.
You just forgot to read the install.txt file from the PHP distribution. +
You just forgot to read the install.txt file from the PHP distribution. Have a look at the last message in this bug report from the official PHP bug database.
@@ -2728,36 +2726,36 @@ setfacl -d -m "g:www-data:rwx" tmp 1.6 I can't use phpMyAdmin on PWS: nothing is displayed!This seems to be a PWS bug. Filippo Simoncini found a workaround (at this - time there is no better fix): remove or comment the DOCTYPE - declarations (2 lines) from the scripts libraries/header.inc.php, - libraries/header_printview.inc.php, index.php, - navigation.php and libraries/common.lib.php.
+ time there is no better fix): remove or comment theDOCTYPE
+ declarations (2 lines) from the scripts libraries/header.inc.php,
+ libraries/header_printview.inc.php, index.php,
+ navigation.php and libraries/common.lib.php.
These features are based on the gzencode() and bzcompress() +
These features are based on the gzencode() and bzcompress()
PHP functions to be more independent of the platform (Unix/Windows, Safe Mode
or not, and so on). So, you must have Zlib/Bzip2
- support (--with-zlib and --with-bz2).
--with-zlib and --with-bz2). Your uploaded file is saved by PHP in the "upload dir", as
- defined in php.ini by the variable upload_tmp_dir (usually
- the system default is /tmp).
+ defined in php.ini by the variable upload_tmp_dir (usually
+ the system default is /tmp).
We recommend the following setup for Apache servers running in safe mode,
to enable uploads of files while being reasonably secure:
mkdir /tmp/phpchown apache.apache /tmp/phpchmod 600 /tmp/phpupload_tmp_dir = /tmp/php in php.iniAs suggested by "Rob M" in the phpWizard forum, add this line to - your httpd.conf:
+ your httpd.conf:SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown@@ -2800,11 +2798,11 @@ setfacl -d -m "g:www-data:rwx" tmp 1.14 (withdrawn).
In previous MySQL versions, the User and Passwordcolumns - were named user and password. Please modify your column +
In previous MySQL versions, the User and Passwordcolumns
+ were named user and password. Please modify your column
names to align with current standards.
The first things to check (or ask your host provider to check) are the
- values of upload_max_filesize, memory_limit and
- post_max_size in the php.ini configuration file.
+ values of upload_max_filesize, memory_limit and
+ post_max_size in the php.ini configuration file.
All of these three settings limit the maximum size of data that can be
submitted and handled by PHP. One user also said that
- post_max_size
- and memory_limit need to be larger than upload_max_filesize.
+ post_max_size
+ and memory_limit need to be larger than upload_max_filesize.
There exist several workarounds if your upload is too big or your
hosting provider is unwilling to change the settings:
source filename.sql.
To connect to a MySQL server, PHP needs a set of MySQL functions called
"MySQL extension". This extension may be part of the PHP
distribution (compiled-in), otherwise it needs to be loaded dynamically. Its
- name is probably mysql.so or php_mysql.dll. phpMyAdmin tried
+ name is probably mysql.so or php_mysql.dll. phpMyAdmin tried
to load the extension but failed.
Usually, the problem is solved by installing a software package called
@@ -2913,23 +2911,23 @@ setfacl -d -m "g:www-data:rwx" tmp
CGI version of PHP under Unix,
and I cannot log in using cookie auth.
-
In php.ini, set mysql.max_links higher than 1.
+ In php.ini, set mysql.max_links higher than 1.
This is most likely because in php.ini, your file_uploads +
This is most likely because in php.ini, your file_uploads
parameter is not set to "on".
This happens because the MySQL directive lower_case_table_names
- defaults to 1 (ON) in the Win32 version of MySQL. You can change
- this behavior by simply changing the directive to 0 (OFF):
- Just edit your my.ini file that should be located in your Windows
+
This happens because the MySQL directive lower_case_table_names
+ defaults to 1 (ON) in the Win32 version of MySQL. You can change
+ this behavior by simply changing the directive to 0 (OFF):
+ Just edit your my.ini file that should be located in your Windows
directory and add the following line to the group [mysqld]:
set-variable = lower_case_table_names=0@@ -2976,7 +2974,7 @@ setfacl -d -m "g:www-data:rwx" tmp
This is a PHP bug that occur when GZIP output buffering is enabled. If you turn off it (by $cfg['OBGzip'] = false - in config.inc.php), it should work. This bug will be fixed in + in config.inc.php), it should work. This bug will be fixed in PHP 5.0.0.
This can happen due to a MySQL bug when having database / table names with
- upper case characters although lower_case_table_names is set to 1.
+ upper case characters although lower_case_table_names is set to 1.
To fix this, turn off this directive, convert all database and table names
to lower case and turn it on again. Alternatively, there's a bug-fix
available starting with MySQL 3.23.56 / 4.0.11-gamma.
AddType application/x-httpd-php .php
In the case we saw, one set of directives was in
- /etc/httpd/conf/httpd.conf, while
- the other set was in /etc/httpd/conf/addon-modules/php.conf.
- The recommended way is with AddType, so just comment out
+ /etc/httpd/conf/httpd.conf, while
+ the other set was in /etc/httpd/conf/addon-modules/php.conf.
+ The recommended way is with AddType, so just comment out
the first set of lines and restart Apache:
@@ -3040,14 +3038,14 @@ SetInputFilter PHPYes. This procedure was tested with phpMyAdmin 2.6.1, PHP 4.3.9 in ISAPI mode under IIS 5.1.
-
- In your php.ini file, set cgi.rfc2616_headers = 0
-- In Web Site Properties -> File/Directory Security -> Anonymous - Access dialog box, check the Anonymous access checkbox and - uncheck any other checkboxes (i.e. uncheck Basic authentication, - Integrated Windows authentication, and Digest if it's - enabled.) Click OK.
-- In Custom Errors, select the range of 401;1 through - 401;5 and click the Set to Default button.
+
- In your
+php.inifile, setcgi.rfc2616_headers = 0- In
+Web Site Properties -> File/Directory Security -> Anonymous + Accessdialog box, check theAnonymous accesscheckbox and + uncheck any other checkboxes (i.e. uncheckBasic authentication, +Integrated Windows authentication, andDigestif it's + enabled.) ClickOK.- In
Custom Errors, select the range of401;1through +401;5and click theSet to Defaultbutton.@@ -3057,8 +3055,8 @@ SetInputFilter PHP 1.34 Can I access directly to database or table pages?
Yes. Out of the box, you can use URLs like -http://server/phpMyAdmin/index.php?server=X&db=database&table=table&target=script. For server you use the server number which refers to -the order of the server paragraph in config.inc.php. +http://server/phpMyAdmin/index.php?server=X&db=database&table=table&target=script. For
serveryou use the server number which refers to +the order of the server paragraph inconfig.inc.php. Table and script parts are optional. If you want http://server/phpMyAdmin/database[/table][/script] URLs, you need to do some configuration. Following lines apply only for config.inc.php.Options FollowSymLinksandAllowOverride FileInfoenabled for directory where phpMyAdmin is installed and you need mod_rewrite to be enabled. Then you just need to create following - .htaccess file in root folder of phpMyAdmin installation + .htaccess file in root folder of phpMyAdmin installation (don't forget to change directory name inside of it):@@ -3144,7 +3142,7 @@ RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]You can also disable the warning using the - SuhosinDisableWarning directive. +
SuhosinDisableWarningdirective.@@ -3152,7 +3150,7 @@ RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L] but then my connection is redirected back to http. What can cause this behavior?
-Be sure that you have enabled SSLOptions and StdEnvVars +
Be sure that you have enabled
SSLOptionsandStdEnvVarsin your Apache configuration. See http://httpd.apache.org/docs/2.0/mod/mod_ssl.html#ssloptions.@@ -3187,12 +3185,12 @@ ProxyPassReverseCookiePath /%7Euser/phpmyadmin /mirror/foo privileges, I get an error about an unknown column.
The MySQL server's privilege tables are not up to date, you need to run -the mysql_upgrade command on the server.
+themysql_upgradecommand on the server.1.42 How can I prevent robots from accessing phpMyAdmin?
-You can add various rules to .htaccess to filter access +
You can add various rules to .htaccess to filter access based on user agent field. This is quite easy to circumvent, but could prevent at least some robots accessing your installation.
@@ -3225,12 +3223,12 @@ RewriteRule .* - [F] 2.1 The error message "Warning: Cannot add header information - headers already sent by ..." is displayed, what's the problem? -Edit your config.inc.php file and ensure there is nothing +
Edit your config.inc.php file and ensure there is nothing (I.E. no blank lines, no spaces, no characters...) neither before the - <?php tag at the beginning, neither after the ?> +
@@ -3249,8 +3247,8 @@ RewriteRule .* - [F]<?phptag at the beginning, neither after the?>tag at the end. We also got a report from a user under IIS, that used - a zipped distribution kit: the file libraries/Config.class.php + a zipped distribution kit: the filelibraries/Config.class.phpcontained an end-of-line character (hex 0A) at the end; removing this character cleared his errors.For RedHat users, Harald Legner suggests this on the mailing list:
-On my RedHat-Box the socket of MySQL is /var/lib/mysql/mysql.sock. - In your php.ini you will find a line
+On my RedHat-Box the socket of MySQL is /var/lib/mysql/mysql.sock. + In your php.ini you will find a line
mysql.default_socket = /tmp/mysql.sock@@ -3264,13 +3262,13 @@ RewriteRule .* - [F]-
- First, you need to determine what socket is being used by MySQL.
+ (/tmp/mysql.sock, for example).
To do this, telnet to your server and go to the MySQL bin directory. In - this directory there should be a file named mysqladmin. Type - ./mysqladmin variables, and this should give you a bunch of + this directory there should be a file named mysqladmin. Type +./mysqladmin variables, and this should give you a bunch of info about your MySQL server, including the socket - (/tmp/mysql.sock, for example).- Then, you need to tell PHP to use this socket.
To do this in phpMyAdmin, you need to complete the socket information in the - config.inc.php.
+ config.inc.php.
For example: $cfg['Servers'][$i]['socket'] = '/tmp/mysql.sock'; @@ -3289,7 +3287,7 @@ RewriteRule .* - [F] what can I do?Try to set the $cfg['OBGZip'] - directive to FALSE in the phpMyAdmin configuration file. It helps + directive to
FALSEin the phpMyAdmin configuration file. It helps sometime.
Also have a look at your PHP version number: if it contains "b" or "alpha" it means you're running a testing version of PHP. That's not a so good idea, @@ -3341,19 +3339,19 @@ RewriteRule .* - [F]
- make a new subdirectory (for example "your_theme_name") under $cfg['ThemePath'] - (by default themes)
+ (by defaultthemes)- copy the files and directories from "original" to "your_theme_name"
- edit the css-files in "your_theme_name/css"
- put your new images in "your_theme_name/img"
-- edit layout.inc.php in "your_theme_name"
-- edit info.inc.php in "your_theme_name" to +
- edit
+layout.inc.phpin "your_theme_name"- edit
info.inc.phpin "your_theme_name" to contain your chosen theme name, that will be visible in user interface- make a new screenshot of your theme and save it under "your_theme_name/screen.png"
In theme directory there is file info.inc.php which contains +
In theme directory there is file
info.inc.phpwhich contains theme verbose name, theme generation and theme version. These versions and generations are enumerated from 1 and do not have any direct dependence on phpMyAdmin version. Themes within same generation should be backwards @@ -3371,7 +3369,7 @@ RewriteRule .* - [F]Here are a few points to check:
-
- In config.inc.php, try to leave the +
@@ -3404,7 +3402,7 @@ RewriteRule .* - [F] have either the APC extension or the uploadprogress one. Moreover, the JSON extension has to be enabled in your PHP. -
- In
-config.inc.php, try to leave the $cfg['PmaAbsoluteUri'] directive empty. See also FAQ 4.7. @@ -3381,19 +3379,19 @@ RewriteRule .* - [F] http://bugs.php.net/bug.php?id=31134.- If you are using Hardened PHP with the ini directive varfilter.max_request_variables +
- If you are using Hardened PHP with the ini directive
-varfilter.max_request_variablesset to the default (200) or another low value, you could get this error if your table has a high number of columns. Adjust this setting accordingly. (Thanks to Klaus Dorninger for the hint).- In the php.ini directive arg_separator.input, a value +
- In the
php.inidirectivearg_separator.input, a value of ";" will cause this error. Replace it with "&;".- If you are using Hardened-PHP, you might want to increase request limits.
-- The directory specified in the php.ini directive session.save_path does not exist or is read-only. +
- The directory specified in the
php.inidirectivesession.save_pathdoes not exist or is read-only.If using APC, you must set apc.rfc1867 to on in your php.ini.
+If using APC, you must set
apc.rfc1867toonin your php.ini.Known limitations
@@ -3528,7 +3526,7 @@ have either the APC extension3.10 Homonyms and no primary key: When the results of a SELECT display more that one column with the same value - (for example SELECT lastname from employees where firstname like 'A%' and two "Smith" values are displayed), + (for example
SELECT lastname from employees where firstname like 'A%'and two "Smith" values are displayed), if I click Edit I cannot be sure that I am editing the intended row.Please make sure that your table has a primary key, so that phpMyAdmin @@ -3547,7 +3545,7 @@ have either the APC extension 3.12 (withdrawn).
- 3.13 I get an error when entering USE followed by a db name + 3.13 I get an error when entering
USEfollowed by a db name containing an hyphen.@@ -3624,7 +3622,7 @@ have either the APC extension 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).
+ (with Apache you can use .htaccess files, for example).
If other people have telnet access to your server, you should use phpMyAdmin's HTTP or cookie authentication features.
@@ -3632,7 +3630,7 @@ have either the APC extension@@ -3678,15 +3676,15 @@ have either the APC extension
- - Your config.inc.php file should be chmod 660. + Your config.inc.php file should be
chmod 660.- All your phpMyAdmin files should be chown -R phpmy.apache, where phpmy @@ -3646,12 +3644,12 @@ have either the APC extension
4.3 I get errors about not being able to include a file in - /lang or in /libraries. + /lang or in /libraries.
- Check php.ini, or ask your sysadmin to check it. The - include_path must contain "." somewhere in it, and - open_basedir, if used, must contain "." and + Check php.ini, or ask your sysadmin to check it. The +
@@ -3668,7 +3666,7 @@ have either the APC extension are wrong.include_pathmust contain "." somewhere in it, and +open_basedir, if used, must contain "." and "./lang" to allow normal operation of phpMyAdmin.- The username/password you specify in the login dialog are invalid.
- You have already setup a security mechanism for the - phpMyAdmin-directory, eg. a .htaccess file. This would interfere with + phpMyAdmin-directory, eg. a .htaccess file. This would interfere with phpMyAdmin's authentication, so remove it.
Starting with 2.2.5, in the user management page, you can enter a wildcard database name for a user (for example "joe%"), and put the privileges you want. For example, - adding SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER + adding
SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTERwould let a user create/manage his/her database(s).4.6 How can I use the Host-based authentication additions?
-If you have existing rules from an old .htaccess file, you can take them - and add a username between the 'deny'/'allow' and - 'from' strings. Using the username wildcard of '%' would +
If you have existing rules from an old .htaccess file, you can take them + and add a username between the
'deny'/'allow'and +'from'strings. Using the username wildcard of'%'would be a major benefit here if your installation is suited to using it. Then you can just add those updated lines into the @@ -3720,7 +3718,7 @@ $cfg['Servers'][$i]['AllowDeny']['rules'] = array(4.8 Which parameters can I use in the URL that starts phpMyAdmin?
-When starting phpMyAdmin, you can use the db, pma_username, pma_password and server parameters. This last one can contain either the numeric host index (from $i of the configuration file) or one of the host names present in the configuration file. Using pma_username and pma_password has been tested along with the usage of 'cookie' auth_type.
+When starting phpMyAdmin, you can use the
db,pma_username,pma_passwordandserverparameters. This last one can contain either the numeric host index (from$iof the configuration file) or one of the host names present in the configuration file. Usingpma_usernameandpma_passwordhas been tested along with the usage of 'cookie'auth_type.Browsers or client OS
@@ -3864,8 +3862,8 @@ $cfg['Servers'][$i]['AllowDeny']['rules'] = array( Javascript errors. Or I cannot make phpMyAdmin work under Windows.Please check the following points:
-
- Maybe you have defined your PmaAbsoluteUri setting - in config.inc.php to an IP +
- Maybe you have defined your
@@ -3883,12 +3881,12 @@ $cfg['Servers'][$i]['AllowDeny']['rules'] = array( installed in their Firefox is causing the problem.PmaAbsoluteUrisetting + inconfig.inc.phpto an IP address and you are starting phpMyAdmin with a URL containing a domain name, or the reverse situation.-5.18 With Konqueror 4.2.x an invalid LIMIT +5.18 With Konqueror 4.2.x an invalid
LIMITclause is generated when I browse a table.This happens only when both of these conditions are met: using the - http authentication mode and register_globals being set - to On on the server. It seems to be a browser-specific problem; - meanwhile use the cookie authentication mode.
+httpauthentication mode andregister_globalsbeing set + toOnon the server. It seems to be a browser-specific problem; + meanwhile use thecookieauthentication mode.5.19 I get JavaScript errors in my browser.
@@ -3908,8 +3906,8 @@ to see if the problem goes away. Common errors include:-
- Using VARCHAR without a size argument
-- Using TEXT or BLOB with a size argument
+- Using
+VARCHARwithout a size argument- Using
TEXTorBLOBwith a size argumentAlso, look at the syntax chapter in the MySQL manual to confirm that your @@ -3977,7 +3975,7 @@ to see if the problem goes away.
6.6 How can I use the relation table in Query-by-example?Here is an example with the tables persons, towns and countries, all - located in the database mydb. If you don't have a pma_relation + located in the database mydb. If you don't have a
@@ -4116,7 +4114,7 @@ INSERT INTO REL_towns VALUES ('M', 'Montréal');pma_relationtable, create it as explained in the configuration section. Then create the example tables:6.12 I want to understand some Export options.
-Structure:
+Structure:
-
- "Add DROP TABLE" will add a line telling MySQL to drop the table, @@ -4131,11 +4129,11 @@ INSERT INTO REL_towns VALUES ('M', 'Montréal'); column and table names formed with special characters are protected.
- "Add into comments" includes column comments, relations, and MIME types set in the pmadb in the dump as - SQL comments (/* xxx */). + SQL comments (/* xxx */).
Data:
+Data:
- "Complete inserts" adds the column names on every INSERT command, for better documentation (but resulting file is bigger).
@@ -4177,8 +4175,8 @@ INSERT INTO REL_towns VALUES ('M', 'Montréal');To install PEAR SOAP module, run "pear install Net_Socket Net_URL - HTTP_Request Mail_Mime Net_DIME SOAP" to get the necessary SOAP module, run
@@ -4236,12 +4234,12 @@ INSERT INTO REL_towns VALUES ('M', 'Montréal'); box appears on for that database."pear install Net_Socket Net_URL + HTTP_Request Mail_Mime Net_DIME SOAP"to get the necessary PEAR modules for usage.
Since phpMyAdmin 2.5.0 you are also able to store variables for the bookmarks. - Just use the string /*[VARIABLE]*/ anywhere in your query. Everything - which is put into the value input box on the query box page will + Just use the string /*[VARIABLE]*/ anywhere in your query. Everything + which is put into the value input box on the query box page will replace the string "/*[VARIABLE]*/" in your stored query. Just be aware of that you HAVE to create a valid query, otherwise your query won't be even able to be stored in the database.
- Also remember, that everything else inside the /*[VARIABLE]*/ string + Also remember, that everything else inside the /*[VARIABLE]*/ string for your query will remain the way it is, but will be stripped of the /**/ chars. So you can use:
@@ -4264,8 +4262,8 @@ INSERT INTO REL_towns VALUES ('M', 'Montréal');SELECT Name, Address FROM addresses WHERE 1 AND Name LIKE '%phpMyAdmin%'
- You can use multiple occurrences of /*[VARIABLE]*/ in a single query (that is, multiple occurrences of the same variable).
- NOTE THE ABSENCE OF SPACES inside the "/**/" construct. Any + You can use multiple occurrences of /*[VARIABLE]*/ in a single query (that is, multiple occurrences of the same variable).
+ NOTE THE ABSENCE OF SPACES inside the "/**/" construct. Any spaces inserted there will be later also inserted as spaces in your query and may lead to unexpected results especially when @@ -4320,7 +4318,7 @@ INSERT INTO REL_towns VALUES ('M', 'Montréal'); For 100 values or more, a distinct window will appear, to browse foreign key values and choose one. To change the default limit of 100, see - $cfg['ForeignKeyMaxLimit']. +$cfg['ForeignKeyMaxLimit'].6.22 Bookmarks: Can I execute a default bookmark @@ -4441,7 +4439,7 @@ INSERT INTO REL_towns VALUES ('M', 'Montréal');
Create a Zip archive with .shp and .dbf files and import it. For this to work, you need to set $cfg['TempDir'] to a - place where the web server user can write (for example './tmp'). + place where the web server user can write (for example
'./tmp').To create the temporary directory on a UNIX-based system, you can do:
@@ -4616,7 +4614,7 @@ the source and target corresponding tables.-The difference is depicted by the red and green buttons with S and D +The difference is depicted by the red and green buttons with
diff --git a/browse_foreigners.php b/browse_foreigners.php index 3eff09f4c9..9579edcb44 100644 --- a/browse_foreigners.php +++ b/browse_foreigners.php @@ -9,19 +9,19 @@ /** * Gets a core script and starts output buffering work */ -require_once './libraries/common.inc.php'; +require_once 'libraries/common.inc.php'; PMA_checkParameters(array('db', 'table', 'field')); -require_once './libraries/ob.lib.php'; +require_once 'libraries/ob.lib.php'; PMA_outBufferPre(); -require_once './libraries/header_http.inc.php'; +require_once 'libraries/header_http.inc.php'; /** * Displays the frame */ -require_once './libraries/transformations.lib.php'; // Transformations +require_once 'libraries/transformations.lib.php'; // Transformations $cfgRelation = PMA_getRelationsParam(); $foreigners = ($cfgRelation['relwork'] ? PMA_getForeigners($db, $table) : false); @@ -72,21 +72,17 @@ if (is_array($foreignData['disp_row'])) { } } ?> - - + +SandDletters, indicating that either Structure or Data are not up to date. By clicking on them, they will turn grey, what means that they will be synchronized.phpMyAdmin - + diff --git a/chk_rel.php b/chk_rel.php index e838d2e741..ea89eef2ca 100644 --- a/chk_rel.php +++ b/chk_rel.php @@ -8,8 +8,8 @@ /** * Gets some core libraries */ -require_once './libraries/common.inc.php'; -require_once './libraries/header.inc.php'; +require_once 'libraries/common.inc.php'; +require_once 'libraries/header.inc.php'; /** @@ -21,5 +21,5 @@ $cfgRelation = PMA_getRelationsParam(true); /** * Displays the footer */ -require './libraries/footer.inc.php'; +require 'libraries/footer.inc.php'; ?> diff --git a/db_create.php b/db_create.php index 6f9b367277..497a000e3b 100644 --- a/db_create.php +++ b/db_create.php @@ -8,15 +8,15 @@ /** * Gets some core libraries */ -require_once './libraries/common.inc.php'; +require_once 'libraries/common.inc.php'; $GLOBALS['js_include'][] = 'functions.js'; $GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.16.custom.js'; -require_once './libraries/mysql_charsets.lib.php'; +require_once 'libraries/mysql_charsets.lib.php'; if (!PMA_DRIZZLE) { - include_once './libraries/replication.inc.php'; + include_once 'libraries/replication.inc.php'; } -require './libraries/build_html_for_db.lib.php'; +require 'libraries/build_html_for_db.lib.php'; /** * Sets globals from $_POST @@ -67,8 +67,8 @@ if (! $result) { PMA_ajaxResponse($message, false); } - include_once './libraries/header.inc.php'; - include_once './main.php'; + include_once 'libraries/header.inc.php'; + include_once 'main.php'; } else { $message = PMA_Message::success(__('Database %1$s has been created.')); $message->addParam($new_db); @@ -138,7 +138,7 @@ if (! $result) { PMA_ajaxResponse($message, true, $extra_data); } - include_once './libraries/header.inc.php'; - include_once './' . $cfg['DefaultTabDatabase']; + include_once 'libraries/header.inc.php'; + include_once '' . $cfg['DefaultTabDatabase']; } ?> diff --git a/db_datadict.php b/db_datadict.php index 1f62a09d60..e57206f960 100644 --- a/db_datadict.php +++ b/db_datadict.php @@ -8,11 +8,11 @@ /** * Gets the variables sent or posted to this script, then displays headers */ -require_once './libraries/common.inc.php'; +require_once 'libraries/common.inc.php'; if (! isset($selected_tbl)) { - include './libraries/db_common.inc.php'; - include './libraries/db_info.inc.php'; + include 'libraries/db_common.inc.php'; + include 'libraries/db_info.inc.php'; } @@ -21,7 +21,7 @@ if (! isset($selected_tbl)) { */ $cfgRelation = PMA_getRelationsParam(); -require_once './libraries/transformations.lib.php'; +require_once 'libraries/transformations.lib.php'; /** @@ -228,7 +228,7 @@ foreach ($tables as $table) { } ?> -xml:lang="en" dir="ltr"> +lang="en" dir="ltr"> >*/ ?>@@ -271,5 +271,5 @@ foreach ($tables as $table) { */ PMA_printButton(); -require './libraries/footer.inc.php'; +require 'libraries/footer.inc.php'; ?> diff --git a/db_events.php b/db_events.php index 7716fb0965..af41eb1f56 100644 --- a/db_events.php +++ b/db_events.php @@ -9,8 +9,8 @@ /** * Include required files */ -require_once './libraries/common.inc.php'; -require_once './libraries/common.lib.php'; +require_once 'libraries/common.inc.php'; +require_once 'libraries/common.lib.php'; /** * Include JavaScript libraries @@ -25,12 +25,12 @@ $GLOBALS['js_include'][] = 'codemirror/mode/mysql/mysql.js'; /** * Include all other files */ -require_once './libraries/rte/rte_events.lib.php'; +require_once 'libraries/rte/rte_events.lib.php'; /** * Do the magic */ $_PMA_RTE = 'EVN'; -require_once './libraries/rte/rte_main.inc.php'; +require_once 'libraries/rte/rte_main.inc.php'; ?> diff --git a/db_export.php b/db_export.php index 326b73ae86..a006e4b134 100644 --- a/db_export.php +++ b/db_export.php @@ -9,16 +9,16 @@ /** * Gets some core libraries */ -require_once './libraries/common.inc.php'; +require_once 'libraries/common.inc.php'; $GLOBALS['js_include'][] = 'export.js'; // $sub_part is also used in db_info.inc.php to see if we are coming from // db_export.php, in which case we don't obey $cfg['MaxTableList'] $sub_part = '_export'; -require_once './libraries/db_common.inc.php'; +require_once 'libraries/db_common.inc.php'; $url_query .= '&goto=db_export.php'; -require_once './libraries/db_info.inc.php'; +require_once 'libraries/db_info.inc.php'; /** * Displays the form @@ -28,7 +28,7 @@ $export_page_title = __('View dump (schema) of database'); // exit if no tables in db found if ($num_tables < 1) { PMA_Message::error(__('No tables found in database.'))->display(); - include './libraries/footer.inc.php'; + include 'libraries/footer.inc.php'; exit; } // end if @@ -77,10 +77,10 @@ $multi_values .= "\n"; $multi_values .= ''; $export_type = 'database'; -require_once './libraries/display_export.lib.php'; +require_once 'libraries/display_export.lib.php'; /** * Displays the footer */ -require './libraries/footer.inc.php'; +require 'libraries/footer.inc.php'; ?> diff --git a/db_import.php b/db_import.php index fcf56b6551..146e331e9c 100644 --- a/db_import.php +++ b/db_import.php @@ -8,22 +8,22 @@ /** * */ -require_once './libraries/common.inc.php'; +require_once 'libraries/common.inc.php'; $GLOBALS['js_include'][] = 'import.js'; /** * Gets tables informations and displays top links */ -require './libraries/db_common.inc.php'; -require './libraries/db_info.inc.php'; +require 'libraries/db_common.inc.php'; +require 'libraries/db_info.inc.php'; $import_type = 'database'; -require './libraries/display_import.lib.php'; +require 'libraries/display_import.lib.php'; /** * Displays the footer */ -require './libraries/footer.inc.php'; +require 'libraries/footer.inc.php'; ?> diff --git a/db_operations.php b/db_operations.php index 080686735f..2209606013 100644 --- a/db_operations.php +++ b/db_operations.php @@ -15,8 +15,8 @@ /** * requirements */ -require_once './libraries/common.inc.php'; -require_once './libraries/mysql_charsets.lib.php'; +require_once 'libraries/common.inc.php'; +require_once 'libraries/mysql_charsets.lib.php'; // add a javascript file for jQuery functions to handle Ajax actions // also add jQueryUI @@ -129,7 +129,7 @@ if (strlen($db) && (! empty($db_rename) || ! empty($db_copy))) { $views = array(); // remove all foreign key constraints, otherwise we can get errors - include_once './libraries/export/sql.php'; + include_once 'libraries/export/sql.php'; foreach ($tables_full as $each_table => $tmp) { $sql_constraints = ''; $sql_drop_foreign_keys = ''; @@ -289,7 +289,7 @@ if (strlen($db) && (! empty($db_rename) || ! empty($db_copy))) { /** * cleanup pmadb stuff for this db */ - include_once './libraries/relation_cleanup.lib.php'; + include_once 'libraries/relation_cleanup.lib.php'; PMA_relationsCleanupDatabase($db); // if someday the RENAME DATABASE reappears, do not DROP @@ -355,12 +355,12 @@ if (isset($_REQUEST['comment'])) { * because there is no table in the database ($is_info is true) */ if (empty($is_info)) { - include './libraries/db_common.inc.php'; + include 'libraries/db_common.inc.php'; $url_query .= '&goto=db_operations.php'; // Gets the database structure $sub_part = '_structure'; - include './libraries/db_info.inc.php'; + include 'libraries/db_info.inc.php'; echo "\n"; if (isset($message)) { @@ -403,7 +403,7 @@ if (!$is_information_schema) { } ?> - +' + echo 'method="post" action="db_operations.php">' . PMA_generate_common_hidden_inputs($db, $table) . '