diff options
| author | Lee L Bell <starrrider@users.sourceforge.net> | 2006-04-06 05:06:11 +0000 |
|---|---|---|
| committer | Lee L Bell <starrrider@users.sourceforge.net> | 2006-04-06 05:06:11 +0000 |
| commit | e146835758a16f59257081430d5d541afaa07c2f (patch) | |
| tree | 0fbb4b02c181e85d5fc67f869788977d19cd774c /plugins/data.rss.php | |
| parent | 339af8756f1feb4cea6b69a6314bf6ebfb8f6e97 (diff) | |
| download | liberty-e146835758a16f59257081430d5d541afaa07c2f.tar.gz liberty-e146835758a16f59257081430d5d541afaa07c2f.tar.bz2 liberty-e146835758a16f59257081430d5d541afaa07c2f.zip | |
Added path & security parameters to plugins
Diffstat (limited to 'plugins/data.rss.php')
| -rw-r--r-- | plugins/data.rss.php | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/plugins/data.rss.php b/plugins/data.rss.php index b124dba..e114971 100644 --- a/plugins/data.rss.php +++ b/plugins/data.rss.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ * @package liberty * @subpackage plugins_data */ @@ -14,30 +14,31 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Oliver Hertel <ohertel@users.sourceforge.net> -// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) +// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) // | by: StarRider <starrrider@users.sourceforge.net> // +----------------------------------------------------------------------+ -// $Id: data.rss.php,v 1.5 2006/03/22 10:24:20 squareing Exp $ +// $Id: data.rss.php,v 1.6 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ global $gLibertySystem; - define( 'PLUGIN_GUID_RSS', 'datarss' ); - global $gLibertySystem; -$pluginParams = array ( 'tag' => 'RSS', - 'auto_activate' => TRUE, - 'requires_pair' => FALSE, - 'load_function' => 'rss_parse_data', - 'title' => 'RSS Feed', - 'help_page' => 'DataPluginRSS', - 'description' => tra("Display RSS Feeds"), - 'help_function' => 'rss_extended_help', - 'syntax' => "{RSS id= max= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'RSS', + 'auto_activate' => TRUE, + 'requires_pair' => FALSE, + 'load_function' => 'rss_parse_data', + 'title' => 'RSS Feed', + 'help_page' => 'DataPluginRSS', + 'description' => tra("Display RSS Feeds"), + 'help_function' => 'rss_extended_help', + 'syntax' => "{RSS id= max= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.rss.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_RSS, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_RSS ); @@ -61,7 +62,7 @@ function rss_parse_data( $data, $params ) { for ($j = 1; $j < count($items) && $j < $max; $j++) { $repl .= '<li><a href="' . $items[$j]["link"] . '">' . $items[$j]["title"] . '</a>'; if ($items[$j]["pubdate"] <> '') { - $repl .= ' <small>('.$items[$j]["pubdate"].')</small>'; + $repl .= ' <small>('.$items[$j]["pubdate"].')</small>'; } $repl .= '</li>'; } |
