// // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. session_start(); ?> Link Administration loadLinks(); $op = isset($_POST['op']) ? $_POST['op'] : ""; $index = isset($_POST['index']) ? floor($_POST['index']) : -1; if (strcmp($op, "add") == 0) { $link = new Link; $link->url = $_POST['url']; $link->title = $_POST['title']; $links->addLink($link); } elseif (strcmp($op, "write") == 0) { $link = "http://" . $_SERVER['SERVER_NAME'] . ($_SERVER['SERVER_PORT'] != 80 ? ":" . $_SERVER['SERVER_PORT'] : "") . $_SERVER["REQUEST_URI"]; if (($pos = strrpos($link, "/")) !== FALSE) $link = substr($link, 0, $pos); $links->writeRSS($siteName, $link, "Rookmarks"); } elseif (strcmp($op, "remove") == 0) { $links->removeItem($index); } elseif (strcmp($op, "up") == 0) { $links->moveItem($index, -1); } elseif (strcmp($op, "down") == 0) { $links->moveItem($index, 1); } elseif (strcmp($op, "rename") == 0) { setSiteName($_POST['name']); include("./lib/settings.php"); } readOnlyWarning(); ?> <== back to admin

Current link list for

links); $i++) { ?>
[remove] [up] [down]
links) == 0) print("(none)
"); ?>

Add Bookmark

URL:
Title:

Write RSS File

Click the button to write a new RSS Live Bookmark file.

Change Site Name