summaryrefslogtreecommitdiff
path: root/cached_bookmark.php
diff options
context:
space:
mode:
Diffstat (limited to 'cached_bookmark.php')
-rw-r--r--cached_bookmark.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/cached_bookmark.php b/cached_bookmark.php
new file mode 100644
index 0000000..2775f9d
--- /dev/null
+++ b/cached_bookmark.php
@@ -0,0 +1,29 @@
+<?php
+// $Header: /cvsroot/bitweaver/_bit_users/Attic/cached_bookmark.php,v 1.1 2005/06/19 05:12:22 bitweaver Exp $
+// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
+// All Rights Reserved. See copyright.txt for details and a complete list of authors.
+// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
+// Initialization
+require_once( '../bit_setup_inc.php' );
+include_once( USERS_PKG_PATH.'bookmark_lib.php' );
+if (!$gBitUser->mUserId) {
+ $smarty->assign('msg', tra("You must log in to use this feature"));
+ $gBitSystem->display( 'error.tpl' );
+ die;
+}
+if ($feature_user_bookmarks != 'y') {
+ $smarty->assign('msg', tra("This feature is disabled").": feature_user_bookmarks");
+ $gBitSystem->display( 'error.tpl' );
+ die;
+}
+if (!isset($_REQUEST["urlid"])) {
+ $smarty->assign('msg', tra("No url indicated"));
+ $gBitSystem->display( 'error.tpl' );
+ die;
+}
+// Get a list of last changes to the Wiki database
+$info = $bookmarklib->get_url($_REQUEST["urlid"]);
+$smarty->assign_by_ref('info', $info);
+$info["refresh"] = $info["last_updated"];
+$gBitSystem->display( 'bitpackage:kernel/view_cache.tpl');
+?>