From: Pasi <pa...@ik...> - 2004-02-13 14:39:36
|
On Fri, Feb 13, 2004 at 09:04:36AM -0500, Matthew McNaney wrote: > Go to Announcement.php and add the following: > > function delete() { > if(!$_SESSION["OBJ_user"]->allow_access("announce", > "delete_announcement")) { > $this->_error("access_denied"); > return; > } > > if(isset($_POST["yes"])){ > > /*------------- Cut Here ------------ */ > if (!isset($this->_id)){ > $GLOBALS["CNT_announce"]["content"] .= "An error occurred when trying > to delete the announcement."; > return; > } > /*-------------- End ------------------*/ > > $GLOBALS["core"]->sqlDelete("mod_announce", "id", $this->_id); > Thanks. I'll try that. -- Pasi Kärkkäinen ^ . . Linux / - \ Choice.of.the .Next.Generation. |