<?php
/************************************************************************/
/* Maximus CMS: Web Portal System                                       */
/* ==============================                                       */
/*                                                                      */
/* Copyright (c) 2002 - 2006                                            */
/* http://www.php-maximus.fr                                            */
/* dev@php-maximus.org                                                  */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
/* Based on PHP-NUKE: Web Portal System                                 */
/************************************************************************/
defined('MAXIMUS') OR die ('Access denied cron table1 directly...');

global $prefix;
$GLOBALS['db']->sql_query("OPTIMIZE TABLE `".$prefix."_bbsessions`");
$GLOBALS['db']->sql_query("OPTIMIZE TABLE `".$prefix."_bbsearch_result`");
$GLOBALS['db']->sql_query("OPTIMIZE TABLE `".TABLE_SERVERLOAD."`");
$GLOBALS['db']->sql_query("OPTIMIZE TABLE `".TABLE_SESSION."`");
$GLOBALS['db']->sql_query("OPTIMIZE TABLE `".TABLE_USERS."`");