mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
add composer
This commit is contained in:
28
public/docleanup.php
Normal file
28
public/docleanup.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
ob_start();
|
||||
require_once("../include/bittorrent.php");
|
||||
dbconn();
|
||||
|
||||
if (get_user_class() < UC_SYSOP) {
|
||||
die('forbidden');
|
||||
}
|
||||
echo "<html><head><title>Do Clean-up</title></head><body>";
|
||||
echo "<p>";
|
||||
echo "clean-up in progress...please wait<br />";
|
||||
ob_flush();
|
||||
flush();
|
||||
if (isset($_GET['forceall']) && $_GET['forceall']) {
|
||||
$forceall = 1;
|
||||
} else {
|
||||
$forceall = 0;
|
||||
echo "you may force full clean-up by adding the parameter 'forceall=1' to URL<br />";
|
||||
}
|
||||
echo "</p>";
|
||||
$tstart = getmicrotime();
|
||||
require_once("include/cleanup.php");
|
||||
print("<p>".docleanup($forceall, 1)."</p>");
|
||||
$tend = getmicrotime();
|
||||
$totaltime = ($tend - $tstart);
|
||||
printf ("Time consumed: %f sec<br />", $totaltime);
|
||||
echo "Done<br />";
|
||||
echo "</body></html>";
|
||||
Reference in New Issue
Block a user