add composer

This commit is contained in:
xiaomlove
2021-01-13 19:32:26 +08:00
parent 1eb5d8441e
commit 0541f2a6c0
665 changed files with 889 additions and 150 deletions

28
public/docleanup.php Normal file
View 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>";