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
View File
@@ -0,0 +1,28 @@
<?php
require_once("../include/bittorrent.php");
dbconn();
require_once(get_langfile_path());
loggedinorreturn();
function bark($msg)
{
stdhead();
stdmsg($lang_takeflush['std_failed'], $msg);
stdfoot();
exit;
}
$id = intval($_GET['id'] ?? 0);
int_check($id,true);
if (get_user_class() >= UC_MODERATOR || $CURUSER[id] == "$id")
{
$deadtime = deadtime();
sql_query("DELETE FROM peers WHERE last_action < FROM_UNIXTIME($deadtime) AND userid=" . sqlesc($id));
$effected = mysql_affected_rows();
stderr($lang_takeflush['std_success'], "$effected ".$lang_takeflush['std_ghost_torrents_cleaned']);
}
else
{
bark($lang_takeflush['std_cannot_flush_others']);
}