Esempio n. 1
0
<?php

loader_import('cms.Workspace.Bookmark');
$bk = new WorkspaceBookmark();
$bk->delete($parameters['bk_id']);
header('Location: ' . site_prefix() . '/index/cms-cpanel-action');
exit;
Esempio n. 2
0
<?php

global $cgi;
loader_import('cms.Workspace.Bookmark');
$bk = new WorkspaceBookmark();
$cgi->bk_link = str_replace('&_msg=deleted', '', $cgi->bk_link);
$res = $bk->add($cgi->bk_link, $cgi->bk_name);
loader_import('saf.Misc.RPC');
echo rpc_response($res);
exit;
Esempio n. 3
0
<?php

loader_import('cms.Workspace.Bookmark');
$bk = new WorkspaceBookmark();
$bookmarks = $bk->getList();
if (!is_array($bookmarks)) {
    echo '<p>' . intl_get('No bookmarks.') . '</p>';
    return;
}
echo template_simple('bookmarks.spt', array('bookmarks' => $bookmarks));