3 * SourceForge User's bookmark Page
5 * Copyright 1999-2001 (c) VA Linux Systems
7 * This file is part of GForge.
9 * GForge is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * GForge is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with GForge; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 require_once('../env.inc.php');
26 require_once $gfcommon.'include/pre.php';
27 require_once $gfwww.'include/bookmarks.php';
29 site_user_header(array("title"=>_('My Personal Page')));
31 $bookmark_url = trim(getStringFromRequest('bookmark_url'));
32 $bookmark_title = trim(getStringFromRequest('bookmark_title'));
34 if (getStringFromRequest('submit') && $bookmark_url && $bookmark_title) {
36 printf(_('Added bookmark for <strong>%1$s</strong> with title <strong>%2$s</strong>'), htmlspecialchars($bookmark_url),htmlspecialchars($bookmark_title)).".<p> </p>";
38 bookmark_add ($bookmark_url, $bookmark_title);
39 print "<a href=\"$bookmark_url\">"._('Visit the bookmarked page')."</a> - ";
40 print "<a href=\"/my/\">"._('Back to your homepage')."</a>";
44 <form action="<?php echo getStringFromServer('PHP_SELF'); ?>" method="post">
45 <p><?php echo _('Bookmark URL') ?>:<br />
46 <input type="text" name="bookmark_url" value="http://" />
48 <p><?php echo _('Bookmark Title') ?>:<br />
49 <input type="text" name="bookmark_title" value="" />
51 <p><input type="submit" name="submit" value="<?php echo _('Submit') ?>" /></p>
56 site_user_footer(array());