| 1 |
<?php
|
| 2 |
|
| 3 |
// $Header: /cvsroot/tikiwiki/tiki/tiki-user_cached_bookmark.php,v 1.7.2.1 2005/01/01 00:11:27 damosoft Exp $
|
| 4 |
|
| 5 |
// Copyright (c) 2002-2005, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
|
| 6 |
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
|
| 7 |
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
|
| 8 |
|
| 9 |
// Initialization
|
| 10 |
require_once ('tiki-setup.php');
|
| 11 |
|
| 12 |
include_once ('lib/bookmarks/bookmarklib.php');
|
| 13 |
|
| 14 |
if (!$user) {
|
| 15 |
$smarty->assign('msg', tra("You must log in to use this feature"));
|
| 16 |
|
| 17 |
$smarty->display("error.tpl");
|
| 18 |
die;
|
| 19 |
}
|
| 20 |
|
| 21 |
if ($feature_user_bookmarks != 'y') {
|
| 22 |
$smarty->assign('msg', tra("This feature is disabled").": feature_user_bookmarks");
|
| 23 |
|
| 24 |
$smarty->display("error.tpl");
|
| 25 |
die;
|
| 26 |
}
|
| 27 |
|
| 28 |
if (!isset($_REQUEST["urlid"])) {
|
| 29 |
$smarty->assign('msg', tra("No url indicated"));
|
| 30 |
|
| 31 |
$smarty->display("error.tpl");
|
| 32 |
die;
|
| 33 |
}
|
| 34 |
|
| 35 |
// Get a list of last changes to the Wiki database
|
| 36 |
$info = $bookmarklib->get_url($_REQUEST["urlid"]);
|
| 37 |
$smarty->assign_by_ref('info', $info);
|
| 38 |
$info["refresh"] = $info["lastUpdated"];
|
| 39 |
$smarty->assign('mid', 'tiki-view_cache.tpl');
|
| 40 |
$smarty->display('tiki-view_cache.tpl');
|
| 41 |
|
| 42 |
?>
|