Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Free Torrent Source (http://www.bvlist.com/forumdisplay.php?f=25)
-   -   [FIX] FTS 1.1 white page on flush ghost torrents (http://www.bvlist.com/showthread.php?t=4206)

benjaminbih 10th January 2010 19:05

[FIX] FTS 1.1 white page on flush ghost torrents
 
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()."";
   }



Phogo 10th January 2010 19:41

Working thanks!

rootKID 15th April 2012 09:55

nice...
 
nice dudes, thanks alot! :),.


All times are GMT +2. The time now is 21:22.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.