From 5a25753cfaff42b712f4e9add60519ea6f22146c Mon Sep 17 00:00:00 2001 From: mensonge Date: Fri, 11 Apr 2008 06:56:09 +0000 Subject: New feature: export URL for Google Custom Search (api/export/gcs) git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@103 b3834d28-1941-0410-a4f8-b48e95affb8f --- api/export_gcs.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 api/export_gcs.php diff --git a/api/export_gcs.php b/api/export_gcs.php new file mode 100644 index 0000000..9cf34f7 --- /dev/null +++ b/api/export_gcs.php @@ -0,0 +1,40 @@ +isAdmin($userservice->getCurrentUserId())) { + die(T_('You are not allowed to do this action (admin access)')); +}*/ + + + +// Check to see if a tag was specified. +if (isset($_REQUEST['tag']) && (trim($_REQUEST['tag']) != '')) + $tag = trim($_REQUEST['tag']); +else + $tag = NULL; + +// Get the posts relevant to the passed-in variables. +$bookmarks =& $bookmarkservice->getBookmarks(0, NULL, NULL, $tag, NULL, getSortOrder()); + +$currentuser = $userservice->getCurrentUser(); +$currentusername = $currentuser[$userservice->getFieldName('username')]; + +// Set up the plain file and output all the posts. +header('Content-Type: text/plain'); +foreach($bookmarks['bookmarks'] as $row) { + echo $row['bAddress']."\n"; +} + + +?> -- cgit v1.2.3