Merge branch 'master' of ssh://repo.or.cz/srv/git/phpmyadmin/lorilee into gsoc

This commit is contained in:
lorilee
2010-07-06 11:04:06 -07:00
72 changed files with 12972 additions and 13140 deletions

View File

@@ -84,10 +84,17 @@ $Id$
- bug #3004216 [CSS] Field attributes use inline CSS - bug #3004216 [CSS] Field attributes use inline CSS
- patch #2999595, rfe #2998130 [interface] Cleanup navigation frame. - patch #2999595, rfe #2998130 [interface] Cleanup navigation frame.
- [core] Update library PHPExcel to version 1.7.3c - [core] Update library PHPExcel to version 1.7.3c
- patch #3025161 [core] Prevent sending of unnecessary cookies,
thanks to Piotr Przybylski - crackpl
3.3.5.0 (not yet released) 3.3.5.0 (not yet released)
- 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
is no progress bar possible
- bug [replication] Do not offer information_schema in the list of databases
- bug [js] Avoid loading twice a js file
- bug #3024344 [setup] Setup forces numeric MemoryLimit
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

@@ -946,7 +946,8 @@ since this link provides funding for phpMyAdmin.
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 linked-tables infrastructure</li>
<li>put the table name in <li>put the table name in
<tt>$cfg['Servers'][$i]['table_info']</tt></li> <tt>$cfg['Servers'][$i]['table_info']</tt> (e.g.
'pma_table_info')</li>
<li>then for each table where you want to use this feature, <li>then for each table where you want to use this feature,
click &quot;Structure/Relation view/Choose column to display&quot; click &quot;Structure/Relation view/Choose column to display&quot;
to choose the column.</li> to choose the column.</li>
@@ -1005,7 +1006,8 @@ since this link provides funding for phpMyAdmin.
<ul><li>set up <a href="#pmadb">pmadb</a> and the linked-tables <ul><li>set up <a href="#pmadb">pmadb</a> and the linked-tables
infrastructure</li> infrastructure</li>
<li>put the table name in <li>put the table name in
<tt>$cfg['Servers'][$i]['column_info']</tt></li> <tt>$cfg['Servers'][$i]['column_info']</tt> (e.g.
'pma_column_info')</li>
<li>to update your PRE-2.5.0 Column_comments Table use this: <li>to update your PRE-2.5.0 Column_comments Table use this:
<pre> <pre>
@@ -1045,6 +1047,7 @@ ALTER TABLE `pma_column_comments`
<ul><li>set up <a href="#pmadb">pmadb</a> and the linked-tables <ul><li>set up <a href="#pmadb">pmadb</a> and the linked-tables
infrastructure</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')
</li> </li>
</ul> </ul>
</dd> </dd>
@@ -1075,7 +1078,7 @@ ALTER TABLE `pma_column_comments`
<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 linked-tables infrastructure</li>
<li>put the table name in <tt>$cfg['Servers'][$i]['tracking']</tt></li> <li>put the table name in <tt>$cfg['Servers'][$i]['tracking']</tt> (e.g. 'pma_tracking')</li>
</ul> </ul>
</dd> </dd>
@@ -1147,7 +1150,7 @@ CREATE DATABASE,ALTER DATABASE,DROP DATABASE</pre>
<ul><li>set up <a href="#pmadb">pmadb</a> and the linked-tables <ul><li>set up <a href="#pmadb">pmadb</a> and the linked-tables
infrastructure</li> infrastructure</li>
<li>put the table name in <tt>$cfg['Servers'][$i]['designer_coords']</tt> <li>put the table name in <tt>$cfg['Servers'][$i]['designer_coords']</tt> (e.g. 'pma_designer_coords')
</li> </li>
</ul> </ul>
</dd> </dd>
@@ -1312,7 +1315,7 @@ CREATE DATABASE,ALTER DATABASE,DROP DATABASE</pre>
<dd>Path for storing session data (<a <dd>Path for storing session data (<a
href="http://php.net/session_save_path">session_save_path PHP parameter</a>).</dd> href="http://php.net/session_save_path">session_save_path PHP parameter</a>).</dd>
<dt id="cfg_MemoryLimit">$cfg['MemoryLimit'] integer [number of bytes]</dt> <dt id="cfg_MemoryLimit">$cfg['MemoryLimit'] string [number of bytes]</dt>
<dd>Set the number of bytes a script is allowed to allocate. If set <dd>Set the number of bytes a script is allowed to allocate. If set
to zero, no limit is imposed.<br /> to zero, no limit is imposed.<br />
This setting is used while importing/exporting dump files and at some This setting is used while importing/exporting dump files and at some
@@ -3365,7 +3368,7 @@ have either the <a href="http://pecl.php.net/package/APC">APC</a> extension
<h4 id="login_bug"> <h4 id="login_bug">
<a href="#login_bug">3.1 When using <a href="#login_bug">3.1 When using
<abbr title="HyperText Transfer Protocol">HTTP</abbr> authentication, an user <abbr title="HyperText Transfer Protocol">HTTP</abbr> authentication, a user
who logged out can not log in again in with the same nick.</a></h4> who logged out can not log in again in with the same nick.</a></h4>
<p> This is related to the authentication mechanism (protocol) used by <p> This is related to the authentication mechanism (protocol) used by
@@ -4334,6 +4337,12 @@ chmod o+rwx tmp
<li>Finally when you browse your table, you'll see in your column a link to stream your data, for example &quot;View image&quot;. A header containing the correct MIME-type will be sent to your browser; this MIME-type was stored at upload time but in case it's incorrect, it's possible to edit it by clicking on the displayed MIME-type.</li> <li>Finally when you browse your table, you'll see in your column a link to stream your data, for example &quot;View image&quot;. A header containing the correct MIME-type will be sent to your browser; this MIME-type was stored at upload time but in case it's incorrect, it's possible to edit it by clicking on the displayed MIME-type.</li>
</ol> </ol>
<h4 id="faq6_26">
<a href="#faq6_26">6.26 How can I select a range of rows?</a></h4>
<p> Click the first row of the range, hold the shift key and click the last row of the range. This works everywhere you see rows, for example in Browse mode or on the Structure page.</p>
<h3 id="faqproject">phpMyAdmin project</h3> <h3 id="faqproject">phpMyAdmin project</h3>
<h4 id="faq7_1"> <h4 id="faq7_1">
@@ -4372,7 +4381,7 @@ chmod o+rwx tmp
</p> </p>
<p> <p>
You can then put your translations, as a zip file to avoid losing special You can then put your translations, as a zip file to avoid losing special
characters, on the sourceforge.net <a href="https://sourceforge.net/tracker/?group_id=23067&atid=387645">translation tracker.</a> characters, on the sourceforge.net <a href="https://sourceforge.net/tracker/?group_id=23067&amp;atid=387645">translation tracker.</a>
</p> </p>
<p> <p>
It would be a good idea to subscribe to the <a href="https://lists.sourceforge.net/lists/listinfo/phpmyadmin-translators">phpmyadmin-translators</a> mailing It would be a good idea to subscribe to the <a href="https://lists.sourceforge.net/lists/listinfo/phpmyadmin-translators">phpmyadmin-translators</a> mailing

