suppress Table Maintenance, Comment and Type for MySQL Version < 3.23
This commit is contained in:
@@ -438,7 +438,10 @@ echo " </select>\n";
|
|||||||
</form>
|
</form>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
|
<?php
|
||||||
|
if(MYSQL_MAJOR_VERSION == "3.23" && intval(MYSQL_MINOR_VERSION)>=3)
|
||||||
|
{
|
||||||
|
?>
|
||||||
<tr><td valign=top><li> </td><td colspan=2>
|
<tr><td valign=top><li> </td><td colspan=2>
|
||||||
<table><tr><td><?php echo $strTableMaintenance . ":"; ?> </td>
|
<table><tr><td><?php echo $strTableMaintenance . ":"; ?> </td>
|
||||||
<td><a href="sql.php3?sql_query=<?php echo urlencode("CHECK TABLE $table");?>&display=simple&<?php echo $query;?>">
|
<td><a href="sql.php3?sql_query=<?php echo urlencode("CHECK TABLE $table");?>&display=simple&<?php echo $query;?>">
|
||||||
@@ -488,6 +491,18 @@ echo " </select>\n";
|
|||||||
<option <?php if($tbl_type == "MYISAM") echo 'selected';?> value="MYISAM">MyISAM</option>
|
<option <?php if($tbl_type == "MYISAM") echo 'selected';?> value="MYISAM">MyISAM</option>
|
||||||
</select> <input type='submit' name='submittype' value='<?php echo $strGo; ?>'></form>
|
</select> <input type='submit' name='submittype' value='<?php echo $strGo; ?>'></form>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
else{ // MySQL < 3.23
|
||||||
|
?>
|
||||||
|
<tr><td><li> </td><td><?php echo "$strTableMaintenance: ";?></td>
|
||||||
|
<td><a href="sql.php3?sql_query=<?php echo urlencode("OPTIMIZE TABLE $table");?>&display=simple&<?php echo $query;?>">
|
||||||
|
<?php echo $strOptimizeTable; ?>
|
||||||
|
</a> <?php echo show_docu("manual_Reference.html#OPTIMIZE_TABLE");?>
|
||||||
|
</td></tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
</table>
|
</table>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user