diff options
author | 2008-09-11 16:51:00 +0000 | |
---|---|---|
committer | 2008-09-11 16:51:00 +0000 | |
commit | 1d059dc06d24e02c858c43d70eaa70453d51cdff (patch) | |
tree | d29378c81ec8a9498a33ed7276722031c1f12981 /services/bookmarkservice.php | |
parent | bfdc6bd7380fda2d5d8ca78a462047069c4020bc (diff) | |
download | scuttle-1d059dc06d24e02c858c43d70eaa70453d51cdff.tar.gz scuttle-1d059dc06d24e02c858c43d70eaa70453d51cdff.zip |
New Feature: add users admin page with delete function
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@146 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'services/bookmarkservice.php')
-rw-r--r-- | services/bookmarkservice.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/services/bookmarkservice.php b/services/bookmarkservice.php index 2cd42e2..150abc3 100644 --- a/services/bookmarkservice.php +++ b/services/bookmarkservice.php @@ -416,6 +416,17 @@ class BookmarkService { return true; } + function deleteBookmarksForUser($uId) {
+ $query = 'DELETE FROM '. $GLOBALS['tableprefix'] .'bookmarks WHERE uId = '. intval($uId);
+
+ if (!($dbresult = & $this->db->sql_query($query))) {
+ message_die(GENERAL_ERROR, 'Could not delete bookmarks', '', __LINE__, __FILE__, $query, $this->db);
+ return false;
+ }
+
+ return true;
+ } + function countOthers($address) { if (!$address) { return false; |