ok this little hack will let you edit and delete torrents on the fly without having to go to torrents-details and clicking edit torrent (credits to MVP)
open backend functions.php find
Replace with
now find
under add
you probably already have the images but if not pop them into your images folder
open backend functions.php find
$dispname = "<b>".$smallname."</b>";
Replace with
if ($CURUSER['edit_torrents'] == 'yes' || $row['owner'] == $CURUSER['id']) {
$edit = '<a href="torrents-edit.php?id=' . $row['id'] . '"><img src="images/edit.png" hieght ="15" width ="15" border="0" alt="edit torrent" /></a>';
$del = '<a href="torrents-edit.php?action=deleteit&id=' . $row['id'] . '"></a>';
} else {
$edit = '';
}
$dispname = "<b>".$smallname."</b> $edit";
$dispname .= ($CURUSER['control_panel'] == 'yes') ? '<a href="' . $_SERVER['REQUEST_URI'] . '?delete=' . $row['id'] . '"><img src="images/delete.png" border="0" alt="delete torrent" /></a>' : '';
now find
if (sql_timestamp_to_unix_timestamp($row["added"]) >= $last_access)
$dispname .= "<img src='images/new.gif' border='0' alt='new torrent' />";
under add
if (!empty($_GET['delete']) && is_valid_id($_GET['delete']) && $CURUSER['control_panel'] == 'yes') {
deletetorrent($_GET['delete']);
if ($_SERVER['HTTP_REFERER'] != $_SERVER['PHP_SELF'])
{
echo "<meta http-equiv='refresh' content='0;URL=". $_SERVER['PHP_SELF']."'>";
}
}
you probably already have the images but if not pop them into your images folder