View File

@@ -101,10 +101,13 @@ function setDb(new_db) {
var old_db = db; var old_db = db;
db = new_db; db = new_db;
// the db name as an id exists only when LeftFrameLight is false
if (window.frame_navigation.document.getElementById(db) == null) { if (window.frame_navigation.document.getElementById(db) == null) {
// happens when LeftFrameLight is true
// db is unknown, reload complete left frame // db is unknown, reload complete left frame
refreshNavigation(); refreshNavigation();
} else { } else {
// happens when LeftFrameLight is false
unmarkDbTable(old_db); unmarkDbTable(old_db);
markDbTable(db); markDbTable(db);
} }

View File

@@ -867,9 +867,9 @@ function PMA_markRowsInit() {
checkbox.checked = marked_row[unique_id]; checkbox.checked = marked_row[unique_id];
if (typeof(event) == 'object') { if (typeof(event) == 'object') {
table = this.parentNode; table = this.parentNode;
i = 0; parentTableLimit = 0;
while (table.tagName.toLowerCase() != 'table' && i < 20) { while (table.tagName.toLowerCase() != 'table' && parentTableLimit < 20) {
i++; parentTableLimit++;
table = table.parentNode; table = table.parentNode;
} }
@@ -884,7 +884,7 @@ function PMA_markRowsInit() {
} }
while (i != this.rowIndex) { while (i != this.rowIndex) {
table.rows[i].onmousedown(); $(table.rows[i]).mousedown();
if (i < this.rowIndex) { if (i < this.rowIndex) {
i++; i++;
} else { } else {

View File

@@ -1086,11 +1086,14 @@ class PMA_Config
if ($validity == null) { if ($validity == null) {
$validity = 2592000; $validity = 2592000;
} }
if (strlen($value) && null !== $default && $value === $default if (strlen($value) && null !== $default && $value === $default) {
&& isset($_COOKIE[$cookie])) { // default value is used
// remove cookie, default value is used if (isset($_COOKIE[$cookie])) {
// remove cookie
return $this->removeCookie($cookie); return $this->removeCookie($cookie);
} }
return false;
}
if (! strlen($value) && isset($_COOKIE[$cookie])) { if (! strlen($value) && isset($_COOKIE[$cookie])) {
// remove cookie, value is empty // remove cookie, value is empty

View File

@@ -542,11 +542,13 @@ $cfg['ExecTimeLimit'] = 300;
$cfg['SessionSavePath'] = ''; $cfg['SessionSavePath'] = '';
/** /**
* maximum allocated bytes (0 for no limit) * maximum allocated bytes ('0' for no limit)
* this is a string because '16M' is a valid value; we must put here
* a string as the default value so that /setup accepts strings
* *
* @global integer $cfg['MemoryLimit'] * @global string $cfg['MemoryLimit']
*/ */
$cfg['MemoryLimit'] = 0; $cfg['MemoryLimit'] = '0';
/** /**
* mark used tables, make possible to show locked tables (since MySQL 3.23.30) * mark used tables, make possible to show locked tables (since MySQL 3.23.30)

View File

@@ -2,7 +2,6 @@
/* vim: set expandtab sw=4 ts=4 sts=4: */ /* vim: set expandtab sw=4 ts=4 sts=4: */
/** /**
* *
* @version $Id$
* @package phpMyAdmin * @package phpMyAdmin
*/ */
if (! defined('PHPMYADMIN')) { if (! defined('PHPMYADMIN')) {
@@ -94,9 +93,9 @@ if ($_SESSION[$SESSION_KEY]["handler"]!="noplugin") {
window.setTimeout(perform_upload, 1000); window.setTimeout(perform_upload, 1000);
<?php <?php
} else { // no plugin avaliable } else { // no plugin available
?> ?>
$('#upload_form_status_info').html('<img src="<?php echo $GLOBALS['pmaThemeImage'];?>ajax_clock_small.gif" alt="ajax clock" /> <?php echo __('Please be patient, the file is being uploaded. Details about the upload are not available.') . PMA_showDocu('faq2_9'); ?>'); $('#upload_form_status_info').html('<img src="<?php echo $GLOBALS['pmaThemeImage'];?>ajax_clock_small.gif" alt="ajax clock" /> <?php echo PMA_jsFormat(__('Please be patient, the file is being uploaded. Details about the upload are not available.')) . PMA_showDocu('faq2_9'); ?>');
$('#upload_form_status').css("display", "none"); $('#upload_form_status').css("display", "none");
<?php <?php
} // else } // else

View File

@@ -66,6 +66,9 @@ $GLOBALS['js_events'][] = array(
* upgrade phpMyAdmin are not stuck with older .js files in their * upgrade phpMyAdmin are not stuck with older .js files in their
* browser cache. This produces an HTTP 304 request for each file. * browser cache. This produces an HTTP 304 request for each file.
*/ */
// avoid loading twice a js file
$GLOBALS['js_include'] = array_unique($GLOBALS['js_include']);
foreach ($GLOBALS['js_include'] as $js_script_file) { foreach ($GLOBALS['js_include'] as $js_script_file) {
if (strpos($js_script_file, '?') === FALSE) { if (strpos($js_script_file, '?') === FALSE) {
echo '<script src="./js/' . $js_script_file . '?ts=' . filemtime('./js/' . $js_script_file) . '" type="text/javascript"></script>' . "\n"; echo '<script src="./js/' . $js_script_file . '?ts=' . filemtime('./js/' . $js_script_file) . '" type="text/javascript"></script>' . "\n";

View File

@@ -20,6 +20,9 @@ function PMA_replication_db_multibox()
$multi_values .= '<select name="db_select[]" size="6" multiple="multiple" id="db_select">'; $multi_values .= '<select name="db_select[]" size="6" multiple="multiple" id="db_select">';
foreach ($GLOBALS['pma']->databases as $current_db) { foreach ($GLOBALS['pma']->databases as $current_db) {
if ('information_schema' == $current_db) {
continue;
}
if (! empty($selectall) || (isset($tmp_select) && strpos(' ' . $tmp_select, '|' . $current_db . '|'))) { if (! empty($selectall) || (isset($tmp_select) && strpos(' ' . $tmp_select, '|' . $current_db . '|'))) {
$is_selected = ' selected="selected"'; $is_selected = ' selected="selected"';
} else { } else {

412
po/af.po

File diff suppressed because it is too large Load Diff

412
po/ar.po

File diff suppressed because it is too large Load Diff

412
po/az.po

File diff suppressed because it is too large Load Diff

412
po/be.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

412
po/bg.po

File diff suppressed because it is too large Load Diff

412
po/bn.po

File diff suppressed because it is too large Load Diff

412
po/bs.po

File diff suppressed because it is too large Load Diff

412
po/ca.po

File diff suppressed because it is too large Load Diff

412
po/cs.po

File diff suppressed because it is too large Load Diff

428
po/cy.po

File diff suppressed because it is too large Load Diff

412
po/da.po

File diff suppressed because it is too large Load Diff

412
po/de.po

File diff suppressed because it is too large Load Diff

412
po/el.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

412
po/es.po

File diff suppressed because it is too large Load Diff

412
po/et.po

File diff suppressed because it is too large Load Diff

412
po/eu.po

File diff suppressed because it is too large Load Diff

412
po/fa.po

File diff suppressed because it is too large Load Diff

412
po/fi.po

File diff suppressed because it is too large Load Diff

548
po/fr.po

File diff suppressed because it is too large Load Diff

412
po/gl.po

File diff suppressed because it is too large Load Diff

412
po/he.po

File diff suppressed because it is too large Load Diff

412
po/hi.po

File diff suppressed because it is too large Load Diff

412
po/hr.po

File diff suppressed because it is too large Load Diff

412
po/hu.po

File diff suppressed because it is too large Load Diff

420
po/id.po

File diff suppressed because it is too large Load Diff

412
po/it.po

File diff suppressed because it is too large Load Diff

412
po/ja.po

File diff suppressed because it is too large Load Diff

412
po/ka.po

File diff suppressed because it is too large Load Diff

497
po/ko.po

File diff suppressed because it is too large Load Diff

412
po/lt.po

File diff suppressed because it is too large Load Diff

412
po/lv.po

File diff suppressed because it is too large Load Diff

412
po/mk.po

File diff suppressed because it is too large Load Diff

412
po/mn.po

File diff suppressed because it is too large Load Diff

412
po/ms.po

File diff suppressed because it is too large Load Diff

412
po/nb.po

File diff suppressed because it is too large Load Diff

412
po/nl.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

412
po/pl.po

File diff suppressed because it is too large Load Diff

412
po/pt.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

412
po/ro.po

File diff suppressed because it is too large Load Diff

412
po/ru.po

File diff suppressed because it is too large Load Diff

412
po/si.po

File diff suppressed because it is too large Load Diff

412
po/sk.po

File diff suppressed because it is too large Load Diff

422
po/sl.po

File diff suppressed because it is too large Load Diff

412
po/sq.po

File diff suppressed because it is too large Load Diff

412
po/sr.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

412
po/sv.po

File diff suppressed because it is too large Load Diff

412
po/ta.po

File diff suppressed because it is too large Load Diff

412
po/te.po

File diff suppressed because it is too large Load Diff

412
po/th.po

File diff suppressed because it is too large Load Diff

652
po/tr.po

File diff suppressed because it is too large Load Diff

412
po/tt.po

File diff suppressed because it is too large Load Diff

412
po/uk.po

File diff suppressed because it is too large Load Diff

412
po/ur.po

File diff suppressed because it is too large Load Diff

412
po/uz.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1080,6 +1080,7 @@ foreach ($rows as $row_id => $vrow) {
if ($field['pma_type'] == 'date' || $field['pma_type'] == 'datetime' || substr($field['pma_type'], 0, 9) == 'timestamp') { if ($field['pma_type'] == 'date' || $field['pma_type'] == 'datetime' || substr($field['pma_type'], 0, 9) == 'timestamp') {
// the _3 suffix points to the date field // the _3 suffix points to the date field
// the _2 suffix points to the corresponding NULL checkbox // the _2 suffix points to the corresponding NULL checkbox
// in dateFormat, 'yy' means the year with 4 digits
?> ?>
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
@@ -1090,6 +1091,7 @@ $(function() {
stepMinutes: 1, stepMinutes: 1,
stepHours: 1, stepHours: 1,
<?php echo ($field['pma_type'] == 'date' ? "showTime: false,":"showTime: true,"); ?> <?php echo ($field['pma_type'] == 'date' ? "showTime: false,":"showTime: true,"); ?>
dateFormat: 'yy-mm-dd',
altTimeField: '', altTimeField: '',
constrainInput: false constrainInput: false
}); });