<?php
include "database.php";
include "db_bot.php";
include "page_config.inc";
global $sys_filepath_to_output, $sys_filepath_to_source, $sys_stylesheet;
echo "<html><head><link rel=stylesheet href=\"site_bot.css\" type=text/css></head><body class=disp>";
dbr_connect();
$fp = opendir("Sql");
while($file = readdir($fp))
{
if(!strstr($file,"sql"))
continue;
$table = ereg_replace (".sql","",$file);
$sql = "delete from $table";
dbr_query($sql);
}
echo "<br>";
$dp = new db_bot($sys_filepath_to_source, $sys_filepath_to_output, -1);
echo "</body></html>";
?>
|