?> /images/elegantthemes_sm.png" width="310" height="auto" alt=""></a> </p> </div> </form> </div> <!-- TODO: Need to make this checkbox selection thing persistent --> <script type="text/javascript"> function SetDefaults() { document.getElementById("clean-revisions").checked = true; document.getElementById("clean-comments").checked = true; document.getElementById("clean-autodraft").checked = true; document.getElementById("optimize-db").checked = true; return false; } </script> <!--<script> SetDefaults(); </script>--> <?php if (isset($_POST["optimize-db"])) { optimizeTablesQuick("yes"); } else { optimizeTablesQuick("no"); }
<!-- TODO: Need to make this checkbox selection thing persistent --> <script type="text/javascript"> function SetDefaults() { document.getElementById("clean-revisions").checked = true; document.getElementById("clean-comments").checked = true; document.getElementById("clean-autodraft").checked = true; <?php if (WPO_TABLE_TYPE != 'innodb') { echo 'document.getElementById("optimize-db").checked = true;'; } ?> return false; } </script> <script> SetDefaults(); </script> <?php if (isset($_POST["optimize-db"])) { optimizeTablesQuick(true); } else { optimizeTablesQuick(false); }