Files
nexusphp/public/docleanup.php

31 lines
756 B
PHP
Raw Normal View History

2020-12-26 01:42:23 +08:00
<?php
ob_start();
2021-01-13 19:32:26 +08:00
require_once("../include/bittorrent.php");
2020-12-26 01:42:23 +08:00
dbconn();
if (get_user_class() < UC_SYSOP) {
die('forbidden');
}
require get_langfile_path();
echo "<html><head><title>".$lang_docleanup['title']."</title></head><body>";
2020-12-26 01:42:23 +08:00
echo "<p>";
echo $lang_docleanup['running'] . "<br />";
2020-12-26 01:42:23 +08:00
ob_flush();
flush();
2021-01-07 17:35:00 +08:00
if (isset($_GET['forceall']) && $_GET['forceall']) {
2020-12-26 01:42:23 +08:00
$forceall = 1;
} else {
$forceall = 0;
echo $lang_docleanup['force'] . '<br />';
2020-12-26 01:42:23 +08:00
}
echo "</p>";
$tstart = getmicrotime();
require_once("include/cleanup.php");
print("<p>".docleanup($forceall, 1)."</p>");
$tend = getmicrotime();
$totaltime = ($tend - $tstart);
printf ($lang_docleanup['time_consumed']."<br />", $totaltime);
echo $lang_docleanup['done']."<br />";
2020-12-26 01:42:23 +08:00
echo "</body></html>";