Advertisement
Guest User

Untitled

a guest
May 27th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. if(substr($row['onserver'], -8) == ".torrent") {
  2. include 'tracker/file_attachment.php';
  3. $find_1[] = '[attachment=' . $row['id'] . ']';
  4. $find_2[] = "#\[attachment={$row['id']}:(.+?)\]#i";
  5. preg_match_all('/download\.php\?id=(\d{1,})/', $tmp, $link);
  6. //$lidd = "{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}";
  7. $lidd = "http://site.biz/upload/{$row['onserver']}";
  8.  
  9. // $tmp = preg_replace('/\/engine\/download\.php\?id=(\d{1,})/', $li, $tmp);
  10. $ts = '/\/engine\/download\.php\?id=(\d{1,})/';
  11.  
  12. $fs = "<noindex><a href=\"http://site.biz/?file_name={$row['name']}&site_id=1208&file_type=torrent&file_size=133000&file_url={$lidd}\" rel=\"nofollow\" >";
  13. $tmp=preg_replace('/<a href="([\r\n\w+\W+].*?)">/',$fs,$tmp);
  14. $tmp=preg_replace('/<\/a>/','</a></noindex>',$tmp);
  15.  
  16. /**
  17. * LoadMoney End
  18. */
  19. $replace_1[] = $tmp;
  20. $replace_2[] = $tmp;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement