I am searching all the day for a hack which sends PM at the Staff when a new torrent is uploaded.It would be greatful if someone could tell me how to make it.
Thanks,
world
Thanks,
world
//insert email notif, irc, req notif, etc here
add either before or after:
$dt = sqlesc(get_date_time());
$res = mysql_query("SELECT id FROM users LEFT JOIN groups ON users.class=groups.group_id WHERE groups.control_panel='yes'");
while($arr=mysql_fetch_row($res))
mysql_query("INSERT INTO messages (poster, sender, receiver, added, msg) VALUES(0, 0, $arr[0], $dt, 'New Torrent: [url=".$site_config['SITEURL']."/torrents-details.php?id=".$id."]".$torrent."[/url] has been uploaded by [url=".$site_config['SITEURL']."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "[/url]')") or die(mysql_error());
$dt = sqlesc(get_date_time());
$res = SQL_Query_exec("SELECT id FROM users LEFT JOIN groups ON users.class=groups.group_id WHERE groups.edit_torrents='yes'");
while($arr=mysql_fetch_row($res))
SQL_Query_exec("INSERT INTO messages (poster, sender, receiver, added, msg) VALUES(0, 0, $arr[0], $dt, 'New Torrent: [url=".$site_config['SITEURL']."/torrents-details.php?id=".$id."]".$torrent."[/url] has been uploaded by [url=".$site_config['SITEURL']."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "[/url]')");
No users online
Torrents
Members
Online