Merge branch 'master' of git://phpmyadmin.git.sourceforge.net/gitroot/phpmyadmin/phpmyadmin into OpenGIS
This commit is contained in:
commit
e71db6482c
@ -891,9 +891,9 @@ function PMA_reloadNavigation($jsonly=false)
|
||||
unset($_SESSION['tmp_user_values']['table_limit_offset']);
|
||||
echo "\n";
|
||||
$reload_url = './navigation.php?' . PMA_generate_common_url($GLOBALS['db'], '', '&');
|
||||
if (!$jsonly)
|
||||
echo '<script type="text/javascript">' . PHP_EOL;
|
||||
?>
|
||||
if (!$jsonly)
|
||||
echo '<script type="text/javascript">' . PHP_EOL;
|
||||
?>
|
||||
//<![CDATA[
|
||||
if (typeof(window.parent) != 'undefined'
|
||||
&& typeof(window.parent.frame_navigation) != 'undefined'
|
||||
@ -1430,9 +1430,13 @@ function PMA_localizeNumber($value)
|
||||
*/
|
||||
function PMA_formatNumber($value, $length = 3, $comma = 0, $only_down = false)
|
||||
{
|
||||
$originalValue = $value;
|
||||
//number_format is not multibyte safe, str_replace is safe
|
||||
if ($length === 0) {
|
||||
return PMA_localizeNumber(number_format($value, $comma));
|
||||
$value = number_format($value, $comma);
|
||||
if($originalValue!=0 && floatval($value) == 0) $value = ' <'.(1/PMA_pow(10,$comma));
|
||||
|
||||
return PMA_localizeNumber($value);
|
||||
}
|
||||
|
||||
// this units needs no translation, ISO
|
||||
@ -1494,6 +1498,8 @@ function PMA_formatNumber($value, $length = 3, $comma = 0, $only_down = false)
|
||||
|
||||
//number_format is not multibyte safe, str_replace is safe
|
||||
$value = PMA_localizeNumber(number_format($value, $comma));
|
||||
|
||||
if($originalValue!=0 && floatval($value) == 0) return ' <'.(1/PMA_pow(10,$comma)).' '.$unit;
|
||||
|
||||
return $sign . $value . ' ' . $unit;
|
||||
} // end of the 'PMA_formatNumber' function
|
||||
@ -1644,10 +1650,10 @@ function PMA_generate_html_tab($tab, $url_params = array())
|
||||
$tab['attr'] .= ' title="' . htmlspecialchars($tab['warning']) . '"';
|
||||
}
|
||||
|
||||
// If there are any tab specific URL parameters, merge those with the general URL parameters
|
||||
if(! empty($tab['url_params']) && is_array($tab['url_params'])) {
|
||||
$url_params = array_merge($url_params, $tab['url_params']);
|
||||
}
|
||||
// If there are any tab specific URL parameters, merge those with the general URL parameters
|
||||
if(! empty($tab['url_params']) && is_array($tab['url_params'])) {
|
||||
$url_params = array_merge($url_params, $tab['url_params']);
|
||||
}
|
||||
|
||||
// build the link
|
||||
if (!empty($tab['link'])) {
|
||||
@ -2937,8 +2943,8 @@ function PMA_browseUploadFile($max_upload_size) {
|
||||
* @param $uploaddir
|
||||
*/
|
||||
function PMA_selectUploadFile($import_list, $uploaddir) {
|
||||
echo '<label for="radio_local_import_file">' . sprintf(__("Select from the web server upload directory <b>%s</b>:"), htmlspecialchars(PMA_userDir($uploaddir))) . '</label>';
|
||||
$extensions = '';
|
||||
echo '<label for="radio_local_import_file">' . sprintf(__("Select from the web server upload directory <b>%s</b>:"), htmlspecialchars(PMA_userDir($uploaddir))) . '</label>';
|
||||
$extensions = '';
|
||||
foreach ($import_list as $key => $val) {
|
||||
if (!empty($extensions)) {
|
||||
$extensions .= '|';
|
||||
|
||||
@ -34,6 +34,7 @@ if (!$GLOBALS['is_ajax_request']) {
|
||||
|
||||
/**
|
||||
* Displays tab links
|
||||
* Put the links we assume are used less, towards the end
|
||||
*/
|
||||
$tabs = array();
|
||||
|
||||
@ -49,11 +50,6 @@ if (!$GLOBALS['is_ajax_request']) {
|
||||
$tabs['status']['link'] = 'server_status.php';
|
||||
$tabs['status']['text'] = __('Status');
|
||||
|
||||
if (! empty($binary_logs)) {
|
||||
$tabs['binlog']['icon'] = 's_tbl.png';
|
||||
$tabs['binlog']['link'] = 'server_binlog.php';
|
||||
$tabs['binlog']['text'] = __('Binary log');
|
||||
}
|
||||
$tabs['process']['icon'] = 's_process.png';
|
||||
$tabs['process']['link'] = 'server_processlist.php';
|
||||
$tabs['process']['text'] = __('Processes');
|
||||
@ -72,6 +68,28 @@ if (!$GLOBALS['is_ajax_request']) {
|
||||
$tabs['import']['link'] = 'server_import.php';
|
||||
$tabs['import']['text'] = __('Import');
|
||||
|
||||
$tabs['settings']['icon'] = 'b_tblops.png';
|
||||
$tabs['settings']['link'] = 'prefs_manage.php';
|
||||
$tabs['settings']['text'] = __('Settings');
|
||||
$tabs['settings']['active'] = in_array(basename($GLOBALS['PMA_PHP_SELF']),
|
||||
array('prefs_forms.php', 'prefs_manage.php'));
|
||||
|
||||
$tabs['synchronize']['icon'] = 's_sync.png';
|
||||
$tabs['synchronize']['link'] = 'server_synchronize.php';
|
||||
$tabs['synchronize']['text'] = __('Synchronize');
|
||||
|
||||
if (! empty($binary_logs)) {
|
||||
$tabs['binlog']['icon'] = 's_tbl.png';
|
||||
$tabs['binlog']['link'] = 'server_binlog.php';
|
||||
$tabs['binlog']['text'] = __('Binary log');
|
||||
}
|
||||
|
||||
if ($is_superuser) {
|
||||
$tabs['replication']['icon'] = 's_replication.png';
|
||||
$tabs['replication']['link'] = 'server_replication.php';
|
||||
$tabs['replication']['text'] = __('Replication');
|
||||
}
|
||||
|
||||
$tabs['vars']['icon'] = 's_vars.png';
|
||||
$tabs['vars']['link'] = 'server_variables.php';
|
||||
$tabs['vars']['text'] = __('Variables');
|
||||
@ -84,22 +102,6 @@ if (!$GLOBALS['is_ajax_request']) {
|
||||
$tabs['engine']['link'] = 'server_engines.php';
|
||||
$tabs['engine']['text'] = __('Engines');
|
||||
|
||||
if ($is_superuser) {
|
||||
$tabs['replication']['icon'] = 's_replication.png';
|
||||
$tabs['replication']['link'] = 'server_replication.php';
|
||||
$tabs['replication']['text'] = __('Replication');
|
||||
}
|
||||
|
||||
$tabs['synchronize']['icon'] = 's_sync.png';
|
||||
$tabs['synchronize']['link'] = 'server_synchronize.php';
|
||||
$tabs['synchronize']['text'] = __('Synchronize');
|
||||
|
||||
$tabs['settings']['icon'] = 'b_tblops.png';
|
||||
$tabs['settings']['link'] = 'prefs_manage.php';
|
||||
$tabs['settings']['text'] = __('Settings');
|
||||
$tabs['settings']['active'] = in_array(basename($GLOBALS['PMA_PHP_SELF']),
|
||||
array('prefs_forms.php', 'prefs_manage.php'));
|
||||
|
||||
echo PMA_generate_html_tabs($tabs, array());
|
||||
unset($tabs);
|
||||
|
||||
|
||||
1518
po/be@latin.po
1518
po/be@latin.po
File diff suppressed because it is too large
Load Diff
1536
po/en_GB.po
1536
po/en_GB.po
File diff suppressed because it is too large
Load Diff
1497
po/phpmyadmin.pot
1497
po/phpmyadmin.pot
File diff suppressed because it is too large
Load Diff
1505
po/pt_BR.po
1505
po/pt_BR.po
File diff suppressed because it is too large
Load Diff
1505
po/sr@latin.po
1505
po/sr@latin.po
File diff suppressed because it is too large
Load Diff
1550
po/uz@latin.po
1550
po/uz@latin.po
File diff suppressed because it is too large
Load Diff
1527
po/zh_CN.po
1527
po/zh_CN.po
File diff suppressed because it is too large
Load Diff
1654
po/zh_TW.po
1654
po/zh_TW.po
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user