blob: 2775f9d84fc4c38891ca794c7c2def97d623ebdd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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');
?>
|