tried to fix bug #494564 - No Sql Query!
This commit is contained in:
@@ -11,6 +11,8 @@ $Source$
|
|||||||
errors and removed "$strLogin" from the title of the login page.
|
errors and removed "$strLogin" from the title of the login page.
|
||||||
* tbl_properties.inc.php3, line 30: beautified the generated page.
|
* tbl_properties.inc.php3, line 30: beautified the generated page.
|
||||||
* lang/german.inc.php3: updated thanks to Alexander M. Turek.
|
* lang/german.inc.php3: updated thanks to Alexander M. Turek.
|
||||||
|
* db_details.php3; tbl_properties.php3: tried to fix bug #494564 - No Sql
|
||||||
|
Query! (2 MB).
|
||||||
|
|
||||||
2002-02-09 Marc Delisle <lem9@users.sourceforge.net>
|
2002-02-09 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* main.php3, libraries/auth/cookie.auth.lib.php3, Patch
|
* main.php3, libraries/auth/cookie.auth.lib.php3, Patch
|
||||||
|
@@ -496,12 +496,17 @@ if ($num_tables > 0) {
|
|||||||
</li>
|
</li>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// loic1: defines wether file upload is available or not
|
||||||
|
$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')))
|
||||||
|
: (intval(@get_cfg_var('upload_max_filesize')));
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- Query box, sql file loader and bookmark support -->
|
<!-- Query box, sql file loader and bookmark support -->
|
||||||
<li>
|
<li>
|
||||||
<a name="querybox"></a>
|
<a name="querybox"></a>
|
||||||
<form method="post" action="read_dump.php3" enctype="multipart/form-data"
|
<form method="post" action="read_dump.php3"<?php if ($is_upload) echo ' enctype="multipart/form-data"'; ?>
|
||||||
onsubmit="return checkSqlQuery(this)">
|
onsubmit="return checkSqlQuery(this)">
|
||||||
<input type="hidden" name="is_js_confirmed" value="0" />
|
<input type="hidden" name="is_js_confirmed" value="0" />
|
||||||
<input type="hidden" name="lang" value="<?php echo $lang; ?>" />
|
<input type="hidden" name="lang" value="<?php echo $lang; ?>" />
|
||||||
@@ -521,9 +526,6 @@ if ($num_tables > 0) {
|
|||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
// loic1: displays import dump feature only if file upload available
|
// loic1: displays import dump feature only if file upload available
|
||||||
$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')))
|
|
||||||
: (intval(@get_cfg_var('upload_max_filesize')));
|
|
||||||
if ($is_upload) {
|
if ($is_upload) {
|
||||||
echo ' <i>' . $strOr . '</i> ' . $strLocationTextfile . ' :<br />' . "\n";
|
echo ' <i>' . $strOr . '</i> ' . $strLocationTextfile . ' :<br />' . "\n";
|
||||||
?>
|
?>
|
||||||
|
@@ -681,6 +681,10 @@ echo "\n";
|
|||||||
/**
|
/**
|
||||||
* Work on the table
|
* Work on the table
|
||||||
*/
|
*/
|
||||||
|
// loic1: defines wether file upload is available or not
|
||||||
|
$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')))
|
||||||
|
: (intval(@get_cfg_var('upload_max_filesize')));
|
||||||
?>
|
?>
|
||||||
<!-- TABLE WORK -->
|
<!-- TABLE WORK -->
|
||||||
<ul>
|
<ul>
|
||||||
@@ -693,7 +697,7 @@ echo "\n";
|
|||||||
<!-- Query box and bookmark support -->
|
<!-- Query box and bookmark support -->
|
||||||
<li>
|
<li>
|
||||||
<a name="querybox"></a>
|
<a name="querybox"></a>
|
||||||
<form method="post" action="read_dump.php3" enctype="multipart/form-data"
|
<form method="post" action="read_dump.php3"<?php if ($is_upload) echo ' enctype="multipart/form-data"'; ?>
|
||||||
onsubmit="return checkSqlQuery(this)">
|
onsubmit="return checkSqlQuery(this)">
|
||||||
<input type="hidden" name="is_js_confirmed" value="0" />
|
<input type="hidden" name="is_js_confirmed" value="0" />
|
||||||
<input type="hidden" name="lang" value="<?php echo $lang; ?>" />
|
<input type="hidden" name="lang" value="<?php echo $lang; ?>" />
|
||||||
@@ -714,9 +718,6 @@ echo "\n";
|
|||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
// loic1: displays import dump feature only if file upload available
|
// loic1: displays import dump feature only if file upload available
|
||||||
$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')))
|
|
||||||
: (intval(@get_cfg_var('upload_max_filesize')));
|
|
||||||
if ($is_upload) {
|
if ($is_upload) {
|
||||||
echo ' <i>' . $strOr . '</i> ' . $strLocationTextfile . ' :<br />' . "\n";
|
echo ' <i>' . $strOr . '</i> ' . $strLocationTextfile . ' :<br />' . "\n";
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user