* * Copyright (C) 2008-2009 e107 Inc (e107.org) * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * * Plugin - newsfeeds * * $Source: /cvs_backup/e107_0.8/e107_plugins/newsfeed/newsfeed_menu.php,v $ * $Revision$ * $Date$ * $Author$ * */ if (!defined('e107_INIT')) { exit; } if (!e107::isInstalled('newsfeed')) { return ''; } include_lan(e_PLUGIN . 'newsfeed/languages/' . e_LANGUAGE . '_newsfeed.php'); if (!class_exists('newsfeedClass')) { require_once e_PLUGIN . 'newsfeed/newsfeed_functions.php'; } global $newsFeed; if (!is_object($newsFeed)) { $newsFeed = new newsfeedClass(); } $info = $newsFeed->newsfeedInfo('all', 'menu'); if ($info['text']) { $ns->tablerender($info['title'], $info['text']); }
* $Date$ * $Author$ * */ require_once '../../class2.php'; if (!plugInstalled('newsfeed')) { header("location:" . e_BASE . "index.php"); exit; } include_lan(e_PLUGIN . 'newsfeed/languages/' . e_LANGUAGE . '_newsfeed.php'); if (!class_exists('newsfeedClass')) { require e_PLUGIN . 'newsfeed/newsfeed_functions.php'; } global $newsFeed; if (!is_object($newsFeed)) { $newsFeed = new newsfeedClass(); } require_once HEADERF; /* get template */ if (file_exists(THEME . "newsfeed_template.php")) { require_once THEME . "newsfeed_template.php"; } else { if (!varset($NEWSFEED_LIST_START, FALSE)) { require_once e_PLUGIN . "newsfeed/templates/newsfeed_template.php"; } } $action = FALSE; if (e_QUERY) { $qs = explode(".", e_QUERY); $action = $qs[0]; $id = intval(varset($qs[1], 0));