Code: Select all
<?php
define('IN_PHPBB', true);
include('./extension.inc');
include('./common.'.$phpEx);
$page_title = 'phpBB Fix';
$sql = "REPAIR TABLE phpbb_posts_text";
message_die(GENERAL_MESSAGE, '<table width="80%" class="forumline"><tr><td><b>Query: </b>' . $sql . '<br /><b>Status: </b><font color="' . ((!($db->sql_query($sql))) ? 'red">Error running query (' . mysql_error() . ')</font><br /><br /><br /><b>Be sure to post this message in your topic on phpBB.com</b><br />' : 'green">Ran successfully</font><br /><br /><br />') . '<b>For security reasons, delete this file when you are finished.</b></td><tr></table>');
?>