userdata["acclevel"] < 100) die ("Access denied!");
?>
    
 title; ?>
Optimizing tables...
query("SHOW TABLES");
		
		while (list($table) = $db->fetch_row($result))
		{
			if ($dbtables) $dbtables .= ", ";
			$dbtables .= $table;
		}
		
		$tableOptimize = new Table(
			array(
				new TableColumn(
					"Table",
					"Table",
					"width=30&sort=no"
				),
				new TableColumn(
					"Op",
					"Operation",
					"width=12&sort=no"
				),
				new TableColumn(
					"Msg_type",
					"Msg. Type",
					"width=12&sort=no"
				),
				new TableColumn(
					"Msg_text",
					"Message",
					"width=46&sort=no"
				)
			),
			"Table",
			"Table",
			"Msg_type",
			false,
			9999
		);
		
		$result = $db->query("OPTIMIZE TABLE $dbtables");
		
		$tableOptimize->draw($result, mysql_num_rows($result), 80);
?>
| Analyzing tables... |