Merge branch 'master' of git://phpmyadmin.git.sourceforge.net/gitroot/phpmyadmin/phpmyadmin

Conflicts:
	server_export.php
This commit is contained in:
lorilee
2010-07-26 13:42:42 -07:00
164 changed files with 70695 additions and 65467 deletions

View File

@@ -95,11 +95,15 @@ $Id$
now. now.
+ [validator] SQL validator works also with SOAP PHP extension. + [validator] SQL validator works also with SOAP PHP extension.
- [interface] Better formatting for SQL validator results. - [interface] Better formatting for SQL validator results.
- [doc] The linked-tables infrastructure is now called phpMyAdmin
configuration storage.
3.3.6.0 (not yet released) 3.3.6.0 (not yet released)
- bug #3031705 [core] Do not use CONCAT for DECIMAL fields. - bug #3033063 [core] Navi gets wrong db name
- bug #3031705 [core] Fix generating condition for real numbers by comparing
them to string.
3.3.5.0 (not yet released) 3.3.5.0 (2010-07-26)
- patch #2932113 [information_schema] Slow export when having lots of - patch #2932113 [information_schema] Slow export when having lots of
databases, thanks to Stéphane Pontier - shadow_walker databases, thanks to Stéphane Pontier - shadow_walker
- bug #3022705 [import] Import button does not work in Catalan when there - bug #3022705 [import] Import button does not work in Catalan when there
@@ -114,6 +118,7 @@ $Id$
- bug [export] CSV for MS Excel (Windows) should have semi-colon as separator - bug [export] CSV for MS Excel (Windows) should have semi-colon as separator
- [core] Update library PHPExcel to version 1.7.3c - [core] Update library PHPExcel to version 1.7.3c
- bug #2994885, bug #3029168 [import] Convert Excel column name correctly - bug #2994885, bug #3029168 [import] Convert Excel column name correctly
- bug [scripts] MySQL 5.5.5 does not accept TIMESTAMP(14) in create_tables.sql
3.3.4.0 (2010-06-28) 3.3.4.0 (2010-06-28)
- bug #2996161 [import] properly escape import value - bug #2996161 [import] properly escape import value

View File

