function deleteLink($lid) { global $cfg; // Link Mod //AuditAction($cfg["constants"]["admin"], _DELETE." Link: ".getLink($lid)); AuditAction($cfg["constants"]["admin"], _DELETE . " Link: " . getSite($lid) . " [" . getLink($lid) . "]"); // Link Mod deleteOldLink($lid); header("location: admin.php?op=editLinks"); }
/** * deleteLink */ function admin_deleteLink() { global $cfg; $lid = tfb_getRequestVar('lid'); AuditAction($cfg["constants"]["admin"], $cfg['_DELETE'] . " Link: " . getSite($lid) . " [" . getLink($lid) . "]"); deleteOldLink($lid); // flush session-cache cacheFlush(); @header("location: admin.php?op=editLinks"); exit; }