mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
add composer
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
Reference in New Issue
Block a user