function removeLog($cid) { DOCMAN_token::check() or die('Invalid Token'); global $database, $_DMUSER; $log = new mosDMLog($database); $rows = $log->loadRows($cid); // For log mambots if ($log->remove($cid)) { if ($rows) { $logbot = new DOCMAN_mambot('onLogDelete'); $logbot->setParm('user', $_DMUSER); $logbot->copyParm('process', 'delete log'); $logbot->setParm('rows', $rows); $logbot->trigger(); // Delete the logs } mosRedirect("index2.php?option=com_docman§ion=logs"); } }