break; case 24: session_destroy(); header("Location: admin.php"); break; case database: include "db_main.php"; break; case settings: include 'configset.php'; break; case delete_log: unlink($log_dir . "/" . $file); statisticsForm('spidering_log'); break; case 99: cleanAll(); cleanKeywords(); break; case '': showsites(); break; } $stats = getStatistics(); print "<br/><br/>\t<center>Currently in database: " . $stats['sites'] . " sites, " . $stats['links'] . " links, " . $stats['categories'] . " categories and " . $stats['keywords'] . " keywords.<br/><br/></center>\n"; ?> </div> </div> </body> </html>
} $bench->test('BtreeFileJournal', function() use (&$bfj) {cleanTag($bfj);}); $bench->type('Clean 3 tags'); if($all) { $bench->test('SqliteJournal', function() use (&$sj) {cleanTag2($sj);}); $bench->test('FileJournal', function() use (&$fj) {cleanTag2($fj);}); } $bench->test('BtreeFileJournal', function() use (&$bfj) {cleanTag2($bfj);}); $bench->type('Clean all other tags'); if($all) { $bench->test('SqliteJournal', function() use (&$sj) {cleanTag3($sj, 596);}); $bench->test('FileJournal', function() use (&$fj) {cleanTag3($fj, 596);}); } $bench->test('BtreeFileJournal', function() use (&$bfj) {cleanTag3($bfj, 596);}); $bench->type('Clean All'); if($all) { $bench->test('SqliteJournal', function() use (&$sj) {cleanAll($sj);}); $bench->test('FileJournal', function() use (&$fj) {cleanAll($fj);}); } $bench->test('BtreeFileJournal', function() use (&$bfj) {cleanAll($bfj);}); unlink(dirname(__FILE__).'/'.BtreeFileJournal::FILE); if($all) { unlink(dirname(__FILE__).'/fj'); unlink(dirname(__FILE__).'/fj.log'); unlink(dirname(__FILE__).'/journal.sqlite'); }