<?php /****************************************************************************** * SiteBar 3 - The Bookmark Server for Personal and Team Use. * * Copyright (C) 2004-2008 Ondrej Brablc <http://brablc.com/mailto?o> * * * * This program is free software: you can redistribute it and/or modify * * it under the terms of the GNU Affero General Public License as published * * by the Free Software Foundation, either version 3 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 Affero General Public License for more details. * * * * You should have received a copy of the GNU Affero General Public License * * along with this program. If not, see <http://www.gnu.org/licenses/>. * ******************************************************************************/ require_once './inc/errorhandler.inc.php'; require_once './inc/page.inc.php'; SB_handleRootCookie('news.php'); $_REQUEST['w'] = 'news'; require_once './inc/writers/xbel.inc.php'; require_once './inc/writers/dir.inc.php'; require_once './inc/writers/news.inc.php'; include 'index.php';
* This program is free software: you can redistribute it and/or modify * * it under the terms of the GNU Affero General Public License as published * * by the Free Software Foundation, either version 3 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 Affero General Public License for more details. * * * * You should have received a copy of the GNU Affero General Public License * * along with this program. If not, see <http://www.gnu.org/licenses/>. * ******************************************************************************/ require_once './inc/errorhandler.inc.php'; require_once './inc/page.inc.php'; SB_handleRootCookie(); if (@(!(include_once './adm/config.inc.php'))) { header('Location: config.php'); exit; } require_once './inc/writer.inc.php'; $writer = 'sitebar'; if (SB_reqChk('w')) { $writer = SB_reqVal('w'); } else { if (!SB_reqChk('uniq')) { require_once './inc/usermanager.inc.php'; $um =& SB_UserManager::staticInstance(); $ua = $um->getParamB64('config', 'web_search_user_agents'); if (strlen($ua)) { if ($ua[0] != '/') {