First open userdetails.php and find:
PHP Code:
print("<h2>".str37." <a href=page.php?type=takeflush.php&id=$CURUSER[id]>".str38."</a></h2>\n");
change it to:
PHP Code:
print("<h2>".str37." <a href=page.php?type=takeflush&id=$CURUSER[id]>".str38."</a></h2>\n");
Then open page.php and find:
PHP Code:
if (get_user_class() >= UC_MODERATOR OR $CURUSER[id] == "$id")
{
$deadtime = deadtime();
sql_query("DELETE FROM peers WHERE last_action < FROM_UNIXTIME($deadtime) AND userid=" . $id);
$effected = mysql_affected_rows();
stderr('Success', "$effected ghost torrent" . ($effected ? 's' : '') . 'where sucessfully cleaned.');
}
replac it by:
PHP Code:
if (get_user_class() >= UC_MODERATOR OR $CURUSER[id] == "$id")
{
$deadtime = deadtime();
sql_query("DELETE FROM peers WHERE last_action < FROM_UNIXTIME($deadtime) AND userid=" . $id);
$effected = mysql_affected_rows();
if($effected == 0){
header("Refresh: 2; $DEFAULTBASEURL/userdetails.php?id=$id");
echo "".stdhead("Redirecting")."".stdmsg("Redirect","Please wait we redirecting you, because you have no ghost torrents....")."".stdfoot()."";
}else{
header("Refresh: 4; $DEFAULTBASEURL/userdetails.php?id=$id");
echo "".stdhead("Redirecting")."".stdmsg("Success", "$effected ghost torrent" . ($effected ? "s" : "") . "where sucessfully cleaned. Please wait, we redirect you back")."".stdfoot()."";
}
}