@@ -170,7 +170,7 @@ vim: expandtab ts=4 sw=4 sts=4 tw=78
<ol><li><a href="#quick_install">Quick Install</a></li> <ol><li><a href="#quick_install">Quick Install</a></li>
<li><a href="#setup_script">Setup script usage</a></li> <li><a href="#setup_script">Setup script usage</a></li>
<li><a href="#linked-tables">Linked-tables infrastructure</a></li> <li><a href="#linked-tables">phpMyAdmin configuration storage</a></li>
<li><a href="#upgrading">Upgrading from an older version</a></li> <li><a href="#upgrading">Upgrading from an older version</a></li>
<li><a href="#authentication_modes">Using authentication modes</a></li> <li><a href="#authentication_modes">Using authentication modes</a></li>
</ol> </ol>
@@ -326,7 +326,7 @@ rm -rf config # remove not needed directory
</li> </li>
</ol> </ol>
<h3 id="linked-tables">Linked-tables infrastructure</h3> <h3 id="linked-tables">phpMyAdmin configuration storage</h3>
<p> For a whole set of new features (bookmarks, comments, <p> For a whole set of new features (bookmarks, comments,
<abbr title="structured query language">SQL</abbr>-history, <abbr title="structured query language">SQL</abbr>-history,
@@ -373,7 +373,7 @@ rm -rf config # remove not needed directory
is version-specific.</p> is version-specific.</p>
<p> If you have upgraded your MySQL server from a version previous to 4.1.2 to <p> If you have upgraded your MySQL server from a version previous to 4.1.2 to
version 4.1.2 or newer and if you use the pmadb/linked table infrastructure, version 4.1.2 or newer and if you use the phpMyAdmin configuration storage,
you should run the SQL script found in you should run the SQL script found in
<tt>scripts/upgrade_tables_mysql_4_1_2+.sql</tt>.</p> <tt>scripts/upgrade_tables_mysql_4_1_2+.sql</tt>.</p>
@@ -443,8 +443,9 @@ GRANT SELECT (Host, Db, User, Table_name, Table_priv, Column_priv)
GRANT SELECT, INSERT, UPDATE, DELETE ON &lt;pma_db&gt;.* TO 'pma'@'localhost'; GRANT SELECT, INSERT, UPDATE, DELETE ON &lt;pma_db&gt;.* TO 'pma'@'localhost';
</pre> </pre>
(this of course requires that your <a href="#linked-tables">linked-tables (this of course requires that your <a href="#linked-tables">phpMyAdmin
infrastructure</a> be set up).<br /></li> configuration storage</a> be set up).
<br /></li>
<li>Then each of the <i>true</i> users should be granted a set of privileges <li>Then each of the <i>true</i> users should be granted a set of privileges
on a set of particular databases. Normally you shouldn't give global on a set of particular databases. Normally you shouldn't give global
@@ -865,11 +866,11 @@ since this link provides funding for phpMyAdmin.
<dt id="pmadb"> <dt id="pmadb">
<span id="cfg_Servers_pmadb">$cfg['Servers'][$i]['pmadb']</span> string <span id="cfg_Servers_pmadb">$cfg['Servers'][$i]['pmadb']</span> string
</dt> </dt>
<dd>The name of the database containing the linked-tables infrastructure. <dd>The name of the database containing the phpMyAdmin configuration storage.
<br /><br /> <br /><br />
See the <a href="#linked-tables">Linked-tables infrastructure</a> See the <a href="#linked-tables">phpMyAdmin configuration storage</a>
section in this document to see the benefits of this infrastructure, section in this document to see the benefits of this feature,
and for a quick way of creating this database and the needed tables. and for a quick way of creating this database and the needed tables.
<br /><br /> <br /><br />
@@ -878,7 +879,7 @@ since this link provides funding for phpMyAdmin.
case, just put your current database name in case, just put your current database name in
<tt>$cfg['Servers'][$i]['pmadb']</tt>. For a multi-user installation, <tt>$cfg['Servers'][$i]['pmadb']</tt>. For a multi-user installation,
set this parameter to the name of your central database containing set this parameter to the name of your central database containing
the linked-tables infrastructure.</dd> the phpMyAdmin configuration storage.</dd>
<dt id="bookmark"> <dt id="bookmark">
<span id="cfg_Servers_bookmarktable">$cfg['Servers'][$i]['bookmarktable']</span> string <span id="cfg_Servers_bookmarktable">$cfg['Servers'][$i]['bookmarktable']</span> string
@@ -887,7 +888,7 @@ since this link provides funding for phpMyAdmin.
useful for queries you often run.<br /><br /> useful for queries you often run.<br /><br />
To allow the usage of this functionality: To allow the usage of this functionality:
<ul><li>set up <a href="#pmadb">pmadb</a> and the linked-tables infrastructure</li> <ul><li>set up <a href="#pmadb">pmadb</a> and the phpMyAdmin configuration storage</li>
<li>enter the table name in <li>enter the table name in
<tt>$cfg['Servers'][$i]['bookmarktable']</tt></li> <tt>$cfg['Servers'][$i]['bookmarktable']</tt></li>
</ul> </ul>
@@ -923,8 +924,8 @@ since this link provides funding for phpMyAdmin.
To allow the usage of this functionality: To allow the usage of this functionality:
<ul><li>set up <a href="#pmadb">pmadb</a> and the linked-tables <ul><li>set up <a href="#pmadb">pmadb</a> and the phpMyAdmin
infrastructure</li> configuration storage</li>
<li>put the relation table name in <li>put the relation table name in
<tt>$cfg['Servers'][$i]['relation']</tt></li> <tt>$cfg['Servers'][$i]['relation']</tt></li>
<li>now as normal user open phpMyAdmin and for each one of your <li>now as normal user open phpMyAdmin and for each one of your
@@ -948,7 +949,7 @@ since this link provides funding for phpMyAdmin.
cursor over the corresponding key.<br /> cursor over the corresponding key.<br />
This configuration variable will hold the name of this special This configuration variable will hold the name of this special
table. To allow the usage of this functionality: table. To allow the usage of this functionality:
<ul><li>set up <a href="#pmadb">pmadb</a> and the linked-tables infrastructure</li> <ul><li>set up <a href="#pmadb">pmadb</a> and the phpMyAdmin configuration storage</li>
<li>put the table name in <li>put the table name in
<tt>$cfg['Servers'][$i]['table_info']</tt> (e.g. <tt>$cfg['Servers'][$i]['table_info']</tt> (e.g.
'pma_table_info')</li> 'pma_table_info')</li>
@@ -975,8 +976,7 @@ since this link provides funding for phpMyAdmin.
To allow the usage of this functionality: To allow the usage of this functionality:
<ul><li>set up <a href="#pmadb">pmadb</a> and the linked-tables <ul><li>set up <a href="#pmadb">pmadb</a> and the phpMyAdmin configuration storage</li>
infrastructure</li>
<li>put the correct table names in <li>put the correct table names in
<tt>$cfg['Servers'][$i]['table_coords']</tt> and <tt>$cfg['Servers'][$i]['table_coords']</tt> and
<tt>$cfg['Servers'][$i]['pdf_pages']</tt></li> <tt>$cfg['Servers'][$i]['pdf_pages']</tt></li>
@@ -1007,8 +1007,7 @@ since this link provides funding for phpMyAdmin.
<br /><br /> <br /><br />
To allow the usage of this functionality: To allow the usage of this functionality:
<ul><li>set up <a href="#pmadb">pmadb</a> and the linked-tables <ul><li>set up <a href="#pmadb">pmadb</a> and the phpMyAdmin configuration storage</li>
infrastructure</li>
<li>put the table name in <li>put the table name in
<tt>$cfg['Servers'][$i]['column_info']</tt> (e.g. <tt>$cfg['Servers'][$i]['column_info']</tt> (e.g.
'pma_column_info')</li> 'pma_column_info')</li>
@@ -1048,8 +1047,7 @@ ALTER TABLE `pma_column_comments`
To allow the usage of this functionality: To allow the usage of this functionality:
<ul><li>set up <a href="#pmadb">pmadb</a> and the linked-tables <ul><li>set up <a href="#pmadb">pmadb</a> and the phpMyAdmin configuration storage</li>
infrastructure</li>
<li>put the table name in <tt>$cfg['Servers'][$i]['history']</tt> <li>put the table name in <tt>$cfg['Servers'][$i]['history']</tt>
(e.g. 'pma_history') (e.g. 'pma_history')
</li> </li>
@@ -1081,7 +1079,7 @@ ALTER TABLE `pma_column_comments`
To allow the usage of this functionality: To allow the usage of this functionality:
<ul> <ul>
<li>set up <a href="#pmadb">pmadb</a> and the linked-tables infrastructure</li> <li>set up <a href="#pmadb">pmadb</a> and the phpMyAdmin configuration storage</li>
<li>put the table name in <tt>$cfg['Servers'][$i]['tracking']</tt> (e.g. 'pma_tracking')</li> <li>put the table name in <tt>$cfg['Servers'][$i]['tracking']</tt> (e.g. 'pma_tracking')</li>
</ul> </ul>
</dd> </dd>
@@ -1152,8 +1150,7 @@ CREATE DATABASE,ALTER DATABASE,DROP DATABASE</pre>
To allow the usage of this functionality: To allow the usage of this functionality:
<ul><li>set up <a href="#pmadb">pmadb</a> and the linked-tables <ul><li>set up <a href="#pmadb">pmadb</a> and the phpMyAdmin configuration storage</li>
infrastructure</li>
<li>put the table name in <tt>$cfg['Servers'][$i]['designer_coords']</tt> (e.g. 'pma_designer_coords') <li>put the table name in <tt>$cfg['Servers'][$i]['designer_coords']</tt> (e.g. 'pma_designer_coords')
</li> </li>
</ul> </ul>

View File

@@ -22,7 +22,6 @@ require_once './libraries/header_http.inc.php';
* Displays the frame * Displays the frame
*/ */
$per_page = 200; $per_page = 200;
require_once './libraries/relation.lib.php'; // foreign keys
require_once './libraries/transformations.lib.php'; // Transformations require_once './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);

View File

@@ -9,9 +9,7 @@
* Gets some core libraries * Gets some core libraries
*/ */
require_once './libraries/common.inc.php'; require_once './libraries/common.inc.php';
$GLOBALS['js_include'][] = 'functions.js';
require_once './libraries/header.inc.php'; require_once './libraries/header.inc.php';
require_once './libraries/relation.lib.php';
/** /**
@@ -23,5 +21,5 @@ $cfgRelation = PMA_getRelationsParam(TRUE);
/** /**
* Displays the footer * Displays the footer
*/ */
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
?> ?>

View File

@@ -94,7 +94,7 @@ $cfg['SaveDir'] = '';
/** /**
* Default language to use, if not browser-defined or user-defined * Default language to use, if not browser-defined or user-defined
* (you find all languages in the file libraries/select_lang.lib.php) * (you find all languages in the locale folder)
* uncomment the desired line: * uncomment the desired line:
* default = 'en' * default = 'en'
*/ */

View File

@@ -9,7 +9,6 @@
* Gets some core libraries * Gets some core libraries
*/ */
require_once './libraries/common.inc.php'; require_once './libraries/common.inc.php';
$GLOBALS['js_include'][] = 'functions.js';
require_once './libraries/mysql_charsets.lib.php'; require_once './libraries/mysql_charsets.lib.php';
PMA_checkParameters(array('new_db')); PMA_checkParameters(array('new_db'));

View File

@@ -18,10 +18,10 @@ if (!isset($selected_tbl)) {
/** /**
* Gets the relations settings * Gets the relations settings
*/ */
require_once './libraries/relation.lib.php'; $cfgRelation = PMA_getRelationsParam();
require_once './libraries/transformations.lib.php'; require_once './libraries/transformations.lib.php';
$cfgRelation = PMA_getRelationsParam();
/** /**
* Check parameters * Check parameters
@@ -320,5 +320,5 @@ function printPage()
<?php <?php
echo '<br /><br /><input type="button" id="print" value="' . __('Print') . '" onclick="printPage()" />'; echo '<br /><br /><input type="button" id="print" value="' . __('Print') . '" onclick="printPage()" />';
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
?> ?>

View File

@@ -74,5 +74,5 @@ require_once './libraries/display_export.lib.php';
/** /**
* Displays the footer * Displays the footer
*/ */
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
?> ?>

View File

@@ -16,7 +16,6 @@
* requirements * requirements
*/ */
require_once './libraries/common.inc.php'; require_once './libraries/common.inc.php';
require_once './libraries/Table.class.php';
require_once './libraries/mysql_charsets.lib.php'; require_once './libraries/mysql_charsets.lib.php';
/** /**
@@ -262,7 +261,6 @@ if (strlen($db) && (! empty($db_rename) || ! empty($db_copy))) {
* Settings for relations stuff * Settings for relations stuff
*/ */
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam(); $cfgRelation = PMA_getRelationsParam();
/** /**
@@ -463,7 +461,7 @@ if (!$is_information_schema) {
if ($num_tables > 0 if ($num_tables > 0
&& !$cfgRelation['allworks'] && $cfg['PmaNoRelation_DisableWarning'] == false) { && !$cfgRelation['allworks'] && $cfg['PmaNoRelation_DisableWarning'] == false) {
$message = PMA_Message::notice(__('The additional features for working with linked tables have been deactivated. To find out why click %shere%s.')); $message = PMA_Message::notice(__('The phpMyAdmin configuration storage has been deactivated. To find out why click %shere%s.'));
$message->addParam('<a href="' . $cfg['PmaAbsoluteUri'] . 'chk_rel.php?' . $url_query . '">', false); $message->addParam('<a href="' . $cfg['PmaAbsoluteUri'] . 'chk_rel.php?' . $url_query . '">', false);
$message->addParam('</a>', false); $message->addParam('</a>', false);
/* Show error if user has configured something, notice elsewhere */ /* Show error if user has configured something, notice elsewhere */
@@ -502,5 +500,5 @@ if ($cfgRelation['pdfwork'] && $num_tables > 0) { ?>
/** /**
* Displays the footer * Displays the footer
*/ */
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
?> ?>

View File

@@ -26,7 +26,6 @@ $err_url = 'db_sql.php?' . PMA_generate_common_url($db);
/** /**
* Settings for relations stuff * Settings for relations stuff
*/ */
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam(); $cfgRelation = PMA_getRelationsParam();
/** /**
@@ -265,5 +264,5 @@ function printPage()
id="print" value="<?php echo __('Print'); ?>" onclick="printPage()" /> id="print" value="<?php echo __('Print'); ?>" onclick="printPage()" />
<?php <?php
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
?> ?>

View File

@@ -10,9 +10,6 @@
* requirements * requirements
*/ */
require_once './libraries/common.inc.php'; require_once './libraries/common.inc.php';
require_once './libraries/Table.class.php';
require_once './libraries/relation.lib.php';
/** /**
* Gets the relation settings * Gets the relation settings
@@ -99,7 +96,7 @@ $tbl_result = PMA_DBI_query('SHOW TABLES FROM ' . PMA_backquote($db) . ';',
$tbl_result_cnt = PMA_DBI_num_rows($tbl_result); $tbl_result_cnt = PMA_DBI_num_rows($tbl_result);
if (0 == $tbl_result_cnt) { if (0 == $tbl_result_cnt) {
PMA_Message::error(__('No tables found in database.'))->display(); PMA_Message::error(__('No tables found in database.'))->display();
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
exit; exit;
} }
@@ -940,5 +937,5 @@ if (!empty($qry_orderby)) {
/** /**
* Displays the footer * Displays the footer
*/ */
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
?> ?>

View File

@@ -350,5 +350,5 @@ $alter_select =
/** /**
* Displays the footer * Displays the footer
*/ */
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
?> ?>

View File

@@ -41,5 +41,5 @@ PMA_sqlQueryForm(true, false, isset($_REQUEST['delimiter']) ? $_REQUEST['delimit
/** /**
* Displays the footer * Displays the footer
*/ */
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
?> ?>

View File

@@ -9,7 +9,6 @@
* *
*/ */
require_once './libraries/common.inc.php'; require_once './libraries/common.inc.php';
require_once './libraries/Table.class.php';
$GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.custom.js'; $GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.custom.js';
@@ -56,7 +55,7 @@ if ($num_tables == 0) {
/** /**
* Displays the footer * Displays the footer
*/ */
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
exit; exit;
} }
@@ -157,7 +156,7 @@ foreach ($tables as $keyname => $each_table) {
$tableReductionCount++; $tableReductionCount++;
continue; continue;
} }
// Get valid statistics whatever is the table type // Get valid statistics whatever is the table type
$table_is_view = false; $table_is_view = false;
@@ -599,5 +598,5 @@ if (empty($db_is_information_schema)) {
/** /**
* Displays the footer * Displays the footer
*/ */
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
?> ?>

View File

@@ -8,7 +8,6 @@
* Run common work * Run common work
*/ */
require_once './libraries/common.inc.php'; require_once './libraries/common.inc.php';
require_once './libraries/Table.class.php';
require './libraries/db_common.inc.php'; require './libraries/db_common.inc.php';
$url_query .= '&amp;goto=tbl_tracking.php&amp;back=db_tracking.php'; $url_query .= '&amp;goto=tbl_tracking.php&amp;back=db_tracking.php';
@@ -17,9 +16,6 @@ $url_query .= '&amp;goto=tbl_tracking.php&amp;back=db_tracking.php';
$sub_part = '_structure'; $sub_part = '_structure';
require './libraries/db_info.inc.php'; require './libraries/db_info.inc.php';
// Get relation settings
require_once './libraries/relation.lib.php';
// Work to do? // Work to do?
// (here, do not use $_REQUEST['db] as it can be crafted) // (here, do not use $_REQUEST['db] as it can be crafted)
if (isset($_REQUEST['delete_tracking']) && isset($_REQUEST['table'])) { if (isset($_REQUEST['delete_tracking']) && isset($_REQUEST['table'])) {
@@ -38,7 +34,7 @@ if ($num_tables == 0 && count($data['ddlog']) == 0) {
} }
// Display the footer // Display the footer
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
exit; exit;
} }
@@ -202,5 +198,5 @@ if (count($data['ddlog']) > 0) {
/** /**
* Display the footer * Display the footer
*/ */
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
?> ?>

View File

@@ -9,7 +9,7 @@
/** /**
* Input sanitizing. * Input sanitizing.
*/ */
require_once './libraries/sanitizing.lib.php'; require './libraries/sanitizing.lib.php';
/* Get variables */ /* Get variables */
if (! empty($_REQUEST['lang']) && is_string($_REQUEST['lang'])) { if (! empty($_REQUEST['lang']) && is_string($_REQUEST['lang'])) {

View File

@@ -71,7 +71,6 @@ if ($_REQUEST['output_format'] == 'astext') {
// Does export require to be into file? // Does export require to be into file?
if (isset($export_list[$type]['force_file']) && ! $asfile) { if (isset($export_list[$type]['force_file']) && ! $asfile) {
$message = PMA_Message::error(__('Selected export type has to be saved in file!')); $message = PMA_Message::error(__('Selected export type has to be saved in file!'));
$GLOBALS['js_include'][] = 'functions.js';
require_once './libraries/header.inc.php'; require_once './libraries/header.inc.php';
if ($export_type == 'server') { if ($export_type == 'server') {
$active_page = 'server_export.php'; $active_page = 'server_export.php';
@@ -310,7 +309,6 @@ if ($save_on_server) {
} }
} }
if (isset($message)) { if (isset($message)) {
$GLOBALS['js_include'][] = 'functions.js';
require_once './libraries/header.inc.php'; require_once './libraries/header.inc.php';
if ($export_type == 'server') { if ($export_type == 'server') {
$active_page = 'server_export.php'; $active_page = 'server_export.php';
@@ -362,7 +360,6 @@ if (!$save_on_server) {
$num_tables = count($tables); $num_tables = count($tables);
if ($num_tables == 0) { if ($num_tables == 0) {
$message = PMA_Message::error(__('No tables found in database.')); $message = PMA_Message::error(__('No tables found in database.'));
$GLOBALS['js_include'][] = 'functions.js';
require_once './libraries/header.inc.php'; require_once './libraries/header.inc.php';
$active_page = 'db_export.php'; $active_page = 'db_export.php';
require './db_export.php'; require './db_export.php';
@@ -398,7 +395,6 @@ $do_relation = isset($GLOBALS[$what . '_relation']);
$do_comments = isset($GLOBALS[$what . '_include_comments']); $do_comments = isset($GLOBALS[$what . '_include_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_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam(); $cfgRelation = PMA_getRelationsParam();
} }
if ($do_mime) { if ($do_mime) {
@@ -577,7 +573,6 @@ if (!PMA_exportFooter()) {
// End of fake loop // End of fake loop
if ($save_on_server && isset($message)) { if ($save_on_server && isset($message)) {
$GLOBALS['js_include'][] = 'functions.js';
require_once './libraries/header.inc.php'; require_once './libraries/header.inc.php';
if ($export_type == 'server') { if ($export_type == 'server') {
$active_page = 'server_export.php'; $active_page = 'server_export.php';
@@ -634,7 +629,6 @@ if (!empty($asfile)) {
$message = new PMA_Message(__('Dump has been saved to file %s.'), PMA_Message::SUCCESS, $save_filename); $message = new PMA_Message(__('Dump has been saved to file %s.'), PMA_Message::SUCCESS, $save_filename);
} }
$GLOBALS['js_include'][] = 'functions.js';
require_once './libraries/header.inc.php'; require_once './libraries/header.inc.php';
if ($export_type == 'server') { if ($export_type == 'server') {
$active_page = 'server_export.php'; $active_page = 'server_export.php';
@@ -685,6 +679,6 @@ else {
//]]> //]]>
</script> </script>
<?php <?php
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
} // end if } // end if
?> ?>

View File

@@ -12,7 +12,6 @@
*/ */
require_once './libraries/common.inc.php'; require_once './libraries/common.inc.php';
//require_once './libraries/display_import_functions.lib.php'; //require_once './libraries/display_import_functions.lib.php';
$GLOBALS['js_include'][] = 'functions.js';
// reset import messages for ajax request // reset import messages for ajax request
$_SESSION['Import_message']['message'] = null; $_SESSION['Import_message']['message'] = null;

View File

@@ -32,11 +32,6 @@
*/ */
require_once './libraries/common.inc.php'; require_once './libraries/common.inc.php';
/**
* Includes the ThemeManager if it hasn't been included yet
*/
require_once './libraries/relation.lib.php';
// free the session file, for the other frames to be loaded // free the session file, for the other frames to be loaded
session_write_close(); session_write_close();

View File

@@ -9,7 +9,7 @@
/** /**
* Load vendor configuration. * Load vendor configuration.
*/ */
require_once('./libraries/vendor_config.php'); require('./libraries/vendor_config.php');
/** /**
* Configuration class * Configuration class

View File

@@ -781,7 +781,6 @@ class PMA_Table
$GLOBALS['sql_query'] .= "\n\n" . $sql_insert_data . ';'; $GLOBALS['sql_query'] .= "\n\n" . $sql_insert_data . ';';
} }
require_once './libraries/relation.lib.php';
$GLOBALS['cfgRelation'] = PMA_getRelationsParam(); $GLOBALS['cfgRelation'] = PMA_getRelationsParam();
// Drops old table if the user has requested to move it // Drops old table if the user has requested to move it
@@ -1057,7 +1056,6 @@ class PMA_Table
* @todo move into extra function PMA_Relation::renameTable($new_name, $old_name, $new_db, $old_db) * @todo move into extra function PMA_Relation::renameTable($new_name, $old_name, $new_db, $old_db)
*/ */
// Move old entries from comments to new table // Move old entries from comments to new table
require_once './libraries/relation.lib.php';
$GLOBALS['cfgRelation'] = PMA_getRelationsParam(); $GLOBALS['cfgRelation'] = PMA_getRelationsParam();
if ($GLOBALS['cfgRelation']['commwork']) { if ($GLOBALS['cfgRelation']['commwork']) {
$remove_query = ' $remove_query = '

View File

@@ -5,11 +5,6 @@
* @package phpMyAdmin * @package phpMyAdmin
*/ */
/**
*
*/
require_once './libraries/Theme.class.php';
/** /**
* *
* @package phpMyAdmin * @package phpMyAdmin

View File

@@ -5,11 +5,6 @@
* @package phpMyAdmin * @package phpMyAdmin
*/ */
/**
* Gets relation settings
*/
require_once './libraries/relation.lib.php';
/** /**
* This class tracks changes on databases, tables and views. * This class tracks changes on databases, tables and views.
* For more information please see phpMyAdmin/Documentation.html * For more information please see phpMyAdmin/Documentation.html

View File

@@ -131,7 +131,7 @@ function PMA_auth_fails()
echo '</tr>' . "\n"; echo '</tr>' . "\n";
} }
echo '</table>' . "\n"; echo '</table>' . "\n";
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
return TRUE; return TRUE;
} // end of the 'PMA_auth_fails()' function } // end of the 'PMA_auth_fails()' function

View File

@@ -172,13 +172,14 @@ function PMA_auth()
?> ?>
<script src="./js/jquery/jquery-1.4.2.js" type="text/javascript"></script> <script src="./js/jquery/jquery-1.4.2.js" type="text/javascript"></script>
<script src="./js/update-location.js" type="text/javascript"></script> <script src="./js/update-location.js" type="text/javascript"></script>
<?php <script type="text/javascript">
if ( false === $GLOBALS['cfg']['AllowThirdPartyFraming']) { //<![CDATA[
?> // show login form in top frame
<script src="./js/cross_framing_protection.js" type="text/javascript"></script> if (top != self) {
<?php window.top.location.href=location;
} }
?> //]]>
</script>
<script src="./js/functions.js" type="text/javascript"></script> <script src="./js/functions.js" type="text/javascript"></script>
</head> </head>

View File

@@ -6,11 +6,6 @@
* @package phpMyAdmin * @package phpMyAdmin
*/ */
/**
*
*/
require_once './libraries/relation.lib.php';
/** /**
* Defines the bookmark parameters for the current user * Defines the bookmark parameters for the current user
* *

View File

@@ -49,7 +49,7 @@ if (!defined('E_DEPRECATED')) {
/** /**
* the error handler * the error handler
*/ */
require_once './libraries/Error_Handler.class.php'; require './libraries/Error_Handler.class.php';
/** /**
* initialize the error handler * initialize the error handler
@@ -78,42 +78,42 @@ define('PHPMYADMIN', true);
/** /**
* core functions * core functions
*/ */
require_once './libraries/core.lib.php'; require './libraries/core.lib.php';
/** /**
* Input sanitizing * Input sanitizing
*/ */
require_once './libraries/sanitizing.lib.php'; require './libraries/sanitizing.lib.php';
/** /**
* the PMA_Theme class * the PMA_Theme class
*/ */
require_once './libraries/Theme.class.php'; require './libraries/Theme.class.php';
/** /**
* the PMA_Theme_Manager class * the PMA_Theme_Manager class
*/ */
require_once './libraries/Theme_Manager.class.php'; require './libraries/Theme_Manager.class.php';
/** /**
* the PMA_Config class * the PMA_Config class
*/ */
require_once './libraries/Config.class.php'; require './libraries/Config.class.php';
/** /**
* the relation lib, tracker needs it * the relation lib, tracker needs it
*/ */
require_once './libraries/relation.lib.php'; require './libraries/relation.lib.php';
/** /**
* the PMA_Tracker class * the PMA_Tracker class
*/ */
require_once './libraries/Tracker.class.php'; require './libraries/Tracker.class.php';
/** /**
* the PMA_Table class * the PMA_Table class
*/ */
require_once './libraries/Table.class.php'; require './libraries/Table.class.php';
if (!defined('PMA_MINIMUM_COMMON')) { if (!defined('PMA_MINIMUM_COMMON')) {
/** /**
@@ -334,7 +334,7 @@ if ($GLOBALS['PMA_Config']->get('ForceSSL')
/** /**
* include session handling after the globals, to prevent overwriting * include session handling after the globals, to prevent overwriting
*/ */
require_once './libraries/session.inc.php'; require './libraries/session.inc.php';
/** /**
* init some variables LABEL_variables_init * init some variables LABEL_variables_init
@@ -478,7 +478,7 @@ if (! PMA_isValid($_REQUEST['token']) || $_SESSION[' PMA_token '] != $_REQUEST['
/** /**
* Require cleanup functions * Require cleanup functions
*/ */
require_once './libraries/cleanup.lib.php'; require './libraries/cleanup.lib.php';
/** /**
* Do actual cleanup * Do actual cleanup
*/ */
@@ -557,7 +557,7 @@ $GLOBALS['footnotes'] = array();
/** /**
* lang detection is done here * lang detection is done here
*/ */
require_once './libraries/select_lang.lib.php'; require './libraries/select_lang.lib.php';
/** /**
* check for errors occurred while loading configuration * check for errors occurred while loading configuration

View File

@@ -666,7 +666,7 @@ function PMA_mysqlDie($error_message = '', $the_query = '',
* display footer and exit * display footer and exit
*/ */
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
} else { } else {
echo $error_msg_output; echo $error_msg_output;
} }
@@ -2105,7 +2105,8 @@ function PMA_getUniqueCondition($handle, $fields_cnt, $fields_meta, $row, $force
$condition .= 'IS NULL AND'; $condition .= 'IS NULL AND';
} else { } else {
// timestamp is numeric on some MySQL 4.1 // timestamp is numeric on some MySQL 4.1
if ($meta->numeric && $meta->type != 'timestamp') { // for real we use CONCAT above and it should compare to string
if ($meta->numeric && $meta->type != 'timestamp' && $meta->type != 'real') {
$condition .= '= ' . $row[$i] . ' AND'; $condition .= '= ' . $row[$i] . ' AND';
} elseif (($meta->type == 'blob' || $meta->type == 'string') } elseif (($meta->type == 'blob' || $meta->type == 'string')
// hexify only if this is a true not empty BLOB or a BINARY // hexify only if this is a true not empty BLOB or a BINARY

View File

@@ -1957,8 +1957,7 @@ $cfg['DefaultLang'] = 'en';
$cfg['DefaultConnectionCollation'] = 'utf8_general_ci'; $cfg['DefaultConnectionCollation'] = 'utf8_general_ci';
/** /**
* Force: always use this language - must be defined in * Force: always use this language
* libraries/select_lang.lib.php
* $cfg['Lang'] = 'en'; * $cfg['Lang'] = 'en';
* *
* Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and * Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and

View File

@@ -220,30 +220,7 @@ function PMA_securePath($path)
*/ */
function PMA_fatalError($error_message, $message_args = null) function PMA_fatalError($error_message, $message_args = null)
{ {
// it could happen PMA_fatalError() is called before language file is loaded /* Use format string if applicable */
if (! isset($GLOBALS['available_languages'])) {
$GLOBALS['cfg'] = array(
'DefaultLang' => 'en',
);
// Loads the language file
require_once './libraries/select_lang.lib.php';
// $text_dir is set in po file
if (isset($text_dir)) {
$GLOBALS['text_dir'] = $text_dir;
}
}
// $error_message could be a language string identifier: strString
if (substr($error_message, 0, 3) === 'str') {
if (isset($$error_message)) {
$error_message = $$error_message;
} elseif (isset($GLOBALS[$error_message])) {
$error_message = $GLOBALS[$error_message];
}
}
if (is_string($message_args)) { if (is_string($message_args)) {
$error_message = sprintf($error_message, $message_args); $error_message = sprintf($error_message, $message_args);
} elseif (is_array($message_args)) { } elseif (is_array($message_args)) {
@@ -316,7 +293,7 @@ function PMA_getTableCount($db)
$num_tables--; $num_tables--;
} }
} }
PMA_DBI_free_result($tables); PMA_DBI_free_result($tables);
} else { } else {
$num_tables = 0; $num_tables = 0;

View File

@@ -237,8 +237,6 @@ function PMA_usort_comparison_callback($a, $b)
function PMA_DBI_get_tables_full($database, $table = false, $tbl_is_group = false, $link = null, function PMA_DBI_get_tables_full($database, $table = false, $tbl_is_group = false, $link = null,
$limit_offset = 0, $limit_count = false, $sort_by = 'Name', $sort_order = 'ASC') $limit_offset = 0, $limit_count = false, $sort_by = 'Name', $sort_order = 'ASC')
{ {
require_once './libraries/Table.class.php';
if (true === $limit_count) { if (true === $limit_count) {
$limit_count = $GLOBALS['cfg']['MaxTableList']; $limit_count = $GLOBALS['cfg']['MaxTableList'];
} }

View File

@@ -65,7 +65,6 @@ if (isset($submitcollation) && !empty($db_collation)) {
unset($db_charset, $db_collation); unset($db_charset, $db_collation);
} }
$GLOBALS['js_include'][] = 'functions.js';
require_once './libraries/header.inc.php'; require_once './libraries/header.inc.php';
/** /**

View File

@@ -13,7 +13,6 @@ if (! defined('PHPMYADMIN')) {
*/ */
require_once './libraries/common.inc.php'; require_once './libraries/common.inc.php';
require_once './libraries/relation.lib.php';
/** /**
* Gets the relation settings * Gets the relation settings
*/ */

View File

@@ -10,11 +10,6 @@ if (! defined('PHPMYADMIN')) {
exit; exit;
} }
/**
*
*/
require_once './libraries/Table.class.php';
if (empty($is_db)) { if (empty($is_db)) {
if (strlen($db)) { if (strlen($db)) {
$is_db = @PMA_DBI_select_db($db); $is_db = @PMA_DBI_select_db($db);

View File

@@ -488,8 +488,8 @@ function PMA_DBI_get_fields_meta($result)
{ {
// Build an associative array for a type look up // Build an associative array for a type look up
$typeAr = array(); $typeAr = array();
$typeAr[MYSQLI_TYPE_DECIMAL] = 'decimal'; $typeAr[MYSQLI_TYPE_DECIMAL] = 'real';
$typeAr[MYSQLI_TYPE_NEWDECIMAL] = 'decimal'; $typeAr[MYSQLI_TYPE_NEWDECIMAL] = 'real';
$typeAr[MYSQLI_TYPE_BIT] = 'int'; $typeAr[MYSQLI_TYPE_BIT] = 'int';
$typeAr[MYSQLI_TYPE_TINY] = 'int'; $typeAr[MYSQLI_TYPE_TINY] = 'int';
$typeAr[MYSQLI_TYPE_SHORT] = 'int'; $typeAr[MYSQLI_TYPE_SHORT] = 'int';

View File

@@ -8,13 +8,7 @@ if (! defined('PHPMYADMIN')) {
exit; exit;
} }
/**
*
*/
require_once './libraries/Table.class.php';
// Get relations & co. status // Get relations & co. status
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam(); $cfgRelation = PMA_getRelationsParam();

View File

@@ -9,7 +9,6 @@
/** /**
* *
*/ */
require_once './libraries/Table.class.php';
require_once './libraries/Index.class.php'; require_once './libraries/Index.class.php';
/** /**

View File

@@ -49,8 +49,6 @@ if (! defined('PHPMYADMIN')) {
/** /**
* for PMA_setHistory() * for PMA_setHistory()
*/ */
require_once './libraries/relation.lib.php';
if (! PMA_isValid($_REQUEST['no_history']) && empty($GLOBALS['error_message']) if (! PMA_isValid($_REQUEST['no_history']) && empty($GLOBALS['error_message'])
&& ! empty($GLOBALS['sql_query'])) { && ! empty($GLOBALS['sql_query'])) {
PMA_setHistory(PMA_ifSetOr($GLOBALS['db'], ''), PMA_setHistory(PMA_ifSetOr($GLOBALS['db'], ''),

View File

@@ -143,7 +143,6 @@ if (empty($GLOBALS['is_header_sent'])) {
/** /**
* Settings for relations stuff * Settings for relations stuff
*/ */
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam(); $cfgRelation = PMA_getRelationsParam();
// Get additional information about tables for tooltip is done // Get additional information about tables for tooltip is done

View File

@@ -30,6 +30,7 @@ $title = PMA_expandUserString(
// here, the function does not exist with this configuration: $cfg['ServerDefault'] = 0; // here, the function does not exist with this configuration: $cfg['ServerDefault'] = 0;
$is_superuser = function_exists('PMA_isSuperuser') && PMA_isSuperuser(); $is_superuser = function_exists('PMA_isSuperuser') && PMA_isSuperuser();
$GLOBALS['js_include'][] = 'functions.js';
$GLOBALS['js_include'][] = 'tooltip.js'; $GLOBALS['js_include'][] = 'tooltip.js';
$params = array('lang' => $GLOBALS['lang']); $params = array('lang' => $GLOBALS['lang']);
if (isset($GLOBALS['db'])) { if (isset($GLOBALS['db'])) {

View File

@@ -12,7 +12,6 @@ if (! defined('PHPMYADMIN')) {
/** /**
* Load relations. * Load relations.
*/ */
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam(); $cfgRelation = PMA_getRelationsParam();
/** /**

View File

@@ -127,7 +127,6 @@ if (! empty($submit_mult)
* Displays the confirmation form if required * Displays the confirmation form if required
*/ */
if (!empty($submit_mult) && !empty($what)) { if (!empty($submit_mult) && !empty($what)) {
$GLOBALS['js_include'][] = 'functions.js';
unset($message); unset($message);
require_once './libraries/header.inc.php'; require_once './libraries/header.inc.php';
@@ -262,7 +261,7 @@ if (!empty($submit_mult) && !empty($what)) {
<input type="submit" name="mult_btn" value="<?php echo __('No'); ?>" id="buttonNo" /> <input type="submit" name="mult_btn" value="<?php echo __('No'); ?>" id="buttonNo" />
</fieldset> </fieldset>
<?php <?php
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
} // end if } // end if

View File

@@ -198,14 +198,6 @@ function PMA_getServerCollation() {
* @return string collation description * @return string collation description
*/ */
function PMA_getCollationDescr($collation) { function PMA_getCollationDescr($collation) {
static $collation_cache;
if (!is_array($collation_cache)) {
$collation_cache = array();
} elseif (isset($collation_cache[$collation])) {
return $collation_cache[$collation];
}
if ($collation == 'binary') { if ($collation == 'binary') {
return __('Binary'); return __('Binary');
} }

View File

@@ -9,11 +9,6 @@ if (! defined('PHPMYADMIN')) {
exit; exit;
} }
/**
*
*/
require_once './libraries/Table.class.php';
/** /**
* Executes a query as controluser if possible, otherwise as normal user * Executes a query as controluser if possible, otherwise as normal user
* *

View File

@@ -9,11 +9,6 @@ if (! defined('PHPMYADMIN')) {
exit; exit;
} }
/**
*
*/
require_once './libraries/relation.lib.php';
/** /**
* Cleanu column related relation stuff * Cleanu column related relation stuff
* *

View File

@@ -367,7 +367,7 @@ $GLOBALS['lang_path'] = './locale/';
/** /**
* Load gettext functions. * Load gettext functions.
*/ */
require_once './libraries/php-gettext/gettext.inc'; require './libraries/php-gettext/gettext.inc';
/** /**
* @global string interface language * @global string interface language

View File

@@ -12,11 +12,6 @@ if (! defined('PHPMYADMIN')) {
exit; exit;
} }
/**
*
*/
require_once './libraries/Table.class.php';
/** /**
* requirements * requirements
*/ */

View File

@@ -37,7 +37,6 @@ $err_url = $cfg['DefaultTabTable'] . PMA_generate_common_url($url_params);
/** /**
* Displays headers * Displays headers
*/ */
$GLOBALS['js_include'][] = 'functions.js';
require_once './libraries/header.inc.php'; require_once './libraries/header.inc.php';
/** /**

View File

@@ -117,7 +117,6 @@ if (!$is_backup) {
$header_cells[] = '<abbr title="AUTO_INCREMENT">' . ($display_type == 'horizontal' ? 'A_I' : 'AUTO_INCREMENT') . '</abbr>'; $header_cells[] = '<abbr title="AUTO_INCREMENT">' . ($display_type == 'horizontal' ? 'A_I' : 'AUTO_INCREMENT') . '</abbr>';
require_once './libraries/relation.lib.php';
require_once './libraries/transformations.lib.php'; require_once './libraries/transformations.lib.php';
$cfgRelation = PMA_getRelationsParam(); $cfgRelation = PMA_getRelationsParam();

View File

@@ -309,7 +309,6 @@ if (file_exists('./config')) {
* Check whether relations are supported. * Check whether relations are supported.
*/ */
if ($server > 0) { if ($server > 0) {
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam(); $cfgRelation = PMA_getRelationsParam();
if(!$cfgRelation['allworks'] && $cfg['PmaNoRelation_DisableWarning'] == false) { if(!$cfgRelation['allworks'] && $cfg['PmaNoRelation_DisableWarning'] == false) {
$message = PMA_Message::notice(__('The additional features for working with linked tables have been deactivated. To find out why click %shere%s.')); $message = PMA_Message::notice(__('The additional features for working with linked tables have been deactivated. To find out why click %shere%s.'));
@@ -391,5 +390,5 @@ function PMA_printListItem($name, $id = null, $url = null, $mysql_help_page = nu
/** /**
* Displays the footer * Displays the footer
*/ */
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
?> ?>

View File

@@ -110,9 +110,8 @@ if ($GLOBALS['server'] && ! strlen($GLOBALS['db'])) {
$db_start = $GLOBALS['db']; $db_start = $GLOBALS['db'];
/** /**
* the relation library * the relation settings
*/ */
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam(); $cfgRelation = PMA_getRelationsParam();
/** /**

View File

@@ -20,7 +20,6 @@ require_once './libraries/db_info.inc.php';
/** /**
* Settings for relation stuff * Settings for relation stuff
*/ */
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam(); $cfgRelation = PMA_getRelationsParam();
// This is to avoid "Command out of sync" errors. Before switching this to // This is to avoid "Command out of sync" errors. Before switching this to
@@ -39,24 +38,24 @@ $query_default_option = PMA_DBI_QUERY_STORE;
if (!$cfgRelation['relwork']) { if (!$cfgRelation['relwork']) {
echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'relation', 'config.inc.php') . '<br />' . "\n" echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'relation', 'config.inc.php') . '<br />' . "\n"
. PMA_showDocu('relation') . "\n"; . PMA_showDocu('relation') . "\n";
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
} }
if (!$cfgRelation['displaywork']) { if (!$cfgRelation['displaywork']) {
echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'table_info', 'config.inc.php') . '<br />' . "\n" echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'table_info', 'config.inc.php') . '<br />' . "\n"
. PMA_showDocu('table_info') . "\n"; . PMA_showDocu('table_info') . "\n";
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
} }
if (!isset($cfgRelation['table_coords'])){ if (!isset($cfgRelation['table_coords'])){
echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'table_coords', 'config.inc.php') . '<br />' . "\n" echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'table_coords', 'config.inc.php') . '<br />' . "\n"
. PMA_showDocu('table_coords') . "\n"; . PMA_showDocu('table_coords') . "\n";
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
} }
if (!isset($cfgRelation['pdf_pages'])) { if (!isset($cfgRelation['pdf_pages'])) {
echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'pdf_page', 'config.inc.php') . '<br />' . "\n" echo sprintf(__('<b>%s</b> table not found or not set in %s'), 'pdf_page', 'config.inc.php') . '<br />' . "\n"
. PMA_showDocu('pdf_pages') . "\n"; . PMA_showDocu('pdf_pages') . "\n";
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
} }
if ($cfgRelation['pdfwork']) { if ($cfgRelation['pdfwork']) {
@@ -556,5 +555,5 @@ ToggleDragDrop('pdflayout');
* Displays the footer * Displays the footer
*/ */
echo "\n"; echo "\n";
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
?> ?>

View File

@@ -13,7 +13,6 @@ require_once './libraries/common.inc.php';
/** /**
* Settings for relation stuff * Settings for relation stuff
*/ */
require_once './libraries/relation.lib.php';
require_once './libraries/transformations.lib.php'; require_once './libraries/transformations.lib.php';
require_once './libraries/Index.class.php'; require_once './libraries/Index.class.php';
@@ -30,7 +29,7 @@ $cfgRelation = PMA_getRelationsParam();
if (!$cfgRelation['pdfwork']) { if (!$cfgRelation['pdfwork']) {
echo '<font color="red">' . __('Error') . '</font><br />' . "\n"; echo '<font color="red">' . __('Error') . '</font><br />' . "\n";
$url_to_goto = '<a href="' . $cfg['PmaAbsoluteUri'] . 'chk_rel.php?' . $url_query . '">'; $url_to_goto = '<a href="' . $cfg['PmaAbsoluteUri'] . 'chk_rel.php?' . $url_query . '">';
echo sprintf(__('The additional features for working with linked tables have been deactivated. To find out why click %shere%s.'), $url_to_goto, '</a>') . "\n"; echo sprintf(__('The phpMyAdmin configuration storage has been deactivated. To find out why click %shere%s.'), $url_to_goto, '</a>') . "\n";
} }
/** /**
@@ -240,7 +239,7 @@ class PMA_PDF extends TCPDF {
. '">' . __('Back') . '</a>'; . '">' . __('Back') . '</a>';
echo "\n"; echo "\n";
require_once './libraries/footer.inc.php'; require './libraries/footer.inc.php';
} // end of the "PMA_PDF_die()" function } // end of the "PMA_PDF_die()" function
/** /**
* Aliases the "Error()" function from the FPDF class to the * Aliases the "Error()" function from the FPDF class to the

View File

@@ -13,7 +13,6 @@ require_once './libraries/header_http.inc.php';
$GLOBALS['PMD']['STYLE'] = 'default'; $GLOBALS['PMD']['STYLE'] = 'default';
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam(); $cfgRelation = PMA_getRelationsParam();
$GLOBALS['script_display_field'] = $GLOBALS['script_display_field'] =

View File

@@ -8,7 +8,6 @@
* *
*/ */
include_once 'pmd_common.php'; include_once 'pmd_common.php';
require_once './libraries/relation.lib.php';
$table = $T; $table = $T;

View File

@@ -15,8 +15,6 @@ if (! isset($scale)) {
include_once 'pmd_save_pos.php'; include_once 'pmd_save_pos.php';
} }
require_once './libraries/relation.lib.php';
if (isset($scale) && ! isset($createpage)) { if (isset($scale) && ! isset($createpage)) {
if (empty($pdf_page_number)) { if (empty($pdf_page_number)) {
die("<script>alert('Pages not found!');history.go(-2);</script>"); die("<script>alert('Pages not found!');history.go(-2);</script>");

View File

@@ -11,7 +11,6 @@
include_once 'pmd_common.php'; include_once 'pmd_common.php';
$die_save_pos = 0; $die_save_pos = 0;
include_once 'pmd_save_pos.php'; include_once 'pmd_save_pos.php';
require_once './libraries/relation.lib.php';
extract($_POST, EXTR_SKIP); extract($_POST, EXTR_SKIP);
$tables = PMA_DBI_get_tables_full($db, $T1); $tables = PMA_DBI_get_tables_full($db, $T1);

View File

@@ -9,7 +9,6 @@
* *
*/ */
include_once 'pmd_common.php'; include_once 'pmd_common.php';
require_once './libraries/relation.lib.php';
extract($_POST, EXTR_SKIP); extract($_POST, EXTR_SKIP);
extract($_GET, EXTR_SKIP); extract($_GET, EXTR_SKIP);
$die_save_pos = 0; $die_save_pos = 0;

View File

@@ -9,7 +9,6 @@
* *
*/ */
include_once 'pmd_common.php'; include_once 'pmd_common.php';
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam(); $cfgRelation = PMA_getRelationsParam();

2150
po/af.po

File diff suppressed because it is too large Load Diff

2146
po/ar.po

File diff suppressed because it is too large Load Diff

2150
po/az.po

File diff suppressed because it is too large Load Diff

2165
po/be.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

2153
po/bg.po

File diff suppressed because it is too large Load Diff

2150
po/bn.po

File diff suppressed because it is too large Load Diff

2150
po/bs.po

File diff suppressed because it is too large Load Diff

2169
po/ca.po

File diff suppressed because it is too large Load Diff

2159
po/cs.po

File diff suppressed because it is too large Load Diff

2146
po/cy.po

File diff suppressed because it is too large Load Diff

2145
po/da.po

File diff suppressed because it is too large Load Diff

2159
po/de.po

File diff suppressed because it is too large Load Diff

2163
po/el.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

2171
po/es.po

File diff suppressed because it is too large Load Diff

2150
po/et.po

File diff suppressed because it is too large Load Diff

2152
po/eu.po

File diff suppressed because it is too large Load Diff

2146
po/fa.po

File diff suppressed because it is too large Load Diff

2169
po/fi.po

File diff suppressed because it is too large Load Diff

2163
po/fr.po

File diff suppressed because it is too large Load Diff

2171
po/gl.po

File diff suppressed because it is too large Load Diff

2149
po/he.po

File diff suppressed because it is too large Load Diff

2142
po/hi.po

File diff suppressed because it is too large Load Diff

2170
po/hr.po

File diff suppressed because it is too large Load Diff

2173
po/hu.po

File diff suppressed because it is too large Load Diff

2144
po/id.po

File diff suppressed because it is too large Load Diff

2155
po/it.po

File diff suppressed because it is too large Load Diff

2152
po/ja.po

File diff suppressed because it is too large Load Diff

2171
po/ka.po

File diff suppressed because it is too large Load Diff

2144
po/ko.po

File diff suppressed because it is too large Load Diff

2152
po/lt.po

File diff suppressed because it is too large Load Diff

2150
po/lv.po

File diff suppressed because it is too large Load Diff

2150
po/mk.po

File diff suppressed because it is too large Load Diff

2140
po/mn.po

File diff suppressed because it is too large Load Diff

2150
po/ms.po

File diff suppressed because it is too large Load Diff

2164
po/nb.po

File diff suppressed because it is too large Load Diff

2165
po/nl.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

2168
po/pl.po

File diff suppressed because it is too large Load Diff

2152
po/pt.po

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More