5 * Copyright 1999-2001 (c) VA Linux Systems
7 * This file is part of FusionForge. FusionForge is free software;
8 * you can redistribute it and/or modify it under the terms of the
9 * GNU General Public License as published by the Free Software
10 * Foundation; either version 2 of the Licence, or (at your option)
13 * FusionForge is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 require_once '../env.inc.php';
25 require_once $gfcommon.'include/pre.php';
26 require_once $gfwww.'include/bookmarks.php';
28 site_user_header(array("title"=>_('My Personal Page')));
30 $bookmark_url = trim(getStringFromRequest('bookmark_url'));
31 $bookmark_title = trim(getStringFromRequest('bookmark_title'));
33 if (getStringFromRequest('submit') && $bookmark_url && $bookmark_title) {
35 printf(_('Added bookmark for <strong>%1$s</strong> with title <strong>%2$s</strong>'),
36 htmlspecialchars($bookmark_url),
37 htmlspecialchars($bookmark_title));
39 bookmark_add ($bookmark_url, $bookmark_title);
40 print "<a href=\"$bookmark_url\">"._('Visit the bookmarked page')."</a> - ";
41 print "<a href=\"/my/\">"._('Back to your homepage')."</a>";
45 <form action="<?php echo getStringFromServer('PHP_SELF'); ?>" method="post">
47 <label for="bookmark_url">
48 <?php echo _('Bookmark URL')._(':'); ?><br />
50 <input id="bookmark_url" type="text" name="bookmark_url" value="http://" />
53 <label for="bookmark_title">
54 <?php echo _('Bookmark Title')._(':'); ?><br />
56 <input id="bookmark_title" type="text" name="bookmark_title" value="" />
58 <p><input type="submit" name="submit" value="<?php echo _('Submit') ?>" /></p>
63 site_user_footer(array());