Author: Merijn Schering <*****@*****.**> Version: 1.0 Release date: 08 July 2003 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. */ require "../Group-Office.php"; $GO_SECURITY->authenticate(); require $GO_LANGUAGE->get_language_file('bookmarks'); $page_title = $menu_bookmarks; require $GO_CONFIG->class_path . "bookmarks.class.inc"; $bookmarks = new bookmarks(); if (isset($_REQUEST['delete_bookmark'])) { $bookmarks->delete_bookmark($GO_SECURITY->user_id, $_REQUEST['delete_bookmark']); } require $GO_THEME->theme_path . "header.inc"; ?> <table border="0" cellpadding="10" cellspacing="0"> <tr> <td> <table border="0" cellpadding="0" cellspacing="0" class="TableBorder" width="600"> <tr> <td valign="top"> <table border="0" cellpadding="1" cellspacing="1" width="100%"> <tr> <td colspan="99" class="TableHead"><?php echo $menu_bookmarks; ?> </td>
if ($GO_SECURITY->user_id == $catagory['user_id']) { if ($bookmarks->delete_catagory($_REQUEST['delete_catagory'])) { $GO_SECURITY->delete_acl($catagory['acl_write']); $GO_SECURITY->delete_acl($catagory['acl_read']); } } } } if (isset($_POST['bookmarks'])) { switch ($task) { case 'delete': while ($bookmark_id = array_shift($_POST['bookmarks'])) { if ($bookmark = $bookmarks->get_bookmark($bookmark_id)) { $catagory = $bookmarks->get_catagory($bookmark['catagory_id']); if ($GO_SECURITY->has_permission($GO_SECURITY->user_id, $catagory['acl_write'])) { if ($bookmarks->delete_bookmark($GO_SECURITY->user_id, $bookmark_id)) { $GO_SECURITY->delete_acl($bookmark['acl_read']); $GO_SECURITY->delete_acl($bookmark['acl_write']); } } } } break; case 'move_bookmarks': while ($bookmark_id = array_shift($_POST['bookmarks'])) { $bookmarks->move_bookmark($bookmark_id, $_POST['move_to_catagory']); } break; } } require $GO_THEME->theme_path . "header.inc";