View Single Post
  #1  
Old 3rd March 2011, 03:48
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Wink System Notice - Thanks
edite takethanks.php

line 93
remplace
PHP Code:
mysql_query ('INSERT INTO ts_thanks VALUES (\'' $torrentid '\', \'' $userid '\')');
  if (
mysql_affected_rows ())
  { 
by

PHP Code:
mysql_query ('INSERT INTO ts_thanks VALUES (\'' $torrentid '\', \'' $userid '\')');
  if (
mysql_affected_rows ())
  {
    
$name1 = @mysql_fetch_array(@mysql_query('SELECT name FROM torrents WHERE id = \'' $torrentid '\''));
    
$name htmlspecialchars($name1['name']);
    
$name str_replace('.'' '$name);
    
$name str_replace('-'' '$name);
    
          
$seolink = ('' ''.$BASEURL.'/details.php?id=' sqlesc ($torrentid) . '&hit=1');
          
$shoutbOT sprintf ('' .$CURUSER['username']. ' said thank you for the torrent : [url='.$seolink.']' sqlesc ($name) . '[/url] .');
          
$shout_sql 'INSERT INTO shoutbox (userid, date, content) VALUES (\'999999999\', \'' TIMENOW '\', ' sqlesc ('{systemnotice}' $shoutbOT) . ')';
          
$shout_result sql_query ($shout_sql); 
enjoy :bubble:
Reply With Quote
The Following 4 Users Say Thank You to lafouine022 For This Useful Post:
Danix (3rd March 2011), Edgein (3rd March 2011), Fynnon (4th March 2011), Marco (3rd March 2011)