Location: PHPKode > projects > Trunk.net > takereseed.php
<?php
require_once("include/functions.php");
hit_start();
dbconn();
loggedinorreturn();

stdhead("Reseed request");

begin_main_frame();

$reseedid = 0 + $_GET["reseedid"];


$res = mysql_query("SELECT snatched.userid, snatched.torrentid, users.id FROM snatched inner join users on snatched.userid = users.id where snatched.torrentid = $reseedid") or sqlerr();
$pn_msg = "User " . $CURUSER["username"] . " asked for a reseed on torrent $BASEURL/details.php?id=" . $reseedid . " !\nThank You!";
while($row = mysql_fetch_assoc($res)) {
mysql_query("INSERT INTO messages (poster, sender, receiver, added, msg) VALUES(0, 0, $row[userid], '" . get_date_time() . "', " . sqlesc($pn_msg) . ")") or sqlerr(__FILE__, __LINE__);
}
print("The uploader will be informed biggrin.gif");
end_main_frame();
stdfoot();
?>
Return current item: Trunk.net