This commit is contained in:
Marc Delisle
2002-07-22 13:18:02 +00:00
parent aab4919565
commit ed74cb4bfa
14 changed files with 46 additions and 31 deletions

View File

@@ -5,6 +5,19 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2002-07-22 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* libraries/common.lib.php3, lines 198-200: open the documentation
link in the "documentation" window.
* libraries/charset_conversion.lib.php3; libraries/select_lang.lib.php3:
PHP3 fixes (don't use "require" inside a conditional statement).
* Documentation.html: XHTML fixes.
* db_details_structure.php3; tbl_properties.php3;
tbl_change.php3, line 336; tbl_properties_structure.php3;
tbl_select.php3, lines 122 & 127; tbl_query_box.php3: XHTML fixes.
* db_details.php3; db_details_links.php3;
tbl_properties_export.php3, lines 156-158: beautified generated
XHTML code.
2002-07-21 Marc Delisle <lem9@users.sourceforge.net> 2002-07-21 Marc Delisle <lem9@users.sourceforge.net>
* Documentation.html, libraries/common.lib.php3: added a faq about * Documentation.html, libraries/common.lib.php3: added a faq about
mysql extension, and a link to it when the error occurs mysql extension, and a link to it when the error occurs

View File

@@ -1603,8 +1603,8 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
</p> </p>
<p> <p>
<b>I can't run the "display relations" feature because the script seems <b>I can't run the &quot;display relations&quot; feature because the script
not to know the font face I'm using!</b> seems not to know the font face I'm using!</b>
<br /> <br />
The &quot;FPDF&quot; library we're using for this feature requires some The &quot;FPDF&quot; library we're using for this feature requires some
special files to use font faces.<br /> special files to use font faces.<br />
@@ -1615,19 +1615,19 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
<a name="faqmysql"></a> <a name="faqmysql"></a>
<p> <p>
<b>I receive the error 'cannot load MySQL extension, please check <b>I receive the error &quot;cannot load MySQL extension, please check
PHP Configuration'.</b> PHP Configuration&quot;.</b>
<br /> <br />
To connect to a MySQL server, PHP needs a set of MySQL functions called To connect to a MySQL server, PHP needs a set of MySQL functions called
&quot;MySQL extension&quot;. &quot;MySQL extension&quot;.
This extension may be part of the PHP server (compiled-in), otherwise This extension may be part of the PHP server (compiled-in), otherwise it
it needs to be loaded dynamically. phpMyAdmin tried to load the extension needs to be loaded dynamically. phpMyAdmin tried to load the extension but
but failed. failed.
<br /><br /> <br /><br />
Usually, the problem is solved by installing a software package called Usually, the problem is solved by installing a software package called
&quot;PHP-MySQL&quot; or something similar. &quot;PHP-MySQL&quot; or something similar.
</p> </p>
<a name="faqconfig"></a> <a name="faqconfig"></a>
<h3>[Configuration]</h3> <h3>[Configuration]</h3>
@@ -2203,8 +2203,8 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
existing language, where do I start?</b> existing language, where do I start?</b>
<br /> <br />
Always use the current cvs version of your language file. Always use the current cvs version of your language file.
For a new language, start from english-iso-8859-1.inc.php3. If you don't For a new language, start from <i>english-iso-8859-1.inc.php3</i>. If you
know how to get the cvs version, please ask one of the developers. don't know how to get the cvs version, please ask one of the developers.
<br /> <br />
Please note that we try not to use html entities like &amp;eacute; in Please note that we try not to use html entities like &amp;eacute; in
the translations, since we define the right character set in the file. the translations, since we define the right character set in the file.

View File

@@ -45,7 +45,6 @@ $is_upload = (PMA_PHP_INT_VERSION >= 40000 && function_exists('ini_get'))
? ((strtolower(ini_get('file_uploads')) == 'on' || ini_get('file_uploads') == 1) && intval(ini_get('upload_max_filesize'))) ? ((strtolower(ini_get('file_uploads')) == 'on' || ini_get('file_uploads') == 1) && intval(ini_get('upload_max_filesize')))
// loic1: php 3.0.15 and lower bug -> always enabled // loic1: php 3.0.15 and lower bug -> always enabled
: (PMA_PHP_INT_VERSION < 30016 || intval(@get_cfg_var('upload_max_filesize'))); : (PMA_PHP_INT_VERSION < 30016 || intval(@get_cfg_var('upload_max_filesize')));
?> ?>
<!-- Query box, sql file loader and bookmark support --> <!-- Query box, sql file loader and bookmark support -->
<a name="querybox"></a> <a name="querybox"></a>

View File

@@ -82,3 +82,4 @@ echo "\n";
</tr> </tr>
</table> </table>
<br /> <br />

View File

@@ -452,9 +452,11 @@ echo ' ' . '&nbsp;<input type="submit" value="' . $strGo . '" />' . "\n";
<?php <?php
if ($num_tables > 0 if ($num_tables > 0
&& !$cfgRelation['allworks'] && $cfg['PmaNoRelation_DisableWarning'] == FALSE) { && !$cfgRelation['allworks'] && $cfg['PmaNoRelation_DisableWarning'] == FALSE) {
echo '<font color="red">' . $strError . '</font><br />' . "\n"; echo ' <li>' . "\n";
echo ' <font color="red">' . $strError . '</font><br />' . "\n";
$url_to_goto = '<a href="' . $cfg['PmaAbsoluteUri'] . 'chk_rel.php3?' . $url_query . '">'; $url_to_goto = '<a href="' . $cfg['PmaAbsoluteUri'] . 'chk_rel.php3?' . $url_query . '">';
echo sprintf($strRelationNotWorking, $url_to_goto, '</a>') . "\n"; echo ' ' . sprintf($strRelationNotWorking, $url_to_goto, '</a>') . "\n";
echo ' </li>' . "\n";
} // end if } // end if
// is this OK to check for 'class' support? // is this OK to check for 'class' support?
@@ -466,7 +468,7 @@ if ($cfgRelation['pdfwork'] && $num_tables > 0) {
<a href="pdf_pages.php3?<?php echo $takeaway; ?>"><?php echo $strEditPDFPages; ?></a> <a href="pdf_pages.php3?<?php echo $takeaway; ?>"><?php echo $strEditPDFPages; ?></a>
</li> </li>
<!-- PDF schema --> <!-- PDF schema -->
<?php <?php
// We only show this if we find something in the new pdf_pages table // We only show this if we find something in the new pdf_pages table
$test_query = 'SELECT * FROM ' . PMA_backquote($cfgRelation['pdf_pages']) $test_query = 'SELECT * FROM ' . PMA_backquote($cfgRelation['pdf_pages'])

View File

@@ -147,11 +147,11 @@ if (!defined('PMA_CHARSET_CONVERSION_LIB_INCLUDED')){
return recode_string($charset . '..' . $convcharset, $what); return recode_string($charset . '..' . $convcharset, $what);
} else { } else {
if (!isset($GLOBALS['is_header_sent'])) { if (!isset($GLOBALS['is_header_sent'])) {
require('./header.inc.php3'); include('./header.inc.php3');
} }
echo $GLOBALS['strCantUseRecodeIconv']; echo $GLOBALS['strCantUseRecodeIconv'];
require('./footer.inc.php3'); include('./footer.inc.php3');
exit; exit();
} }
} }
} // end of the "PMA_convert_charset()" function } // end of the "PMA_convert_charset()" function

