This hack is entirely based in the v Torrential Storm 1.x hack, with the correct changes.
In torrents-upload.php find:
Have fun!
iMagin3
In torrents-upload.php find:
write_log("Torrent $id ($torrent) was uploaded by " . $CURUSER["username"]);Insert after:mysql_query("INSERT INTO shoutbox VALUES('', 'System', 'New Torrent: ".$torrent." has been uploaded by [url=http://".$SITEURL."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "[/url]', now(), '0')") or sqlerr(__FILE__,__LINE__);
and in shoutbox.php find:
$THEME = $ss_a["uri"];
$lng_a = mysql_fetch_array(mysql_query("select uri from languages where id='" . $site_config['default_language'] . "'")) or die(mysql_error());
if ($lng_a)
$LANGUAGE = $lng_a["uri"];
}
add after:
//replace [url] tags with a proper link
$msg = preg_replace("/\[url\]([^[]+)\[\/url\]/i","<a href=\"\\1\" target=\"_blank\">\\1</a>",$msg);Have fun!
iMagin3