no more support for php3
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
config.inc.developer.php3
|
config.inc.developer.php
|
||||||
phpmyadmin.wpj
|
phpmyadmin.wpj
|
||||||
upload
|
upload
|
||||||
save
|
save
|
||||||
|
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2003-11-18 Michal Cihar <nijel@users.sourceforge.net>
|
||||||
|
* almost EVERYTHING: The big rename from php3 to php.
|
||||||
|
|
||||||
2003-11-18 Michal Cihar <nijel@users.sourceforge.net>
|
2003-11-18 Michal Cihar <nijel@users.sourceforge.net>
|
||||||
* read_dump.php3: Show result of last SHOW query when multiple queries.
|
* read_dump.php3: Show result of last SHOW query when multiple queries.
|
||||||
* scripts/create-release.sh: Generate also sizes of files, for
|
* scripts/create-release.sh: Generate also sizes of files, for
|
||||||
|
@@ -145,23 +145,14 @@
|
|||||||
end of lines character ("<tt>\r</tt>").
|
end of lines character ("<tt>\r</tt>").
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
|
||||||
<span class="important">Documentation warning:</span> when you see in this
|
|
||||||
document a <i>.php3</i> file extension, please transpose to <i>.php</i>
|
|
||||||
if you are using a kit with files having this extension.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p><b>Quick Install:</b></p>
|
<p><b>Quick Install:</b></p>
|
||||||
<ol>
|
<ol>
|
||||||
<li> Choose and download a distribution kit with the files having the
|
|
||||||
extension (<i>.php3</i> or <i>.php</i>) depending on the way your
|
|
||||||
web/PHP server interprets those extensions.</li>
|
|
||||||
<li> Untar or unzip the distribution (be sure to unzip the subdirectories):
|
<li> Untar or unzip the distribution (be sure to unzip the subdirectories):
|
||||||
<tt>tar -xzvf phpMyAdmin_x.x.x.tar.gz</tt> in your webserver's
|
<tt>tar -xzvf phpMyAdmin_x.x.x.tar.gz</tt> in your webserver's
|
||||||
document root. If you don't have direct access to your document root,
|
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 3,
|
put the files in a directory on your local machine, and, after step 3,
|
||||||
transfer the directory on your web server using, for example, ftp.</li>
|
transfer the directory on your web server using, for example, ftp.</li>
|
||||||
<li> Open the file config.inc.php3 in your favorite editor and change
|
<li> Open the file config.inc.php in your favorite editor and change
|
||||||
the values for host, user, password and authentication mode to fit
|
the values for host, user, password and authentication mode to fit
|
||||||
your environment. Here, "host" means the MySQL server.
|
your environment. Here, "host" means the MySQL server.
|
||||||
Also insert the correct value for <tt>$cfg['PmaAbsoluteUri']</tt>.
|
Also insert the correct value for <tt>$cfg['PmaAbsoluteUri']</tt>.
|
||||||
@@ -175,7 +166,7 @@
|
|||||||
<a href="#faq">FAQ section</a> for additional
|
<a href="#faq">FAQ section</a> for additional
|
||||||
information.</li>
|
information.</li>
|
||||||
<li> Open the file
|
<li> Open the file
|
||||||
<i><www.your-host.com>/<your-install-dir>/index.php3</i>
|
<i><www.your-host.com>/<your-install-dir>/index.php</i>
|
||||||
in your browser. phpMyAdmin should now display a welcome screen
|
in your browser. phpMyAdmin should now display a welcome screen
|
||||||
and your databases, or a login dialog if using HTTP or cookie
|
and your databases, or a login dialog if using HTTP or cookie
|
||||||
authentication mode.</li>
|
authentication mode.</li>
|
||||||
@@ -186,14 +177,14 @@
|
|||||||
You can already use your phpMyAdmin to create the tables for you. Please be
|
You can already use your phpMyAdmin to create the tables for you. Please be
|
||||||
aware that you may have to have special (administrator) privileges to create
|
aware that you may have to have special (administrator) privileges to create
|
||||||
the database and tables. After having imported the <i>create_tables.sql</i> file,
|
the database and tables. After having imported the <i>create_tables.sql</i> file,
|
||||||
you should specify the table names in your config.inc.php3 file. The directives
|
you should specify the table names in your config.inc.php file. The directives
|
||||||
used for that can be found in the <a href="#config">Configuration section</a>.</li>
|
used for that can be found in the <a href="#config">Configuration section</a>.</li>
|
||||||
|
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<p><b>Upgrading from an older version:</b></p>
|
<p><b>Upgrading from an older version:</b></p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Please do not copy your older config.inc.php3 over the new one: it may
|
<li>Please do not copy your older config.inc.php over the new one: it may
|
||||||
offer new configuration variables, and the new version may depend on
|
offer new configuration variables, and the new version may depend on
|
||||||
these for normal behavior. It is suggested instead to insert your site
|
these for normal behavior. It is suggested instead to insert your site
|
||||||
values in the new one.</li>
|
values in the new one.</li>
|
||||||
@@ -231,7 +222,7 @@
|
|||||||
columns)</i> & <i>mysql.tables_priv (all columns except
|
columns)</i> & <i>mysql.tables_priv (all columns except
|
||||||
"Grantor" & "Timestamp") </i>tables.<br /> You
|
"Grantor" & "Timestamp") </i>tables.<br /> You
|
||||||
must specify the details for the controluser in the
|
must specify the details for the controluser in the
|
||||||
<i>config.inc.php3</i> file under the
|
<i>config.inc.php</i> file under the
|
||||||
<tt>$cfg['Servers'][$i]['controluser']</tt>&
|
<tt>$cfg['Servers'][$i]['controluser']</tt>&
|
||||||
<tt>$cfg['Servers'][$i]['controlpass']</tt> settings.<br /> The
|
<tt>$cfg['Servers'][$i]['controlpass']</tt> settings.<br /> The
|
||||||
following example assumes you want to use <tt>pma</tt> as the
|
following example assumes you want to use <tt>pma</tt> as the
|
||||||
@@ -341,7 +332,7 @@ GRANT SELECT, INSERT, UPDATE, DELETE ON <pma_db>.* TO 'pma'@'localhost';
|
|||||||
you have modified.
|
you have modified.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>All configurable data is placed in <i>config.inc.php3</i>.</p>
|
<p>All configurable data is placed in <i>config.inc.php</i>.</p>
|
||||||
<dl>
|
<dl>
|
||||||
<dt><b>$cfg['PmaAbsoluteUri']</b> string</dt>
|
<dt><b>$cfg['PmaAbsoluteUri']</b> string</dt>
|
||||||
<dd>
|
<dd>
|
||||||
@@ -507,7 +498,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
'config' authentication
|
'config' authentication
|
||||||
(<tt>$auth_type = 'config'</tt>) is the plain old
|
(<tt>$auth_type = 'config'</tt>) is the plain old
|
||||||
way: username and password are stored in
|
way: username and password are stored in
|
||||||
<i>config.inc.php3</i>.
|
<i>config.inc.php</i>.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
'cookie' authentication mode
|
'cookie' authentication mode
|
||||||
@@ -1325,27 +1316,27 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
<dt><b>$cfg['DefaultTabServer'] </b>string</dt>
|
<dt><b>$cfg['DefaultTabServer'] </b>string</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Defines the tab displayed by default on server view. Possible
|
Defines the tab displayed by default on server view. Possible
|
||||||
values: "main.php3" (recommended for multi-user setups),
|
values: "main.php" (recommended for multi-user setups),
|
||||||
"server_databases.php3", "server_status.php3",
|
"server_databases.php", "server_status.php",
|
||||||
"server_variables.php3", "server_privileges.php3"
|
"server_variables.php", "server_privileges.php"
|
||||||
or "server_processlist.php3".
|
or "server_processlist.php".
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfg['DefaultTabDatabase'] </b>string</dt>
|
<dt><b>$cfg['DefaultTabDatabase'] </b>string</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Defines the tab displayed by default on database view. Possible
|
Defines the tab displayed by default on database view. Possible
|
||||||
values: "db_details_structure.php3",
|
values: "db_details_structure.php",
|
||||||
"db_details.php3" or "db_search.php3".
|
"db_details.php" or "db_search.php".
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfg['DefaultTabTable'] </b>string</dt>
|
<dt><b>$cfg['DefaultTabTable'] </b>string</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Defines the tab displayed by default on table view. Possible
|
Defines the tab displayed by default on table view. Possible
|
||||||
values: "tbl_properties_structure.php3",
|
values: "tbl_properties_structure.php",
|
||||||
"tbl_properties.php3", "tbl_select.php3" or
|
"tbl_properties.php", "tbl_select.php" or
|
||||||
"tbl_change.php3".
|
"tbl_change.php".
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
@@ -1378,7 +1369,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
<dd>
|
<dd>
|
||||||
Defines the default language to use, if not browser-defined or
|
Defines the default language to use, if not browser-defined or
|
||||||
user-defined.<br />
|
user-defined.<br />
|
||||||
See the <i>select_lang.inc.php3</i> script to know the valid values for
|
See the <i>select_lang.inc.php</i> script to know the valid values for
|
||||||
this setting.
|
this setting.
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
@@ -1386,7 +1377,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
<dt><b>$cfg['Lang'] </b>string</dt>
|
<dt><b>$cfg['Lang'] </b>string</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Force: always use this language (must be defined in the
|
Force: always use this language (must be defined in the
|
||||||
<i>select_lang.inc.php3</i> script).
|
<i>select_lang.inc.php</i> script).
|
||||||
<br /><br />
|
<br /><br />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
@@ -1976,7 +1967,7 @@ options you can also specify strings to append/prepend to a string or the format
|
|||||||
want the output stored in.</p><br />
|
want the output stored in.</p><br />
|
||||||
|
|
||||||
<p>For a general overview of all available transformations and their options, you can
|
<p>For a general overview of all available transformations and their options, you can
|
||||||
consult your <i><www.your-host.com>/<your-install-dir>/libraries/transformations/overview.php3</i>
|
consult your <i><www.your-host.com>/<your-install-dir>/libraries/transformations/overview.php</i>
|
||||||
installation.</p>
|
installation.</p>
|
||||||
|
|
||||||
<p><br />For a tutorial on how to effectively use transformations, see our <a href="http://www.phpmyadmin.net/home_page/docs.php">Link section</a> on the official phpMyAdmin-homepage.</p>
|
<p><br />For a tutorial on how to effectively use transformations, see our <a href="http://www.phpmyadmin.net/home_page/docs.php">Link section</a> on the official phpMyAdmin-homepage.</p>
|
||||||
@@ -1984,7 +1975,7 @@ installation.</p>
|
|||||||
<a name="transformationshowto"></a><br />
|
<a name="transformationshowto"></a><br />
|
||||||
<h3>[2. Usage]</h3>
|
<h3>[2. Usage]</h3>
|
||||||
|
|
||||||
<p>Go to your tbl_properties.inc.php3 page (i.e. reached through clicking on the
|
<p>Go to your tbl_properties.inc.php page (i.e. reached through clicking on the
|
||||||
'properties' link for a table). There click on "Change" (or change
|
'properties' link for a table). There click on "Change" (or change
|
||||||
icon) and there you will see three new fields at the end of the line. They are
|
icon) and there you will see three new fields at the end of the line. They are
|
||||||
called 'MIME-type', 'Browser transformation' and 'Transformation options'.</p>
|
called 'MIME-type', 'Browser transformation' and 'Transformation options'.</p>
|
||||||
@@ -2046,7 +2037,7 @@ for many mimetypes. You can also use transforms on a different mimetype they whe
|
|||||||
for, but pay attention to option usage as well as what the transformation does to your
|
for, but pay attention to option usage as well as what the transformation does to your
|
||||||
field.</p><br />
|
field.</p><br />
|
||||||
|
|
||||||
<p>There is a basic file called 'global.inc.php3'. This function can be included by
|
<p>There is a basic file called 'global.inc.php'. This function can be included by
|
||||||
any other transform function and provides some basic functions.</p><br />
|
any other transform function and provides some basic functions.</p><br />
|
||||||
|
|
||||||
<p>There are 5 possible file names:</p>
|
<p>There are 5 possible file names:</p>
|
||||||
@@ -2054,7 +2045,7 @@ any other transform function and provides some basic functions.</p><br />
|
|||||||
<ol>
|
<ol>
|
||||||
<li>A mimetype+subtype transform:<br /><br />
|
<li>A mimetype+subtype transform:<br /><br />
|
||||||
|
|
||||||
[mimetype]_[subtype]__[transform].inc.php3<br /><br />
|
[mimetype]_[subtype]__[transform].inc.php<br /><br />
|
||||||
|
|
||||||
Please not that mimetype and subtype are separated via '_', which shall not be
|
Please not that mimetype and subtype are separated via '_', which shall not be
|
||||||
contained in their names. The transform function/filename may contain only
|
contained in their names. The transform function/filename may contain only
|
||||||
@@ -2065,12 +2056,12 @@ any other transform function and provides some basic functions.</p><br />
|
|||||||
|
|
||||||
<b>Example:</b><br /><br />
|
<b>Example:</b><br /><br />
|
||||||
|
|
||||||
text_html__formatted.inc.php3<br />
|
text_html__formatted.inc.php<br />
|
||||||
PMA_transform_text_html__formatted()</li>
|
PMA_transform_text_html__formatted()</li>
|
||||||
|
|
||||||
<li>A mimetype (w/o subtype) transform:<br /><br />
|
<li>A mimetype (w/o subtype) transform:<br /><br />
|
||||||
|
|
||||||
[mimetype]__[transform].inc.php3<br /><br />
|
[mimetype]__[transform].inc.php<br /><br />
|
||||||
|
|
||||||
Please note that there are no single '_' characters.
|
Please note that there are no single '_' characters.
|
||||||
The transform function/filename may contain only characters which cause no problems
|
The transform function/filename may contain only characters which cause no problems
|
||||||
@@ -2080,12 +2071,12 @@ any other transform function and provides some basic functions.</p><br />
|
|||||||
|
|
||||||
<b>Example:</b><br /><br />
|
<b>Example:</b><br /><br />
|
||||||
|
|
||||||
text__formatted.inc.php3<br />
|
text__formatted.inc.php<br />
|
||||||
PMA_transform_text__formatted()</li>
|
PMA_transform_text__formatted()</li>
|
||||||
|
|
||||||
<li>A mimetype+subtype without specific transform function<br /><br />
|
<li>A mimetype+subtype without specific transform function<br /><br />
|
||||||
|
|
||||||
[mimetype]_[subtype].inc.php3<br /><br />
|
[mimetype]_[subtype].inc.php<br /><br />
|
||||||
|
|
||||||
Please note that there are no '__' characters in the filename. Do not use special
|
Please note that there are no '__' characters in the filename. Do not use special
|
||||||
characters in the filename causing problems with the file system.<br /><br />
|
characters in the filename causing problems with the file system.<br /><br />
|
||||||
@@ -2094,12 +2085,12 @@ any other transform function and provides some basic functions.</p><br />
|
|||||||
|
|
||||||
<b>Example:</b><br /><br />
|
<b>Example:</b><br /><br />
|
||||||
|
|
||||||
text_plain.inc.php3<br />
|
text_plain.inc.php<br />
|
||||||
(No function)</li>
|
(No function)</li>
|
||||||
|
|
||||||
<li>A mimetype (w/o subtype) without specific transform function<br /><br />
|
<li>A mimetype (w/o subtype) without specific transform function<br /><br />
|
||||||
|
|
||||||
[mimetype].inc.php3<br /><br />
|
[mimetype].inc.php<br /><br />
|
||||||
|
|
||||||
Please note that there are no '_' characters in the filename. Do not use special
|
Please note that there are no '_' characters in the filename. Do not use special
|
||||||
characters in the filename causing problems with the file system.<br /><br />
|
characters in the filename causing problems with the file system.<br /><br />
|
||||||
@@ -2108,12 +2099,12 @@ any other transform function and provides some basic functions.</p><br />
|
|||||||
|
|
||||||
<b>Example:</b><br /><br />
|
<b>Example:</b><br /><br />
|
||||||
|
|
||||||
text.inc.php3<br />
|
text.inc.php<br />
|
||||||
(No function)</li>
|
(No function)</li>
|
||||||
|
|
||||||
<li>A global transform function with no specific mimetype<br /><br />
|
<li>A global transform function with no specific mimetype<br /><br />
|
||||||
|
|
||||||
global__[transform].inc.php3<br /><br />
|
global__[transform].inc.php<br /><br />
|
||||||
|
|
||||||
The transform function will the be called 'PMA_transform_global__[transform]()'.<br /><br />
|
The transform function will the be called 'PMA_transform_global__[transform]()'.<br /><br />
|
||||||
|
|
||||||
@@ -2133,7 +2124,7 @@ functions in the dropdown.</p><br />
|
|||||||
<p>Please see the libraries/transformations/TEMPLATE file for adding your own transform
|
<p>Please see the libraries/transformations/TEMPLATE file for adding your own transform
|
||||||
function. See the libraries/transformations/TEMPLATE_MIMETYPE for adding a mimetype
|
function. See the libraries/transformations/TEMPLATE_MIMETYPE for adding a mimetype
|
||||||
without a transform function. Also note the introduction of a function description in
|
without a transform function. Also note the introduction of a function description in
|
||||||
the language files. For each function a $strTransformation_[filename without .inc.php3]
|
the language files. For each function a $strTransformation_[filename without .inc.php]
|
||||||
has to exist.</p><br />
|
has to exist.</p><br />
|
||||||
|
|
||||||
<p>You can use the template generator to generate new functions and entries in the
|
<p>You can use the template generator to generate new functions and entries in the
|
||||||
@@ -2183,7 +2174,7 @@ To create a new, empty mimetype please see libraries/transformations/template_ge
|
|||||||
<p>
|
<p>
|
||||||
There are some known PHP bugs with output buffering and compression.<br />
|
There are some known PHP bugs with output buffering and compression.<br />
|
||||||
Try to set the <tt>$cfg['OBGzip']</tt> directive to <tt>FALSE</tt> in your
|
Try to set the <tt>$cfg['OBGzip']</tt> directive to <tt>FALSE</tt> in your
|
||||||
<i>config.inc.php or .php3</i> file and the
|
<i>config.inc.php</i> file and the
|
||||||
<tt>zlib.output_compression</tt> directive to <tt>Off</tt> in your php
|
<tt>zlib.output_compression</tt> directive to <tt>Off</tt> in your php
|
||||||
configuration file.<br />
|
configuration file.<br />
|
||||||
Furthermore, we know about such problems connected to the release
|
Furthermore, we know about such problems connected to the release
|
||||||
@@ -2245,9 +2236,9 @@ To create a new, empty mimetype please see libraries/transformations/template_ge
|
|||||||
<p>
|
<p>
|
||||||
This seems to be a PWS bug. Filippo Simoncini found a workaround (at this
|
This seems to be a PWS bug. Filippo Simoncini found a workaround (at this
|
||||||
time there is no better fix): remove or comment the <tt>DOCTYPE</tt>
|
time there is no better fix): remove or comment the <tt>DOCTYPE</tt>
|
||||||
declarations (2 lines) from the scripts <i>header.inc.php3</i>,
|
declarations (2 lines) from the scripts <i>header.inc.php</i>,
|
||||||
<i>header_printview.inc.php3</i>, <i>index.php3</i>, <i>left.php3</i> and
|
<i>header_printview.inc.php</i>, <i>index.php</i>, <i>left.php</i> and
|
||||||
<i>libraries/common.lib.php3</i>.
|
<i>libraries/common.lib.php</i>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h4>
|
<h4>
|
||||||
@@ -2520,12 +2511,12 @@ To create a new, empty mimetype please see libraries/transformations/template_ge
|
|||||||
|
|
||||||
<h4>
|
<h4>
|
||||||
[1.27] I get empty page when I want to view huge page (eg.
|
[1.27] I get empty page when I want to view huge page (eg.
|
||||||
db_details_structure.php3 with plenty of tables).
|
db_details_structure.php with plenty of tables).
|
||||||
</h4>
|
</h4>
|
||||||
<p>
|
<p>
|
||||||
This is a <a href="http://bugs.php.net/21079">PHP bug</a> that occur when
|
This is a <a href="http://bugs.php.net/21079">PHP bug</a> that occur when
|
||||||
GZIP output buffering enabled. If you turn off it (by <code>$cfg['OBGzip']
|
GZIP output buffering enabled. If you turn off it (by <code>$cfg['OBGzip']
|
||||||
= FALSE</code> in config.inc.php3), it should work. This bug will be fixed
|
= FALSE</code> in config.inc.php), it should work. This bug will be fixed
|
||||||
in PHP 5.0.0.
|
in PHP 5.0.0.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -2589,7 +2580,7 @@ To create a new, empty mimetype please see libraries/transformations/template_ge
|
|||||||
headers already sent by ..." is displayed, what's the problem?
|
headers already sent by ..." is displayed, what's the problem?
|
||||||
</h4>
|
</h4>
|
||||||
<p>
|
<p>
|
||||||
Edit your <i>config.inc.php or .php3</i> file and ensure there is nothing
|
Edit your <i>config.inc.php or .php</i> file and ensure there is nothing
|
||||||
(I.E. no blank lines, no spaces, no characters...) neither before the
|
(I.E. no blank lines, no spaces, no characters...) neither before the
|
||||||
<tt><?php</tt> tag at the beginning, neither after the <tt>?></tt>
|
<tt><?php</tt> tag at the beginning, neither after the <tt>?></tt>
|
||||||
tag at the end.
|
tag at the end.
|
||||||
@@ -2640,7 +2631,7 @@ To create a new, empty mimetype please see libraries/transformations/template_ge
|
|||||||
Then, you need to tell PHP to use this socket.<br />Assuming you are
|
Then, you need to tell PHP to use this socket.<br />Assuming you are
|
||||||
using PHP 3.0.10 or better, you can specify the socket to use when you
|
using PHP 3.0.10 or better, you can specify the socket to use when you
|
||||||
open the connection. To do this in phpMyAdmin, you need to complete the
|
open the connection. To do this in phpMyAdmin, you need to complete the
|
||||||
socket information in the config.inc.php3.<br />
|
socket information in the config.inc.php.<br />
|
||||||
For example:
|
For example:
|
||||||
<tt>$cfg['Servers'][$i]['socket'] = '/tmp/mysql.sock';</tt><br /><br />
|
<tt>$cfg['Servers'][$i]['socket'] = '/tmp/mysql.sock';</tt><br /><br />
|
||||||
Please also make sure that the permissions of this file allow to be readable
|
Please also make sure that the permissions of this file allow to be readable
|
||||||
@@ -2796,7 +2787,7 @@ To create a new, empty mimetype please see libraries/transformations/template_ge
|
|||||||
<p>
|
<p>
|
||||||
Due to a surrounding form-container (for multi-row delete checkboxes), no nested forms can be put inside the table where
|
Due to a surrounding form-container (for multi-row delete checkboxes), no nested forms can be put inside the table where
|
||||||
phpMyAdmin displays the results. You can, however, use any form inside of a table if keep the parent form-container with
|
phpMyAdmin displays the results. You can, however, use any form inside of a table if keep the parent form-container with
|
||||||
the target to tbl_row_delete.php3 and just put your own input-elements inside. If you use a custom submit input field, the
|
the target to tbl_row_delete.php and just put your own input-elements inside. If you use a custom submit input field, the
|
||||||
form will submit itself to the displaying page again, where you can validate the $HTTP_POST_VARS in a transformation.
|
form will submit itself to the displaying page again, where you can validate the $HTTP_POST_VARS in a transformation.
|
||||||
|
|
||||||
For a tutorial on how to effectively use transformations, see our <a href="http://www.phpmyadmin.net/home_page/docs.php">Link section</a>
|
For a tutorial on how to effectively use transformations, see our <a href="http://www.phpmyadmin.net/home_page/docs.php">Link section</a>
|
||||||
@@ -2853,7 +2844,7 @@ To create a new, empty mimetype please see libraries/transformations/template_ge
|
|||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
Your <i>config.inc.php3</i> file should be <tt>chmod 660</tt>.
|
Your <i>config.inc.php</i> file should be <tt>chmod 660</tt>.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
All your phpMyAdmin files should be chown phpmy.apache, where phpmy
|
All your phpMyAdmin files should be chown phpmy.apache, where phpmy
|
||||||
@@ -2862,7 +2853,7 @@ To create a new, empty mimetype please see libraries/transformations/template_ge
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
You should use PHP safe mode, to protect from other users that try
|
You should use PHP safe mode, to protect from other users that try
|
||||||
to include your <i>config.inc.php3</i> in their scripts.
|
to include your <i>config.inc.php</i> in their scripts.
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@@ -3527,7 +3518,7 @@ To create a new, empty mimetype please see libraries/transformations/template_ge
|
|||||||
</h4>
|
</h4>
|
||||||
<p>
|
<p>
|
||||||
Always use the current CVS version of your language file.
|
Always use the current CVS version of your language file.
|
||||||
For a new language, start from <i>english-iso-8859-1.inc.php3</i>. If you
|
For a new language, start from <i>english-iso-8859-1.inc.php</i>. If you
|
||||||
don't know how to get the CVS version, please ask one of the developers.
|
don't know how to get the CVS version, please ask one of the developers.
|
||||||
<br />
|
<br />
|
||||||
Please note that we try not to use HTML entities like &eacute; in
|
Please note that we try not to use HTML entities like &eacute; in
|
||||||
@@ -3650,15 +3641,15 @@ To create a new, empty mimetype please see libraries/transformations/template_ge
|
|||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
All files include <i>header.inc.php3</i> (layout),
|
All files include <i>header.inc.php</i> (layout),
|
||||||
<i>libraries/common.lib.php3</i> (common functions) and
|
<i>libraries/common.lib.php</i> (common functions) and
|
||||||
<i>config.inc.php3</i>.
|
<i>config.inc.php</i>.
|
||||||
<br />
|
<br />
|
||||||
All configuration data belongs in <i>config.inc.php3</i>. Please keep
|
All configuration data belongs in <i>config.inc.php</i>. Please keep
|
||||||
it free from other code.
|
it free from other code.
|
||||||
<br />
|
<br />
|
||||||
Commonly used functions should be added to
|
Commonly used functions should be added to
|
||||||
<i>libraries/common.lib.php3</i> and more specific ones may be added
|
<i>libraries/common.lib.php</i> and more specific ones may be added
|
||||||
within a library stored into the <i>libraries</i> sub-directory.
|
within a library stored into the <i>libraries</i> sub-directory.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@@ -3672,12 +3663,12 @@ To create a new, empty mimetype please see libraries/transformations/template_ge
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Please try to keep up the file-naming conventions. Table-related stuff
|
Please try to keep up the file-naming conventions. Table-related stuff
|
||||||
goes to <i>tbl_*.php3</i>, db-related code to <i>db_*.php3</i>,
|
goes to <i>tbl_*.php</i>, db-related code to <i>db_*.php</i>,
|
||||||
server-related tools to <i>server_*.php3</i> and so on.
|
server-related tools to <i>server_*.php</i> and so on.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Please don't use verbose strings in your code, instead add the string
|
Please don't use verbose strings in your code, instead add the string
|
||||||
(at least) to <i>english-iso-8859-1.inc.php3</i> and print() it out.
|
(at least) to <i>english-iso-8859-1.inc.php</i> and print() it out.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
If you want to be really helpful, write an entry for the ChangeLog.
|
If you want to be really helpful, write an entry for the ChangeLog.
|
||||||
|
@@ -14,8 +14,8 @@
|
|||||||
+ Version history: ChangeLog
|
+ Version history: ChangeLog
|
||||||
+ General notes: README
|
+ General notes: README
|
||||||
+ License: LICENSE
|
+ License: LICENSE
|
||||||
* Documentation version: $Id: Documentation.html,v 1.510 2003/10/16
|
* Documentation version: $Id: Documentation.html,v 1.518 2003/11/07
|
||||||
15:22:11 nijel Exp $
|
18:01:55 lem9 Exp $
|
||||||
|
|
||||||
Requirements
|
Requirements
|
||||||
|
|
||||||
@@ -75,35 +75,28 @@ Installation
|
|||||||
scripts before uploading them to your server, as PHP seems not to like
|
scripts before uploading them to your server, as PHP seems not to like
|
||||||
Mac-style end of lines character ("\r").
|
Mac-style end of lines character ("\r").
|
||||||
|
|
||||||
Documentation warning: when you see in this document a .php3 file
|
|
||||||
extension, please transpose to .php if you are using a kit with files
|
|
||||||
having this extension.
|
|
||||||
|
|
||||||
Quick Install:
|
Quick Install:
|
||||||
1. Choose and download a distribution kit with the files having the
|
1. Untar or unzip the distribution (be sure to unzip the
|
||||||
extension (.php3 or .php) depending on the way your web/PHP server
|
|
||||||
interprets those extensions.
|
|
||||||
2. Untar or unzip the distribution (be sure to unzip the
|
|
||||||
subdirectories): tar -xzvf phpMyAdmin_x.x.x.tar.gz in your
|
subdirectories): tar -xzvf phpMyAdmin_x.x.x.tar.gz in your
|
||||||
webserver's document root. If you don't have direct access to 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,
|
document root, put the files in a directory on your local machine,
|
||||||
and, after step 3, transfer the directory on your web server
|
and, after step 3, transfer the directory on your web server
|
||||||
using, for example, ftp.
|
using, for example, ftp.
|
||||||
3. Open the file config.inc.php3 in your favorite editor and change
|
2. Open the file config.inc.php in your favorite editor and change
|
||||||
the values for host, user, password and authentication mode to fit
|
the values for host, user, password and authentication mode to fit
|
||||||
your environment. Here, "host" means the MySQL server. Also insert
|
your environment. Here, "host" means the MySQL server. Also insert
|
||||||
the correct value for $cfg['PmaAbsoluteUri']. Have a look at
|
the correct value for $cfg['PmaAbsoluteUri']. Have a look at
|
||||||
Configuration section for an explanation of all values.
|
Configuration section for an explanation of all values.
|
||||||
4. It is recommended that you protect the directory in which you
|
3. It is recommended that you protect the directory in which you
|
||||||
installed phpMyAdmin (unless it's on a closed intranet, or you
|
installed phpMyAdmin (unless it's on a closed intranet, or you
|
||||||
wish to use HTTP or cookie authentication), for example with
|
wish to use HTTP or cookie authentication), for example with
|
||||||
HTTP-AUTH (in a .htaccess file). See the FAQ section for
|
HTTP-AUTH (in a .htaccess file). See the FAQ section for
|
||||||
additional information.
|
additional information.
|
||||||
5. Open the file <www.your-host.com>/<your-install-dir>/index.php3 in
|
4. Open the file <www.your-host.com>/<your-install-dir>/index.php in
|
||||||
your browser. phpMyAdmin should now display a welcome screen and
|
your browser. phpMyAdmin should now display a welcome screen and
|
||||||
your databases, or a login dialog if using HTTP or cookie
|
your databases, or a login dialog if using HTTP or cookie
|
||||||
authentication mode.
|
authentication mode.
|
||||||
6. For a whole set of new features (bookmarks, comments, SQL-history,
|
5. For a whole set of new features (bookmarks, comments, SQL-history,
|
||||||
PDF-generation, field contents transformation, etc.) you need to
|
PDF-generation, field contents transformation, etc.) you need to
|
||||||
create a set of tables in your database. Please look at your
|
create a set of tables in your database. Please look at your
|
||||||
scripts/ directory, where you should find a file called
|
scripts/ directory, where you should find a file called
|
||||||
@@ -112,12 +105,12 @@ Installation
|
|||||||
create the tables for you. Please be aware that you may have to
|
create the tables for you. Please be aware that you may have to
|
||||||
have special (administrator) privileges to create the database and
|
have special (administrator) privileges to create the database and
|
||||||
tables. After having imported the create_tables.sql file, you
|
tables. After having imported the create_tables.sql file, you
|
||||||
should specify the table names in your config.inc.php3 file. The
|
should specify the table names in your config.inc.php file. The
|
||||||
directives used for that can be found in the Configuration
|
directives used for that can be found in the Configuration
|
||||||
section.
|
section.
|
||||||
|
|
||||||
Upgrading from an older version:
|
Upgrading from an older version:
|
||||||
* Please do not copy your older config.inc.php3 over the new one: it
|
* Please do not copy your older config.inc.php over the new one: it
|
||||||
may offer new configuration variables, and the new version may
|
may offer new configuration variables, and the new version may
|
||||||
depend on these for normal behavior. It is suggested instead to
|
depend on these for normal behavior. It is suggested instead to
|
||||||
insert your site values in the new one.
|
insert your site values in the new one.
|
||||||
@@ -145,7 +138,7 @@ Installation
|
|||||||
except "Password"), mysql.db (all columns) & mysql.tables_priv
|
except "Password"), mysql.db (all columns) & mysql.tables_priv
|
||||||
(all columns except "Grantor" & "Timestamp") tables.
|
(all columns except "Grantor" & "Timestamp") tables.
|
||||||
You must specify the details for the controluser in the
|
You must specify the details for the controluser in the
|
||||||
config.inc.php3 file under the $cfg['Servers'][$i]['controluser']&
|
config.inc.php file under the $cfg['Servers'][$i]['controluser']&
|
||||||
$cfg['Servers'][$i]['controlpass'] settings.
|
$cfg['Servers'][$i]['controlpass'] settings.
|
||||||
The following example assumes you want to use pma as the
|
The following example assumes you want to use pma as the
|
||||||
controluser and pmapass as the controlpass, but this is only an
|
controluser and pmapass as the controlpass, but this is only an
|
||||||
@@ -234,7 +227,7 @@ Configuration
|
|||||||
the *nix end of line character ("\n") in your text editor before
|
the *nix end of line character ("\n") in your text editor before
|
||||||
registering a script you have modified.
|
registering a script you have modified.
|
||||||
|
|
||||||
All configurable data is placed in config.inc.php3.
|
All configurable data is placed in config.inc.php.
|
||||||
|
|
||||||
$cfg['PmaAbsoluteUri'] string
|
$cfg['PmaAbsoluteUri'] string
|
||||||
Sets here the complete URL (with full path) to your phpMyAdmin
|
Sets here the complete URL (with full path) to your phpMyAdmin
|
||||||
@@ -353,7 +346,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
for this server.
|
for this server.
|
||||||
|
|
||||||
+ 'config' authentication ($auth_type = 'config') is the plain
|
+ 'config' authentication ($auth_type = 'config') is the plain
|
||||||
old way: username and password are stored in config.inc.php3.
|
old way: username and password are stored in config.inc.php.
|
||||||
+ 'cookie' authentication mode ($auth_type = 'cookie') as
|
+ 'cookie' authentication mode ($auth_type = 'cookie') as
|
||||||
introduced in 2.2.3 allows you to log in as any valid MySQL
|
introduced in 2.2.3 allows you to log in as any valid MySQL
|
||||||
user with the help of cookies. Log name and password are
|
user with the help of cookies. Log name and password are
|
||||||
@@ -384,10 +377,18 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
since the latter does not need to send MySQL requests to build
|
since the latter does not need to send MySQL requests to build
|
||||||
the available database list. But it does not replace the
|
the available database list. But it does not replace the
|
||||||
privileges rules of the MySQL database server. If set, it just
|
privileges rules of the MySQL database server. If set, it just
|
||||||
means only these databases will be displayed but not at all
|
means only these databases will be displayed but not that all
|
||||||
other databases can't be used.
|
other databases can't be used.
|
||||||
An example of using more that one database:
|
An example of using more that one database:
|
||||||
$cfg['Servers'][$i]['only_db'] = array('db1', 'db2');
|
$cfg['Servers'][$i]['only_db'] = array('db1', 'db2');
|
||||||
|
As of phpMyAdmin 2.5.5 the order inside the array is used for
|
||||||
|
sorting the databases in the left frame, so that you can
|
||||||
|
individually arrange your databases.
|
||||||
|
If you want to have certain tables at the top, but don't care
|
||||||
|
about the others, you do not need to specify all other
|
||||||
|
databases. Use: $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]['verbose'] string
|
$cfg['Servers'][$i]['verbose'] string
|
||||||
Only useful when using phpMyAdmin with multiple server entries.
|
Only useful when using phpMyAdmin with multiple server entries.
|
||||||
@@ -884,20 +885,20 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
|
|
||||||
$cfg['DefaultTabServer'] string
|
$cfg['DefaultTabServer'] string
|
||||||
Defines the tab displayed by default on server view. Possible
|
Defines the tab displayed by default on server view. Possible
|
||||||
values: "main.php3" (recommended for multi-user setups),
|
values: "main.php" (recommended for multi-user setups),
|
||||||
"server_databases.php3", "server_status.php3",
|
"server_databases.php", "server_status.php",
|
||||||
"server_variables.php3", "server_privileges.php3" or
|
"server_variables.php", "server_privileges.php" or
|
||||||
"server_processlist.php3".
|
"server_processlist.php".
|
||||||
|
|
||||||
$cfg['DefaultTabDatabase'] string
|
$cfg['DefaultTabDatabase'] string
|
||||||
Defines the tab displayed by default on database view. Possible
|
Defines the tab displayed by default on database view. Possible
|
||||||
values: "db_details_structure.php3", "db_details.php3" or
|
values: "db_details_structure.php", "db_details.php" or
|
||||||
"db_search.php3".
|
"db_search.php".
|
||||||
|
|
||||||
$cfg['DefaultTabTable'] string
|
$cfg['DefaultTabTable'] string
|
||||||
Defines the tab displayed by default on table view. Possible
|
Defines the tab displayed by default on table view. Possible
|
||||||
values: "tbl_properties_structure.php3", "tbl_properties.php3",
|
values: "tbl_properties_structure.php", "tbl_properties.php",
|
||||||
"tbl_select.php3" or "tbl_change.php3".
|
"tbl_select.php" or "tbl_change.php".
|
||||||
|
|
||||||
$cfg['MySQLManualBase'] string
|
$cfg['MySQLManualBase'] string
|
||||||
If set to an URL which points to the MySQL documentation (type
|
If set to an URL which points to the MySQL documentation (type
|
||||||
@@ -918,12 +919,12 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
$cfg['DefaultLang'] string
|
$cfg['DefaultLang'] string
|
||||||
Defines the default language to use, if not browser-defined or
|
Defines the default language to use, if not browser-defined or
|
||||||
user-defined.
|
user-defined.
|
||||||
See the select_lang.inc.php3 script to know the valid values
|
See the select_lang.inc.php script to know the valid values for
|
||||||
for this setting.
|
this setting.
|
||||||
|
|
||||||
$cfg['Lang'] string
|
$cfg['Lang'] string
|
||||||
Force: always use this language (must be defined in the
|
Force: always use this language (must be defined in the
|
||||||
select_lang.inc.php3 script).
|
select_lang.inc.php script).
|
||||||
|
|
||||||
$cfg['DefaultCharset'] string
|
$cfg['DefaultCharset'] string
|
||||||
Default character set to use for recoding of MySQL queries.
|
Default character set to use for recoding of MySQL queries.
|
||||||
@@ -1057,7 +1058,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
|||||||
lineup.
|
lineup.
|
||||||
The HeaderFlipType can be set to 'css' or 'faked'. When using
|
The HeaderFlipType can be set to 'css' or 'faked'. When using
|
||||||
'css' the rotation of the header for horizontalflipped is done
|
'css' the rotation of the header for horizontalflipped is done
|
||||||
via CSS. If set to 'faked' PGP does the transformation for you,
|
via CSS. If set to 'faked' PHP does the transformation for you,
|
||||||
but of course this does not look as good as CSS.
|
but of course this does not look as good as CSS.
|
||||||
|
|
||||||
$cfg['DefaultPropDisplay'] string
|
$cfg['DefaultPropDisplay'] string
|
||||||
@@ -1340,14 +1341,14 @@ Transformations
|
|||||||
For a general overview of all available transformations and their
|
For a general overview of all available transformations and their
|
||||||
options, you can consult your
|
options, you can consult your
|
||||||
<www.your-host.com>/<your-install-dir>/libraries/transformations/overv
|
<www.your-host.com>/<your-install-dir>/libraries/transformations/overv
|
||||||
iew.php3 installation.
|
iew.php installation.
|
||||||
|
|
||||||
For a tutorial on how to effectively use transformations, see our Link
|
For a tutorial on how to effectively use transformations, see our Link
|
||||||
section on the official phpMyAdmin-homepage.
|
section on the official phpMyAdmin-homepage.
|
||||||
|
|
||||||
[2. Usage]
|
[2. Usage]
|
||||||
|
|
||||||
Go to your tbl_properties.inc.php3 page (i.e. reached through clicking
|
Go to your tbl_properties.inc.php page (i.e. reached through clicking
|
||||||
on the 'properties' link for a table). There click on "Change" (or
|
on the 'properties' link for a table). There click on "Change" (or
|
||||||
change icon) and there you will see three new fields at the end of the
|
change icon) and there you will see three new fields at the end of the
|
||||||
line. They are called 'MIME-type', 'Browser transformation' and
|
line. They are called 'MIME-type', 'Browser transformation' and
|
||||||
@@ -1409,13 +1410,13 @@ Transformations
|
|||||||
different mimetype they where built for, but pay attention to option
|
different mimetype they where built for, but pay attention to option
|
||||||
usage as well as what the transformation does to your field.
|
usage as well as what the transformation does to your field.
|
||||||
|
|
||||||
There is a basic file called 'global.inc.php3'. This function can be
|
There is a basic file called 'global.inc.php'. This function can be
|
||||||
included by any other transform function and provides some basic
|
included by any other transform function and provides some basic
|
||||||
functions.
|
functions.
|
||||||
|
|
||||||
There are 5 possible file names:
|
There are 5 possible file names:
|
||||||
1. A mimetype+subtype transform:
|
1. A mimetype+subtype transform:
|
||||||
[mimetype]_[subtype]__[transform].inc.php3
|
[mimetype]_[subtype]__[transform].inc.php
|
||||||
Please not that mimetype and subtype are separated via '_', which
|
Please not that mimetype and subtype are separated via '_', which
|
||||||
shall not be contained in their names. The transform
|
shall not be contained in their names. The transform
|
||||||
function/filename may contain only characters which cause no
|
function/filename may contain only characters which cause no
|
||||||
@@ -1424,10 +1425,10 @@ Transformations
|
|||||||
The transform function will the be called
|
The transform function will the be called
|
||||||
'PMA_transform_[mimetype]_[subtype]__[transform]()'.
|
'PMA_transform_[mimetype]_[subtype]__[transform]()'.
|
||||||
Example:
|
Example:
|
||||||
text_html__formatted.inc.php3
|
text_html__formatted.inc.php
|
||||||
PMA_transform_text_html__formatted()
|
PMA_transform_text_html__formatted()
|
||||||
2. A mimetype (w/o subtype) transform:
|
2. A mimetype (w/o subtype) transform:
|
||||||
[mimetype]__[transform].inc.php3
|
[mimetype]__[transform].inc.php
|
||||||
Please note that there are no single '_' characters. The transform
|
Please note that there are no single '_' characters. The transform
|
||||||
function/filename may contain only characters which cause no
|
function/filename may contain only characters which cause no
|
||||||
problems in the file system as well as the PHP function naming
|
problems in the file system as well as the PHP function naming
|
||||||
@@ -1435,28 +1436,28 @@ Transformations
|
|||||||
The transform function will the be called
|
The transform function will the be called
|
||||||
'PMA_transform_[mimetype]__[transform]()'.
|
'PMA_transform_[mimetype]__[transform]()'.
|
||||||
Example:
|
Example:
|
||||||
text__formatted.inc.php3
|
text__formatted.inc.php
|
||||||
PMA_transform_text__formatted()
|
PMA_transform_text__formatted()
|
||||||
3. A mimetype+subtype without specific transform function
|
3. A mimetype+subtype without specific transform function
|
||||||
[mimetype]_[subtype].inc.php3
|
[mimetype]_[subtype].inc.php
|
||||||
Please note that there are no '__' characters in the filename. Do
|
Please note that there are no '__' characters in the filename. Do
|
||||||
not use special characters in the filename causing problems with
|
not use special characters in the filename causing problems with
|
||||||
the file system.
|
the file system.
|
||||||
No transformation function is defined in the file itself.
|
No transformation function is defined in the file itself.
|
||||||
Example:
|
Example:
|
||||||
text_plain.inc.php3
|
text_plain.inc.php
|
||||||
(No function)
|
(No function)
|
||||||
4. A mimetype (w/o subtype) without specific transform function
|
4. A mimetype (w/o subtype) without specific transform function
|
||||||
[mimetype].inc.php3
|
[mimetype].inc.php
|
||||||
Please note that there are no '_' characters in the filename. Do
|
Please note that there are no '_' characters in the filename. Do
|
||||||
not use special characters in the filename causing problems with
|
not use special characters in the filename causing problems with
|
||||||
the file system.
|
the file system.
|
||||||
No transformation function is defined in the file itself.
|
No transformation function is defined in the file itself.
|
||||||
Example:
|
Example:
|
||||||
text.inc.php3
|
text.inc.php
|
||||||
(No function)
|
(No function)
|
||||||
5. A global transform function with no specific mimetype
|
5. A global transform function with no specific mimetype
|
||||||
global__[transform].inc.php3
|
global__[transform].inc.php
|
||||||
The transform function will the be called
|
The transform function will the be called
|
||||||
'PMA_transform_global__[transform]()'.
|
'PMA_transform_global__[transform]()'.
|
||||||
Example:
|
Example:
|
||||||
@@ -1474,7 +1475,7 @@ Transformations
|
|||||||
libraries/transformations/TEMPLATE_MIMETYPE for adding a mimetype
|
libraries/transformations/TEMPLATE_MIMETYPE for adding a mimetype
|
||||||
without a transform function. Also note the introduction of a function
|
without a transform function. Also note the introduction of a function
|
||||||
description in the language files. For each function a
|
description in the language files. For each function a
|
||||||
$strTransformation_[filename without .inc.php3] has to exist.
|
$strTransformation_[filename without .inc.php] has to exist.
|
||||||
|
|
||||||
You can use the template generator to generate new functions and
|
You can use the template generator to generate new functions and
|
||||||
entries in the language file.
|
entries in the language file.
|
||||||
@@ -1484,6 +1485,20 @@ Transformations
|
|||||||
empty mimetype please see
|
empty mimetype please see
|
||||||
libraries/transformations/template_generator_mimetype.sh.
|
libraries/transformations/template_generator_mimetype.sh.
|
||||||
|
|
||||||
|
A transform function always gets passed three variables:
|
||||||
|
1. $buffer - Contains the text inside of the column. This is the
|
||||||
|
text, you want to transform.
|
||||||
|
2. $options - Contains any user-passed options to a transform
|
||||||
|
function as an array.
|
||||||
|
3. $meta - Contains an object with field information to your column.
|
||||||
|
The data is drawn from the output of the mysql_fetch_field()
|
||||||
|
function. This means, all object properties described on the
|
||||||
|
manual page are available in this variable and can be used to
|
||||||
|
transform a field accordingly to unsigned/zerofill/not_null/...
|
||||||
|
properties.
|
||||||
|
The $meta->mimetype variable contains the original MIME-type of
|
||||||
|
the field (i.e. 'text/plain', 'image/jpeg' etc.)
|
||||||
|
|
||||||
FAQ - Frequently Asked Questions
|
FAQ - Frequently Asked Questions
|
||||||
|
|
||||||
Server - Configuration - Limitations - Multi-user - Browsers
|
Server - Configuration - Limitations - Multi-user - Browsers
|
||||||
@@ -1501,8 +1516,8 @@ FAQ - Frequently Asked Questions
|
|||||||
|
|
||||||
There are some known PHP bugs with output buffering and compression.
|
There are some known PHP bugs with output buffering and compression.
|
||||||
Try to set the $cfg['OBGzip'] directive to FALSE in your
|
Try to set the $cfg['OBGzip'] directive to FALSE in your
|
||||||
config.inc.php or .php3 file and the zlib.output_compression directive
|
config.inc.php file and the zlib.output_compression directive to Off
|
||||||
to Off in your php configuration file.
|
in your php configuration file.
|
||||||
Furthermore, we know about such problems connected to the release
|
Furthermore, we know about such problems connected to the release
|
||||||
candidates of PHP 4.2.0 (tested with PHP 4.2.0 RC1 to RC4) together
|
candidates of PHP 4.2.0 (tested with PHP 4.2.0 RC1 to RC4) together
|
||||||
with MS Internet Explorer. Please upgrade to the release version PHP
|
with MS Internet Explorer. Please upgrade to the release version PHP
|
||||||
@@ -1545,9 +1560,9 @@ FAQ - Frequently Asked Questions
|
|||||||
|
|
||||||
This seems to be a PWS bug. Filippo Simoncini found a workaround (at
|
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
|
this time there is no better fix): remove or comment the DOCTYPE
|
||||||
declarations (2 lines) from the scripts header.inc.php3,
|
declarations (2 lines) from the scripts header.inc.php,
|
||||||
header_printview.inc.php3, index.php3, left.php3 and
|
header_printview.inc.php, index.php, left.php and
|
||||||
libraries/common.lib.php3.
|
libraries/common.lib.php.
|
||||||
|
|
||||||
[1.7] How can I GZip or Bzip a dump or a CSV export. It does not seem to
|
[1.7] How can I GZip or Bzip a dump or a CSV export. It does not seem to
|
||||||
work.
|
work.
|
||||||
@@ -1734,10 +1749,10 @@ FAQ - Frequently Asked Questions
|
|||||||
should work.
|
should work.
|
||||||
|
|
||||||
[1.27] I get empty page when I want to view huge page (eg.
|
[1.27] I get empty page when I want to view huge page (eg.
|
||||||
db_details_structure.php3 with plenty of tables).
|
db_details_structure.php with plenty of tables).
|
||||||
|
|
||||||
This is a PHP bug that occur when GZIP output buffering enabled. If
|
This is a PHP bug that occur when GZIP output buffering enabled. If
|
||||||
you turn off it (by $cfg['OBGzip'] = FALSE in config.inc.php3), it
|
you turn off it (by $cfg['OBGzip'] = FALSE in config.inc.php), it
|
||||||
should work. This bug will be fixed in PHP 5.0.0.
|
should work. This bug will be fixed in PHP 5.0.0.
|
||||||
|
|
||||||
[1.28] My MySQL server sometimes refuses queries and returns the message
|
[1.28] My MySQL server sometimes refuses queries and returns the message
|
||||||
@@ -1778,7 +1793,7 @@ FAQ - Frequently Asked Questions
|
|||||||
[2.1] The error message "Warning: Cannot add header information - headers
|
[2.1] The error message "Warning: Cannot add header information - headers
|
||||||
already sent by ..." is displayed, what's the problem?
|
already sent by ..." is displayed, what's the problem?
|
||||||
|
|
||||||
Edit your config.inc.php or .php3 file and ensure there is nothing
|
Edit your config.inc.php or .php file and ensure there is nothing
|
||||||
(I.E. no blank lines, no spaces, no characters...) neither before the
|
(I.E. no blank lines, no spaces, no characters...) neither before the
|
||||||
<?php tag at the beginning, neither after the ?> tag at the end.
|
<?php tag at the beginning, neither after the ?> tag at the end.
|
||||||
|
|
||||||
@@ -1811,7 +1826,7 @@ FAQ - Frequently Asked Questions
|
|||||||
Assuming you are using PHP 3.0.10 or better, you can specify the
|
Assuming you are using PHP 3.0.10 or better, you can specify the
|
||||||
socket to use when you open the connection. To do this in
|
socket to use when you open the connection. To do this in
|
||||||
phpMyAdmin, you need to complete the socket information in the
|
phpMyAdmin, you need to complete the socket information in the
|
||||||
config.inc.php3.
|
config.inc.php.
|
||||||
For example: $cfg['Servers'][$i]['socket'] = '/tmp/mysql.sock';
|
For example: $cfg['Servers'][$i]['socket'] = '/tmp/mysql.sock';
|
||||||
Please also make sure that the permissions of this file allow to
|
Please also make sure that the permissions of this file allow to
|
||||||
be readable by your webserver (i.e. '0755').
|
be readable by your webserver (i.e. '0755').
|
||||||
@@ -1916,6 +1931,39 @@ FAQ - Frequently Asked Questions
|
|||||||
parse_url function. The workaround is to create a primary or unique
|
parse_url function. The workaround is to create a primary or unique
|
||||||
key.
|
key.
|
||||||
|
|
||||||
|
[3.8] I cannot use (clickable) HTML-forms in fields where I put a
|
||||||
|
MIME-Transformation onto!
|
||||||
|
|
||||||
|
Due to a surrounding form-container (for multi-row delete checkboxes),
|
||||||
|
no nested forms can be put inside the table where phpMyAdmin displays
|
||||||
|
the results. You can, however, use any form inside of a table if keep
|
||||||
|
the parent form-container with the target to tbl_row_delete.php and
|
||||||
|
just put your own input-elements inside. If you use a custom submit
|
||||||
|
input field, the form will submit itself to the displaying page again,
|
||||||
|
where you can validate the $HTTP_POST_VARS in a transformation. For a
|
||||||
|
tutorial on how to effectively use transformations, see our Link
|
||||||
|
section on the official phpMyAdmin-homepage.
|
||||||
|
|
||||||
|
[3.9] I get error messages when using "--sql_mode=ANSI" for the MySQL
|
||||||
|
server
|
||||||
|
|
||||||
|
When MySQL is running in ANSI-compatibility mode, there are some major
|
||||||
|
differences in how SQL is structured (see
|
||||||
|
http://www.mysql.com/doc/en/ANSI_mode.html). Most important of all,
|
||||||
|
the quote-character (") is interpreted as an identifier quote
|
||||||
|
character and not as a string quote character, which makes many
|
||||||
|
internal phpMyAdmin operations into invalid SQL statements. There is
|
||||||
|
no workaround to this behaviour. News to this item will be posted in
|
||||||
|
Bug report #816858
|
||||||
|
|
||||||
|
[3.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),
|
||||||
|
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
|
||||||
|
can use it for the Edit and Delete links.
|
||||||
|
|
||||||
[4. ISPs, multi-user installations ]
|
[4. ISPs, multi-user installations ]
|
||||||
|
|
||||||
[4.1] I'm an ISP. Can I setup one central copy of phpMyAdmin or do I need
|
[4.1] I'm an ISP. Can I setup one central copy of phpMyAdmin or do I need
|
||||||
@@ -1937,12 +1985,12 @@ FAQ - Frequently Asked Questions
|
|||||||
If other people have telnet access to your server, you should use
|
If other people have telnet access to your server, you should use
|
||||||
phpMyAdmin's HTTP authentication feature.
|
phpMyAdmin's HTTP authentication feature.
|
||||||
Suggestions:
|
Suggestions:
|
||||||
* Your config.inc.php3 file should be chmod 660.
|
* Your config.inc.php file should be chmod 660.
|
||||||
* All your phpMyAdmin files should be chown phpmy.apache, where
|
* All your phpMyAdmin files should be chown phpmy.apache, where
|
||||||
phpmy is a user whose password is only known to you, and apache is
|
phpmy is a user whose password is only known to you, and apache is
|
||||||
the group under which Apache runs.
|
the group under which Apache runs.
|
||||||
* You should use PHP safe mode, to protect from other users that try
|
* You should use PHP safe mode, to protect from other users that try
|
||||||
to include your config.inc.php3 in their scripts.
|
to include your config.inc.php in their scripts.
|
||||||
|
|
||||||
[4.3] I get errors about not being able to include a file in /lang or in
|
[4.3] I get errors about not being able to include a file in /lang or in
|
||||||
/libraries.
|
/libraries.
|
||||||
@@ -2123,7 +2171,9 @@ FAQ - Frequently Asked Questions
|
|||||||
|
|
||||||
Since version 2.2.3, you have a checkbox for each field that can be
|
Since version 2.2.3, you have a checkbox for each field that can be
|
||||||
null. Before 2.2.3, you had to enter "null", without the quotes, as
|
null. Before 2.2.3, you had to enter "null", without the quotes, as
|
||||||
the field's value.
|
the field's value. Since version 2.5.5, you have to use the checkbox
|
||||||
|
to get a real NULL value, so if you enter "NULL" this means you want a
|
||||||
|
literal NULL in the field, and not a NULL value (this works in PHP4).
|
||||||
|
|
||||||
[6.4] How can I backup my database or table?
|
[6.4] How can I backup my database or table?
|
||||||
|
|
||||||
@@ -2418,8 +2468,8 @@ FAQ - Frequently Asked Questions
|
|||||||
existing language, where do I start?
|
existing language, where do I start?
|
||||||
|
|
||||||
Always use the current CVS version of your language file. For a new
|
Always use the current CVS version of your language file. For a new
|
||||||
language, start from english-iso-8859-1.inc.php3. If you don't know
|
language, start from english-iso-8859-1.inc.php. If you don't know how
|
||||||
how to get the CVS version, please ask one of the developers.
|
to get the CVS version, please ask one of the developers.
|
||||||
Please note that we try not to use HTML entities like é in the
|
Please note that we try not to use HTML entities like é in the
|
||||||
translations, since we define the right character set in the file.
|
translations, since we define the right character set in the file.
|
||||||
With HTML entities, the text on JavaScript messages would not display
|
With HTML entities, the text on JavaScript messages would not display
|
||||||
@@ -2491,12 +2541,12 @@ Developers Information
|
|||||||
|
|
||||||
If you're planning to contribute source, please read the following
|
If you're planning to contribute source, please read the following
|
||||||
information:
|
information:
|
||||||
* All files include header.inc.php3 (layout),
|
* All files include header.inc.php (layout),
|
||||||
libraries/common.lib.php3 (common functions) and config.inc.php3.
|
libraries/common.lib.php (common functions) and config.inc.php.
|
||||||
All configuration data belongs in config.inc.php3. Please keep it
|
All configuration data belongs in config.inc.php. Please keep it
|
||||||
free from other code.
|
free from other code.
|
||||||
Commonly used functions should be added to
|
Commonly used functions should be added to
|
||||||
libraries/common.lib.php3 and more specific ones may be added
|
libraries/common.lib.php and more specific ones may be added
|
||||||
within a library stored into the libraries sub-directory.
|
within a library stored into the libraries sub-directory.
|
||||||
* Obviously, you're free to use whatever coding style you want. But
|
* Obviously, you're free to use whatever coding style you want. But
|
||||||
please try to keep your code as simple as possible: beginners are
|
please try to keep your code as simple as possible: beginners are
|
||||||
@@ -2505,10 +2555,10 @@ Developers Information
|
|||||||
compliant on one hand, they fit the PEAR coding standards on the
|
compliant on one hand, they fit the PEAR coding standards on the
|
||||||
other hand. Please pay attention to this.
|
other hand. Please pay attention to this.
|
||||||
* Please try to keep up the file-naming conventions. Table-related
|
* Please try to keep up the file-naming conventions. Table-related
|
||||||
stuff goes to tbl_*.php3, db-related code to db_*.php3,
|
stuff goes to tbl_*.php, db-related code to db_*.php,
|
||||||
server-related tools to server_*.php3 and so on.
|
server-related tools to server_*.php and so on.
|
||||||
* Please don't use verbose strings in your code, instead add the
|
* Please don't use verbose strings in your code, instead add the
|
||||||
string (at least) to english-iso-8859-1.inc.php3 and print() it
|
string (at least) to english-iso-8859-1.inc.php and print() it
|
||||||
out.
|
out.
|
||||||
* If you want to be really helpful, write an entry for the
|
* If you want to be really helpful, write an entry for the
|
||||||
ChangeLog.
|
ChangeLog.
|
||||||
|
@@ -5,25 +5,25 @@
|
|||||||
/**
|
/**
|
||||||
* Get the variables sent or posted to this script and displays the header
|
* Get the variables sent or posted to this script and displays the header
|
||||||
*/
|
*/
|
||||||
require('./libraries/grab_globals.lib.php3');
|
require('./libraries/grab_globals.lib.php');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a core script and starts output buffering work
|
* Gets a core script and starts output buffering work
|
||||||
*/
|
*/
|
||||||
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
|
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
|
||||||
include('./libraries/common.lib.php3');
|
include('./libraries/common.lib.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
PMA_checkParameters(array('db', 'table', 'field'));
|
PMA_checkParameters(array('db', 'table', 'field'));
|
||||||
|
|
||||||
require('./libraries/ob.lib.php3');
|
require('./libraries/ob.lib.php');
|
||||||
if ($cfg['OBGzip']) {
|
if ($cfg['OBGzip']) {
|
||||||
$ob_mode = PMA_outBufferModeGet();
|
$ob_mode = PMA_outBufferModeGet();
|
||||||
if ($ob_mode) {
|
if ($ob_mode) {
|
||||||
PMA_outBufferPre($ob_mode);
|
PMA_outBufferPre($ob_mode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
include('./libraries/header_http.inc.php3');
|
include('./libraries/header_http.inc.php');
|
||||||
$field = urldecode($field);
|
$field = urldecode($field);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -40,7 +40,7 @@ PMA_setFontSizes();
|
|||||||
<title>phpMyAdmin</title>
|
<title>phpMyAdmin</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
|
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
|
||||||
<base<?php if (!empty($cfg['PmaAbsoluteUri'])) echo ' href="' . $cfg['PmaAbsoluteUri'] . '"'; ?> />
|
<base<?php if (!empty($cfg['PmaAbsoluteUri'])) echo ' href="' . $cfg['PmaAbsoluteUri'] . '"'; ?> />
|
||||||
<link rel="stylesheet" type="text/css" href="./css/phpmyadmin.css.php3?lang=<?php echo $lang; ?>&js_frame=right" />
|
<link rel="stylesheet" type="text/css" href="./css/phpmyadmin.css.php?lang=<?php echo $lang; ?>&js_frame=right" />
|
||||||
<script src="libraries/functions.js" type="text/javascript" language="javascript"></script>
|
<script src="libraries/functions.js" type="text/javascript" language="javascript"></script>
|
||||||
<script type="text/javascript" language="javascript">
|
<script type="text/javascript" language="javascript">
|
||||||
self.focus();
|
self.focus();
|
||||||
@@ -58,8 +58,8 @@ PMA_setFontSizes();
|
|||||||
<body bgcolor="<?php echo $cfg['LeftBgColor']; ?>" style="margin-left: 5px; margin-top: 5px; margin-right: 5px; margin-bottom: 0px">
|
<body bgcolor="<?php echo $cfg['LeftBgColor']; ?>" style="margin-left: 5px; margin-top: 5px; margin-right: 5px; margin-bottom: 0px">
|
||||||
<?php
|
<?php
|
||||||
$per_page = 200;
|
$per_page = 200;
|
||||||
require('./libraries/relation.lib.php3'); // foreign keys
|
require('./libraries/relation.lib.php'); // foreign keys
|
||||||
require('./libraries/transformations.lib.php3'); // Transformations
|
require('./libraries/transformations.lib.php'); // Transformations
|
||||||
$cfgRelation = PMA_getRelationsParam();
|
$cfgRelation = PMA_getRelationsParam();
|
||||||
$foreigners = ($cfgRelation['relwork'] ? PMA_getForeigners($db, $table) : FALSE);
|
$foreigners = ($cfgRelation['relwork'] ? PMA_getForeigners($db, $table) : FALSE);
|
||||||
|
|
||||||
@@ -74,10 +74,10 @@ if (isset($foreign_navig) && $foreign_navig == $strShowAll) {
|
|||||||
unset($foreign_limit);
|
unset($foreign_limit);
|
||||||
}
|
}
|
||||||
|
|
||||||
include('./libraries/get_foreign.lib.php3');
|
include('./libraries/get_foreign.lib.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form action="browse_foreigners.php3" method="post">
|
<form action="browse_foreigners.php" method="post">
|
||||||
<?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
|
<?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
|
||||||
<input type="hidden" name="field" value="<?php echo urlencode($field); ?>" />
|
<input type="hidden" name="field" value="<?php echo urlencode($field); ?>" />
|
||||||
|
|
||||||
@@ -95,7 +95,7 @@ $nbTotalPage = @ceil($the_total / $session_max_rows);
|
|||||||
|
|
||||||
if ($the_total > $per_page) {
|
if ($the_total > $per_page) {
|
||||||
$gotopage = '<br />' . $GLOBALS['strPageNumber']
|
$gotopage = '<br />' . $GLOBALS['strPageNumber']
|
||||||
. '<select name="goToPage" onChange="goToUrl(this, \'browse_foreigners.php3?field=' . urlencode($field) . '&' . PMA_generate_common_url($db, $table) . '&\');">';
|
. '<select name="goToPage" onChange="goToUrl(this, \'browse_foreigners.php?field=' . urlencode($field) . '&' . PMA_generate_common_url($db, $table) . '&\');">';
|
||||||
if ($nbTotalPage < 200) {
|
if ($nbTotalPage < 200) {
|
||||||
$firstPage = 1;
|
$firstPage = 1;
|
||||||
$lastPage = $nbTotalPage;
|
$lastPage = $nbTotalPage;
|
@@ -6,10 +6,10 @@
|
|||||||
/**
|
/**
|
||||||
* Gets some core libraries
|
* Gets some core libraries
|
||||||
*/
|
*/
|
||||||
require('./libraries/grab_globals.lib.php3');
|
require('./libraries/grab_globals.lib.php');
|
||||||
require('./libraries/common.lib.php3');
|
require('./libraries/common.lib.php');
|
||||||
require('./db_details_common.php3');
|
require('./db_details_common.php');
|
||||||
require('./libraries/relation.lib.php3');
|
require('./libraries/relation.lib.php');
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -22,5 +22,5 @@ $cfgRelation = PMA_getRelationsParam(TRUE);
|
|||||||
* Displays the footer
|
* Displays the footer
|
||||||
*/
|
*/
|
||||||
echo "\n";
|
echo "\n";
|
||||||
require('./footer.inc.php3');
|
require('./footer.inc.php');
|
||||||
?>
|
?>
|
38
config.inc.php3 → config.inc.php
Executable file → Normal file
38
config.inc.php3 → config.inc.php
Executable file → Normal file
@@ -200,7 +200,7 @@ $cfg['UseDbSearch'] = TRUE; // whether to enable the "database sea
|
|||||||
$cfg['IgnoreMultiSubmitErrors'] = FALSE; // if set to true, PMA continues computing multiple-statement queries
|
$cfg['IgnoreMultiSubmitErrors'] = FALSE; // if set to true, PMA continues computing multiple-statement queries
|
||||||
// even if one of the queries failed
|
// even if one of the queries failed
|
||||||
$cfg['VerboseMultiSubmit'] = TRUE; // if set to true, PMA will show the affected rows of EACH statement on
|
$cfg['VerboseMultiSubmit'] = TRUE; // if set to true, PMA will show the affected rows of EACH statement on
|
||||||
// multiple-statement queries. See the read_dump.php3 file for hardcoded
|
// multiple-statement queries. See the read_dump.php file for hardcoded
|
||||||
// defaults on how many queries a statement may contain!
|
// defaults on how many queries a statement may contain!
|
||||||
$cfg['AllowArbitraryServer'] = FALSE; // allow login to any user entered server in cookie based auth
|
$cfg['AllowArbitraryServer'] = FALSE; // allow login to any user entered server in cookie based auth
|
||||||
|
|
||||||
@@ -268,26 +268,26 @@ $cfg['PropertiesIconic'] = TRUE; // Use icons instead of text for the tab
|
|||||||
$cfg['PropertiesNumColumns'] = 1; // How many columns should be used for table display of a database?
|
$cfg['PropertiesNumColumns'] = 1; // How many columns should be used for table display of a database?
|
||||||
// (a value larger than 1 results in some information being hidden)
|
// (a value larger than 1 results in some information being hidden)
|
||||||
|
|
||||||
$cfg['DefaultTabServer'] = 'main.php3';
|
$cfg['DefaultTabServer'] = 'main.php';
|
||||||
// Possible values:
|
// Possible values:
|
||||||
// 'main.php3' = the welcome page
|
// 'main.php' = the welcome page
|
||||||
// (recommended for multiuser setups)
|
// (recommended for multiuser setups)
|
||||||
// 'server_databases.php3' = list of databases
|
// 'server_databases.php' = list of databases
|
||||||
// 'server_status.php3' = runtime information
|
// 'server_status.php' = runtime information
|
||||||
// 'server_variables.php3' = MySQL server variables
|
// 'server_variables.php' = MySQL server variables
|
||||||
// 'server_privileges.php3' = user management
|
// 'server_privileges.php' = user management
|
||||||
// 'server_processlist.php3' = process list
|
// 'server_processlist.php' = process list
|
||||||
$cfg['DefaultTabDatabase'] = 'db_details_structure.php3';
|
$cfg['DefaultTabDatabase'] = 'db_details_structure.php';
|
||||||
// Possible values:
|
// Possible values:
|
||||||
// 'db_details_structure.php3' = tables list
|
// 'db_details_structure.php' = tables list
|
||||||
// 'db_details.php3' = sql form
|
// 'db_details.php' = sql form
|
||||||
// 'db_search.php3' = search query
|
// 'db_search.php' = search query
|
||||||
$cfg['DefaultTabTable'] = 'tbl_properties_structure.php3';
|
$cfg['DefaultTabTable'] = 'tbl_properties_structure.php';
|
||||||
// Possible values:
|
// Possible values:
|
||||||
// 'tbl_properties_structure.php3' = fields list
|
// 'tbl_properties_structure.php' = fields list
|
||||||
// 'tbl_properties.php3' = sql form
|
// 'tbl_properties.php' = sql form
|
||||||
// 'tbl_select.php3 = select page
|
// 'tbl_select.php = select page
|
||||||
// 'tbl_change.php3 = insert row page
|
// 'tbl_change.php = insert row page
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Export defaults
|
* Export defaults
|
||||||
@@ -370,7 +370,7 @@ $cfg['PDFDefaultPageSize'] = 'A4';
|
|||||||
$cfg['DefaultLang'] = 'en-iso-8859-1';
|
$cfg['DefaultLang'] = 'en-iso-8859-1';
|
||||||
|
|
||||||
// Force: always use this language - must be defined in
|
// Force: always use this language - must be defined in
|
||||||
// libraries/select_lang.lib.php3
|
// libraries/select_lang.lib.php
|
||||||
// $cfg['Lang'] = 'en-iso-8859-1';
|
// $cfg['Lang'] = 'en-iso-8859-1';
|
||||||
|
|
||||||
// Default charset to use for recoding of MySQL queries, does not take
|
// Default charset to use for recoding of MySQL queries, does not take
|
||||||
@@ -435,7 +435,7 @@ $cfg['AvailableCharsets'] = array(
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Loads language file
|
// Loads language file
|
||||||
require('./libraries/select_lang.lib.php3');
|
require('./libraries/select_lang.lib.php');
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
@@ -4,16 +4,16 @@
|
|||||||
|
|
||||||
chdir('..');
|
chdir('..');
|
||||||
$is_minimum_common = TRUE;
|
$is_minimum_common = TRUE;
|
||||||
require('./libraries/grab_globals.lib.php3');
|
require('./libraries/grab_globals.lib.php');
|
||||||
require('./libraries/common.lib.php3');
|
require('./libraries/common.lib.php');
|
||||||
|
|
||||||
// Gets the default font sizes
|
// Gets the default font sizes
|
||||||
// garvin: TODO: Should be optimized to not include the whole common.lib.php3 bunch
|
// garvin: TODO: Should be optimized to not include the whole common.lib.php bunch
|
||||||
// but only functions used to determine browser heritage.
|
// but only functions used to determine browser heritage.
|
||||||
PMA_setFontSizes();
|
PMA_setFontSizes();
|
||||||
|
|
||||||
$ctype = 'css';
|
$ctype = 'css';
|
||||||
require('./libraries/header_http.inc.php3');
|
require('./libraries/header_http.inc.php');
|
||||||
|
|
||||||
if (!isset($js_frame)) {
|
if (!isset($js_frame)) {
|
||||||
$js_frame = 'left';
|
$js_frame = 'left';
|
8
db_create.php3 → db_create.php
Executable file → Normal file
8
db_create.php3 → db_create.php
Executable file → Normal file
@@ -6,12 +6,12 @@
|
|||||||
/**
|
/**
|
||||||
* Gets some core libraries
|
* Gets some core libraries
|
||||||
*/
|
*/
|
||||||
require('./libraries/grab_globals.lib.php3');
|
require('./libraries/grab_globals.lib.php');
|
||||||
$js_to_run = 'functions.js';
|
$js_to_run = 'functions.js';
|
||||||
require('./header.inc.php3');
|
require('./header.inc.php');
|
||||||
|
|
||||||
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
|
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
|
||||||
include('./libraries/common.lib.php3');
|
include('./libraries/common.lib.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
PMA_checkParameters(array('db'));
|
PMA_checkParameters(array('db'));
|
||||||
@@ -19,7 +19,7 @@ PMA_checkParameters(array('db'));
|
|||||||
/**
|
/**
|
||||||
* Defines the url to return to in case of error in a sql statement
|
* Defines the url to return to in case of error in a sql statement
|
||||||
*/
|
*/
|
||||||
$err_url = 'main.php3?' . PMA_generate_common_url();
|
$err_url = 'main.php?' . PMA_generate_common_url();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ensures the db name is valid
|
* Ensures the db name is valid
|
@@ -6,16 +6,16 @@
|
|||||||
* Gets the variables sent or posted to this script, then displays headers
|
* Gets the variables sent or posted to this script, then displays headers
|
||||||
*/
|
*/
|
||||||
if (!isset($selected_tbl)) {
|
if (!isset($selected_tbl)) {
|
||||||
include('./libraries/grab_globals.lib.php3');
|
include('./libraries/grab_globals.lib.php');
|
||||||
include('./header.inc.php3');
|
include('./header.inc.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the relations settings
|
* Gets the relations settings
|
||||||
*/
|
*/
|
||||||
require('./libraries/relation.lib.php3');
|
require('./libraries/relation.lib.php');
|
||||||
require('./libraries/transformations.lib.php3');
|
require('./libraries/transformations.lib.php');
|
||||||
|
|
||||||
$cfgRelation = PMA_getRelationsParam();
|
$cfgRelation = PMA_getRelationsParam();
|
||||||
|
|
||||||
@@ -28,9 +28,9 @@ PMA_checkParameters(array('db'));
|
|||||||
* Defines the url to return to in case of error in a sql statement
|
* Defines the url to return to in case of error in a sql statement
|
||||||
*/
|
*/
|
||||||
if (isset($table)) {
|
if (isset($table)) {
|
||||||
$err_url = 'tbl_properties.php3?' . PMA_generate_common_url($db, $table);
|
$err_url = 'tbl_properties.php?' . PMA_generate_common_url($db, $table);
|
||||||
} else {
|
} else {
|
||||||
$err_url = 'db_details.php3?' . PMA_generate_common_url($db);
|
$err_url = 'db_details.php?' . PMA_generate_common_url($db);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($cfgRelation['commwork']) {
|
if ($cfgRelation['commwork']) {
|
||||||
@@ -333,5 +333,5 @@ function printPage()
|
|||||||
<?php
|
<?php
|
||||||
echo '<br /><br /> <input type="button" style="visibility: ; width: 100px; height: 25px" name="print" value="' . $strPrint . '" onclick="printPage()">' . "\n";
|
echo '<br /><br /> <input type="button" style="visibility: ; width: 100px; height: 25px" name="print" value="' . $strPrint . '" onclick="printPage()">' . "\n";
|
||||||
|
|
||||||
require('./footer.inc.php3');
|
require('./footer.inc.php');
|
||||||
?>
|
?>
|
20
db_details.php3 → db_details.php
Executable file → Normal file
20
db_details.php3 → db_details.php
Executable file → Normal file
@@ -6,15 +6,15 @@
|
|||||||
/**
|
/**
|
||||||
* Runs common work
|
* Runs common work
|
||||||
*/
|
*/
|
||||||
require('./db_details_common.php3');
|
require('./db_details_common.php');
|
||||||
$url_query .= '&goto=db_details.php3';
|
$url_query .= '&goto=db_details.php';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Database work
|
* Database work
|
||||||
*/
|
*/
|
||||||
if (isset($show_query) && $show_query == '1') {
|
if (isset($show_query) && $show_query == '1') {
|
||||||
// This script has been called by read_dump.php3
|
// This script has been called by read_dump.php
|
||||||
if (isset($sql_query_cpy)) {
|
if (isset($sql_query_cpy)) {
|
||||||
$query_to_display = $sql_query_cpy;
|
$query_to_display = $sql_query_cpy;
|
||||||
}
|
}
|
||||||
@@ -29,18 +29,18 @@ if (isset($show_query) && $show_query == '1') {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets informations about the database and, if it is empty, move to the
|
* Gets informations about the database and, if it is empty, move to the
|
||||||
* "db_details_structure.php3" script where table can be created
|
* "db_details_structure.php" script where table can be created
|
||||||
*/
|
*/
|
||||||
$sub_part = '';
|
$sub_part = '';
|
||||||
require('./db_details_db_info.php3');
|
require('./db_details_db_info.php');
|
||||||
if ($num_tables == 0 && empty($db_query_force)) {
|
if ($num_tables == 0 && empty($db_query_force)) {
|
||||||
$is_info = TRUE;
|
$is_info = TRUE;
|
||||||
include('./db_details_structure.php3');
|
include('./db_details_structure.php');
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
// loic1: defines wether file upload is available or not
|
// loic1: defines wether file upload is available or not
|
||||||
// (now defined in common.lib.php3)
|
// (now defined in common.lib.php)
|
||||||
|
|
||||||
$auto_sel = ($cfg['TextareaAutoSelect']
|
$auto_sel = ($cfg['TextareaAutoSelect']
|
||||||
// 2003-02-05 rabus: This causes big trouble with Opera 7 for
|
// 2003-02-05 rabus: This causes big trouble with Opera 7 for
|
||||||
@@ -51,12 +51,12 @@ $auto_sel = ($cfg['TextareaAutoSelect']
|
|||||||
?>
|
?>
|
||||||
<!-- Query box, sql file loader and bookmark support -->
|
<!-- Query box, sql file loader and bookmark support -->
|
||||||
<a name="querybox"></a>
|
<a name="querybox"></a>
|
||||||
<form method="post" action="read_dump.php3"<?php if ($is_upload) echo ' enctype="multipart/form-data"'; echo "\n"; ?>
|
<form method="post" action="read_dump.php"<?php if ($is_upload) echo ' enctype="multipart/form-data"'; echo "\n"; ?>
|
||||||
onsubmit="return checkSqlQuery(this)">
|
onsubmit="return checkSqlQuery(this)">
|
||||||
<input type="hidden" name="is_js_confirmed" value="0" />
|
<input type="hidden" name="is_js_confirmed" value="0" />
|
||||||
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
||||||
<input type="hidden" name="pos" value="0" />
|
<input type="hidden" name="pos" value="0" />
|
||||||
<input type="hidden" name="goto" value="db_details.php3" />
|
<input type="hidden" name="goto" value="db_details.php" />
|
||||||
<input type="hidden" name="zero_rows" value="<?php echo htmlspecialchars($strSuccess); ?>" />
|
<input type="hidden" name="zero_rows" value="<?php echo htmlspecialchars($strSuccess); ?>" />
|
||||||
<input type="hidden" name="prev_sql_query" value="<?php echo ((!empty($query_to_display)) ? htmlspecialchars($query_to_display) : ''); ?>" />
|
<input type="hidden" name="prev_sql_query" value="<?php echo ((!empty($query_to_display)) ? htmlspecialchars($query_to_display) : ''); ?>" />
|
||||||
<?php echo sprintf($strRunSQLQuery, htmlspecialchars($db)) . ' ' . PMA_showMySQLDocu('Reference', 'SELECT'); ?> :<br />
|
<?php echo sprintf($strRunSQLQuery, htmlspecialchars($db)) . ' ' . PMA_showMySQLDocu('Reference', 'SELECT'); ?> :<br />
|
||||||
@@ -195,5 +195,5 @@ if (function_exists('PMA_set_enc_form')) {
|
|||||||
* Displays the footer
|
* Displays the footer
|
||||||
*/
|
*/
|
||||||
echo "\n";
|
echo "\n";
|
||||||
require('./footer.inc.php3');
|
require('./footer.inc.php');
|
||||||
?>
|
?>
|
@@ -6,13 +6,13 @@
|
|||||||
* Gets some core libraries
|
* Gets some core libraries
|
||||||
*/
|
*/
|
||||||
if (!defined('PMA_GRAB_GLOBALS_INCLUDED')) {
|
if (!defined('PMA_GRAB_GLOBALS_INCLUDED')) {
|
||||||
include('./libraries/grab_globals.lib.php3');
|
include('./libraries/grab_globals.lib.php');
|
||||||
}
|
}
|
||||||
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
|
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
|
||||||
include('./libraries/common.lib.php3');
|
include('./libraries/common.lib.php');
|
||||||
}
|
}
|
||||||
if (!defined('PMA_BOOKMARK_LIB_INCLUDED')) {
|
if (!defined('PMA_BOOKMARK_LIB_INCLUDED')) {
|
||||||
include('./libraries/bookmark.lib.php3');
|
include('./libraries/bookmark.lib.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
PMA_checkParameters(array('db'));
|
PMA_checkParameters(array('db'));
|
||||||
@@ -20,7 +20,7 @@ PMA_checkParameters(array('db'));
|
|||||||
/**
|
/**
|
||||||
* Defines the urls to return to in case of error in a sql statement
|
* Defines the urls to return to in case of error in a sql statement
|
||||||
*/
|
*/
|
||||||
$err_url_0 = 'main.php3?' . PMA_generate_common_url();
|
$err_url_0 = 'main.php?' . PMA_generate_common_url();
|
||||||
$err_url = $cfg['DefaultTabDatabase'] . '?' . PMA_generate_common_url($db);
|
$err_url = $cfg['DefaultTabDatabase'] . '?' . PMA_generate_common_url($db);
|
||||||
|
|
||||||
|
|
||||||
@@ -34,21 +34,21 @@ if (!isset($is_db) || !$is_db) {
|
|||||||
$is_db = @PMA_mysql_select_db($db);
|
$is_db = @PMA_mysql_select_db($db);
|
||||||
}
|
}
|
||||||
if (empty($db) || !$is_db) {
|
if (empty($db) || !$is_db) {
|
||||||
header('Location: ' . $cfg['PmaAbsoluteUri'] . 'main.php3?' . PMA_generate_common_url('', '', '&') . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1');
|
header('Location: ' . $cfg['PmaAbsoluteUri'] . 'main.php?' . PMA_generate_common_url('', '', '&') . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1');
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
} // end if (ensures db exists)
|
} // end if (ensures db exists)
|
||||||
// Displays headers
|
// Displays headers
|
||||||
if (!isset($message)) {
|
if (!isset($message)) {
|
||||||
$js_to_run = 'functions.js';
|
$js_to_run = 'functions.js';
|
||||||
include('./header.inc.php3');
|
include('./header.inc.php');
|
||||||
// Reloads the navigation frame via JavaScript if required
|
// Reloads the navigation frame via JavaScript if required
|
||||||
if (isset($reload) && $reload) {
|
if (isset($reload) && $reload) {
|
||||||
echo "\n";
|
echo "\n";
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript" language="javascript1.2">
|
<script type="text/javascript" language="javascript1.2">
|
||||||
<!--
|
<!--
|
||||||
window.parent.frames['nav'].location.replace('./left.php3?<?php echo PMA_generate_common_url($db, '', '&'); ?>&hash=' + <?php echo (($cfg['QueryFrame'] && $cfg['QueryFrameJS']) ? 'window.parent.frames[\'queryframe\'].document.hashform.hash.value' : "'" . md5($cfg['PmaAbsoluteUri']) . "'"); ?>);
|
window.parent.frames['nav'].location.replace('./left.php?<?php echo PMA_generate_common_url($db, '', '&'); ?>&hash=' + <?php echo (($cfg['QueryFrame'] && $cfg['QueryFrameJS']) ? 'window.parent.frames[\'queryframe\'].document.hashform.hash.value' : "'" . md5($cfg['PmaAbsoluteUri']) . "'"); ?>);
|
||||||
//-->
|
//-->
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
@@ -6,7 +6,7 @@
|
|||||||
// Check parameters
|
// Check parameters
|
||||||
|
|
||||||
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
|
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
|
||||||
include('./libraries/common.lib.php3');
|
include('./libraries/common.lib.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
PMA_checkParameters(array('db'));
|
PMA_checkParameters(array('db'));
|
||||||
@@ -79,6 +79,6 @@ else {
|
|||||||
* Displays top menu links
|
* Displays top menu links
|
||||||
*/
|
*/
|
||||||
echo '<!-- Top menu links -->' . "\n";
|
echo '<!-- Top menu links -->' . "\n";
|
||||||
require('./db_details_links.php3');
|
require('./db_details_links.php');
|
||||||
|
|
||||||
?>
|
?>
|
@@ -7,9 +7,9 @@
|
|||||||
* Gets some core libraries
|
* Gets some core libraries
|
||||||
*/
|
*/
|
||||||
$sub_part = '_export';
|
$sub_part = '_export';
|
||||||
require('./db_details_common.php3');
|
require('./db_details_common.php');
|
||||||
$url_query .= '&goto=db_details_export.php3';
|
$url_query .= '&goto=db_details_export.php';
|
||||||
require('./db_details_db_info.php3');
|
require('./db_details_db_info.php');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays the form
|
* Displays the form
|
||||||
@@ -41,9 +41,9 @@ if ($num_tables > 1) {
|
|||||||
$multi_values .= "\n";
|
$multi_values .= "\n";
|
||||||
$multi_values .= '</select></div>';
|
$multi_values .= '</select></div>';
|
||||||
|
|
||||||
$checkall_url = 'db_details_export.php3?'
|
$checkall_url = 'db_details_export.php?'
|
||||||
. PMA_generate_common_url($db)
|
. PMA_generate_common_url($db)
|
||||||
. '&goto=db_details_export.php3';
|
. '&goto=db_details_export.php';
|
||||||
|
|
||||||
$multi_values .= '<br />
|
$multi_values .= '<br />
|
||||||
<a href="' . $checkall_url . '&selectall=1" onclick="setSelectOptions(\'dump\', \'table_select[]\', true); return false;">' . $strSelectAll . '</a>
|
<a href="' . $checkall_url . '&selectall=1" onclick="setSelectOptions(\'dump\', \'table_select[]\', true); return false;">' . $strSelectAll . '</a>
|
||||||
@@ -52,15 +52,15 @@ if ($num_tables > 1) {
|
|||||||
<br /><br />';
|
<br /><br />';
|
||||||
} elseif ($num_tables == 0) {
|
} elseif ($num_tables == 0) {
|
||||||
echo $strDatabaseNoTable;
|
echo $strDatabaseNoTable;
|
||||||
include('./footer.inc.php3');
|
include('./footer.inc.php');
|
||||||
exit;
|
exit;
|
||||||
} // end if
|
} // end if
|
||||||
|
|
||||||
$export_type = 'database';
|
$export_type = 'database';
|
||||||
require('./libraries/display_export.lib.php3');
|
require('./libraries/display_export.lib.php');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays the footer
|
* Displays the footer
|
||||||
*/
|
*/
|
||||||
require('./footer.inc.php3');
|
require('./footer.inc.php');
|
||||||
?>
|
?>
|
@@ -12,13 +12,13 @@
|
|||||||
* Get the values of the variables posted or sent to this script and display
|
* Get the values of the variables posted or sent to this script and display
|
||||||
* the headers
|
* the headers
|
||||||
*/
|
*/
|
||||||
require('./libraries/read_dump.lib.php3');
|
require('./libraries/read_dump.lib.php');
|
||||||
require('./libraries/grab_globals.lib.php3');
|
require('./libraries/grab_globals.lib.php');
|
||||||
require('./header.inc.php3');
|
require('./header.inc.php');
|
||||||
|
|
||||||
//require common added for string importing - Robbat2, 15 January 2003 9.34PM
|
//require common added for string importing - Robbat2, 15 January 2003 9.34PM
|
||||||
//all hardcoded strings converted by Robbat2, 15 January 2003 9.34PM
|
//all hardcoded strings converted by Robbat2, 15 January 2003 9.34PM
|
||||||
require('./libraries/common.lib.php3');
|
require('./libraries/common.lib.php');
|
||||||
|
|
||||||
// Check parameters
|
// Check parameters
|
||||||
PMA_checkParameters(array('db'));
|
PMA_checkParameters(array('db'));
|
||||||
@@ -155,7 +155,7 @@ if (isset($cfg['docSQLDir']) && !empty($cfg['docSQLDir'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get relation settings
|
// Get relation settings
|
||||||
include('./libraries/relation.lib.php3');
|
include('./libraries/relation.lib.php');
|
||||||
$cfgRelation = PMA_getRelationsParam();
|
$cfgRelation = PMA_getRelationsParam();
|
||||||
|
|
||||||
// Gets the query from a file if required
|
// Gets the query from a file if required
|
||||||
@@ -245,7 +245,7 @@ if (isset($cfg['docSQLDir']) && !empty($cfg['docSQLDir'])) {
|
|||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form method="post" action="db_details_importdocsql.php3" <?php if ($is_upload) echo ' enctype="multipart/form-data"'; ?>>
|
<form method="post" action="db_details_importdocsql.php" <?php if ($is_upload) echo ' enctype="multipart/form-data"'; ?>>
|
||||||
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
||||||
<input type="hidden" name="submit_show" value="true" />
|
<input type="hidden" name="submit_show" value="true" />
|
||||||
<input type="hidden" name="do" value="import" />
|
<input type="hidden" name="do" value="import" />
|
||||||
@@ -316,6 +316,6 @@ if (isset($cfg['docSQLDir']) && !empty($cfg['docSQLDir'])) {
|
|||||||
* Displays the footer
|
* Displays the footer
|
||||||
*/
|
*/
|
||||||
echo "\n";
|
echo "\n";
|
||||||
require('./footer.inc.php3');
|
require('./footer.inc.php');
|
||||||
|
|
||||||
?>
|
?>
|
@@ -23,9 +23,9 @@ if (empty($sub_part)) {
|
|||||||
*/
|
*/
|
||||||
// Export link if there is at least one table
|
// Export link if there is at least one table
|
||||||
if ($num_tables > 0) {
|
if ($num_tables > 0) {
|
||||||
$lnk3 = 'db_details_export.php3';
|
$lnk3 = 'db_details_export.php';
|
||||||
$arg3 = $url_query;
|
$arg3 = $url_query;
|
||||||
$lnk4 = 'db_search.php3';
|
$lnk4 = 'db_search.php';
|
||||||
$arg4 = $url_query;
|
$arg4 = $url_query;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -41,12 +41,12 @@ if (!$cfg['AllowUserDropDatabase']) {
|
|||||||
$cfg['AllowUserDropDatabase'] = (!PMA_mysql_error());
|
$cfg['AllowUserDropDatabase'] = (!PMA_mysql_error());
|
||||||
}
|
}
|
||||||
if ($cfg['AllowUserDropDatabase']) {
|
if ($cfg['AllowUserDropDatabase']) {
|
||||||
$lnk5 = 'sql.php3';
|
$lnk5 = 'sql.php';
|
||||||
$arg5 = $url_query . '&sql_query='
|
$arg5 = $url_query . '&sql_query='
|
||||||
. urlencode('DROP DATABASE ' . PMA_backquote($db))
|
. urlencode('DROP DATABASE ' . PMA_backquote($db))
|
||||||
. '&zero_rows='
|
. '&zero_rows='
|
||||||
. urlencode(sprintf($strDatabaseHasBeenDropped, htmlspecialchars(PMA_backquote($db))))
|
. urlencode(sprintf($strDatabaseHasBeenDropped, htmlspecialchars(PMA_backquote($db))))
|
||||||
. '&goto=main.php3&back=db_details' . $sub_part . '.php3&reload=1&purge=1';
|
. '&goto=main.php&back=db_details' . $sub_part . '.php&reload=1&purge=1';
|
||||||
$att5 = 'class="drop" '
|
$att5 = 'class="drop" '
|
||||||
. 'onclick="return confirmLink(this, \'DROP DATABASE ' . PMA_jsFormat($db) . '\')"';
|
. 'onclick="return confirmLink(this, \'DROP DATABASE ' . PMA_jsFormat($db) . '\')"';
|
||||||
}
|
}
|
||||||
@@ -67,11 +67,11 @@ if ($cfg['LightTabs']) {
|
|||||||
<td width="8"> </td>';
|
<td width="8"> </td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo PMA_printTab($strStructure, 'db_details_structure.php3', $url_query);
|
echo PMA_printTab($strStructure, 'db_details_structure.php', $url_query);
|
||||||
echo PMA_printTab($strSQL, 'db_details.php3', $url_query . '&db_query_force=1');
|
echo PMA_printTab($strSQL, 'db_details.php', $url_query . '&db_query_force=1');
|
||||||
echo PMA_printTab($strExport, $lnk3, $arg3);
|
echo PMA_printTab($strExport, $lnk3, $arg3);
|
||||||
echo PMA_printTab($strSearch, $lnk4, $arg4);
|
echo PMA_printTab($strSearch, $lnk4, $arg4);
|
||||||
echo PMA_printTab($strQBE, ($num_tables > 0) ? 'db_details_qbe.php3' : '', $url_query);
|
echo PMA_printTab($strQBE, ($num_tables > 0) ? 'db_details_qbe.php' : '', $url_query);
|
||||||
|
|
||||||
// Displays drop link
|
// Displays drop link
|
||||||
if ($lnk5) {
|
if ($lnk5) {
|
20
db_details_qbe.php3 → db_details_qbe.php
Executable file → Normal file
20
db_details_qbe.php3 → db_details_qbe.php
Executable file → Normal file
@@ -7,9 +7,9 @@
|
|||||||
* Get the values of the variables posted or sent to this script and display
|
* Get the values of the variables posted or sent to this script and display
|
||||||
* the headers
|
* the headers
|
||||||
*/
|
*/
|
||||||
require('./libraries/grab_globals.lib.php3');
|
require('./libraries/grab_globals.lib.php');
|
||||||
require('./libraries/common.lib.php3');
|
require('./libraries/common.lib.php');
|
||||||
require('./libraries/relation.lib.php3');
|
require('./libraries/relation.lib.php');
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -22,16 +22,16 @@ $cfgRelation = PMA_getRelationsParam();
|
|||||||
* A query has been submitted -> execute it, else display the headers
|
* A query has been submitted -> execute it, else display the headers
|
||||||
*/
|
*/
|
||||||
if (isset($submit_sql) && eregi('^SELECT', $encoded_sql_query)) {
|
if (isset($submit_sql) && eregi('^SELECT', $encoded_sql_query)) {
|
||||||
$goto = 'db_details.php3';
|
$goto = 'db_details.php';
|
||||||
$zero_rows = htmlspecialchars($strSuccess);
|
$zero_rows = htmlspecialchars($strSuccess);
|
||||||
$sql_query = urldecode($encoded_sql_query);
|
$sql_query = urldecode($encoded_sql_query);
|
||||||
include('./sql.php3');
|
include('./sql.php');
|
||||||
exit();
|
exit();
|
||||||
} else {
|
} else {
|
||||||
$sub_part = '_qbe';
|
$sub_part = '_qbe';
|
||||||
include('./db_details_common.php3');
|
include('./db_details_common.php');
|
||||||
$url_query .= '&goto=db_details_qbe.php3';
|
$url_query .= '&goto=db_details_qbe.php';
|
||||||
include('./db_details_db_info.php3');
|
include('./db_details_db_info.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($submit_sql) && !eregi('^SELECT', $encoded_sql_query)) {
|
if (isset($submit_sql) && !eregi('^SELECT', $encoded_sql_query)) {
|
||||||
@@ -170,7 +170,7 @@ $realwidth = $wid . 'ex';
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- Query by example form -->
|
<!-- Query by example form -->
|
||||||
<form action="db_details_qbe.php3" method="post">
|
<form action="db_details_qbe.php" method="post">
|
||||||
<table border="<?php echo $cfg['Border']; ?>">
|
<table border="<?php echo $cfg['Border']; ?>">
|
||||||
|
|
||||||
<!-- Fields row -->
|
<!-- Fields row -->
|
||||||
@@ -1098,5 +1098,5 @@ if (!empty($qry_orderby)) {
|
|||||||
/**
|
/**
|
||||||
* Displays the footer
|
* Displays the footer
|
||||||
*/
|
*/
|
||||||
require('./footer.inc.php3');
|
require('./footer.inc.php');
|
||||||
?>
|
?>
|
@@ -9,25 +9,25 @@
|
|||||||
*/
|
*/
|
||||||
if (empty($is_info)) {
|
if (empty($is_info)) {
|
||||||
if (!defined('PMA_GRAB_GLOBALS_INCLUDED')) {
|
if (!defined('PMA_GRAB_GLOBALS_INCLUDED')) {
|
||||||
include('./libraries/grab_globals.lib.php3');
|
include('./libraries/grab_globals.lib.php');
|
||||||
}
|
}
|
||||||
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
|
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
|
||||||
include('./libraries/common.lib.php3');
|
include('./libraries/common.lib.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Drops/deletes/etc. multiple tables if required
|
// Drops/deletes/etc. multiple tables if required
|
||||||
if ((!empty($submit_mult) && isset($selected_tbl))
|
if ((!empty($submit_mult) && isset($selected_tbl))
|
||||||
|| isset($mult_btn)) {
|
|| isset($mult_btn)) {
|
||||||
$action = 'db_details_structure.php3';
|
$action = 'db_details_structure.php';
|
||||||
$err_url = 'db_details_structure.php3?'. PMA_generate_common_url($db);
|
$err_url = 'db_details_structure.php?'. PMA_generate_common_url($db);
|
||||||
include('./mult_submits.inc.php3');
|
include('./mult_submits.inc.php');
|
||||||
}
|
}
|
||||||
include('./db_details_common.php3');
|
include('./db_details_common.php');
|
||||||
$url_query .= '&goto=db_details_structure.php3';
|
$url_query .= '&goto=db_details_structure.php';
|
||||||
|
|
||||||
// Gets the database structure
|
// Gets the database structure
|
||||||
$sub_part = '_structure';
|
$sub_part = '_structure';
|
||||||
include('./db_details_db_info.php3');
|
include('./db_details_db_info.php');
|
||||||
echo "\n";
|
echo "\n";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -82,7 +82,7 @@ function pma_TableHeader($alternate = FALSE) {
|
|||||||
/**
|
/**
|
||||||
* Settings for relations stuff
|
* Settings for relations stuff
|
||||||
*/
|
*/
|
||||||
require('./libraries/relation.lib.php3');
|
require('./libraries/relation.lib.php');
|
||||||
$cfgRelation = PMA_getRelationsParam();
|
$cfgRelation = PMA_getRelationsParam();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -190,7 +190,7 @@ else if (PMA_MYSQL_INT_VERSION >= 32303) {
|
|||||||
} // end if
|
} // end if
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<form method="post" action="db_details_structure.php3" name="tablesForm">
|
<form method="post" action="db_details_structure.php" name="tablesForm">
|
||||||
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@@ -251,11 +251,11 @@ else if (PMA_MYSQL_INT_VERSION >= 32303) {
|
|||||||
</td>
|
</td>
|
||||||
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
||||||
<?php
|
<?php
|
||||||
include('./libraries/bookmark.lib.php3');
|
include('./libraries/bookmark.lib.php');
|
||||||
$book_sql_query = PMA_queryBookmarks($db, $cfg['Bookmark'], '\'' . PMA_sqlAddslashes($table) . '\'', 'label');
|
$book_sql_query = PMA_queryBookmarks($db, $cfg['Bookmark'], '\'' . PMA_sqlAddslashes($table) . '\'', 'label');
|
||||||
|
|
||||||
if (!empty($sts_data['Rows'])) {
|
if (!empty($sts_data['Rows'])) {
|
||||||
echo '<a href="sql.php3?' . $tbl_url_query . '&sql_query='
|
echo '<a href="sql.php?' . $tbl_url_query . '&sql_query='
|
||||||
. (isset($book_sql_query) && $book_sql_query != FALSE ? urlencode($book_sql_query) : urlencode('SELECT * FROM ' . PMA_backquote($table)))
|
. (isset($book_sql_query) && $book_sql_query != FALSE ? urlencode($book_sql_query) : urlencode('SELECT * FROM ' . PMA_backquote($table)))
|
||||||
. '&pos=0">' . $titles['Browse'] . '</a>';
|
. '&pos=0">' . $titles['Browse'] . '</a>';
|
||||||
} else {
|
} else {
|
||||||
@@ -266,7 +266,7 @@ else if (PMA_MYSQL_INT_VERSION >= 32303) {
|
|||||||
<td bgcolor="<?php echo $bgcolor; ?>">
|
<td bgcolor="<?php echo $bgcolor; ?>">
|
||||||
<?php
|
<?php
|
||||||
if (!empty($sts_data['Rows'])) {
|
if (!empty($sts_data['Rows'])) {
|
||||||
echo '<a href="tbl_select.php3?' . $tbl_url_query . '">'
|
echo '<a href="tbl_select.php?' . $tbl_url_query . '">'
|
||||||
. $titles['Search'] . '</a>';
|
. $titles['Search'] . '</a>';
|
||||||
} else {
|
} else {
|
||||||
echo $titles['NoSearch'];
|
echo $titles['NoSearch'];
|
||||||
@@ -274,22 +274,22 @@ else if (PMA_MYSQL_INT_VERSION >= 32303) {
|
|||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
||||||
<a href="tbl_change.php3?<?php echo $tbl_url_query; ?>">
|
<a href="tbl_change.php?<?php echo $tbl_url_query; ?>">
|
||||||
<?php echo $titles['Insert']; ?></a>
|
<?php echo $titles['Insert']; ?></a>
|
||||||
</td>
|
</td>
|
||||||
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
||||||
<a href="tbl_properties_structure.php3?<?php echo $tbl_url_query; ?>">
|
<a href="tbl_properties_structure.php?<?php echo $tbl_url_query; ?>">
|
||||||
<?php echo $titles['Properties']; ?></a>
|
<?php echo $titles['Properties']; ?></a>
|
||||||
</td>
|
</td>
|
||||||
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
||||||
<a href="sql.php3?<?php echo $tbl_url_query; ?>&reload=1&purge=1&sql_query=<?php echo urlencode('DROP TABLE ' . PMA_backquote($table)); ?>&zero_rows=<?php echo urlencode(sprintf($strTableHasBeenDropped, htmlspecialchars($table))); ?>"
|
<a href="sql.php?<?php echo $tbl_url_query; ?>&reload=1&purge=1&sql_query=<?php echo urlencode('DROP TABLE ' . PMA_backquote($table)); ?>&zero_rows=<?php echo urlencode(sprintf($strTableHasBeenDropped, htmlspecialchars($table))); ?>"
|
||||||
onclick="return confirmLink(this, 'DROP TABLE <?php echo PMA_jsFormat($table); ?>')">
|
onclick="return confirmLink(this, 'DROP TABLE <?php echo PMA_jsFormat($table); ?>')">
|
||||||
<?php echo $titles['Drop']; ?></a>
|
<?php echo $titles['Drop']; ?></a>
|
||||||
</td>
|
</td>
|
||||||
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
||||||
<?php
|
<?php
|
||||||
if (!empty($sts_data['Rows'])) {
|
if (!empty($sts_data['Rows'])) {
|
||||||
echo '<a href="sql.php3?' . $tbl_url_query
|
echo '<a href="sql.php?' . $tbl_url_query
|
||||||
. '&sql_query=';
|
. '&sql_query=';
|
||||||
if (PMA_MYSQL_INT_VERSION >= 40000) {
|
if (PMA_MYSQL_INT_VERSION >= 40000) {
|
||||||
echo urlencode('TRUNCATE ' . PMA_backquote($table))
|
echo urlencode('TRUNCATE ' . PMA_backquote($table))
|
||||||
@@ -394,13 +394,13 @@ else if (PMA_MYSQL_INT_VERSION >= 32303) {
|
|||||||
?>
|
?>
|
||||||
<td align="right" bgcolor="<?php echo $bgcolor; ?>" nowrap="nowrap">
|
<td align="right" bgcolor="<?php echo $bgcolor; ?>" nowrap="nowrap">
|
||||||
|
|
||||||
<a href="tbl_properties_structure.php3?<?php echo $tbl_url_query; ?>#showusage"><?php echo $formated_size . ' ' . $unit; ?></a>
|
<a href="tbl_properties_structure.php?<?php echo $tbl_url_query; ?>#showusage"><?php echo $formated_size . ' ' . $unit; ?></a>
|
||||||
</td>
|
</td>
|
||||||
<td align="right" bgcolor="<?php echo $bgcolor; ?>" nowrap="nowrap">
|
<td align="right" bgcolor="<?php echo $bgcolor; ?>" nowrap="nowrap">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if (isset($formated_overhead)) {
|
if (isset($formated_overhead)) {
|
||||||
echo '<a href="tbl_properties_structure.php3?' . $tbl_url_query . '#showusage">' . $formated_overhead . ' ' . $overhead_unit . '</a>' . "\n";
|
echo '<a href="tbl_properties_structure.php?' . $tbl_url_query . '#showusage">' . $formated_overhead . ' ' . $overhead_unit . '</a>' . "\n";
|
||||||
unset($formated_overhead);
|
unset($formated_overhead);
|
||||||
$overhead_check .= "document.getElementById('checkbox_tbl_$i').checked = true;";
|
$overhead_check .= "document.getElementById('checkbox_tbl_$i').checked = true;";
|
||||||
} else {
|
} else {
|
||||||
@@ -469,7 +469,7 @@ else if (PMA_MYSQL_INT_VERSION >= 32303) {
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
// Check all tables url
|
// Check all tables url
|
||||||
$checkall_url = 'db_details_structure.php3?' . PMA_generate_common_url($db);
|
$checkall_url = 'db_details_structure.php?' . PMA_generate_common_url($db);
|
||||||
echo "\n";
|
echo "\n";
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -553,7 +553,7 @@ else {
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
echo "\n";
|
echo "\n";
|
||||||
?>
|
?>
|
||||||
<form action="db_details_structure.php3">
|
<form action="db_details_structure.php">
|
||||||
<?php PMA_generate_common_hidden_inputs($db); ?>
|
<?php PMA_generate_common_hidden_inputs($db); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@@ -601,22 +601,22 @@ else {
|
|||||||
<b> <label for="checkbox_tbl_<?php echo $i; ?>"><?php echo $table_name; ?></label> </b>
|
<b> <label for="checkbox_tbl_<?php echo $i; ?>"><?php echo $table_name; ?></label> </b>
|
||||||
</td>
|
</td>
|
||||||
<td bgcolor="<?php echo $bgcolor; ?>">
|
<td bgcolor="<?php echo $bgcolor; ?>">
|
||||||
<a href="sql.php3?<?php echo $tbl_url_query; ?>&sql_query=<?php echo urlencode('SELECT * FROM ' . PMA_backquote($table)); ?>&pos=0"><?php echo $strBrowse; ?></a>
|
<a href="sql.php?<?php echo $tbl_url_query; ?>&sql_query=<?php echo urlencode('SELECT * FROM ' . PMA_backquote($table)); ?>&pos=0"><?php echo $strBrowse; ?></a>
|
||||||
</td>
|
</td>
|
||||||
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
||||||
<a href="tbl_select.php3?<?php echo $tbl_url_query; ?>"><?php echo $titles['Search']; ?></a>
|
<a href="tbl_select.php?<?php echo $tbl_url_query; ?>"><?php echo $titles['Search']; ?></a>
|
||||||
</td>
|
</td>
|
||||||
<td bgcolor="<?php echo $bgcolor; ?>">
|
<td bgcolor="<?php echo $bgcolor; ?>">
|
||||||
<a href="tbl_change.php3?<?php echo $tbl_url_query; ?>"><?php echo $titles['Insert']; ?></a>
|
<a href="tbl_change.php?<?php echo $tbl_url_query; ?>"><?php echo $titles['Insert']; ?></a>
|
||||||
</td>
|
</td>
|
||||||
<td bgcolor="<?php echo $bgcolor; ?>">
|
<td bgcolor="<?php echo $bgcolor; ?>">
|
||||||
<a href="tbl_properties.php3?<?php echo $tbl_url_query; ?>"><?php echo $titles['Properties']; ?></a>
|
<a href="tbl_properties.php?<?php echo $tbl_url_query; ?>"><?php echo $titles['Properties']; ?></a>
|
||||||
</td>
|
</td>
|
||||||
<td bgcolor="<?php echo $bgcolor; ?>">
|
<td bgcolor="<?php echo $bgcolor; ?>">
|
||||||
<a href="sql.php3?<?php echo $tbl_url_query; ?>&reload=1&purge=1&sql_query=<?php echo urlencode('DROP TABLE ' . PMA_backquote($table)); ?>&zero_rows=<?php echo urlencode(sprintf($strTableHasBeenDropped, $table_name)); ?>"><?php echo $titles['Drop']; ?></a>
|
<a href="sql.php?<?php echo $tbl_url_query; ?>&reload=1&purge=1&sql_query=<?php echo urlencode('DROP TABLE ' . PMA_backquote($table)); ?>&zero_rows=<?php echo urlencode(sprintf($strTableHasBeenDropped, $table_name)); ?>"><?php echo $titles['Drop']; ?></a>
|
||||||
</td>
|
</td>
|
||||||
<td bgcolor="<?php echo $bgcolor; ?>">
|
<td bgcolor="<?php echo $bgcolor; ?>">
|
||||||
<a href="sql.php3?<?php echo $tbl_url_query; ?>&sql_query=<?php echo urlencode('DELETE FROM ' . PMA_backquote($table)); ?>&zero_rows=<?php echo urlencode(sprintf($strTableHasBeenEmptied, $table_name)); ?>"><?php echo $titles['Empty']; ?></a>
|
<a href="sql.php?<?php echo $tbl_url_query; ?>&sql_query=<?php echo urlencode('DELETE FROM ' . PMA_backquote($table)); ?>&zero_rows=<?php echo urlencode(sprintf($strTableHasBeenEmptied, $table_name)); ?>"><?php echo $titles['Empty']; ?></a>
|
||||||
</td>
|
</td>
|
||||||
<td align="right" bgcolor="<?php echo $bgcolor; ?>">
|
<td align="right" bgcolor="<?php echo $bgcolor; ?>">
|
||||||
<?php PMA_countRecords($db, $table); echo "\n"; ?>
|
<?php PMA_countRecords($db, $table); echo "\n"; ?>
|
||||||
@@ -628,7 +628,7 @@ else {
|
|||||||
echo "\n";
|
echo "\n";
|
||||||
|
|
||||||
// Check all tables url
|
// Check all tables url
|
||||||
$checkall_url = 'db_details_structure.php3?' . PMA_generate_common_url($db);
|
$checkall_url = 'db_details_structure.php?' . PMA_generate_common_url($db);
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="9">
|
<td colspan="9">
|
||||||
@@ -682,10 +682,10 @@ if ($num_tables > 0) {
|
|||||||
?>
|
?>
|
||||||
<!-- Printable view of a table -->
|
<!-- Printable view of a table -->
|
||||||
<li>
|
<li>
|
||||||
<div style="margin-bottom: 10px"><a href="db_printview.php3?<?php echo $url_query; ?>"><?php echo $strPrintView; ?></a></div>
|
<div style="margin-bottom: 10px"><a href="db_printview.php?<?php echo $url_query; ?>"><?php echo $strPrintView; ?></a></div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<div style="margin-bottom: 10px"><a href="./db_datadict.php3?<?php echo $url_query; ?>"><?php echo $strDataDict; ?></a></div>
|
<div style="margin-bottom: 10px"><a href="./db_datadict.php?<?php echo $url_query; ?>"><?php echo $strDataDict; ?></a></div>
|
||||||
</li>
|
</li>
|
||||||
<?php
|
<?php
|
||||||
} // end if
|
} // end if
|
||||||
@@ -696,7 +696,7 @@ if ($cfgRelation['commwork']) {
|
|||||||
?>
|
?>
|
||||||
<!-- Alter/Enter db-comment -->
|
<!-- Alter/Enter db-comment -->
|
||||||
<li>
|
<li>
|
||||||
<form method="post" action="db_details_structure.php3">
|
<form method="post" action="db_details_structure.php">
|
||||||
<?php echo $strDBComment; ?>
|
<?php echo $strDBComment; ?>
|
||||||
<input type="hidden" name="db_comment" value="true" />
|
<input type="hidden" name="db_comment" value="true" />
|
||||||
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
||||||
@@ -710,7 +710,7 @@ if ($cfgRelation['commwork']) {
|
|||||||
|
|
||||||
<!-- Create a new table -->
|
<!-- Create a new table -->
|
||||||
<li>
|
<li>
|
||||||
<form method="post" action="tbl_create.php3"
|
<form method="post" action="tbl_create.php"
|
||||||
onsubmit="return (emptyFormElements(this, 'table') && checkFormElementInRange(this, 'num_fields', 1))">
|
onsubmit="return (emptyFormElements(this, 'table') && checkFormElementInRange(this, 'num_fields', 1))">
|
||||||
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
||||||
<?php
|
<?php
|
||||||
@@ -731,7 +731,7 @@ if ($num_tables > 0
|
|||||||
echo ' <li>' . "\n";
|
echo ' <li>' . "\n";
|
||||||
echo ' <div style="margin-bottom: 10px">' . "\n";
|
echo ' <div style="margin-bottom: 10px">' . "\n";
|
||||||
echo ' <font color="red">' . $strError . '</font><br />' . "\n";
|
echo ' <font color="red">' . $strError . '</font><br />' . "\n";
|
||||||
$url_to_goto = '<a href="' . $cfg['PmaAbsoluteUri'] . 'chk_rel.php3?' . $url_query . '">';
|
$url_to_goto = '<a href="' . $cfg['PmaAbsoluteUri'] . 'chk_rel.php?' . $url_query . '">';
|
||||||
echo ' ' . sprintf($strRelationNotWorking, $url_to_goto, '</a>') . "\n";
|
echo ' ' . sprintf($strRelationNotWorking, $url_to_goto, '</a>') . "\n";
|
||||||
echo ' </div>' . "\n";
|
echo ' </div>' . "\n";
|
||||||
echo ' </li>' . "\n";
|
echo ' </li>' . "\n";
|
||||||
@@ -746,7 +746,7 @@ if ($cfgRelation['pdfwork'] && $num_tables > 0) {
|
|||||||
?>
|
?>
|
||||||
<!-- Work on PDF Pages -->
|
<!-- Work on PDF Pages -->
|
||||||
<li>
|
<li>
|
||||||
<div style="margin-bottom: 10px"><a href="pdf_pages.php3?<?php echo $takeaway; ?>"><?php echo $strEditPDFPages; ?></a></div>
|
<div style="margin-bottom: 10px"><a href="pdf_pages.php?<?php echo $takeaway; ?>"><?php echo $strEditPDFPages; ?></a></div>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<!-- PDF schema -->
|
<!-- PDF schema -->
|
||||||
@@ -760,7 +760,7 @@ if ($cfgRelation['pdfwork'] && $num_tables > 0) {
|
|||||||
echo "\n";
|
echo "\n";
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
<form method="post" action="pdf_schema.php3">
|
<form method="post" action="pdf_schema.php">
|
||||||
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
||||||
<?php echo $strDisplayPDF; ?> :<br />
|
<?php echo $strDisplayPDF; ?> :<br />
|
||||||
<?php echo $strPageNumber; ?>
|
<?php echo $strPageNumber; ?>
|
||||||
@@ -814,7 +814,7 @@ if ($num_tables > 0
|
|||||||
?>
|
?>
|
||||||
<!-- import docSQL files -->
|
<!-- import docSQL files -->
|
||||||
<li>
|
<li>
|
||||||
<div style="margin-bottom: 10px"><a href="db_details_importdocsql.php3?<?php echo $takeaway . '">' . $strImportDocSQL; ?></a></div>
|
<div style="margin-bottom: 10px"><a href="db_details_importdocsql.php?<?php echo $takeaway . '">' . $strImportDocSQL; ?></a></div>
|
||||||
</li>
|
</li>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
@@ -825,5 +825,5 @@ echo "\n" . '</ul>';
|
|||||||
* Displays the footer
|
* Displays the footer
|
||||||
*/
|
*/
|
||||||
echo "\n";
|
echo "\n";
|
||||||
require('./footer.inc.php3');
|
require('./footer.inc.php');
|
||||||
?>
|
?>
|
12
db_printview.php3 → db_printview.php
Executable file → Normal file
12
db_printview.php3 → db_printview.php
Executable file → Normal file
@@ -6,13 +6,13 @@
|
|||||||
/**
|
/**
|
||||||
* Gets the variables sent or posted to this script, then displays headers
|
* Gets the variables sent or posted to this script, then displays headers
|
||||||
*/
|
*/
|
||||||
require('./libraries/grab_globals.lib.php3');
|
require('./libraries/grab_globals.lib.php');
|
||||||
require('./header.inc.php3');
|
require('./header.inc.php');
|
||||||
|
|
||||||
// Check parameters
|
// Check parameters
|
||||||
|
|
||||||
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
|
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
|
||||||
include('./libraries/common.lib.php3');
|
include('./libraries/common.lib.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
PMA_checkParameters(array('db'));
|
PMA_checkParameters(array('db'));
|
||||||
@@ -20,12 +20,12 @@ PMA_checkParameters(array('db'));
|
|||||||
/**
|
/**
|
||||||
* Defines the url to return to in case of error in a sql statement
|
* Defines the url to return to in case of error in a sql statement
|
||||||
*/
|
*/
|
||||||
$err_url = 'db_details.php3?' . PMA_generate_common_url($db);
|
$err_url = 'db_details.php?' . PMA_generate_common_url($db);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Settings for relations stuff
|
* Settings for relations stuff
|
||||||
*/
|
*/
|
||||||
require('./libraries/relation.lib.php3');
|
require('./libraries/relation.lib.php');
|
||||||
$cfgRelation = PMA_getRelationsParam();
|
$cfgRelation = PMA_getRelationsParam();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -353,5 +353,5 @@ function printPage()
|
|||||||
<?php
|
<?php
|
||||||
echo '<br /><br /> <input type="button" style="visibility: ; width: 100px; height: 25px" name="print" value="' . $strPrint . '" onclick="printPage()">' . "\n";
|
echo '<br /><br /> <input type="button" style="visibility: ; width: 100px; height: 25px" name="print" value="' . $strPrint . '" onclick="printPage()">' . "\n";
|
||||||
|
|
||||||
require('./footer.inc.php3');
|
require('./footer.inc.php');
|
||||||
?>
|
?>
|
@@ -9,12 +9,12 @@
|
|||||||
/**
|
/**
|
||||||
* Gets some core libraries and send headers
|
* Gets some core libraries and send headers
|
||||||
*/
|
*/
|
||||||
require('./db_details_common.php3');
|
require('./db_details_common.php');
|
||||||
// If config variable $cfg['Usedbsearch'] is on FALSE : exit.
|
// If config variable $cfg['Usedbsearch'] is on FALSE : exit.
|
||||||
if (!$cfg['UseDbSearch']) {
|
if (!$cfg['UseDbSearch']) {
|
||||||
PMA_mysqlDie($strAccessDenied, '', FALSE, $err_url);
|
PMA_mysqlDie($strAccessDenied, '', FALSE, $err_url);
|
||||||
} // end if
|
} // end if
|
||||||
$url_query .= '&goto=db_search.php3';
|
$url_query .= '&goto=db_search.php';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -34,7 +34,7 @@ if ($num_tables) {
|
|||||||
* Displays top links
|
* Displays top links
|
||||||
*/
|
*/
|
||||||
$sub_part = '';
|
$sub_part = '';
|
||||||
require('./db_details_links.php3');
|
require('./db_details_links.php');
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -173,7 +173,7 @@ if (isset($submit_search)) {
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
$url_sql_query = PMA_generate_common_url($db)
|
$url_sql_query = PMA_generate_common_url($db)
|
||||||
. '&goto=db_details.php3'
|
. '&goto=db_details.php'
|
||||||
. '&pos=0'
|
. '&pos=0'
|
||||||
. '&is_js_confirmed=0';
|
. '&is_js_confirmed=0';
|
||||||
|
|
||||||
@@ -202,11 +202,11 @@ if (isset($submit_search)) {
|
|||||||
. ' <table><tr><td>' . sprintf($strNumSearchResultsInTable, $res_cnt, htmlspecialchars($onetable)) . "</td>\n";
|
. ' <table><tr><td>' . sprintf($strNumSearchResultsInTable, $res_cnt, htmlspecialchars($onetable)) . "</td>\n";
|
||||||
|
|
||||||
if ($res_cnt > 0) {
|
if ($res_cnt > 0) {
|
||||||
echo '<td>' . PMA_linkOrButton('sql.php3?' . $url_sql_query
|
echo '<td>' . PMA_linkOrButton('sql.php?' . $url_sql_query
|
||||||
. '&sql_query=' .urlencode($newsearchsqls['select_fields']),
|
. '&sql_query=' .urlencode($newsearchsqls['select_fields']),
|
||||||
$strBrowse, '') . "</td>\n";
|
$strBrowse, '') . "</td>\n";
|
||||||
|
|
||||||
echo '<td>' . PMA_linkOrButton('sql.php3?' . $url_sql_query
|
echo '<td>' . PMA_linkOrButton('sql.php?' . $url_sql_query
|
||||||
. '&sql_query=' .urlencode($newsearchsqls['delete']),
|
. '&sql_query=' .urlencode($newsearchsqls['delete']),
|
||||||
$strDelete, $newsearchsqls['delete']) . "</td>\n";
|
$strDelete, $newsearchsqls['delete']) . "</td>\n";
|
||||||
|
|
||||||
@@ -241,11 +241,11 @@ if (isset($submit_search)) {
|
|||||||
. ' <table><tr><td>' . sprintf($strNumSearchResultsInTable, $res_cnt, htmlspecialchars($table_select[$i])) . "</td>\n";
|
. ' <table><tr><td>' . sprintf($strNumSearchResultsInTable, $res_cnt, htmlspecialchars($table_select[$i])) . "</td>\n";
|
||||||
|
|
||||||
if ($res_cnt > 0) {
|
if ($res_cnt > 0) {
|
||||||
echo '<td>' . PMA_linkOrButton('sql.php3?' . $url_sql_query
|
echo '<td>' . PMA_linkOrButton('sql.php?' . $url_sql_query
|
||||||
. '&sql_query=' .urlencode($newsearchsqls['select_fields']),
|
. '&sql_query=' .urlencode($newsearchsqls['select_fields']),
|
||||||
$strBrowse, '') . "</td>\n";
|
$strBrowse, '') . "</td>\n";
|
||||||
|
|
||||||
echo '<td>' . PMA_linkOrButton('sql.php3?' . $url_sql_query
|
echo '<td>' . PMA_linkOrButton('sql.php?' . $url_sql_query
|
||||||
. '&sql_query=' .urlencode($newsearchsqls['delete']),
|
. '&sql_query=' .urlencode($newsearchsqls['delete']),
|
||||||
$strDelete, $newsearchsqls['delete']) . "</td>\n";
|
$strDelete, $newsearchsqls['delete']) . "</td>\n";
|
||||||
|
|
||||||
@@ -284,7 +284,7 @@ if (empty($search_option)) {
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<a name="db_search"></a>
|
<a name="db_search"></a>
|
||||||
<form method="post" action="db_search.php3" name="db_search">
|
<form method="post" action="db_search.php" name="db_search">
|
||||||
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
@@ -348,9 +348,9 @@ if ($num_tables > 1) {
|
|||||||
echo ' </select>' . "\n";
|
echo ' </select>' . "\n";
|
||||||
?>
|
?>
|
||||||
<br />
|
<br />
|
||||||
<a href="db_search.php3?<?php echo $url_query; ?>&selectall=1#db_search" onclick="setSelectOptions('db_search', 'table_select[]', true); return false;"><?php echo $strSelectAll; ?></a>
|
<a href="db_search.php?<?php echo $url_query; ?>&selectall=1#db_search" onclick="setSelectOptions('db_search', 'table_select[]', true); return false;"><?php echo $strSelectAll; ?></a>
|
||||||
/
|
/
|
||||||
<a href="db_search.php3?<?php echo $url_query; ?>&unselectall=1#db_search" onclick="setSelectOptions('db_search', 'table_select[]', false); return false;"><?php echo $strUnselectAll; ?></a>
|
<a href="db_search.php?<?php echo $url_query; ?>&unselectall=1#db_search" onclick="setSelectOptions('db_search', 'table_select[]', false); return false;"><?php echo $strUnselectAll; ?></a>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -379,5 +379,5 @@ echo"\n";
|
|||||||
* Displays the footer
|
* Displays the footer
|
||||||
*/
|
*/
|
||||||
echo "\n";
|
echo "\n";
|
||||||
require('./footer.inc.php3');
|
require('./footer.inc.php');
|
||||||
?>
|
?>
|
68
export.php3 → export.php
Executable file → Normal file
68
export.php3 → export.php
Executable file → Normal file
@@ -5,9 +5,9 @@
|
|||||||
/**
|
/**
|
||||||
* Get the variables sent or posted to this script and a core script
|
* Get the variables sent or posted to this script and a core script
|
||||||
*/
|
*/
|
||||||
require('./libraries/grab_globals.lib.php3');
|
require('./libraries/grab_globals.lib.php');
|
||||||
require('./libraries/common.lib.php3');
|
require('./libraries/common.lib.php');
|
||||||
require('./libraries/zip.lib.php3');
|
require('./libraries/zip.lib.php');
|
||||||
|
|
||||||
PMA_checkParameters(array('what'));
|
PMA_checkParameters(array('what'));
|
||||||
|
|
||||||
@@ -21,15 +21,15 @@ if ($what == 'excel') {
|
|||||||
/**
|
/**
|
||||||
* Defines the url to return to in case of error in a sql statement
|
* Defines the url to return to in case of error in a sql statement
|
||||||
*/
|
*/
|
||||||
require('./libraries/export/' . $type . '.php3');
|
require('./libraries/export/' . $type . '.php');
|
||||||
|
|
||||||
// Generate error url
|
// Generate error url
|
||||||
if ($export_type == 'server') {
|
if ($export_type == 'server') {
|
||||||
$err_url = 'server_export.php3?' . PMA_generate_common_url();
|
$err_url = 'server_export.php?' . PMA_generate_common_url();
|
||||||
} elseif ($export_type == 'database') {
|
} elseif ($export_type == 'database') {
|
||||||
$err_url = 'db_details_export.php3?' . PMA_generate_common_url($db);
|
$err_url = 'db_details_export.php?' . PMA_generate_common_url($db);
|
||||||
} else {
|
} else {
|
||||||
$err_url = 'tbl_properties_export.php3?' . PMA_generate_common_url($db, $table);
|
$err_url = 'tbl_properties_export.php?' . PMA_generate_common_url($db, $table);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -263,16 +263,16 @@ if ($save_on_server) {
|
|||||||
}
|
}
|
||||||
if (isset($message)) {
|
if (isset($message)) {
|
||||||
$js_to_run = 'functions.js';
|
$js_to_run = 'functions.js';
|
||||||
include('./header.inc.php3');
|
include('./header.inc.php');
|
||||||
if ($export_type == 'server') {
|
if ($export_type == 'server') {
|
||||||
$active_page = 'server_export.php3';
|
$active_page = 'server_export.php';
|
||||||
include('./server_export.php3');
|
include('./server_export.php');
|
||||||
} elseif ($export_type == 'database') {
|
} elseif ($export_type == 'database') {
|
||||||
$active_page = 'db_details_export.php3';
|
$active_page = 'db_details_export.php';
|
||||||
include('./db_details_export.php3');
|
include('./db_details_export.php');
|
||||||
} else {
|
} else {
|
||||||
$active_page = 'tbl_properties_export.php3';
|
$active_page = 'tbl_properties_export.php';
|
||||||
include('./tbl_properties_export.php3');
|
include('./tbl_properties_export.php');
|
||||||
}
|
}
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
@@ -299,7 +299,7 @@ if (!$save_on_server) {
|
|||||||
} else {
|
} else {
|
||||||
// HTML
|
// HTML
|
||||||
$backup_cfgServer = $cfg['Server'];
|
$backup_cfgServer = $cfg['Server'];
|
||||||
include('./header.inc.php3');
|
include('./header.inc.php');
|
||||||
$cfg['Server'] = $backup_cfgServer;
|
$cfg['Server'] = $backup_cfgServer;
|
||||||
unset($backup_cfgServer);
|
unset($backup_cfgServer);
|
||||||
echo '<div align="' . $cell_align_left . '">' . "\n";
|
echo '<div align="' . $cell_align_left . '">' . "\n";
|
||||||
@@ -314,16 +314,16 @@ if ($export_type == 'database') {
|
|||||||
if ($num_tables == 0) {
|
if ($num_tables == 0) {
|
||||||
$message = $strNoTablesFound;
|
$message = $strNoTablesFound;
|
||||||
$js_to_run = 'functions.js';
|
$js_to_run = 'functions.js';
|
||||||
include('./header.inc.php3');
|
include('./header.inc.php');
|
||||||
if ($export_type == 'server') {
|
if ($export_type == 'server') {
|
||||||
$active_page = 'server_export.php3';
|
$active_page = 'server_export.php';
|
||||||
include('./server_export.php3');
|
include('./server_export.php');
|
||||||
} elseif ($export_type == 'database') {
|
} elseif ($export_type == 'database') {
|
||||||
$active_page = 'db_details_export.php3';
|
$active_page = 'db_details_export.php';
|
||||||
include('./db_details_export.php3');
|
include('./db_details_export.php');
|
||||||
} else {
|
} else {
|
||||||
$active_page = 'tbl_properties_export.php3';
|
$active_page = 'tbl_properties_export.php';
|
||||||
include('./tbl_properties_export.php3');
|
include('./tbl_properties_export.php');
|
||||||
}
|
}
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
@@ -337,11 +337,11 @@ $do_relation = isset($GLOBALS[$what . '_relation']);
|
|||||||
$do_comments = isset($GLOBALS[$what . '_comments']);
|
$do_comments = isset($GLOBALS[$what . '_comments']);
|
||||||
$do_mime = isset($GLOBALS[$what . '_mime']);
|
$do_mime = isset($GLOBALS[$what . '_mime']);
|
||||||
if ($do_relation || $do_comments || $do_mime) {
|
if ($do_relation || $do_comments || $do_mime) {
|
||||||
require('./libraries/relation.lib.php3');
|
require('./libraries/relation.lib.php');
|
||||||
$cfgRelation = PMA_getRelationsParam();
|
$cfgRelation = PMA_getRelationsParam();
|
||||||
}
|
}
|
||||||
if ($do_mime) {
|
if ($do_mime) {
|
||||||
require('./libraries/transformations.lib.php3');
|
require('./libraries/transformations.lib.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Include dates in export?
|
// Include dates in export?
|
||||||
@@ -457,9 +457,9 @@ if (!empty($asfile)) {
|
|||||||
$dump_buffer = bzcompress($dump_buffer);
|
$dump_buffer = bzcompress($dump_buffer);
|
||||||
// nijel: eval in next line is because otherwise === causes syntax error on php3
|
// nijel: eval in next line is because otherwise === causes syntax error on php3
|
||||||
if (eval('return($dump_buffer === -8);')) {
|
if (eval('return($dump_buffer === -8);')) {
|
||||||
include('./header.inc.php3');
|
include('./header.inc.php');
|
||||||
echo sprintf($strBzError, '<a href="http://bugs.php.net/bug.php?id=17300" target="_blank">17300</a>');
|
echo sprintf($strBzError, '<a href="http://bugs.php.net/bug.php?id=17300" target="_blank">17300</a>');
|
||||||
include('./footer.inc.php3');
|
include('./footer.inc.php');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -483,16 +483,16 @@ if (!empty($asfile)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$js_to_run = 'functions.js';
|
$js_to_run = 'functions.js';
|
||||||
include('./header.inc.php3');
|
include('./header.inc.php');
|
||||||
if ($export_type == 'server') {
|
if ($export_type == 'server') {
|
||||||
$active_page = 'server_export.php3';
|
$active_page = 'server_export.php';
|
||||||
include('./server_export.php3');
|
include('./server_export.php');
|
||||||
} elseif ($export_type == 'database') {
|
} elseif ($export_type == 'database') {
|
||||||
$active_page = 'db_details_export.php3';
|
$active_page = 'db_details_export.php';
|
||||||
include('./db_details_export.php3');
|
include('./db_details_export.php');
|
||||||
} else {
|
} else {
|
||||||
$active_page = 'tbl_properties_export.php3';
|
$active_page = 'tbl_properties_export.php';
|
||||||
include('./tbl_properties_export.php3');
|
include('./tbl_properties_export.php');
|
||||||
}
|
}
|
||||||
exit();
|
exit();
|
||||||
} else {
|
} else {
|
||||||
@@ -509,6 +509,6 @@ else {
|
|||||||
echo ' </pre>' . "\n";
|
echo ' </pre>' . "\n";
|
||||||
echo '</div>' . "\n";
|
echo '</div>' . "\n";
|
||||||
echo "\n";
|
echo "\n";
|
||||||
include('./footer.inc.php3');
|
include('./footer.inc.php');
|
||||||
} // end if
|
} // end if
|
||||||
?>
|
?>
|
8
footer.inc.php3 → footer.inc.php
Executable file → Normal file
8
footer.inc.php3 → footer.inc.php
Executable file → Normal file
@@ -5,7 +5,7 @@
|
|||||||
// In this file you may add PHP or HTML statements that will be used to define
|
// In this file you may add PHP or HTML statements that will be used to define
|
||||||
// the footer for phpMyAdmin pages.
|
// the footer for phpMyAdmin pages.
|
||||||
|
|
||||||
require('./libraries/relation.lib.php3'); // for PMA_setHistory()
|
require('./libraries/relation.lib.php'); // for PMA_setHistory()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Query window
|
* Query window
|
||||||
@@ -84,7 +84,7 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
} else if (parent.frames.queryframe) {
|
} else if (parent.frames.queryframe) {
|
||||||
new_win_url = 'querywindow.php3?sql_query=' + sql_query + '&<?php echo PMA_generate_common_url(isset($db) ? addslashes($db) : '', isset($table) ? addslashes($table) : '', '&'); ?>';
|
new_win_url = 'querywindow.php?sql_query=' + sql_query + '&<?php echo PMA_generate_common_url(isset($db) ? addslashes($db) : '', isset($table) ? addslashes($table) : '', '&'); ?>';
|
||||||
parent.frames.queryframe.querywindow=window.open(new_win_url, '','toolbar=0,location=1,directories=0,status=1,menubar=0,scrollbars=yes,resizable=yes,width=<?php echo $cfg['QueryWindowWidth']; ?>,height=<?php echo $cfg['QueryWindowHeight']; ?>');
|
parent.frames.queryframe.querywindow=window.open(new_win_url, '','toolbar=0,location=1,directories=0,status=1,menubar=0,scrollbars=yes,resizable=yes,width=<?php echo $cfg['QueryWindowWidth']; ?>,height=<?php echo $cfg['QueryWindowHeight']; ?>');
|
||||||
|
|
||||||
if (!parent.frames.queryframe.querywindow.opener) {
|
if (!parent.frames.queryframe.querywindow.opener) {
|
||||||
@@ -137,10 +137,10 @@ if (isset($GLOBALS['cfg']['DBG']['enable'])
|
|||||||
&& isset($GLOBALS['cfg']['DBG']['profile']['enable'])
|
&& isset($GLOBALS['cfg']['DBG']['profile']['enable'])
|
||||||
&& $GLOBALS['cfg']['DBG']['profile']['enable']) {
|
&& $GLOBALS['cfg']['DBG']['profile']['enable']) {
|
||||||
//run the basic setup code first
|
//run the basic setup code first
|
||||||
include('./libraries/dbg/setup.php3');
|
include('./libraries/dbg/setup.php');
|
||||||
//if the setup ran fine, then do the profiling
|
//if the setup ran fine, then do the profiling
|
||||||
if (isset($GLOBALS['DBG']) && $GLOBALS['DBG']) {
|
if (isset($GLOBALS['DBG']) && $GLOBALS['DBG']) {
|
||||||
include('./libraries/dbg/profiling.php3');
|
include('./libraries/dbg/profiling.php');
|
||||||
dbg_dump_profiling_results();
|
dbg_dump_profiling_results();
|
||||||
}
|
}
|
||||||
}
|
}
|
12
header.inc.php3 → header.inc.php
Executable file → Normal file
12
header.inc.php3 → header.inc.php
Executable file → Normal file
@@ -9,10 +9,10 @@ if (!defined('PMA_HEADER_INC_INCLUDED')) {
|
|||||||
* Gets a core script and starts output buffering work
|
* Gets a core script and starts output buffering work
|
||||||
*/
|
*/
|
||||||
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
|
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
|
||||||
include('./libraries/common.lib.php3');
|
include('./libraries/common.lib.php');
|
||||||
}
|
}
|
||||||
if (!defined('PMA_OB_LIB_INCLUDED')) {
|
if (!defined('PMA_OB_LIB_INCLUDED')) {
|
||||||
include('./libraries/ob.lib.php3');
|
include('./libraries/ob.lib.php');
|
||||||
}
|
}
|
||||||
if ($GLOBALS['cfg']['OBGzip']) {
|
if ($GLOBALS['cfg']['OBGzip']) {
|
||||||
$GLOBALS['ob_mode'] = PMA_outBufferModeGet();
|
$GLOBALS['ob_mode'] = PMA_outBufferModeGet();
|
||||||
@@ -22,11 +22,11 @@ if (!defined('PMA_HEADER_INC_INCLUDED')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// garvin: For re-usability, moved http-headers and stylesheets
|
// garvin: For re-usability, moved http-headers and stylesheets
|
||||||
// to a seperate file. It can now be included by header.inc.php3,
|
// to a seperate file. It can now be included by header.inc.php,
|
||||||
// queryframe.php3, querywindow.php3.
|
// queryframe.php, querywindow.php.
|
||||||
|
|
||||||
include('./libraries/header_http.inc.php3');
|
include('./libraries/header_http.inc.php');
|
||||||
include('./libraries/header_meta_style.inc.php3');
|
include('./libraries/header_meta_style.inc.php');
|
||||||
|
|
||||||
$title = '';
|
$title = '';
|
||||||
if (isset($GLOBALS['db'])) {
|
if (isset($GLOBALS['db'])) {
|
@@ -5,8 +5,8 @@
|
|||||||
/**
|
/**
|
||||||
* Gets a core script and starts output buffering work
|
* Gets a core script and starts output buffering work
|
||||||
*/
|
*/
|
||||||
require('./libraries/common.lib.php3');
|
require('./libraries/common.lib.php');
|
||||||
require('./libraries/ob.lib.php3');
|
require('./libraries/ob.lib.php');
|
||||||
if ($cfg['OBGzip']) {
|
if ($cfg['OBGzip']) {
|
||||||
$ob_mode = PMA_outBufferModeGet();
|
$ob_mode = PMA_outBufferModeGet();
|
||||||
if ($ob_mode) {
|
if ($ob_mode) {
|
||||||
@@ -20,10 +20,10 @@ PMA_checkParameters(array('db', 'full_sql_query'));
|
|||||||
|
|
||||||
|
|
||||||
// garvin: For re-usability, moved http-headers
|
// garvin: For re-usability, moved http-headers
|
||||||
// to a seperate file. It can now be included by header.inc.php3,
|
// to a seperate file. It can now be included by header.inc.php,
|
||||||
// queryframe.php3, querywindow.php3.
|
// queryframe.php, querywindow.php.
|
||||||
|
|
||||||
include('./libraries/header_http.inc.php3');
|
include('./libraries/header_http.inc.php');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sends the beginning of the html page then returns to the calling script
|
* Sends the beginning of the html page then returns to the calling script
|
||||||
@@ -46,7 +46,7 @@ if ($text_dir == 'ltr') {
|
|||||||
<head>
|
<head>
|
||||||
<title><?php echo $strSQLResult; ?> - phpMyAdmin <?php echo PMA_VERSION ?></title>
|
<title><?php echo $strSQLResult; ?> - phpMyAdmin <?php echo PMA_VERSION ?></title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
|
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
|
||||||
<link rel="stylesheet" type="text/css" href="./css/phpmyadmin.css.php3?lang=<?php echo $lang; ?>&js_frame=print" />
|
<link rel="stylesheet" type="text/css" href="./css/phpmyadmin.css.php?lang=<?php echo $lang; ?>&js_frame=print" />
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
18
index.php3 → index.php
Executable file → Normal file
18
index.php3 → index.php
Executable file → Normal file
@@ -6,8 +6,8 @@
|
|||||||
/**
|
/**
|
||||||
* Gets core libraries and defines some variables
|
* Gets core libraries and defines some variables
|
||||||
*/
|
*/
|
||||||
require('./libraries/grab_globals.lib.php3');
|
require('./libraries/grab_globals.lib.php');
|
||||||
require('./libraries/common.lib.php3');
|
require('./libraries/common.lib.php');
|
||||||
|
|
||||||
// Gets the default font sizes
|
// Gets the default font sizes
|
||||||
PMA_setFontSizes();
|
PMA_setFontSizes();
|
||||||
@@ -44,7 +44,7 @@ $url_query = PMA_generate_common_url(isset($db) ? $db : '');
|
|||||||
|
|
||||||
header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
|
header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
|
||||||
|
|
||||||
require('./libraries/relation.lib.php3');
|
require('./libraries/relation.lib.php');
|
||||||
$cfgRelation = PMA_getRelationsParam();
|
$cfgRelation = PMA_getRelationsParam();
|
||||||
|
|
||||||
if ($cfg['QueryHistoryDB'] && $cfgRelation['historywork']) {
|
if ($cfg['QueryHistoryDB'] && $cfgRelation['historywork']) {
|
||||||
@@ -60,7 +60,7 @@ $phpmain_hash_js = time();
|
|||||||
<head>
|
<head>
|
||||||
<title>phpMyAdmin <?php echo PMA_VERSION; ?> - <?php echo $HTTP_HOST; ?></title>
|
<title>phpMyAdmin <?php echo PMA_VERSION; ?> - <?php echo $HTTP_HOST; ?></title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
|
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
|
||||||
<link rel="stylesheet" type="text/css" href="./css/phpmyadmin.css.php3?lang=<?php echo $lang; ?>&js_frame=right" />
|
<link rel="stylesheet" type="text/css" href="./css/phpmyadmin.css.php?lang=<?php echo $lang; ?>&js_frame=right" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@@ -71,8 +71,8 @@ if ($cfg['QueryFrame']) {
|
|||||||
echo '<!--' . "\n";
|
echo '<!--' . "\n";
|
||||||
echo ' document.writeln(\'<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*" border="1" frameborder="1" framespacing="0">\');' . "\n";
|
echo ' document.writeln(\'<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*" border="1" frameborder="1" framespacing="0">\');' . "\n";
|
||||||
echo ' document.writeln(\' <frameset rows="*, 50" framespacing="0" frameborder="0" border="0">\');' . "\n";
|
echo ' document.writeln(\' <frameset rows="*, 50" framespacing="0" frameborder="0" border="0">\');' . "\n";
|
||||||
echo ' document.writeln(\' <frame src="left.php3?' . $url_query . '&hash=' . $phpmain_hash . $phpmain_hash_js . '" name="nav" frameborder="0" />\');' . "\n";
|
echo ' document.writeln(\' <frame src="left.php?' . $url_query . '&hash=' . $phpmain_hash . $phpmain_hash_js . '" name="nav" frameborder="0" />\');' . "\n";
|
||||||
echo ' document.writeln(\' <frame src="queryframe.php3?' . $url_query . '&hash=' . $phpmain_hash . $phpmain_hash_js . '" name="queryframe" frameborder="0" scrolling="no" />\');' . "\n";
|
echo ' document.writeln(\' <frame src="queryframe.php?' . $url_query . '&hash=' . $phpmain_hash . $phpmain_hash_js . '" name="queryframe" frameborder="0" scrolling="no" />\');' . "\n";
|
||||||
echo ' document.writeln(\' </frameset>\');' . "\n";
|
echo ' document.writeln(\' </frameset>\');' . "\n";
|
||||||
echo ' document.writeln(\' <frame src="' . (empty($db) ? $cfg['DefaultTabServer'] : $cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' . $phpmain_hash . $phpmain_hash_js . '" border="0" frameborder="0" />\');' . "\n";
|
echo ' document.writeln(\' <frame src="' . (empty($db) ? $cfg['DefaultTabServer'] : $cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' . $phpmain_hash . $phpmain_hash_js . '" border="0" frameborder="0" />\');' . "\n";
|
||||||
echo ' document.writeln(\' <noframes>\');' . "\n";
|
echo ' document.writeln(\' <noframes>\');' . "\n";
|
||||||
@@ -89,15 +89,15 @@ if ($cfg['QueryFrame']) {
|
|||||||
|
|
||||||
echo '<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*" border="1" frameborder="1" framespacing="0">' . "\n";
|
echo '<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*" border="1" frameborder="1" framespacing="0">' . "\n";
|
||||||
echo ' <frameset rows="*, 50" framespacing="0" frameborder="0" border="0">' . "\n";
|
echo ' <frameset rows="*, 50" framespacing="0" frameborder="0" border="0">' . "\n";
|
||||||
echo ' <frame src="left.php3?' . $url_query . '&hash=' . $phpmain_hash . '" name="nav" frameborder="0" />' . "\n";
|
echo ' <frame src="left.php?' . $url_query . '&hash=' . $phpmain_hash . '" name="nav" frameborder="0" />' . "\n";
|
||||||
echo ' <frame src="queryframe.php3?' . $url_query . '&hash=' . $phpmain_hash . '" name="queryframe" frameborder="0" scrolling="no" />' . "\n";
|
echo ' <frame src="queryframe.php?' . $url_query . '&hash=' . $phpmain_hash . '" name="queryframe" frameborder="0" scrolling="no" />' . "\n";
|
||||||
echo ' </frameset>' . "\n";
|
echo ' </frameset>' . "\n";
|
||||||
echo ' <frame src="' . (empty($db) ? $cfg['DefaultTabServer'] : $cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' . $phpmain_hash . '" frameborder="0" />' . "\n";
|
echo ' <frame src="' . (empty($db) ? $cfg['DefaultTabServer'] : $cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' . $phpmain_hash . '" frameborder="0" />' . "\n";
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
echo '<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*" border="1" frameborder="1" framespacing="0">' . "\n";
|
echo '<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*" border="1" frameborder="1" framespacing="0">' . "\n";
|
||||||
echo ' <frame src="left.php3?' . $url_query . '&hash=' . $phpmain_hash . '" name="nav" frameborder="0" />' . "\n";
|
echo ' <frame src="left.php?' . $url_query . '&hash=' . $phpmain_hash . '" name="nav" frameborder="0" />' . "\n";
|
||||||
echo ' <frame src="' . (empty($db) ? $cfg['DefaultTabServer'] : $cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' . $phpmain_hash . '" frameborder="1" />' . "\n";
|
echo ' <frame src="' . (empty($db) ? $cfg['DefaultTabServer'] : $cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' . $phpmain_hash . '" frameborder="1" />' . "\n";
|
||||||
|
|
||||||
}
|
}
|
@@ -11,7 +11,7 @@ if [ $# -ne 2 ] ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for file in *.inc.php3
|
for file in *.inc.php
|
||||||
do
|
do
|
||||||
echo $file " "
|
echo $file " "
|
||||||
grep -v '?>' ${file} > ${file}.new
|
grep -v '?>' ${file} > ${file}.new
|
||||||
|
@@ -11,7 +11,7 @@ if [ $# -ne 1 ] ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for file in *.inc.php3
|
for file in *.inc.php
|
||||||
do
|
do
|
||||||
echo $file " "
|
echo $file " "
|
||||||
grep -v '?>' ${file} > ${file}.new
|
grep -v '?>' ${file} > ${file}.new
|
||||||
|
@@ -409,8 +409,8 @@ $strPdfInvalidTblName = 'The "%s" table does not exist!'; //to translate
|
|||||||
$strPdfNoTables = 'No tables'; //to translate
|
$strPdfNoTables = 'No tables'; //to translate
|
||||||
$strPhp = 'Create PHP Code'; //to translate
|
$strPhp = 'Create PHP Code'; //to translate
|
||||||
|
|
||||||
$strQBEDel = 'Del'; //to translate (used in tbl_qbe.php3)
|
$strQBEDel = 'Del'; //to translate (used in tbl_qbe.php)
|
||||||
$strQBEIns = 'Ins'; //to translate (used in tbl_qbe.php3)
|
$strQBEIns = 'Ins'; //to translate (used in tbl_qbe.php)
|
||||||
|
|
||||||
$strRelationNotWorking = 'The additional Features for working with linked Tables have been deactivated. To find out why click %shere%s.'; //to translate
|
$strRelationNotWorking = 'The additional Features for working with linked Tables have been deactivated. To find out why click %shere%s.'; //to translate
|
||||||
$strRelationView = 'Relation view'; //to translate
|
$strRelationView = 'Relation view'; //to translate
|
@@ -410,8 +410,8 @@ $strPdfInvalidTblName = 'The "%s" table does not exist!'; //to translate
|
|||||||
$strPdfNoTables = 'No tables'; //to translate
|
$strPdfNoTables = 'No tables'; //to translate
|
||||||
$strPhp = 'Create PHP Code'; //to translate
|
$strPhp = 'Create PHP Code'; //to translate
|
||||||
|
|
||||||
$strQBEDel = 'Del'; //to translate (used in tbl_qbe.php3)
|
$strQBEDel = 'Del'; //to translate (used in tbl_qbe.php)
|
||||||
$strQBEIns = 'Ins'; //to translate (used in tbl_qbe.php3)
|
$strQBEIns = 'Ins'; //to translate (used in tbl_qbe.php)
|
||||||
|
|
||||||
$strRelationNotWorking = 'The additional Features for working with linked Tables have been deactivated. To find out why click %shere%s.'; //to translate
|
$strRelationNotWorking = 'The additional Features for working with linked Tables have been deactivated. To find out why click %shere%s.'; //to translate
|
||||||
$strRelationView = 'Relation view'; //to translate
|
$strRelationView = 'Relation view'; //to translate
|
@@ -7,9 +7,9 @@
|
|||||||
# Robin Johnson <robbat2@users.sourceforge.net>
|
# Robin Johnson <robbat2@users.sourceforge.net>
|
||||||
# August 9, 2002
|
# August 9, 2002
|
||||||
##
|
##
|
||||||
MASTER="english-iso-8859-1.inc.php3"
|
MASTER="english-iso-8859-1.inc.php"
|
||||||
TMPDIR="tmp-check"
|
TMPDIR="tmp-check"
|
||||||
FILEPAT="*.inc.php3"
|
FILEPAT="*.inc.php"
|
||||||
STRINGSTRING='^[[:space:]]*\$[[:alnum:]_]*[[:blank:]]* ='
|
STRINGSTRING='^[[:space:]]*\$[[:alnum:]_]*[[:blank:]]* ='
|
||||||
|
|
||||||
rm -rf $TMPDIR
|
rm -rf $TMPDIR
|
||||||
|
@@ -27,7 +27,7 @@ $strAPrimaryKey = 'V tabulce %s byl vytvo
|
|||||||
$strAbortedClients = 'Přerušené';
|
$strAbortedClients = 'Přerušené';
|
||||||
$strAbsolutePathToDocSqlDir = 'Zadejte absolutní cestu docSQL adresáře na serveru';
|
$strAbsolutePathToDocSqlDir = 'Zadejte absolutní cestu docSQL adresáře na serveru';
|
||||||
$strAccessDenied = 'Přístup odepřen';
|
$strAccessDenied = 'Přístup odepřen';
|
||||||
$strAccessDeniedExplanation = 'phpMyAdmin se pokusil připojit k MySQL serveru, a ten odmítl připojení. Zkontrolujte jméno serveru, uživatelské jméno a heslo v souboru config.inc.php3 a ujistěte se, že jsou totožné s těmi co máte od administrátora MySQL serveru.';
|
$strAccessDeniedExplanation = 'phpMyAdmin se pokusil připojit k MySQL serveru, a ten odmítl připojení. Zkontrolujte jméno serveru, uživatelské jméno a heslo v souboru config.inc.php a ujistěte se, že jsou totožné s těmi co máte od administrátora MySQL serveru.';
|
||||||
$strAction = 'Akce';
|
$strAction = 'Akce';
|
||||||
$strAddAutoIncrement = 'Přidat hodnotu AUTO_INCREMENT';
|
$strAddAutoIncrement = 'Přidat hodnotu AUTO_INCREMENT';
|
||||||
$strAddDeleteColumn = 'Přidat/Smazat sloupec';
|
$strAddDeleteColumn = 'Přidat/Smazat sloupec';
|
@@ -28,7 +28,7 @@ $strAPrimaryKey = 'V tabulce %s byl vytvořen primární klíč';
|
|||||||
$strAbortedClients = 'Přerušené';
|
$strAbortedClients = 'Přerušené';
|
||||||
$strAbsolutePathToDocSqlDir = 'Zadejte absolutní cestu docSQL adresáře na serveru';
|
$strAbsolutePathToDocSqlDir = 'Zadejte absolutní cestu docSQL adresáře na serveru';
|
||||||
$strAccessDenied = 'Přístup odepřen';
|
$strAccessDenied = 'Přístup odepřen';
|
||||||
$strAccessDeniedExplanation = 'phpMyAdmin se pokusil připojit k MySQL serveru, a ten odmítl připojení. Zkontrolujte jméno serveru, uživatelské jméno a heslo v souboru config.inc.php3 a ujistěte se, že jsou totožné s těmi co máte od administrátora MySQL serveru.';
|
$strAccessDeniedExplanation = 'phpMyAdmin se pokusil připojit k MySQL serveru, a ten odmítl připojení. Zkontrolujte jméno serveru, uživatelské jméno a heslo v souboru config.inc.php a ujistěte se, že jsou totožné s těmi co máte od administrátora MySQL serveru.';
|
||||||
$strAction = 'Akce';
|
$strAction = 'Akce';
|
||||||
$strAddAutoIncrement = 'Přidat hodnotu AUTO_INCREMENT';
|
$strAddAutoIncrement = 'Přidat hodnotu AUTO_INCREMENT';
|
||||||
$strAddDeleteColumn = 'Přidat/Smazat sloupec';
|
$strAddDeleteColumn = 'Přidat/Smazat sloupec';
|
@@ -27,7 +27,7 @@ $strAPrimaryKey = 'V tabulce %s byl vytvo
|
|||||||
$strAbortedClients = 'Přerušené';
|
$strAbortedClients = 'Přerušené';
|
||||||
$strAbsolutePathToDocSqlDir = 'Zadejte absolutní cestu docSQL adresáře na serveru';
|
$strAbsolutePathToDocSqlDir = 'Zadejte absolutní cestu docSQL adresáře na serveru';
|
||||||
$strAccessDenied = 'Přístup odepřen';
|
$strAccessDenied = 'Přístup odepřen';
|
||||||
$strAccessDeniedExplanation = 'phpMyAdmin se pokusil připojit k MySQL serveru, a ten odmítl připojení. Zkontrolujte jméno serveru, uživatelské jméno a heslo v souboru config.inc.php3 a ujistěte se, že jsou totožné s těmi co máte od administrátora MySQL serveru.';
|
$strAccessDeniedExplanation = 'phpMyAdmin se pokusil připojit k MySQL serveru, a ten odmítl připojení. Zkontrolujte jméno serveru, uživatelské jméno a heslo v souboru config.inc.php a ujistěte se, že jsou totožné s těmi co máte od administrátora MySQL serveru.';
|
||||||
$strAction = 'Akce';
|
$strAction = 'Akce';
|
||||||
$strAddAutoIncrement = 'Přidat hodnotu AUTO_INCREMENT';
|
$strAddAutoIncrement = 'Přidat hodnotu AUTO_INCREMENT';
|
||||||
$strAddDeleteColumn = 'Přidat/Smazat sloupec';
|
$strAddDeleteColumn = 'Přidat/Smazat sloupec';
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user