$result = $db->sql_query($sql); if (!$result) { throw_error("Couldn't delete session data!", __LINE__, __FILE__, $sql); } } $sql = "ALTER TABLE " . SESSIONS_TABLE . "\n\t\t\t\t\tTYPE=HEAP MAX_ROWS=" . HEAP_SIZE; $result = $db->sql_query($sql); if (!$result) { throw_error("Couldn't convert table!", __LINE__, __FILE__, $sql); } lock_db(TRUE); break; case 'unlock_db': // Unlock the database echo "<h1>" . $lang['Unlocking_db'] . "</h1>\n"; lock_db(TRUE, TRUE, TRUE); break; default: echo "<p class=\"gen\">" . $lang['function_unknown'] . "</p>\n"; } echo "<p class=\"gen\"><a href=\"" . append_sid("admin_db_maintenance.{$phpEx}") . "\">" . $lang['Back_to_DB_Maintenance'] . "</a></p>\n"; // Send Information about processing time echo '<p class="gensmall">' . sprintf($lang['Processing_time'], getmicrotime() - $timer) . '</p>'; ob_start(); break; default: $template->set_filenames(array("body" => "admin/dbmtnc_list_body.tpl")); $template->assign_vars(array("L_DBMTNC_TITLE" => $lang['DB_Maintenance'], "L_DBMTNC_TEXT" => $lang['DB_Maintenance_Description'], "L_FUNCTION" => $lang['Function'], "L_FUNCTION_DESCRIPTION" => $lang['Function_Description'])); // // OK, let's list the functions //
throw_error("Couldn't delete session data!", __LINE__, __FILE__, $sql); } } $sql = "ALTER TABLE " . SESSIONS_TABLE . "\n\t\t\t\t\tTYPE=HEAP MAX_ROWS=" . HEAP_SIZE; $db->sql_return_on_error(true); $result = $db->sql_query($sql); $db->sql_return_on_error(false); if (!$result) { throw_error("Couldn't convert table!", __LINE__, __FILE__, $sql); } lock_db(true); break; case 'unlock_db': // Unlock the database echo '<h1>' . $lang['Unlocking_db'] . '</h1>' . "\n"; lock_db(true, true, true); break; default: echo '<p class="gen">' . $lang['function_unknown'] . '</p>' . "\n"; } echo '<p class="gen"><a href="' . append_sid('admin_db_maintenance.' . PHP_EXT) . '">' . $lang['Back_to_DB_Maintenance'] . "</a></p>\n"; // Send Information about processing time echo '<p class="gensmall">' . sprintf($lang['Processing_time'], getmicrotime() - $timer) . '</p>'; ob_start(); break; default: $template->set_filenames(array('body' => ADM_TPL . 'dbmtnc_list_body.tpl')); $template->assign_vars(array('L_DBMTNC_TITLE' => $lang['DB_Maintenance'], 'L_DBMTNC_TEXT' => $lang['DB_Maintenance_Description'], 'L_FUNCTION' => $lang['Function'], 'L_FUNCTION_DESCRIPTION' => $lang['Function_Description'])); // // OK, let's list the functions //