View file sdark.mobi/adm_root/optim.php

File size: 486B
<?
require_once '../core/system.php';
echo admin();
$header = 'Админ Панель';
require_once H.'core/head.php';

$at = mysql_query('SHOW TABLES');  
$avto=mysql_num_rows($req);
while ($tables = mysql_fetch_array($at)) {
foreach ($tables as $bd => $table) { 
mysql_query('OPTIMIZE TABLE `'.trim($table).'`')or die(mysql_error());
}
}

$_SESSION['message'] = 'База данных оптимизирована';
header('Location: /adm_root/');
require_once H.'core/foot.php';
?>