View File

@@ -192,12 +192,11 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
$suffix = '.so'; $suffix = '.so';
} }
if (!@extension_loaded($extension)) { if (!@extension_loaded($extension)) {
@dl($extension.$suffix); @dl($extension . $suffix);
} }
if (!@extension_loaded($extension)) { if (!@extension_loaded($extension)) {
echo $strCantLoadMySQL . '<br /> ' echo $strCantLoadMySQL . '<br />' . "\n"
. '<a href="Documentation.html#faqmysql">' . '<a href="./Documentation.html#faqmysql" target="documentation">' . $GLOBALS['strDocu'] . '</a>' . "\n";
. $GLOBALS['strDocu'] . '</a>';
exit(); exit();
} }
} // end load mysql extension } // end load mysql extension

View File

@@ -8,7 +8,7 @@
if (!defined('PMA_SELECT_LANG_LIB_INCLUDED')){ if (!defined('PMA_SELECT_LANG_LIB_INCLUDED')) {
define('PMA_SELECT_LANG_LIB_INCLUDED', 1); define('PMA_SELECT_LANG_LIB_INCLUDED', 1);
/** /**
@@ -272,7 +272,7 @@ if (!defined('PMA_SELECT_LANG_LIB_INCLUDED')){
// 5. Defines the associated filename and load the translation // 5. Defines the associated filename and load the translation
$lang_file = $lang_path . $available_languages[$lang][1] . '.inc.php3'; $lang_file = $lang_path . $available_languages[$lang][1] . '.inc.php3';
require('./' . $lang_file); include('./' . $lang_file);
} // $__PMA_SELECT_LANG_LIB__ } // $__PMA_SELECT_LANG_LIB__
?> ?>

View File

@@ -333,7 +333,7 @@ for ($i = 0; $i < $fields_cnt; $i++) {
echo ' <td bgcolor="' . $bgcolor . '">' . "\n"; echo ' <td bgcolor="' . $bgcolor . '">' . "\n";
if (!(($cfg['ProtectBinary'] && $is_blob) || ($cfg['ProtectBinary'] == 'all' && $is_binary)) if (!(($cfg['ProtectBinary'] && $is_blob) || ($cfg['ProtectBinary'] == 'all' && $is_binary))
&& $row_table_def['Null'] == 'YES') { && $row_table_def['Null'] == 'YES') {
echo ' <input type="checkbox" tabindex=' . ($i+3*$fields_cnt) . '"' echo ' <input type="checkbox" tabindex="' . ($i+3*$fields_cnt) . '"'
. ' name="fields_null[' . urlencode($field) . ']"'; . ' name="fields_null[' . urlencode($field) . ']"';
if ($data == 'NULL' && !$first_timestamp) { if ($data == 'NULL' && !$first_timestamp) {
echo ' checked="checked"'; echo ' checked="checked"';

View File

@@ -17,6 +17,7 @@ require('./tbl_properties_table_info.php3');
?> ?>
<ul> <ul>
<!-- TABLE WORK -->
<?php <?php
/** /**
* Query box, bookmark, insert data from textfile * Query box, bookmark, insert data from textfile

View File

@@ -153,7 +153,9 @@ echo "\n";
</table> </table>
</form> </form>
<a href="./Documentation.html#faqexport" target="documentation"><?php echo $strDocu; ?></a> <p align="center">
<a href="./Documentation.html#faqexport" target="documentation"><?php echo $strDocu; ?></a>
</p>
<?php <?php

View File

@@ -545,7 +545,7 @@ echo "\n";
<div style="margin-bottom: 10px"> <div style="margin-bottom: 10px">
<a href="sql.php3?<?php echo $url_query; ?>&amp;session_max_rows=all&amp;sql_query=<?php echo urlencode('SELECT * FROM ' . PMA_backquote($table) . ' PROCEDURE ANALYSE()'); ?>"> <a href="sql.php3?<?php echo $url_query; ?>&amp;session_max_rows=all&amp;sql_query=<?php echo urlencode('SELECT * FROM ' . PMA_backquote($table) . ' PROCEDURE ANALYSE()'); ?>">
<?php echo $strStructPropose; ?></a> <?php echo $strStructPropose; ?></a>
<?php echo PMA_showDocuShort('p/r/procedure_analyse.html'); ?> <?php echo PMA_showDocuShort('p/r/procedure_analyse.html') . "\n"; ?>
</div> </div>
</li> </li>

View File

@@ -53,11 +53,9 @@ $is_upload = (PMA_PHP_INT_VERSION >= 40000 && function_exists('ini_get'))
: (PMA_PHP_INT_VERSION < 30016 || intval(@get_cfg_var('upload_max_filesize'))); : (PMA_PHP_INT_VERSION < 30016 || intval(@get_cfg_var('upload_max_filesize')));
?> ?>
<!-- TABLE WORK -->
<a name="querybox"></a>
<!-- Query box and bookmark support --> <!-- Query box and bookmark support -->
<li> <li>
<a name="querybox"></a>
<form method="post" action="read_dump.php3"<?php if ($is_upload) echo ' enctype="multipart/form-data"'; echo "\n"; ?> <form method="post" action="read_dump.php3"<?php if ($is_upload) echo ' enctype="multipart/form-data"'; echo "\n"; ?>
onsubmit="return checkSqlQuery(this)" name="sqlform"> onsubmit="return checkSqlQuery(this)" name="sqlform">
<input type="hidden" name="is_js_confirmed" value="0" /> <input type="hidden" name="is_js_confirmed" value="0" />

View File

@@ -119,12 +119,12 @@ if (!isset($param) || $param[0] == '') {
if (eregi('char|blob|text|set|enum', $fields_type[$i])) { if (eregi('char|blob|text|set|enum', $fields_type[$i])) {
while (list($k, $fc) = each($textfunctions)) { while (list($k, $fc) = each($textfunctions)) {
echo "\n" . ' ' echo "\n" . ' '
. '<option value="' . $fc . '">' . htmlentities($fc) . '</option>'; . '<option value="' . htmlspecialchars($fc) . '">' . htmlspecialchars($fc) . '</option>';
} // end while } // end while
} else { } else {
while (list($k, $fc) = each($numfunctions)) { while (list($k, $fc) = each($numfunctions)) {
echo "\n" . ' ' echo "\n" . ' '
. '<option value="' . $fc . '">' . htmlentities($fc) . '</option>'; . '<option value="' . htmlspecialchars($fc) . '">' . htmlspecialchars($fc) . '</option>';
} // end while } // end while
} // end if... else... } // end if... else...
echo "\n"; echo "\n";