no table creation in information_schema
This commit is contained in:
@@ -630,6 +630,8 @@ if ($num_tables > 0) {
|
||||
<tr><td colspan="3"><img src="<?php echo $GLOBALS['pmaThemeImage'] . 'spacer.png'; ?>" width="1" height="1" border="0" alt="" /></td></tr></table>
|
||||
<?php
|
||||
} // end if
|
||||
|
||||
if (PMA_MYSQL_INT_VERSION < 50002 || (PMA_MYSQL_INT_VERSION >= 50002 && $db != 'information_schema')) {
|
||||
?>
|
||||
<!-- Create a new table -->
|
||||
<form method="post" action="tbl_create.php" onsubmit="return (emptyFormElements(this, 'table') && checkFormElementInRange(this, 'num_fields', '<?php echo str_replace('\'', '\\\'', $GLOBALS['strInvalidFieldCount']); ?>', 1))">
|
||||
@@ -643,28 +645,29 @@ if ($num_tables > 0) {
|
||||
. htmlspecialchars($GLOBALS['db']) . '</a>';
|
||||
// else use
|
||||
// $strDBLink = htmlspecialchars($db);
|
||||
echo ' ' . sprintf($strCreateNewTable, $strDBLink) . ': ' . "\n";
|
||||
echo ' </td></tr>';
|
||||
echo ' <tr bgcolor="'.$cfg['BgcolorOne'].'"><td nowrap="nowrap">';
|
||||
echo ' ' . $strName . ': ' . "\n";
|
||||
echo ' </td>';
|
||||
echo ' <td nowrap="nowrap">';
|
||||
echo ' ' . '<input type="text" name="table" maxlength="64" size="30" class="textfield" />';
|
||||
echo ' </td><td> </td></tr>';
|
||||
echo ' <tr bgcolor="'.$cfg['BgcolorOne'].'"><td nowrap="nowrap">';
|
||||
if (!isset($strNumberOfFields)) {
|
||||
$strNumberOfFields = $strFields;
|
||||
}
|
||||
echo ' ' . $strNumberOfFields . ': ' . "\n";
|
||||
echo ' </td>';
|
||||
echo ' <td nowrap="nowrap">';
|
||||
echo ' ' . '<input type="text" name="num_fields" size="2" class="textfield" />' . "\n";
|
||||
echo ' </td>';
|
||||
echo ' <td align="right">';
|
||||
echo ' ' . ' <input type="submit" value="' . $strGo . '" />' . "\n";
|
||||
echo ' </td> </tr>';
|
||||
echo ' </table>';
|
||||
echo '</form>';
|
||||
echo ' ' . sprintf($strCreateNewTable, $strDBLink) . ': ' . "\n";
|
||||
echo ' </td></tr>';
|
||||
echo ' <tr bgcolor="'.$cfg['BgcolorOne'].'"><td nowrap="nowrap">';
|
||||
echo ' ' . $strName . ': ' . "\n";
|
||||
echo ' </td>';
|
||||
echo ' <td nowrap="nowrap">';
|
||||
echo ' ' . '<input type="text" name="table" maxlength="64" size="30" class="textfield" />';
|
||||
echo ' </td><td> </td></tr>';
|
||||
echo ' <tr bgcolor="'.$cfg['BgcolorOne'].'"><td nowrap="nowrap">';
|
||||
if (!isset($strNumberOfFields)) {
|
||||
$strNumberOfFields = $strFields;
|
||||
}
|
||||
echo ' ' . $strNumberOfFields . ': ' . "\n";
|
||||
echo ' </td>';
|
||||
echo ' <td nowrap="nowrap">';
|
||||
echo ' ' . '<input type="text" name="num_fields" size="2" class="textfield" />' . "\n";
|
||||
echo ' </td>';
|
||||
echo ' <td align="right">';
|
||||
echo ' ' . ' <input type="submit" value="' . $strGo . '" />' . "\n";
|
||||
echo ' </td> </tr>';
|
||||
echo ' </table>';
|
||||
echo '</form>';
|
||||
} // end if (Create Table dialog)
|
||||
|
||||
/**
|
||||
* Displays the footer
|
||||
|
Reference in New Issue
Block a user