Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
Thread Tools
  #1  
Old 28th March 2013, 04:03
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Talking Reseed MP Uploader
In TS 5.6

My takereseed.php

PHP Code:
<?
/***********************************************/
/*=========[TS Special Edition v.5.6]==========*/
/*=============[Special Thanks To]=============*/
/*        DrNet - wWw.SpecialCoders.CoM        */
/*          Vinson - wWw.Decode4u.CoM          */
/*    MrDecoder - wWw.Fearless-Releases.CoM    */
/*           Fynnon - wWw.BvList.CoM           */
/***********************************************/


  
function message ($msg$div 'error')
  {
    global 
$lang;
    
stdhead ($lang->takewhatever['takereseedhead']);
    
stdmsg ($lang->takewhatever['message'], $msgtrue$div);
    
stdfoot ();
    exit ();
  }

  function 
spamcheck ($reseedid 0$receiver 0$sender 0$subject 0)
  {
    
$spamcheck sql_query ('SELECT sender FROM messages WHERE sender = ' sqlesc ($sender) . ' AND subject = ' sqlesc ($subject) . ' AND receiver = ' sqlesc ($receiver));
    return (
mysql_num_rows ($spamcheck) ? false true);
  }

  require_once 
'global.php';
  
gzip ();
  
dbconn ();
  
loggedinorreturn ();
  
maxsysop ();
  
define ('TR_VERSION''0.5 ');
  
$lang->load ('takewhatever');
  
$reseedid intval ($_GET['reseedid']);
  
$userid intval ($CURUSER['id']);
  
int_check (array ($reseedid$userid), true);
  (
$res sql_query ('' 'SELECT s.uploaded, s.downloaded, s.userid, t.name, u.username FROM snatched s INNER JOIN torrents t ON (s.torrentid=t.id) INNER JOIN users u ON (s.userid = u.id) WHERE s.finished = \'yes\' AND s.torrentid = ' $reseedid) OR sqlerr (__FILE__44));
  if (
mysql_num_rows ($res) == 0)
  {
    
message ($lang->takewhatever['takereseednouser']);
  }

  
$subject sprintf ($lang->takewhatever['reseedsubject'], $reseedid);
  require_once 
INC_PATH '/functions_pm.php';
  while (
$row mysql_fetch_assoc ($res))
  {
    
$name_torrent sqlesc ($row['name']);
    
$reseedmsg sprintf ($lang->takewhatever['reseedmsg'], $row['username'], '[URL=' $BASEURL '/details.php?id=' $reseedid ']' $name_torrent '[/URL]'mksize ($row['uploaded']), mksize ($row['downloaded']));
    if (
spamcheck ($reseedid$row['userid'], $userid$subject))
    {
      
send_pm ($row['userid'], $reseedmsg$subject$userid);
      continue;
    }
  }

   
   (
$res sql_query ('' 'SELECT name, owner FROM torrents WHERE id = ' $reseedid) OR sqlerr (__FILE__44));  
   
$arr mysql_fetch_array ($res);
   
$name_torrent sqlesc ($arr['name']);
   
$msg sprintf ($lang->takewhatever['reseedme'], '[URL=' $BASEURL '/details.php?id=' $reseedid ']' $name_torrent '[/URL]');
   require_once 
INC_PATH '/functions_pm.php';
   
send_pm ($arr['owner'], $msg$subject$userid);

  
redirect ('details.php?id=' $reseedid);
?>
After open /include/languages/francais/takewhatever.lang.php

and add this line (line in french^^)( {1} = name and url the torrent )

PHP Code:
'reseedme'                =>'Un de vos Torrents {1} a besoin de d\'un Reseed'

after
for testing Clicking on your reseed torrent

Enjoy
Reply With Quote
The Following 3 Users Say Thank You to lafouine022 For This Useful Post:
eckeO5 (25th May 2013), FENIX (10th April 2013), Marco (3rd May 2013)
  #2  
Old 25th April 2013, 09:47
gogo999's Avatar
gogo999 gogo999 is offline
Senior Member
 
Join Date: Feb 2012
Korea South
Posts: 140
Default good ....
Is there an English...?
__________________
새로운 트래커를 위한 정보의 포럼
My Trackers : darknesschannel
Reply With Quote
  #3  
Old 26th April 2013, 21:15
Phogo's Avatar
Phogo Phogo is offline
VIP
 
Join Date: Jan 2008
United Kingdom
Posts: 902
Default
Quote:
Originally Posted by lafouine022 View Post
PHP Code:
'reseedme'                =>'Un de vos Torrents {1} a besoin de d\'un Reseed'
PHP Code:
'reseedme'                =>'One of your torrents {1} needs seeding'
Reply With Quote
The Following User Says Thank You to Phogo For This Useful Post:
FENIX (25th May 2013)
  #4  
Old 25th May 2013, 16:27
eckeO5 eckeO5 is offline
Senior Member
 
Join Date: Jan 2011
P2P
Posts: 117
Thumbs up Thx
Thank you for this fine modification lafouine022

greetz eckeO5
Reply With Quote
Reply

Tags
mp , reseed , uploader


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 14:31. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.