bugfix: Permissions code editor was broken with Google Chrome
update: new DB table indexes speeding up IP tree operations
update: tolerate user-visible newlines in secret.php and local.php
+ update: ability to delete a file entity from the Edit tab of the File page
0.19.1 2011-02-22
update: UI: rack lists are now reduced by common tags with object on Rackspace tab (FILTER_RACKLIST_BY_TAGS config var)
update: 802.1q: If switch has IP interface in some VLAN linked to IP subnet, this VLAN is not pruned from switch's uplink
echo htmlspecialchars ($file['name']) . "'></td></tr>\n";
echo "<tr><th class=tdright>Comment:</th><td class=tdleft><textarea tabindex=103 name=file_comment rows=10 cols=80>\n";
echo htmlspecialchars ($file['comment']) . "</textarea></td></tr>\n";
+ echo "<tr><th class=tdright>Actions:</th><td class=tdleft>";
+ echo "<a href='".
+ makeHrefProcess (array ('op'=>'deleteFile', 'page'=>'files', 'tab'=>'manage', 'file_id'=>$file_id)).
+ "' onclick=\"javascript:return confirm('Are you sure you want to delete the file?')\">" .
+ getImageHREF ('destroy', 'Delete file') . "</a>";
+ echo '</td></tr>';
echo "<tr><th class=submit colspan=2>";
printImageHREF ('SAVE', 'Save changes', TRUE, 102);
echo '</th></tr></form></table>';
return buildRedirectURL (__FUNCTION__, commitUnlinkFile ($_REQUEST['link_id']) === FALSE ? 'ERR' : 'OK');
}
-$msgcode['deleteFile']['OK'] = 6;
+$msgcode['deleteFile']['OK'] = 7;
function deleteFile ()
{
assertUIntArg ('file_id');