Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #11  
Old 23rd November 2019, 16:51
elvira's Avatar
elvira elvira is offline
Senior Member
 
Join Date: Jan 2008
Slovenia
Posts: 140
Default
in cache folder goes txt files nothing else just must be 0777 to
Reply With Quote
  #12  
Old 23rd November 2019, 21:04
Napon's Avatar
Napon Napon is offline
Senior Member
 
Join Date: Feb 2016
P2P
Posts: 454
Default
show me the 09 one thread for this
__________________
https://uploadfiles.io/lgekz
Reply With Quote
  #13  
Old 23rd November 2019, 21:36
elvira's Avatar
elvira elvira is offline
Senior Member
 
Join Date: Jan 2008
Slovenia
Posts: 140
Default
this is it..all code posts nothing else
Reply With Quote
  #14  
Old 24th November 2019, 00:04
Napon's Avatar
Napon Napon is offline
Senior Member
 
Join Date: Feb 2016
P2P
Posts: 454
Default
So you telling me this all it needs i think not just looked in to it


this should be on the announce
Code:
   function crazyhour_announce() {
   global $SHITE;
   $transfer_filename   = $SHITE['cache'].'transfer_crazyhour.txt';
   $crazyhour_filename = $SHITE['cache'].'crazy_hour.txt';
   $crazyhour_cache = fopen($crazyhour_filename,'r+');
   $crazyhour_var = fread($crazyhour_cache, filesize($crazyhour_filename));
   fclose($crazyhour_cache);
   if ($crazyhour_var >= TIME_NOW && $crazyhour_var < TIME_NOW + 3600) { // is crazyhour
   if (is_file($transfer_filename))
        unlink($transfer_filename);
    return true;
    }
    elseif ($crazyhour_var < TIME_NOW + 3600 && !is_file($transfer_filename)) {   // crazyhour over
        $transfer_file_created = fopen($transfer_filename, 'w') or die('no perms?');
        fclose($transfer_file_created);
        $crazyhour['crazyhour_new']       = mktime(23, 59, 59, date('m'), date('d'), date('y'));
        $crazyhour['crazyhour']['var']    = mt_rand($crazyhour['crazyhour_new'], ($crazyhour['crazyhour_new'] + 86400));
        $fp = fopen($crazyhour_filename, 'w');
        fwrite($fp, $crazyhour['crazyhour']['var']);
        fclose($fp);
        mysql_query("INSERT INTO sitelog (added, txt) VALUES('.TIME_NOW.', '.sqlesc($text).')') or err("Crazyhour Err");
        return false;
        }else
        return false;
        }
Code:
  $happy = mysql_query("SELECT id, multiplier from happyhour where userid=" . sqlesc( $userid ) . " AND torrentid=" . sqlesc( $torrentid ) . " " );
  $happyhour = mysql_num_rows( $happy ) == 0 ? false : true;
  $happy_multi = mysql_fetch_row( $happy );
  $multiplier = $happy_multi["multiplier"];
  if ( $happyhour ) {
  $upthis = $upthis * $multiplier;
  $downthis = 0;
  }
Also you need to add to cleanup

Also there alot more to ths mod how do you think its going to work just with a few line of code Heads up no you need the rest of the code ive just test the full code on 08 and works a treat and you call your self coders
__________________
https://uploadfiles.io/lgekz

Last edited by Napon; 24th November 2019 at 00:23.
Reply With Quote
  #15  
Old 24th November 2019, 00:51
elvira's Avatar
elvira elvira is offline
Senior Member
 
Join Date: Jan 2008
Slovenia
Posts: 140
Default
look picture not show correctly date...first date and clock are ok then second one problem



Click the image to open in full size.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 07:00. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2019, vBulletin Solutions Inc.