/[pkg-tikiwiki]/tags/feature/1.9.5/external-libs/tiki-user_cached_bookmark.php
ViewVC logotype

Contents of /tags/feature/1.9.5/external-libs/tiki-user_cached_bookmark.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 124 - (show annotations) (download)
Tue Nov 7 12:14:33 2006 UTC (6 years, 6 months ago) by marcusb-guest
File size: 1166 byte(s)
Tag and move branch.
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 ?>

  ViewVC Help
Powered by ViewVC 1.1.5