Prepare the use of an Arabic translation (right to left text direction)
This commit is contained in:
@@ -7,9 +7,11 @@ $Source$
|
||||
|
||||
2001-11-10 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||
* lang/italian.inc.php3: updated thanks to Pietro Danesi.
|
||||
* most of the scripts have been updated in order to prepare the use of an
|
||||
Arabic translation (right to left text direction).
|
||||
|
||||
2001-11-09 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* Documentation.html: small additions, FAQ sub-sections
|
||||
* Documentation.html: small additions, FAQ sub-sections.
|
||||
|
||||
2001-11-09 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||
* config.inc.php3; Documentation.html; main.php3; phpinfo.php3;
|
||||
|
@@ -266,7 +266,7 @@ else if (MYSQL_INT_VERSION >= 32300) {
|
||||
?>
|
||||
<td align="right" nowrap="nowrap">
|
||||
|
||||
<a href="tbl_properties.php3?<?php echo $url_query; ?>#showusage"><?php echo $formated_size . ' ' . $unit; ?></a>
|
||||
<a href="tbl_properties.php3?<?php echo $url_query; ?>#showusage"><?php echo $formated_size . '<bdo dir="' . $text_dir . '"> </bdo>' . $unit; ?></a>
|
||||
</td>
|
||||
<?php
|
||||
echo "\n";
|
||||
@@ -308,7 +308,8 @@ else if (MYSQL_INT_VERSION >= 32300) {
|
||||
echo "\n";
|
||||
?>
|
||||
<th align="right" nowrap="nowrap">
|
||||
<b><?php echo $sum_formated . ' '. $unit; ?></b>
|
||||
|
||||
<b><?php echo $sum_formated . '<bdo dir="' . $text_dir . '"> </bdo>' . $unit; ?></b>
|
||||
</th>
|
||||
<?php
|
||||
}
|
||||
@@ -318,7 +319,7 @@ else if (MYSQL_INT_VERSION >= 32300) {
|
||||
|
||||
<tr>
|
||||
<td colspan="<?php echo (($cfgShowStats) ? '11' : '10'); ?>">
|
||||
<img src="./images/arrow.gif" border="0" width="38" height="22" alt="<?php echo $strWithChecked; ?>" />
|
||||
<img src="./images/arrow_<?php echo $text_dir; ?>.gif" border="0" width="38" height="22" alt="<?php echo $strWithChecked; ?>" />
|
||||
<i><?php echo $strWithChecked; ?></i>
|
||||
<input type="submit" name="submit_mult" value="<?php echo $strDrop; ?>" />
|
||||
<i><?php echo $strOr; ?></i>
|
||||
@@ -395,7 +396,7 @@ else {
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="9">
|
||||
<img src="./images/arrow.gif" border="0" width="38" height="22" alt="<?php echo $strWithChecked; ?>" />
|
||||
<img src="./images/arrow_<?php echo $text_dir; ?>.gif" border="0" width="38" height="22" alt="<?php echo $strWithChecked; ?>" />
|
||||
<i><?php echo $strWithChecked; ?></i>
|
||||
<input type="submit" name="submit_mult" value="<?php echo $strDrop; ?>" />
|
||||
<?php $strOr . "\n"; ?>
|
||||
|
@@ -172,7 +172,7 @@ else if (MYSQL_INT_VERSION >= 32300) {
|
||||
echo "\n";
|
||||
?>
|
||||
<td align="right" nowrap="nowrap">
|
||||
<?php echo $formated_size . ' ' . $unit . "\n"; ?>
|
||||
<?php echo $formated_size . '<bdo dir="<?php echo($text_dir); ?>"> </bdo>' . $unit . "\n"; ?>
|
||||
</td>
|
||||
<?php
|
||||
echo "\n";
|
||||
@@ -210,7 +210,7 @@ else if (MYSQL_INT_VERSION >= 32300) {
|
||||
echo "\n";
|
||||
?>
|
||||
<th align="right" nowrap="nowrap">
|
||||
<b><?php echo $sum_formated . ' '. $unit; ?></b>
|
||||
<b><?php echo $sum_formated . '<bdo dir="<?php echo($text_dir); ?>"> </bdo>'. $unit; ?></b>
|
||||
</th>
|
||||
<?php
|
||||
}
|
||||
|
@@ -111,12 +111,12 @@ if ($server > 0) {
|
||||
</h1>
|
||||
<table align="center" border="<?php echo $cfgBorder; ?>" cellpadding="5">
|
||||
<tr>
|
||||
<th align="left"><big><?php echo $strHost . ' :'; ?></big></th>
|
||||
<th align="left"><big><?php echo $cfgServer['host']; ?></big></th>
|
||||
<th align="<?php echo $cell_align_left; ?>"><big><?php echo $strHost . ' :'; ?></big></th>
|
||||
<th align="<?php echo $cell_align_left; ?>"><big><?php echo $cfgServer['host']; ?></big></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align="left"><big><?php echo $strGenTime . ' :'; ?></big></th>
|
||||
<th align="left"><big><?php echo localised_date(); ?></big></th>
|
||||
<th align="<?php echo $cell_align_left; ?>"><big><?php echo $strGenTime . ' :'; ?></big></th>
|
||||
<th align="<?php echo $cell_align_left; ?>"><big><?php echo localised_date(); ?></big></th>
|
||||
</tr>
|
||||
</table>
|
||||
<br /><br />
|
||||
@@ -260,9 +260,9 @@ if ($num_dbs > 0) {
|
||||
echo ' </td>' . "\n";
|
||||
echo ' <td> <a href="index.php3?lang=' . $lang . '&server=' . $server . '&db=' . urlencode($db_name) . '" target="_parent">' . htmlentities($db_name) . '</a> </td>' . "\n";
|
||||
echo ' <td align="right"> ' . $dbs_array[$db_name][0] . ' </td>' . "\n";
|
||||
echo ' <td align="right"> ' . $data_size . ' ' . $data_unit . ' </td>' . "\n";
|
||||
echo ' <td align="right"> ' . $idx_size . ' ' . $idx_unit . ' </td>' . "\n";
|
||||
echo ' <td align="right"> <b>' . $tot_size . ' ' . $tot_unit . '</b> </td>' . "\n";
|
||||
echo ' <td align="right"> ' . $data_size . '<bdo dir="' . $text_dir . '"> </bdo>' . $data_unit . ' </td>' . "\n";
|
||||
echo ' <td align="right"> ' . $idx_size . '<bdo dir="' . $text_dir . '"> </bdo>' . $idx_unit . ' </td>' . "\n";
|
||||
echo ' <td align="right"> <b>' . $tot_size . '<bdo dir="' . $text_dir . '"> </bdo>' . $tot_unit . '</b> </td>' . "\n";
|
||||
echo ' </tr>' . "\n";
|
||||
|
||||
$i++;
|
||||
@@ -278,14 +278,14 @@ if ($num_dbs > 0) {
|
||||
echo ' <th> </th>' . "\n";
|
||||
echo ' <th> ' . $strSum . ': ' . $num_dbs . '</th>' . "\n";
|
||||
echo ' <th align="right"> ' . $total_array[0] . ' </th>' . "\n";
|
||||
echo ' <th align="right"> ' . $data_size . ' ' . $data_unit . ' </th>' . "\n";
|
||||
echo ' <th align="right"> ' . $idx_size . ' ' . $idx_unit . ' </th>' . "\n";
|
||||
echo ' <th align="right"> <b>' . $tot_size . ' ' . $tot_unit . '</b> </th>' . "\n";
|
||||
echo ' <th align="right"> ' . $data_size . '<bdo dir="' . $text_dir . '"> </bdo>' . $data_unit . ' </th>' . "\n";
|
||||
echo ' <th align="right"> ' . $idx_size . '<bdo dir="' . $text_dir . '"> </bdo>' . $idx_unit . ' </th>' . "\n";
|
||||
echo ' <th align="right"> <b>' . $tot_size . '<bdo dir="' . $text_dir . '"> </bdo>' . $tot_unit . '</b> </th>' . "\n";
|
||||
echo ' </tr>' . "\n\n";
|
||||
|
||||
echo ' <tr>' . "\n";
|
||||
echo ' <td colspan="6">' . "\n";
|
||||
echo ' <img src="./images/arrow.gif" border="0" width="38" height="22" alt="' . $strWithChecked . '" />' . "\n";
|
||||
echo ' <img src="./images/arrow_' . $text_dir . '.gif" border="0" width="38" height="22" alt="' . $strWithChecked . '" />' . "\n";
|
||||
echo ' <i>' . $strWithChecked . '</i> <input type="submit" name="submit_mult" value="' . $strDrop . '" />' . "\n";
|
||||
echo ' </td>' . "\n";
|
||||
echo ' </tr>' . "\n";
|
||||
|
@@ -34,11 +34,19 @@ header('Content-Type: text/html; charset=' . $charset);
|
||||
*/
|
||||
// Gets the font sizes to use
|
||||
set_font_sizes();
|
||||
// Defines the cell alignment values depending on text direction
|
||||
if ($text_dir == 'ltr') {
|
||||
$cell_align_left = 'left';
|
||||
$cell_align_right = 'right';
|
||||
} else {
|
||||
$cell_align_left = 'right';
|
||||
$cell_align_right = 'left';
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $available_languages[$lang][2]; ?>" lang="<?php echo $available_languages[$lang][2]; ?>">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $available_languages[$lang][2]; ?>" lang="<?php echo $available_languages[$lang][2]; ?>" dir="<?php echo $text_dir; ?>">
|
||||
|
||||
<head>
|
||||
<title>phpMyAdmin</title>
|
||||
|
Before Width: | Height: | Size: 88 B After Width: | Height: | Size: 88 B |
BIN
images/arrow_rtl.gif
Normal file
BIN
images/arrow_rtl.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 91 B |
Before Width: | Height: | Size: 102 B After Width: | Height: | Size: 102 B |
BIN
images/item_rtl.gif
Normal file
BIN
images/item_rtl.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 102 B |
@@ -35,7 +35,7 @@ $url_query = 'lang=' . $lang
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $available_languages[$lang][2]; ?>" lang="<?php echo $available_languages[$lang][2]; ?>">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $available_languages[$lang][2]; ?>" lang="<?php echo $available_languages[$lang][2]; ?>" dir="<?php echo $text_dir; ?>">
|
||||
<head>
|
||||
<title>phpMyAdmin <?php echo PHPMYADMIN_VERSION; ?> - <?php echo $HTTP_HOST; ?></title>
|
||||
<style type="text/css">
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'iso-8859-1';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = 'helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = ',';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'windows-1251';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'sans-serif';
|
||||
$right_font_family = 'sans-serif';
|
||||
$number_thousands_separator = ',';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'iso-8859-1';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = 'helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = ',';
|
||||
|
@@ -3,6 +3,7 @@
|
||||
// Last translation by: Taiyen Hung <20>x<EFBFBD><78><EFBFBD><EFBFBD><yen789@pchome.com.tw>
|
||||
|
||||
$charset = 'big5';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = 'helvetica, sans-serif';
|
||||
$number_thousands_separator = ',';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'gb2312';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'sans-serif';
|
||||
$right_font_family = 'sans-serif';
|
||||
$number_thousands_separator = ',';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'iso-8859-2';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = '"verdana CE", "Arial CE", verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = '"verdana CE", "Arial CE", helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = ' ';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'windows-1250';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = '"verdana CE", "Arial CE", verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = '"verdana CE", "Arial CE", helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = ' ';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'iso-8859-1';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = 'helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = ',';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'iso-8859-1';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = 'helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = ',';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'iso-8859-1';
|
||||
$text_dir = 'ltr'; // ('ltr' for left to right, 'rtl' for right to left)
|
||||
$left_font_family = 'verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = 'helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = ',';
|
||||
|
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
$charset = 'iso-8859-1';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = 'helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = ',';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'iso-8859-1';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = 'helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = ' ';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'iso-8859-1';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = 'helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = '.';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'iso-8859-1';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = 'helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = '.';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'iso-8859-7';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = 'helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = '.';
|
||||
|
@@ -3,6 +3,7 @@
|
||||
/* Pietro Danesi <danone@aruba.it> 07.09.2001 */
|
||||
|
||||
$charset = 'iso-8859-1';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = 'helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = '.';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'euc-jp';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'sans-serif';
|
||||
$right_font_family = 'sans-serif';
|
||||
$number_thousands_separator = ',';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'ks_c_5601-1987';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'sans-serif';
|
||||
$right_font_family = 'sans-serif';
|
||||
$number_thousands_separator = ',';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'iso-8859-1';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = 'helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = '.';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'iso-8859-2';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'verdana, helvetica, arial ce, arial, sans-serif';
|
||||
$right_font_family = 'helvetica, arial ce, arial, sans-serif';
|
||||
$number_thousands_separator = '.';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'iso-8859-1';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'sans-serif';
|
||||
$right_font_family = 'sans-serif';
|
||||
$number_thousands_separator = ',';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'iso-8859-1';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = 'helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = ',';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'koi8-r';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'sans-serif';
|
||||
$right_font_family = 'sans-serif';
|
||||
$number_thousands_separator = ',';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'windows-1251';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'sans-serif';
|
||||
$right_font_family = 'sans-serif';
|
||||
$number_thousands_separator = ',';
|
||||
|
@@ -3,6 +3,7 @@
|
||||
/* By: lubos klokner <erkac@vault-tec.sk> */
|
||||
|
||||
$charset = 'iso-8859-2';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = '"verdana CE", "Arial CE", verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = '"verdana CE", "Arial CE", helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = ' ';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'iso-8859-1';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = 'helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = ',';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'iso-8859-1';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = 'helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = ' ';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'tis-620';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'sans-serif';
|
||||
$right_font_family = 'sans-serif';
|
||||
$number_thousands_separator = ',';
|
||||
|
@@ -2,6 +2,7 @@
|
||||
/* $Id$ */
|
||||
|
||||
$charset = 'iso-8859-9';
|
||||
$text_dir = 'ltr';
|
||||
$left_font_family = 'verdana, helvetica, arial, geneva, sans-serif';
|
||||
$right_font_family = 'helvetica, arial, geneva, sans-serif';
|
||||
$number_thousands_separator = ',';
|
||||
|
@@ -48,7 +48,7 @@ set_font_sizes();
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $available_languages[$lang][2]; ?>" lang="<?php echo $available_languages[$lang][2]; ?>">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $available_languages[$lang][2]; ?>" lang="<?php echo $available_languages[$lang][2]; ?>" dir="<?php echo $text_dir; ?>">
|
||||
|
||||
<head>
|
||||
<title>phpMyAdmin</title>
|
||||
@@ -216,7 +216,7 @@ if ($num_dbs > 1) {
|
||||
echo "\n";
|
||||
?>
|
||||
<a class="item" href="db_details.php3?<?php echo $common_url_query; ?>" onclick="if (capable) {expandBase('el<?php echo $j; ?>', false)}">
|
||||
<span class="heada"><?php echo $db; ?> </span><span class="headaCnt">(<?php echo $num_tables_disp; ?>)</span></a></nobr>
|
||||
<span class="heada"><?php echo $db; ?> </span><span class="headaCnt"><bdo dir="<?php echo($text_dir); ?>">(<?php echo $num_tables_disp; ?>)</bdo></span></a></nobr>
|
||||
</div>
|
||||
|
||||
<div id="el<?php echo $j;?>Child" class="child" style="margin-bottom: 5px">
|
||||
@@ -288,7 +288,7 @@ else if ($num_dbs == 1) {
|
||||
?>
|
||||
<div id="el2Parent" class="parent">
|
||||
<nobr><a class="item" href="db_details.php3?<?php echo $common_url_query; ?>">
|
||||
<span class="heada"><?php echo $db; ?> </span><span class="headaCnt">(<?php echo $num_tables_disp; ?>)</span></a></nobr>
|
||||
<span class="heada"><?php echo $db; ?> </span><span class="headaCnt"><bdo dir="<?php echo($text_dir); ?>">(<?php echo $num_tables_disp; ?>)</bdo></span></a></nobr>
|
||||
</div>
|
||||
<div id="el2Child" class="child" style="margin-bottom: 5px">
|
||||
<?php
|
||||
|
@@ -76,7 +76,7 @@ if (!defined('__LIB_COMMON__')){
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][2]; ?>" lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][2]; ?>">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][2]; ?>" lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][2]; ?>" dir="<?php echo $GLOBALS['text_dir']; ?>">
|
||||
|
||||
<head>
|
||||
<title><?php echo $GLOBALS['strAccessDenied']; ?></title>
|
||||
@@ -931,7 +931,7 @@ window.parent.frames['nav'].location.replace('<?php echo $reload_url; ?>');
|
||||
}
|
||||
echo "\n";
|
||||
?>
|
||||
<div align="left">
|
||||
<div align="<?php echo $GLOBALS['cell_align_left']; ?>">
|
||||
<table border="<?php echo $GLOBALS['cfgBorder']; ?>" cellpadding="5">
|
||||
<tr>
|
||||
<td bgcolor="<?php echo $GLOBALS['cfgThBgcolor']; ?>">
|
||||
|
34
main.php3
34
main.php3
@@ -9,6 +9,8 @@ require('./libraries/grab_globals.lib.php3');
|
||||
require('./libraries/common.lib.php3');
|
||||
// Puts the language to use in a cookie that will expire in 30 days
|
||||
setcookie('lang', $lang, time() + 60*60*24*30);
|
||||
// Defines the "item" image depending on text direction
|
||||
$item_img = 'images/item_' . $text_dir . '.gif';
|
||||
// Handles some variables that may have been sent by the calling script
|
||||
if (isset($db)) {
|
||||
unset($db);
|
||||
@@ -150,7 +152,7 @@ $is_superuser = FALSE;
|
||||
if ($server > 0) {
|
||||
?>
|
||||
<!-- MySQL server related links -->
|
||||
<td valign="top" align="left">
|
||||
<td valign="top" align="<?php echo $cell_align_left; ?>">
|
||||
<table>
|
||||
<tr>
|
||||
<th colspan="2"> MySQL</th>
|
||||
@@ -209,7 +211,7 @@ if ($server > 0) {
|
||||
?>
|
||||
<!-- db creation form -->
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td valign="baseline"><img src="<?php echo $item_img; ?>" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<form method="post" action="db_create.php3">
|
||||
<?php echo $strCreateNewDatabase . ' ' . show_docu('manual_Reference.html#CREATE_DATABASE'); ?><br />
|
||||
@@ -233,7 +235,7 @@ if ($server > 0) {
|
||||
echo "\n";
|
||||
?>
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td valign="baseline"><img src="<?php echo $item_img; ?>" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="sql.php3?<?php echo $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW STATUS'); ?>&goto=main.php3">
|
||||
<?php echo $strMySQLShowStatus; ?></a>
|
||||
@@ -246,7 +248,7 @@ if ($server > 0) {
|
||||
echo "\n";
|
||||
?>
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td valign="baseline"><img src="<?php echo $item_img; ?>" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="sql.php3?<?php echo $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW VARIABLES'); ?>&goto=main.php3">
|
||||
<?php echo $strMySQLShowVars;?></a>
|
||||
@@ -260,7 +262,7 @@ if ($server > 0) {
|
||||
if ($is_process_priv) {
|
||||
?>
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td valign="baseline"><img src="<?php echo $item_img; ?>" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="sql.php3?<?php echo $common_url_query; ?>&db=mysql&sql_query=<?php echo urlencode('SHOW PROCESSLIST'); ?>&goto=main.php3">
|
||||
<?php echo $strMySQLShowProcess; ?></a>
|
||||
@@ -274,7 +276,7 @@ if ($server > 0) {
|
||||
if ($is_reload_priv) {
|
||||
?>
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td valign="baseline"><img src="<?php echo $item_img; ?>" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="main.php3?<?php echo $common_url_query; ?>&mode=reload">
|
||||
<?php echo $strReloadMySQL; ?></a>
|
||||
@@ -288,7 +290,7 @@ if ($server > 0) {
|
||||
if ($is_superuser) {
|
||||
?>
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td valign="baseline"><img src="<?php echo $item_img; ?>" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="user_details.php3?<?php echo $common_url_query; ?>&db=mysql&table=user">
|
||||
<?php echo $strUsers; ?></a>
|
||||
@@ -300,7 +302,7 @@ if ($server > 0) {
|
||||
echo "\n";
|
||||
?>
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td valign="baseline"><img src="<?php echo $item_img; ?>" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="db_stats.php3?<?php echo $common_url_query; ?>">
|
||||
<?php echo $strDatabasesStats; ?></a>
|
||||
@@ -316,7 +318,7 @@ if ($server > 0) {
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td valign="baseline"><img src="<?php echo $item_img; ?>" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="index.php3?<?php echo $common_url_query; ?>&old_usr=<?php echo urlencode($PHP_AUTH_USER); ?>" target="_parent">
|
||||
<b><?php echo $strLogout; ?></b></a>
|
||||
@@ -342,7 +344,7 @@ echo "\n";
|
||||
?>
|
||||
|
||||
<!-- phpMyAdmin related links -->
|
||||
<td valign="top" align="left">
|
||||
<td valign="top" align="<?php echo $cell_align_left; ?>">
|
||||
<table>
|
||||
<tr>
|
||||
<th colspan="2"> phpMyAdmin</th>
|
||||
@@ -354,12 +356,12 @@ if (empty($cfgLang)) {
|
||||
?>
|
||||
<!-- Language Selection -->
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td valign="baseline"><img src="<?php echo $item_img; ?>" width="7" height="7" alt="item" /></td>
|
||||
<td nowrap="nowrap">
|
||||
<form method="post" action="index.php3" target="_parent">
|
||||
<input type="hidden" name="server" value="<?php echo $server; ?>" />
|
||||
Language:
|
||||
<select name="lang" onchange="this.form.submit();">
|
||||
<select name="lang" dir="ltr" onchange="this.form.submit();">
|
||||
<?php
|
||||
echo "\n";
|
||||
|
||||
@@ -403,7 +405,7 @@ echo "\n";
|
||||
|
||||
<!-- Documentation -->
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td valign="baseline"><img src="<?php echo $item_img; ?>" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="Documentation.html" target="documentation"><b><?php echo $strPmaDocumentation; ?></b></a>
|
||||
</td>
|
||||
@@ -414,7 +416,7 @@ if ($is_superuser || $cfgShowPhpInfo) {
|
||||
?>
|
||||
<!-- PHP Information -->
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td valign="baseline"><img src="<?php echo $item_img; ?>" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="phpinfo.php3" target="_new"><?php echo $strShowPHPInfo; ?></a>
|
||||
</td>
|
||||
@@ -426,13 +428,13 @@ echo "\n";
|
||||
|
||||
<!-- phpMyAdmin related urls -->
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td valign="baseline"><img src="<?php echo $item_img; ?>" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="http://phpwizard.net/projects/phpMyAdmin/" target="_new"><?php echo $strHomepageOfficial; ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
|
||||
<td valign="baseline"><img src="<?php echo $item_img; ?>" width="7" height="7" alt="item" /></td>
|
||||
<td>
|
||||
<a href="http://phpmyadmin.sourceforge.net/" target="_new">
|
||||
<?php echo $strHomepageSourceforge; ?></a><br />
|
||||
|
@@ -104,7 +104,7 @@ if (empty($asfile)) {
|
||||
include('./header.inc.php3');
|
||||
$cfgServer = $cfgServer_backup;
|
||||
unset($cfgServer_backup);
|
||||
echo '<div align="left">' . "\n";
|
||||
echo '<div align="' . $cell_align_left . '">' . "\n";
|
||||
echo ' <pre>' . "\n";
|
||||
} // end if
|
||||
|
||||
|
@@ -371,7 +371,7 @@ if ($cfgShowStats) {
|
||||
?>
|
||||
<tr bgcolor="<?php echo ((++$i%2) ? $cfgBgcolorTwo : $cfgBgcolorOne); ?>">
|
||||
<td><?php echo ucfirst($strFormat); ?></td>
|
||||
<td align="right" nowrap="nowrap">
|
||||
<td align="<?php echo $cell_align_right; ?>" nowrap="nowrap">
|
||||
<?php
|
||||
echo ' ';
|
||||
if ($showtable['Row_format'] == 'Fixed') {
|
||||
@@ -415,7 +415,7 @@ if ($cfgShowStats) {
|
||||
<tr bgcolor="<?php echo ((++$i%2) ? $cfgBgcolorTwo : $cfgBgcolorOne); ?>">
|
||||
<td><?php echo ucfirst($strRowSize); ?> ø</td>
|
||||
<td align="right" nowrap="nowrap">
|
||||
<?php echo "$avg_size $avg_unit\n"; ?>
|
||||
<?php echo $avg_size . '<bdo dir="' . $text_dir . '"> </bdo>' . $avg_unit . "\n"; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
|
@@ -354,7 +354,7 @@ echo "\n";
|
||||
|
||||
<tr>
|
||||
<td colspan="<?php echo((MYSQL_INT_VERSION >= 32323) ? '13' : '12'); ?>">
|
||||
<img src="./images/arrow.gif" border="0" width="38" height="22" alt="<?php echo $strWithChecked; ?>" />
|
||||
<img src="./images/arrow_<?php echo $text_dir; ?>.gif" border="0" width="38" height="22" alt="<?php echo $strWithChecked; ?>" />
|
||||
<i><?php echo $strWithChecked; ?></i>
|
||||
<input type="submit" name="submit_mult" value="<?php echo $strChange; ?>" />
|
||||
<?php
|
||||
@@ -550,7 +550,7 @@ if ($cfgShowStats) {
|
||||
?>
|
||||
<tr bgcolor="<?php echo ((++$i%2) ? $cfgBgcolorTwo : $cfgBgcolorOne); ?>">
|
||||
<td><?php echo ucfirst($strFormat); ?></td>
|
||||
<td align="right" nowrap="nowrap">
|
||||
<td align="<?php echo $cell_align_right; ?>" nowrap="nowrap">
|
||||
<?php
|
||||
echo ' ';
|
||||
if ($showtable['Row_format'] == 'Fixed') {
|
||||
@@ -596,7 +596,7 @@ if ($cfgShowStats) {
|
||||
<tr bgcolor="<?php echo ((++$i%2) ? $cfgBgcolorTwo : $cfgBgcolorOne); ?>">
|
||||
<td><?php echo ucfirst($strRowSize); ?> ø</td>
|
||||
<td align="right" nowrap="nowrap">
|
||||
<?php echo "$avg_size $avg_unit\n"; ?>
|
||||
<?php echo $avg_size . '<bdo dir="' . $text_dir . '"> </bdo>' . $avg_unit . "\n"; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
@@ -903,7 +903,7 @@ for ($i = 0; $i < $num_dbs; $i++) {
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" valign="top">
|
||||
<td align="<?php echo $cell_align_right; ?>" valign="top">
|
||||
<input type="submit" name="submit_move" value="<?php echo $strGo; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
@@ -951,7 +951,7 @@ for ($i = 0; $i < $num_dbs; $i++) {
|
||||
<input type="radio" name="what" value="data" />
|
||||
<?php echo $strStrucData; ?>
|
||||
</td>
|
||||
<td align="right" valign="top">
|
||||
<td align="<?php echo $cell_align_right; ?>" valign="top">
|
||||
<input type="submit" name="submit_copy" value="<?php echo $strGo; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
|
36
tbl_qbe.php3
36
tbl_qbe.php3
@@ -155,7 +155,7 @@ mysql_free_result($tbl_result);
|
||||
|
||||
<!-- Fields row -->
|
||||
<tr>
|
||||
<td align="right" bgcolor="<?php echo $cfgThBgcolor; ?>">
|
||||
<td align="<?php echo $cell_align_right; ?>" bgcolor="<?php echo $cfgThBgcolor; ?>">
|
||||
<b><?php echo $strField; ?> : </b>
|
||||
</td>
|
||||
<?php
|
||||
@@ -216,7 +216,7 @@ for ($x = 0; $x < $col; $x++) {
|
||||
|
||||
<!-- Sort row -->
|
||||
<tr>
|
||||
<td align="right" bgcolor="<?php echo $cfgThBgcolor; ?>">
|
||||
<td align="<?php echo $cell_align_right; ?>" bgcolor="<?php echo $cfgThBgcolor; ?>">
|
||||
<b><?php echo $strSort; ?> : </b>
|
||||
</td>
|
||||
<?php
|
||||
@@ -273,7 +273,7 @@ for ($x = 0; $x < $col; $x++) {
|
||||
|
||||
<!-- Show row -->
|
||||
<tr>
|
||||
<td align="right" bgcolor="<?php echo $cfgThBgcolor; ?>">
|
||||
<td align="<?php echo $cell_align_right; ?>" bgcolor="<?php echo $cfgThBgcolor; ?>">
|
||||
<b><?php echo $strShow; ?> : </b>
|
||||
</td>
|
||||
<?php
|
||||
@@ -311,7 +311,7 @@ for ($x = 0; $x < $col; $x++) {
|
||||
|
||||
<!-- Criteria row -->
|
||||
<tr>
|
||||
<td align="right" bgcolor="<?php echo $cfgThBgcolor; ?>">
|
||||
<td align="<?php echo $cell_align_right; ?>" bgcolor="<?php echo $cfgThBgcolor; ?>">
|
||||
<b><?php echo $strCriteria; ?> : </b>
|
||||
</td>
|
||||
<?php
|
||||
@@ -367,15 +367,15 @@ for ($y = 0; $y <= $row; $y++) {
|
||||
$chk['and'] = '';
|
||||
?>
|
||||
<tr>
|
||||
<td align="right" bgcolor="<?php echo $bgcolor; ?>" nowrap="nowrap">
|
||||
<td align="<?php echo $cell_align_right; ?>" bgcolor="<?php echo $bgcolor; ?>" nowrap="nowrap">
|
||||
<!-- Row controls -->
|
||||
<table bgcolor="<?php echo $bgcolor; ?>">
|
||||
<tr>
|
||||
<td align="right" nowrap="nowrap">
|
||||
<td align="<?php echo $cell_align_right; ?>" nowrap="nowrap">
|
||||
<small><?php echo $strQBEIns; ?> :</small>
|
||||
<input type="checkbox" name="InsRow[<?php echo $w; ?>]" />
|
||||
</td>
|
||||
<td align="right">
|
||||
<td align="<?php echo $cell_align_right; ?>">
|
||||
<b><?php echo $strAnd; ?> :</b>
|
||||
</td>
|
||||
<td>
|
||||
@@ -384,11 +384,11 @@ for ($y = 0; $y <= $row; $y++) {
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" nowrap="nowrap">
|
||||
<td align="<?php echo $cell_align_right; ?>" nowrap="nowrap">
|
||||
<small><?php echo $strQBEDel; ?> :</small>
|
||||
<input type="checkbox" name="DelRow[<?php echo $w; ?>]" />
|
||||
</td>
|
||||
<td align="right">
|
||||
<td align="<?php echo $cell_align_right; ?>">
|
||||
<b><?php echo $strOr; ?> :</b>
|
||||
</td>
|
||||
<td>
|
||||
@@ -448,15 +448,15 @@ for ($y = 0; $y <= $row; $y++) {
|
||||
echo "\n";
|
||||
?>
|
||||
<tr>
|
||||
<td align="right" nowrap="nowrap">
|
||||
<td align="<?php echo $cell_align_right; ?>" nowrap="nowrap">
|
||||
<!-- Row controls -->
|
||||
<table bgcolor="<?php echo $bgcolor; ?>">
|
||||
<tr>
|
||||
<td align="right" nowrap="nowrap">
|
||||
<td align="<?php echo $cell_align_right; ?>" nowrap="nowrap">
|
||||
<small><?php echo $strQBEIns; ?> :</small>
|
||||
<input type="checkbox" name="InsRow[<?php echo $w; ?>]" />
|
||||
</td>
|
||||
<td align="right">
|
||||
<td align="<?php echo $cell_align_right; ?>">
|
||||
<b><?php echo $strAnd; ?> :</b>
|
||||
</td>
|
||||
<td>
|
||||
@@ -464,11 +464,11 @@ for ($y = 0; $y <= $row; $y++) {
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" nowrap="nowrap">
|
||||
<td align="<?php echo $cell_align_right; ?>" nowrap="nowrap">
|
||||
<small><?php echo $strQBEDel; ?> :</small>
|
||||
<input type="checkbox" name="DelRow[<?php echo $w; ?>]" />
|
||||
</td>
|
||||
<td align="right">
|
||||
<td align="<?php echo $cell_align_right; ?>">
|
||||
<b><?php echo $strOr; ?> :</b>
|
||||
</td>
|
||||
<td>
|
||||
@@ -529,7 +529,7 @@ for ($y = 0; $y <= $row; $y++) {
|
||||
|
||||
<!-- Modify columns -->
|
||||
<tr>
|
||||
<td align="right" bgcolor="<?php echo $cfgThBgcolor; ?>">
|
||||
<td align="<?php echo $cell_align_right; ?>" bgcolor="<?php echo $cfgThBgcolor; ?>">
|
||||
<b><?php echo $strModify; ?> : </b>
|
||||
</td>
|
||||
<?php
|
||||
@@ -600,7 +600,7 @@ for ($x = 0; $x < $col; $x++) {
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<table border="0" align="left">
|
||||
<table border="0" align="<?php echo $cell_align_left; ?>">
|
||||
<tr>
|
||||
<td rowspan="4" valign="top">
|
||||
<?php echo $strUseTables; ?> :
|
||||
@@ -614,7 +614,7 @@ while (list($key, $val) = each($tbl_names)) {
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
<td align="right" valign="bottom">
|
||||
<td align="<?php echo $cell_align_right; ?>" valign="bottom">
|
||||
<input type="hidden" value="<?php echo $db; ?>" name="db" />
|
||||
<input type="hidden" value="<?php echo $z; ?>" name="Columns" />
|
||||
<?php
|
||||
@@ -634,7 +634,7 @@ $w--;
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" valign="bottom">
|
||||
<td align="<?php echo $cell_align_right; ?>" valign="bottom">
|
||||
<?php echo $strAddDeleteColumn; ?> :
|
||||
<select size="1" name="Add_Col">
|
||||
<option value="-3">-3</option>
|
||||
|
@@ -677,7 +677,7 @@ function edit_operations($host, $user)
|
||||
<td colspan="3"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" align="left"> <?php echo $GLOBALS['strOr']; ?></td>
|
||||
<td colspan="4" align="<?php echo $cell_align_left; ?>"> <?php echo $GLOBALS['strOr']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
Reference in New Issue
Block a user