Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[HACK] New Torrent in Shoutbox
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2014-10-23 02:42:02
I've got the time fixed, but any torrent with a apostrophe (') in it keeps the torrent from being printed in the shoutbox - any one know why or how to fix?


$query = "INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, 'System', 'New Torrent: ."/torrents-details.php?id=".$id."]".$name." has been uploaded by ."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "', '".get_date_time()."', '0')";
mysql_query($query);

Unknown User
2014-10-24 12:23:50
if you 2.08

try this in shoutbox

$query = "INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, 'System', 'New Torrent: ."/torrents-details.php?id=".$id."]".sqlesc($name)." has been uploaded by ."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "', now(), '0')";mysql_query($query);


SQL_Query_exec("INSERT INTO shoutbox VALUES('', 'System', 'New Torrent: ."/torrents-details.php?id=".$id."]".$torrent." has been uploaded by ."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "', now(), '0')") or sqlerr(__FILE__,__LINE__);


mysql_query("INSERT INTO shoutbox VALUES('', 'System', 'New Torrent: ."/torrents-details.php?id=".$id."]".$torrent." has been uploaded by ."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "', now(), '0')") or sqlerr(__FILE__,__LINE__);
Unknown User
2014-12-17 22:06:27
What exactly needs to be done with the 3 codes and it works on the v2-svn
Unknown User
2014-12-18 03:48:50
this 1 should work.


 $query_shout = "INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, 'System', 'New Torrent: ."/torrents-details.php?id=".$id."]".sqlesc($name)." has been uploaded by ."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "', now(), '0')";
 SQL_Query_exec($query_shout);

Unknown User
2014-12-18 09:33:19
ok I should put it on or exactly shoutbox.php? I have ajax shoutbox coly
2014-12-18 10:33:11
@sousou76 Try this : [url="http://devscorner.xyz/topic/13589-new-torrent-in-shoutbox/?p=93629"]http://devscorner.xyz/topic/13589-new-torrent-in-shoutbox/?p=93629[/url]
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728