require_once("include/bittorrent.php"); $id = (int) $_GET['id']; if (!$id) stderr( _("Error"), _("Input missing")); dbconn(); loggedinorreturn(); $res = do_mysql_query("SELECT * FROM torrents WHERE id = $id"); $row = mysql_fetch_assoc($res); if (!$row) stderr( _("Error"), _("Unknown ID") ); stdhead(_("Edit torrent")." \"" . $row["name"] . "\""); if (!isset($CURUSER) || ($CURUSER["id"] != $row["owner"] && get_user_class() < UC_MODERATOR)) { print("
"); printf( _("You're not the rightful owner, or you're not %s logged in %s properly")."
\n", "", ''); } else { print("\n"); print("\n"); print("
\n"); print("\n"); } stdfoot(); ?>