diff options
46 files changed, 898 insertions, 708 deletions
diff --git a/plugins/data.addtabs.php b/plugins/data.addtabs.php index 53119d5..982d35c 100644 --- a/plugins/data.addtabs.php +++ b/plugins/data.addtabs.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ * @package liberty * @subpackage plugins_data */ @@ -15,7 +15,7 @@ // +----------------------------------------------------------------------+ // | Author: StarRider <starrrider@users.sourceforge.net> // +----------------------------------------------------------------------+ -// $Id: data.addtabs.php,v 1.6 2005/11/22 07:27:18 squareing Exp $ +// $Id: data.addtabs.php,v 1.7 2006/04/06 05:06:11 starrrider Exp $ /** * definitions @@ -23,17 +23,20 @@ define( 'PLUGIN_GUID_DATAADDTABS', 'dataaddtabs' ); global $gLibertySystem; global $gContent; -$pluginParams = array ( 'tag' => 'ADDTABS', - 'auto_activate' => TRUE, - 'requires_pair' => FALSE, - 'load_function' => 'data_addtabs', - 'title' => 'AddTabs', - 'help_page' => 'DataPluginAddTabs', - 'description' => tra("Will join the contents from several sources in a Tabbed Interface."), - 'help_function' => 'data_addtabs_help', - 'syntax' => "{ADDTABS tab1= tab2= tab3= . . . tab99= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'ADDTABS', + 'auto_activate' => TRUE, + 'requires_pair' => FALSE, + 'load_function' => 'data_addtabs', + 'title' => 'AddTabs', + 'help_page' => 'DataPluginAddTabs', + 'description' => tra("Will join the contents from several sources in a Tabbed Interface."), + 'help_function' => 'data_addtabs_help', + 'syntax' => "{ADDTABS tab1= tab2= tab3= . . . tab99= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.addtabs.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAADDTABS, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAADDTABS ); @@ -52,7 +55,7 @@ function data_addtabs_help() { .'<td>tab1 - tab99</td>' .'<td>' . tra( "numeric") . '<br />' . tra("(optional)") . '</td>' .'<td>' . tra( "Will create a Tab interface on a page. The name on each tab is the name given to the imported page.The value sent with the TabX parameter is a Numeric Content Id. This allows blog posts, images, wiki pages . . . (and more) to be added.") - . tra("<br /><strong>Note 1:</strong> A listing of Content Id's can be found ") + . tra("<br /><strong>Note 1:</strong> A listing of Content Id's can be found ") . '<a href="'.LIBERTY_PKG_URL.'list_content.php" title="Launch BitWeaver Content Browser in New Window" onkeypress="popUpWin(this.href,\'standard\',800,800);" onclick="popUpWin(this.href,\'standard\',800,800);return false;">' . tra( "Here" ) . '</a>' . tra("<br /><strong>Note 2:</strong> The order used when the tabs are specified does not matter. The Tabname does - Tab1 is always first and Tab99 will always be last.</td>") .'</tr>' diff --git a/plugins/data.adsense.php b/plugins/data.adsense.php index df7f5bd..8016a04 100644 --- a/plugins/data.adsense.php +++ b/plugins/data.adsense.php @@ -1,33 +1,56 @@ <?php - /****************** - * Initialization * - ******************/ - global $gLibertySystem; - define( 'PLUGIN_GUID_ADSENSE', 'adsense' ); - $pluginParams = array ( - 'tag' => 'ADSENSE', - 'auto_activate' => FALSE, - 'requires_pair' => FALSE, - 'load_function' => 'data_adsense', - 'title' => 'Adsense', - 'help_page' => 'DataPluginAdsense', - 'description' => tra("This plugin adds Adsense Code to page."), - 'help_function' => 'data_adsense_help', - 'syntax' => "{ADSENSE}", - 'plugin_type' => DATA_PLUGIN - ); - $gLibertySystem->registerPlugin( PLUGIN_GUID_ADSENSE, $pluginParams ); - $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_ADSENSE ); - /***************** - * Help Function * - *****************/ - function data_adsense_help() { - return 'NO HELP WRITTEN FOR {ADSENSE} YET'; - } - /**************** - * Load Function * - ****************/ - function data_adsense($data, $params) { - return '<!--~np~--><script type="text/javascript"><!-- ' . "\n" . 'google_ad_client = "pub-xxxxxxxxxxxxxxxx";' . "\n" . 'google_ad_width = 728;' . "\n" . 'google_ad_height = 90;' . "\n" . 'google_ad_format = "728x90_as";' . "\n" . 'google_ad_type = "text_image";' . "\n" . 'google_ad_channel ="";' . "\n" . '//--></script>' . "\n" . '<script type="text/javascript"' . "\n" . ' src="http://pagead2.googlesyndication.com/pagead/show_ads.js">' . "\n" . '</script><!--~/np~-->'; - } +/** + * @version $Revision: 1.2 $ + * @package liberty + * @subpackage plugins_data + */ +// +----------------------------------------------------------------------+ +// | Copyright (c) 2004, bitweaver.org +// +----------------------------------------------------------------------+ +// | All Rights Reserved. See copyright.txt for details and a complete list of authors. +// | Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details +// | +// | For comments, please use phpdocu.sourceforge.net documentation standards!!! +// | -> see http://phpdocu.sourceforge.net/ +// +----------------------------------------------------------------------+ +// | Author: xing +// +----------------------------------------------------------------------+ +// $Id: data.adsense.php,v 1.2 2006/04/06 05:06:11 starrrider Exp $ + +/** + * definitions + */ +/****************** +* Initialization * +******************/ +global $gLibertySystem; +define( 'PLUGIN_GUID_ADSENSE', 'adsense' ); +$pluginParams = array ( + 'tag' => 'ADSENSE', + 'auto_activate' => FALSE, + 'requires_pair' => FALSE, + 'load_function' => 'data_adsense', + 'title' => 'Adsense', + 'help_page' => 'DataPluginAdsense', + 'description' => tra("This plugin adds Adsense Code to page."), + 'help_function' => 'data_adsense_help', + 'syntax' => "{ADSENSE}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.adsense.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); +$gLibertySystem->registerPlugin( PLUGIN_GUID_ADSENSE, $pluginParams ); +$gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_ADSENSE ); +/***************** +* Help Function * +*****************/ +function data_adsense_help() { + return 'NO HELP WRITTEN FOR {ADSENSE} YET'; +} +/**************** +* Load Function * +****************/ +function data_adsense($data, $params) { + return '<!--~np~--><script type="text/javascript"><!-- ' . "\n" . 'google_ad_client = "pub-xxxxxxxxxxxxxxxx";' . "\n" . 'google_ad_width = 728;' . "\n" . 'google_ad_height = 90;' . "\n" . 'google_ad_format = "728x90_as";' . "\n" . 'google_ad_type = "text_image";' . "\n" . 'google_ad_channel ="";' . "\n" . '//--></script>' . "\n" . '<script type="text/javascript"' . "\n" . ' src="http://pagead2.googlesyndication.com/pagead/show_ads.js">' . "\n" . '</script><!--~/np~-->'; +} ?> diff --git a/plugins/data.agentinfo.php b/plugins/data.agentinfo.php index 3b44bea..349a8ad 100644 --- a/plugins/data.agentinfo.php +++ b/plugins/data.agentinfo.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ * @package liberty * @subpackage plugins_data */ @@ -14,27 +14,30 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Damian Parker <damosoft@users.sourceforge.net> -// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) +// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) // | by: StarRider <starrrider@users.sourceforge.net> // +----------------------------------------------------------------------+ -// $Id: data.agentinfo.php,v 1.6 2005/11/22 07:27:18 squareing Exp $ +// $Id: data.agentinfo.php,v 1.7 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ define( 'PLUGIN_GUID_DATAAGENTINFO', 'dataagentinfo' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'AGENTINFO', - 'auto_activate' => TRUE, - 'requires_pair' => FALSE, - 'load_function' => 'data_agentinfo', - 'title' => 'AgentInfo', - 'help_page' => 'DataPluginAgentInfo', - 'description' => tra("This plugin will display the viewer's IP address, the Browser they are using, or the info about the site's Server software."), - 'help_function' => 'data_agentinfo_help', - 'syntax' => "{AGENTINFO info= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'AGENTINFO', + 'auto_activate' => TRUE, + 'requires_pair' => FALSE, + 'load_function' => 'data_agentinfo', + 'title' => 'AgentInfo', + 'help_page' => 'DataPluginAgentInfo', + 'description' => tra("This plugin will display the viewer's IP address, the Browser they are using, or the info about the site's Server software."), + 'help_function' => 'data_agentinfo_help', + 'syntax' => "{AGENTINFO info= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.agentinfo.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAAGENTINFO, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAAGENTINFO ); diff --git a/plugins/data.article.php b/plugins/data.article.php index 285cb03..da6e1cd 100644 --- a/plugins/data.article.php +++ b/plugins/data.article.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ * @package liberty * @subpackage plugins_data */ @@ -14,11 +14,11 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): dheltzel -// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) +// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) // | by: StarRider <starrrider@users.sourceforge.net> // | Reworked from: wikiplugin_article.php - see deprecated code below // +----------------------------------------------------------------------+ -// $Id: data.article.php,v 1.6 2006/01/31 20:18:26 bitweaver Exp $ +// $Id: data.article.php,v 1.7 2006/04/06 05:06:11 starrrider Exp $ /** * definitions @@ -27,18 +27,21 @@ global $gBitSystem; if( $gBitSystem->isPackageActive( 'articles' ) ) { // Do not include this Plugin if the Package is not active define( 'PLUGIN_GUID_DATAARTICLE', 'dataarticle' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'ARTICLE', - 'auto_activate' => FALSE, - 'requires_pair' => FALSE, - 'load_function' => 'data_article', - 'title' => 'Article<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin -// 'title' => 'Article', // and Remove the comment from the start of this line - 'help_page' => 'DataPluginArticle', - 'description' => tra("This plugin will display the data from a single field in the specified Article."), - 'help_function' => 'data_article_help', - 'syntax' => "{ARTICLE id= field=}", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'ARTICLE', + 'auto_activate' => FALSE, + 'requires_pair' => FALSE, + 'load_function' => 'data_article', + 'title' => 'Article<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin +// 'title' => 'Article', // and Remove the comment from the start of this line + 'help_page' => 'DataPluginArticle', + 'description' => tra("This plugin will display the data from a single field in the specified Article."), + 'help_function' => 'data_article_help', + 'syntax' => "{ARTICLE id= field=}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.article.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAARTICLE, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAARTICLE ); @@ -70,7 +73,7 @@ function data_article_help() { // Executable Routine function data_article($data, $params) { // No change in the parameters with Clyde // The next 2 lines allow access to the $pluginParams given above and may be removed when no longer needed - global $gLibertySystem; + global $gLibertySystem; $pluginParams = $gLibertySystem->mPlugins[PLUGIN_GUID_DATAARTICLE]; $ret = 'The plugin <strong>"' . $pluginParams['tag'] . '"</strong> has not been completed as yet. '; return $ret; diff --git a/plugins/data.articles.php b/plugins/data.articles.php index 279e94d..ff17d23 100644 --- a/plugins/data.articles.php +++ b/plugins/data.articles.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.8 $ + * @version $Revision: 1.9 $ * @package liberty * @subpackage plugins_data */ @@ -14,11 +14,11 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Gustavo Muslera <gmuslera@users.sourceforge.net> -// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) +// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) // | by: StarRider <starrrider@users.sourceforge.net> // | Reworked from: wikiplugin_articles.php - see deprecated code below // +----------------------------------------------------------------------+ -// $Id: data.articles.php,v 1.8 2006/01/14 19:54:56 squareing Exp $ +// $Id: data.articles.php,v 1.9 2006/04/06 05:06:11 starrrider Exp $ /** * definitions @@ -27,17 +27,20 @@ global $gBitSystem, $gBitSmarty; if( $gBitSystem->isPackageActive( 'articles' ) ) { // Do not include this Plugin if the Package is not active define( 'PLUGIN_GUID_DATAARTICLES', 'dataarticles' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'ARTICLES', - 'auto_activate' => TRUE, - 'requires_pair' => FALSE, - 'load_function' => 'data_articles', - 'help_function' => 'data_articles_help', - 'title' => 'Articles', - 'help_page' => 'DataPluginArticles', - 'description' => tra( "This plugin will display several Articles." ), - 'syntax' => "{ARTICLES max= topic= type= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'ARTICLES', + 'auto_activate' => TRUE, + 'requires_pair' => FALSE, + 'load_function' => 'data_articles', + 'help_function' => 'data_articles_help', + 'title' => 'Articles', + 'help_page' => 'DataPluginArticles', + 'description' => tra( "This plugin will display several Articles." ), + 'syntax' => "{ARTICLES max= topic= type= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.articles.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAARTICLES, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAARTICLES ); diff --git a/plugins/data.attachment.php b/plugins/data.attachment.php index 4e64ab1..2678653 100644 --- a/plugins/data.attachment.php +++ b/plugins/data.attachment.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ * @package liberty * @subpackage plugins_data */ @@ -15,7 +15,7 @@ // +----------------------------------------------------------------------+ // | Authors: drewslater <andrew@andrewslater.com> // +----------------------------------------------------------------------+ -// $Id: data.attachment.php,v 1.4 2005/08/07 17:40:31 squareing Exp $ +// $Id: data.attachment.php,v 1.5 2006/04/06 05:06:11 starrrider Exp $ /** * definitions @@ -24,17 +24,20 @@ global $gBitSystem; define( 'PLUGIN_GUID_DATAATTACHMENT', 'dataattachment' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'ATTACHMENT', - 'auto_activate' => TRUE, - 'requires_pair' => FALSE, - 'load_function' => 'data_attachment', - 'title' => 'Attachment', - 'help_page' => 'DataPluginAttachment', - 'description' => tra("Display attachment in content"), - 'help_function' => 'data_attachment_help', - 'syntax' => '{ATTACHMENT id= size= align= }', - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'ATTACHMENT', + 'auto_activate' => TRUE, + 'requires_pair' => FALSE, + 'load_function' => 'data_attachment', + 'title' => 'Attachment', + 'help_page' => 'DataPluginAttachment', + 'description' => tra("Display attachment in content"), + 'help_function' => 'data_attachment_help', + 'syntax' => '{ATTACHMENT id= size= align= }', + 'path' => LIBERTY_PKG_PATH.'plugins/data.attachment.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAATTACHMENT, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAATTACHMENT ); @@ -55,13 +58,13 @@ function data_attachment_help() { .'<tr class="even">' .'<td>size</td>' .'<td>' . tra( "key-words") . '<br />' . tra("(optional)") . '</td>' - .'<td>' . tra( "If the Attachment is an image, you can specify the size of the thumbnail displayed. Possible values are:") . ' <strong>avatar, small, medium, large, original</strong> ' + .'<td>' . tra( "If the Attachment is an image, you can specify the size of the thumbnail displayed. Possible values are:") . ' <strong>avatar, small, medium, large, original</strong> ' . tra("(Default = ") . '<strong>medium</strong>)</td>' .'</tr>' .'<tr class="odd">' .'<td>link</td>' .'<td>' . tra( "string") . '<br />' . tra("(optional)") . '</td>' - .'<td>' . tra( "Allows you to specify a relative or absolute URL the image will link to if clicked. If set to false, no link is inserted.") + .'<td>' . tra( "Allows you to specify a relative or absolute URL the image will link to if clicked. If set to false, no link is inserted.") . tra("(Default = ") . '<strong>'.tra( 'link to source image' ).'</strong>)</td>' .'</tr>' .'<tr class="even">' @@ -84,7 +87,7 @@ function data_attachment_help() { function data_attachment($data, $params) { // NOTE: The original plugin had several parameters that have been dropped // at a minimum, return blank string (not empty) so we still replace the tag $ret = ' '; - if( empty( $params['id'] ) ) { + if( empty( $params['id'] ) ) { // The Manditory Parameter is missing. we are not gonna trow an error, and just return empty since // many sites use the old style required second "closing" empty tag return $ret; diff --git a/plugins/data.avatar.php b/plugins/data.avatar.php index 52e1872..f92e794 100644 --- a/plugins/data.avatar.php +++ b/plugins/data.avatar.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ * @package liberty * @subpackage plugins_data */ @@ -14,11 +14,11 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Luis Argerich <lrargerich@users.sourceforge.net> -// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) +// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) // | by: StarRider <starrrider@users.sourceforge.net> // | Reworked from: wikiplugin_avatar.php - see deprecated code below // +----------------------------------------------------------------------+ -// $Id: data.avatar.php,v 1.6 2006/03/01 18:35:17 spiderr Exp $ +// $Id: data.avatar.php,v 1.7 2006/04/06 05:06:11 starrrider Exp $ /** * definitions @@ -27,18 +27,21 @@ global $gBitSystem; if( $gBitSystem->isPackageActive( 'wiki' ) ) { // Do not include this Plugin if the Package is not active define( 'PLUGIN_GUID_DATAAVATAR', 'dataavatar' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'AVATAR', - 'auto_activate' => FALSE, - 'requires_pair' => FALSE, - 'load_function' => 'data_avatar', - 'title' => 'Avatar<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational -// 'title' => 'Avatar', // and Remove the comment from the start of this line - 'help_page' => 'DataPluginAvatar', - 'description' => tra("This plugin will display a User's Avatar as a Link to a page."), - 'help_function' => 'data_avatar_help', - 'syntax' => "{AVATAR user= page= float= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'AVATAR', + 'auto_activate' => FALSE, + 'requires_pair' => FALSE, + 'load_function' => 'data_avatar', + 'title' => 'Avatar<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational +// 'title' => 'Avatar', // and Remove the comment from the start of this line + 'help_page' => 'DataPluginAvatar', + 'description' => tra("This plugin will display a User's Avatar as a Link to a page."), + 'help_function' => 'data_avatar_help', + 'syntax' => "{AVATAR user= page= float= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.avatar.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAAVATAR, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAAVATAR ); @@ -65,7 +68,7 @@ function data_avatar_help() { .'<tr class="odd">' .'<td>float</td>' .'<td>' . tra( "key-words") . '<br />' . tra("(optional)") . '</td>' - .'<td>' . tra( "Specifies how the Avatar is to be alligned on the page. If NOT defined - the text will not wrap around the Avatar. Possible values are:") + .'<td>' . tra( "Specifies how the Avatar is to be alligned on the page. If NOT defined - the text will not wrap around the Avatar. Possible values are:") . ' <strong>left or right</strong> ' . tra("(Default = ") . '<strong>NOT SET</strong>)</td>' .'</tr>' .'</table>' @@ -77,7 +80,7 @@ function data_avatar_help() { function data_avatar($data, $params) { // Pre-Clyde Changes // The Parameter user is new - the info was extracted from $data // The next 2 lines allow access to the $pluginParams given above and may be removed when no longer needed - global $gLibertySystem; + global $gLibertySystem; $pluginParams = $gLibertySystem->mPlugins[PLUGIN_GUID_DATAAVATAR]; $ret = 'The plugin <strong>"' . $pluginParams['tag'] . '"</strong> has not been completed as yet. '; return $ret; diff --git a/plugins/data.backlinks.php b/plugins/data.backlinks.php index d61f40d..424dfa1 100644 --- a/plugins/data.backlinks.php +++ b/plugins/data.backlinks.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ * @package liberty * @subpackage plugins_data */ @@ -14,11 +14,11 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Claudio Bustos <cdx@users.sourceforge.net> -// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) +// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) // | by: StarRider <starrrider@users.sourceforge.net> // | Reworked from: wikiplugin_backlinks.php - see deprecated code below // +----------------------------------------------------------------------+ -// $Id: data.backlinks.php,v 1.6 2006/02/06 22:56:47 squareing Exp $ +// $Id: data.backlinks.php,v 1.7 2006/04/06 05:06:11 starrrider Exp $ /** * definitions @@ -27,18 +27,21 @@ global $gBitSystem; if( ( $gBitSystem->isPackageActive( 'wiki' ) ) && ( $gBitSystem->isFeatureActive('backlinks') ) ) { // Do not include this Plugin if the Package or the Feature is not active define( 'PLUGIN_GUID_DATABACKLINKS', 'databacklinks' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'BACKLINKS', - 'auto_activate' => FALSE, - 'requires_pair' => FALSE, - 'load_function' => 'data_backlinks', - 'title' => 'BackLinks<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational -// 'title' => 'BackLinks', // and Remove the comment from the start of this line - 'help_page' => 'DataPluginBackLinks', - 'description' => tra("This plugin will list all Wiki pages which contains a link to the specified page."), - 'help_function' => 'data_backlinks_help', - 'syntax' => "{BACKLINKS page= info= exclude= self= header= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'BACKLINKS', + 'auto_activate' => FALSE, + 'requires_pair' => FALSE, + 'load_function' => 'data_backlinks', + 'title' => 'BackLinks<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational +// 'title' => 'BackLinks', // and Remove the comment from the start of this line + 'help_page' => 'DataPluginBackLinks', + 'description' => tra("This plugin will list all Wiki pages which contains a link to the specified page."), + 'help_function' => 'data_backlinks_help', + 'syntax' => "{BACKLINKS page= info= exclude= self= header= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.backlinks.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATABACKLINKS, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATABACKLINKS ); @@ -59,13 +62,13 @@ function data_backlinks_help() { .'<tr class="even">' .'<td>info</td>' .'<td>' . tra( "key-words") . '<br />' . tra("(optional)") . '</td>' - .'<td>' . tra( "Defines what is to be displayed. Multiple columns can be displayed if joined with the character |. Available choices are:") + .'<td>' . tra( "Defines what is to be displayed. Multiple columns can be displayed if joined with the character |. Available choices are:") .' <strong>hits, lastmodif, user, ip, len, comment, creator, version, flag, versions, links, backlinks</strong>. ' . tra("(Default = EVERYTHING)") . '</td>' .'</tr>' .'<tr class="odd">' .'<td>exclude</td>' .'<td>' . tra( "page-name(s)") . '<br />' . tra("(optional)") . '</td>' - .'<td>' . tra( "Can be any wiki page. Multiple pagenames will be excluded if joined with the character |. Like this:") + .'<td>' . tra( "Can be any wiki page. Multiple pagenames will be excluded if joined with the character |. Like this:") .' <strong>HomePage|SandBox</strong> ' . tra("(Default = EVERYTHING is displayed)") . '</td>' .'</tr>' .'<tr class="even">' @@ -98,7 +101,7 @@ function data_backlinks($data, $params) { // Pre-Clyde Changes $header = isset($header) ? TRUE : FALSE; // Any value passed in this parameter makes it True // The next 2 lines allow access to the $pluginParams given above and may be removed when no longer needed - global $gLibertySystem; + global $gLibertySystem; $pluginParams = $gLibertySystem->mPlugins[PLUGIN_GUID_DATABACKLINKS]; $ret = 'The plugin <strong>"' . $pluginParams['tag'] . '"</strong> has not been completed as yet. '; return $ret; diff --git a/plugins/data.blog.php b/plugins/data.blog.php index 63f1ba2..068fd47 100755 --- a/plugins/data.blog.php +++ b/plugins/data.blog.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ * @package liberty * @subpackage plugins_data */ @@ -14,11 +14,11 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Gustavo Muslera <gmuslera@users.sourceforge.net> -// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) +// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) // | by: wjames5 // | Reworked from: data.articles.php from wikiplugin_articles.php // +----------------------------------------------------------------------+ -// $Id: data.blog.php,v 1.3 2006/03/22 10:24:20 squareing Exp $ +// $Id: data.blog.php,v 1.4 2006/04/06 05:06:11 starrrider Exp $ /** * definitions @@ -27,17 +27,20 @@ global $gBitSystem, $gBitSmarty; if( $gBitSystem->isPackageActive( 'blogs' ) ) { // Do not include this Plugin if the Package is not active define( 'PLUGIN_GUID_DATABLOG', 'datablog' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'BLOG', - 'auto_activate' => TRUE, - 'requires_pair' => FALSE, - 'load_function' => 'data_blog', - 'help_function' => 'data_blog_help', - 'title' => 'Blog', - 'help_page' => 'DataPluginBlog', - 'description' => tra( "This plugin will display several posts from a blog." ), - 'syntax' => "{BLOG id= max= format= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'BLOG', + 'auto_activate' => TRUE, + 'requires_pair' => FALSE, + 'load_function' => 'data_blog', + 'help_function' => 'data_blog_help', + 'title' => 'Blog', + 'help_page' => 'DataPluginBlog', + 'description' => tra( "This plugin will display several posts from a blog." ), + 'syntax' => "{BLOG id= max= format= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.blog.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATABLOG, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATABLOG ); @@ -81,13 +84,13 @@ function data_blog($data, $params) { // No change in the parameters with Clyde require_once( LIBERTY_PKG_PATH.'lookup_content_inc.php' ); $module_params = $params; - + /* $gBitSystem->verifyPermission( 'bit_p_read_blog' ); */ $gBitSmarty->assign('blog_id', $module_params['id']); $blogPost = new BitBlogPost(); - + $sortOptions = array( "last_modified_asc", "last_modified_desc", @@ -98,8 +101,8 @@ function data_blog($data, $params) { // No change in the parameters with Clyde $sort_mode = $module_params['sort_mode']; } else { $sort_mode = 'last_modified_desc'; - } - + } + $getHash = Array(); $getHash['blog_id'] = empty($module_params['id']) ? 1 : $module_params['id']; @@ -110,10 +113,10 @@ function data_blog($data, $params) { // No change in the parameters with Clyde $getHash['page'] = (!empty($module_params['page']) ? $module_params['page'] : 1); $getHash['offset'] = (!empty($module_params['offset']) ? $module_params['offset'] : 0); $blogPosts = $blogPost->getList( $getHash ); - + $display_format = empty($module_params['format']) ? 'simple_title_list' : $module_params['format']; - $display_result = ""; + $display_result = ""; switch( $display_format ) { case 'full': $display_result = '<div class="blogs">'; @@ -127,7 +130,7 @@ function data_blog($data, $params) { // No change in the parameters with Clyde $display_result .= $gBitSmarty->fetch( 'bitpackage:articles/article_display.tpl' ); */ } - + $display_result .= '</div>'; $display_result = eregi_replace( "\n", "", $display_result ); diff --git a/plugins/data.category.php b/plugins/data.category.php index 0d0bd29..09caa34 100644 --- a/plugins/data.category.php +++ b/plugins/data.category.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.7 $ + * @version $Revision: 1.8 $ * @package liberty * @subpackage plugins_data */ @@ -14,11 +14,11 @@ // | -> 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> // | Reworked from: wikiplugin_category.php - see deprecated code below // +----------------------------------------------------------------------+ -// $Id: data.category.php,v 1.7 2006/02/06 00:09:01 squareing Exp $ +// $Id: data.category.php,v 1.8 2006/04/06 05:06:11 starrrider Exp $ /** * definitions @@ -27,18 +27,21 @@ global $gBitSystem; if( $gBitSystem->isPackageActive( 'categories' ) ) { // Do not include this Plugin if the Package is not active define( 'PLUGIN_GUID_DATACATEGORY', 'datacategory' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'CATEGORY', - 'auto_activate' => FALSE, - 'requires_pair' => FALSE, - 'load_function' => 'data_category', - 'title' => 'Category<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational -// 'title' => 'Category', // and Remove the comment from the start of this line - 'help_page' => 'DataPluginCategory', - 'description' => tra("This plugin insert a list of items for the current category or a given category."), - 'help_function' => 'data_category_help', - 'syntax' => "{CATEGORY id= types= sort= sub= split= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'CATEGORY', + 'auto_activate' => FALSE, + 'requires_pair' => FALSE, + 'load_function' => 'data_category', + 'title' => 'Category<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational +// 'title' => 'Category', // and Remove the comment from the start of this line + 'help_page' => 'DataPluginCategory', + 'description' => tra("This plugin insert a list of items for the current category or a given category."), + 'help_function' => 'data_category_help', + 'syntax' => "{CATEGORY id= types= sort= sub= split= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.category.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATACATEGORY, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATACATEGORY ); @@ -52,7 +55,7 @@ function data_category_help() { .'<th>' . tra( "Comments" ) . '</th>' .'</tr>' .'<tr class="odd">' - .'<td>id</td>' + .'<td>id</td>' .'<td>' . tra( "number(s)") . '<br />' . tra("(optional)") . '</td>' .'<td>' . tra( "A Category Id number or list of Id numbers. The easiest way to see a Category Id number is to open 'View Categories' and placing the mouse over the Category in question. The URL will be displayed by most browsers. The end of the URL contains an Id number like this: <strong>parent_id=9</strong>. Multiple Id numbers can be entered by joining them with the + character like this: <strong>1+2+3</strong>. Default = <strong>the Current Category Id Number </strong> if not defined.") . '</td>' .'</tr>' @@ -86,7 +89,7 @@ function data_category_help() { function data_category($data, $params) { // Pre-Clyde Changes // requires_pair was TRUE / No other changes were made to the Help // The next 2 lines allow access to the $pluginParams given above and may be removed when no longer needed - global $gLibertySystem; + global $gLibertySystem; $pluginParams = $gLibertySystem->mPlugins[PLUGIN_GUID_DATACATEGORY]; $ret = 'The plugin <strong>"' . $pluginParams['tag'] . '"</strong> has not been completed as yet. '; return $ret; diff --git a/plugins/data.catorphans.php b/plugins/data.catorphans.php index 8a8a22c..0ac3f0c 100644 --- a/plugins/data.catorphans.php +++ b/plugins/data.catorphans.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ * @package liberty * @subpackage plugins_data */ @@ -14,11 +14,11 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): TeeDog <teedog@users.sourceforge.net> -// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) +// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) // | by: StarRider <starrrider@users.sourceforge.net> // | Reworked from: wikiplugin_catorphans.php - see deprecated code below // +----------------------------------------------------------------------+ -// $Id: data.catorphans.php,v 1.6 2005/11/22 07:27:18 squareing Exp $ +// $Id: data.catorphans.php,v 1.7 2006/04/06 05:06:11 starrrider Exp $ /** * definitions @@ -27,18 +27,21 @@ global $gBitSystem; if( $gBitSystem->isPackageActive( 'categories' ) ) { // Do not include this Plugin if the Package is not active define( 'PLUGIN_GUID_DATACATORPHANS', 'datacatorphans' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'CATORPHANS', - 'auto_activate' => FALSE, - 'requires_pair' => FALSE, - 'load_function' => 'data_catorphans', - 'title' => 'CatOrphans<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational -// 'title' => 'CatOrphans', // and Remove the comment from the start of this line - 'help_page' => 'DataPluginCatOrphans', - 'description' => tra("Creates a listing of bitweaver objects that have not been categorized."), - 'help_function' => 'data_catorphans_help', - 'syntax' => "{CATORPHANS objects= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'CATORPHANS', + 'auto_activate' => FALSE, + 'requires_pair' => FALSE, + 'load_function' => 'data_catorphans', + 'title' => 'CatOrphans<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational +// 'title' => 'CatOrphans', // and Remove the comment from the start of this line + 'help_page' => 'DataPluginCatOrphans', + 'description' => tra("Creates a listing of bitweaver objects that have not been categorized."), + 'help_function' => 'data_catorphans_help', + 'syntax' => "{CATORPHANS objects= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.catorphans.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATACATORPHANS, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATACATORPHANS ); @@ -52,7 +55,7 @@ function data_catorphans_help() { .'<th>' . tra( "Comments" ) . '</th>' .'</tr>' .'<tr class="odd">' - .'<td>object</td>' + .'<td>object</td>' .'<td>' . tra( "object(s)") . '<br />' . tra("(optional)") . '</td>' .'<td>' . tra("Most bitweaver Objects can be selected, including") . " <strong>article, blog, faq, fgal, igal, newsletter, poll, quiz, survey, tracker, & wiki</strong>. " . tra("Multiple objects can be entered bu using the character + between object names, like this") . " <strong>blog+faq</strong>. " . tra(". The default is <strong>wiki</strong> objects.") . '</td>' .'</tr>' @@ -65,7 +68,7 @@ function data_catorphans_help() { function data_catorphans($data, $params) { // Pre-Clyde Changes // requires_pair was TRUE / No other changes were made to the Help // The next 2 lines allow access to the $pluginParams given above and may be removed when no longer needed - global $gLibertySystem; + global $gLibertySystem; $pluginParams = $gLibertySystem->mPlugins[PLUGIN_GUID_DATACATORPHANS]; $ret = 'The plugin <strong>"' . $pluginParams['tag'] . '"</strong> has not been completed as yet. '; return $ret; diff --git a/plugins/data.catpath.php b/plugins/data.catpath.php index f1998b0..952b106 100644 --- a/plugins/data.catpath.php +++ b/plugins/data.catpath.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ * @package liberty * @subpackage plugins_data */ @@ -14,11 +14,11 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): TeeDog <teedog@users.sourceforge.net> -// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) +// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) // | by: StarRider <starrrider@users.sourceforge.net> // | Reworked from: wikiplugin_catpath.php - see deprecated code below // +----------------------------------------------------------------------+ -// $Id: data.catpath.php,v 1.6 2005/11/22 07:27:18 squareing Exp $ +// $Id: data.catpath.php,v 1.7 2006/04/06 05:06:11 starrrider Exp $ /** * definitions @@ -27,18 +27,21 @@ global $gBitSystem; if( $gBitSystem->isPackageActive( 'categories' ) ) { // Do not include this Plugin if the Package is not active define( 'PLUGIN_GUID_DATACATPATH', 'datacatpath' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'CATPATH', - 'auto_activate' => FALSE, - 'requires_pair' => FALSE, - 'load_function' => 'data_catpath', - 'title' => 'CatPath<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational -// 'title' => 'CatPath', // and Remove the comment from the start of this line - 'help_page' => 'DataPluginCatPath', - 'description' => tra("This plugin insert the full category path for each category that the page belongs to."), - 'help_function' => 'data_catpath_help', - 'syntax' => "{CATPATH divider= top= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'CATPATH', + 'auto_activate' => FALSE, + 'requires_pair' => FALSE, + 'load_function' => 'data_catpath', + 'title' => 'CatPath - This plugin is not yet functional.', // Remove this line when the plugin becomes operational +// 'title' => 'CatPath', // and Remove the comment from the start of this line + 'help_page' => 'DataPluginCatPath', + 'description' => tra("This plugin insert the full category path for each category that the page belongs to."), + 'help_function' => 'data_catpath_help', + 'syntax' => "{CATPATH divider= top= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.catpath.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATACATPATH, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATACATPATH ); @@ -70,7 +73,7 @@ function data_catpath_help() { function data_catpath($data, $params) { // Pre-Clyde Changes // requires_pair was TRUE / No other changes were made to the Help // The next 2 lines allow access to the $pluginParams given above and may be removed when no longer needed - global $gLibertySystem; + global $gLibertySystem; $pluginParams = $gLibertySystem->mPlugins[PLUGIN_GUID_DATACATPATH]; $ret = 'The plugin <strong>"' . $pluginParams['tag'] . '"</strong> has not been completed as yet. '; return $ret; diff --git a/plugins/data.clock.php b/plugins/data.clock.php index 9f2e55a..07fb026 100644 --- a/plugins/data.clock.php +++ b/plugins/data.clock.php @@ -1,21 +1,28 @@ <?php -// $id: data.example.php,v 1.4.2.9 2005/07/14 09:03:36 starrider Exp $ /** - * assigned_modules - * - * @author xing - * @version $Revision: 1.5 $ - * @package liberty + * @version $Revision: 1.6 $ + * @package liberty * @subpackage plugins_data - * @copyright Copyright (c) 2004, bitweaver.org */ +// +----------------------------------------------------------------------+ +// | Copyright (c) 2004, bitweaver.org +// +----------------------------------------------------------------------+ +// | All Rights Reserved. See copyright.txt for details and a complete list of authors. +// | Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details +// | +// | For comments, please use phpdocu.sourceforge.net documentation standards!!! +// | -> see http://phpdocu.sourceforge.net/ +// +----------------------------------------------------------------------+ +// | Author: xing +// +----------------------------------------------------------------------+ +// $Id: data.clock.php,v 1.6 2006/04/06 05:06:11 starrrider Exp $ /** * Setup Code */ define( 'PLUGIN_GUID_DATACLOCK', 'dataclock' ); global $gLibertySystem; -$pluginParams = array ( +$pluginParams = array ( 'tag' => 'CLOCK', 'auto_activate' => FALSE, 'requires_pair' => FALSE, @@ -25,6 +32,8 @@ $pluginParams = array ( 'description' => "This plugin allows you to insert flexible date/time strings into your pages.", 'help_function' => 'data_clock_help', 'syntax' => "{clock format='%c'}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.example.php', + 'security' => 'registered', 'plugin_type' => DATA_PLUGIN ); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATACLOCK, $pluginParams ); diff --git a/plugins/data.code.php b/plugins/data.code.php index 5e62a77..27d744a 100644 --- a/plugins/data.code.php +++ b/plugins/data.code.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.13 $ + * @version $Revision: 1.14 $ * @package liberty * @subpackage plugins_data */ @@ -17,24 +17,27 @@ // | Reworked for Bitweaver (& Undoubtedly Screwed-Up) // | by: StarRider <starrrider@users.sourceforge.net> // +----------------------------------------------------------------------+ -// $Id: data.code.php,v 1.13 2006/03/11 16:42:38 starrrider Exp $ +// $Id: data.code.php,v 1.14 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ define( 'PLUGIN_GUID_DATACODE', 'datacode' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'CODE', - 'auto_activate' => TRUE, - 'requires_pair' => TRUE, - 'load_function' => 'data_code', - 'title' => 'Code', - 'help_page' => 'DataPluginCode', - 'description' => tra("Displays the Source Code Snippet between {Code} blocks."), - 'help_function' => 'data_code_help', - 'syntax' => " {CODE source= num= }". tra("Sorce Code Snippet") . "{/code}", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'CODE', + 'auto_activate' => TRUE, + 'requires_pair' => TRUE, + 'load_function' => 'data_code', + 'title' => 'Code', + 'help_page' => 'DataPluginCode', + 'description' => tra("Displays the Source Code Snippet between {Code} blocks."), + 'help_function' => 'data_code_help', + 'syntax' => " {CODE source= num= }". tra("Sorce Code Snippet") . "{/code}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.code.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATACODE, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATACODE ); diff --git a/plugins/data.comment.php b/plugins/data.comment.php index b3285ac..7c7ca0c 100644 --- a/plugins/data.comment.php +++ b/plugins/data.comment.php @@ -1,33 +1,42 @@ <?php -// $Id: data.comment.php,v 1.6 2005/12/18 22:30:26 squareing Exp $ /** - * assigned_modules - * - * @author StarRider <starrrider@sourceforge.net> - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ * @package liberty * @subpackage plugins_data - * @copyright Copyright (c) 2004, bitweaver.org - * All Rights Reserved. See copyright.txt for details and a complete list of authors. - * @license Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. */ +// +----------------------------------------------------------------------+ +// | Copyright (c) 2004, bitweaver.org +// +----------------------------------------------------------------------+ +// | All Rights Reserved. See copyright.txt for details and a complete list of authors. +// | Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details +// | +// | For comments, please use phpdocu.sourceforge.net documentation standards!!! +// | -> see http://phpdocu.sourceforge.net/ +// +----------------------------------------------------------------------+ +// | Author: StarRider <starrrider@sourceforge.net> +// +----------------------------------------------------------------------+ +// $Id: data.comment.php,v 1.7 2006/04/06 05:06:11 starrrider Exp $ + /****************** * Initialization * ******************/ global $gLibertySystem; define( 'PLUGIN_GUID_COMMENT', 'comment' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'COMMENT', - 'auto_activate' => TRUE, - 'requires_pair' => TRUE, - 'load_function' => 'data_comment', - 'title' => 'Comment', - 'help_page' => 'DataPluginComment', - 'description' => tra("This plugin allows Comments (Text that will not be displayed) to be added to a page."), - 'help_function' => 'data__comment_help', - 'syntax' => "{COMMENT}Data Not Displayed{/COMMENT}", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'COMMENT', + 'auto_activate' => TRUE, + 'requires_pair' => TRUE, + 'load_function' => 'data_comment', + 'title' => 'Comment', + 'help_page' => 'DataPluginComment', + 'description' => tra("This plugin allows Comments (Text that will not be displayed) to be added to a page."), + 'help_function' => 'data__comment_help', + 'syntax' => "{COMMENT}Data Not Displayed{/COMMENT}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.comment.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_COMMENT, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_COMMENT ); /***************** diff --git a/plugins/data.copyright.php b/plugins/data.copyright.php index e09f1a7..5a02c4a 100644 --- a/plugins/data.copyright.php +++ b/plugins/data.copyright.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ * @package liberty * @subpackage plugins_data */ @@ -14,10 +14,10 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Ricardo Gladwell <axonrg@users.sourceforge.net> -// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) +// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) // | by: StarRider <starrrider@users.sourceforge.net> // +----------------------------------------------------------------------+ -// $Id: data.copyright.php,v 1.5 2006/02/06 22:56:47 squareing Exp $ +// $Id: data.copyright.php,v 1.6 2006/04/06 05:06:11 starrrider Exp $ /** * definitions @@ -27,17 +27,20 @@ if( ( $gBitSystem->isPackageActive( 'wiki' ) ) && ( $gBitSystem->isFeatureActive define( 'PLUGIN_GUID_DATACOPYRIGHT', 'datacopyright' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'COPYRIGHT', - 'auto_activate' => TRUE, - 'requires_pair' => FALSE, - 'load_function' => 'data_copyright', - 'title' => 'CopyRight', - 'help_page' => 'DataPluginCopyRight', - 'description' => tra("This plugin is used to insert CopyRight notices."), - 'help_function' => 'data_copyright_help', - 'syntax' => "{COPYRIGHT title= year= authors= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'COPYRIGHT', + 'auto_activate' => TRUE, + 'requires_pair' => FALSE, + 'load_function' => 'data_copyright', + 'title' => 'CopyRight', + 'help_page' => 'DataPluginCopyRight', + 'description' => tra("This plugin is used to insert CopyRight notices."), + 'help_function' => 'data_copyright_help', + 'syntax' => "{COPYRIGHT title= year= authors= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.copyright.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATACOPYRIGHT, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATACOPYRIGHT ); @@ -77,7 +80,7 @@ function data_copyright($data, $params) { // Pre-Clyde Changes // Changed this to use Parameters instead // Added testing to maintain Pre-Clyde compatability // The next 2 lines allow access to the $pluginParams given above and may be removed when no longer needed - global $gLibertySystem; + global $gLibertySystem; $pluginParams = $gLibertySystem->mPlugins[PLUGIN_GUID_DATACOPYRIGHT]; extract ($params, EXTR_SKIP); // This maintains Pre-Clyde Parameters diff --git a/plugins/data.countdown.php b/plugins/data.countdown.php index c17d172..e2fe9ac 100644 --- a/plugins/data.countdown.php +++ b/plugins/data.countdown.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ * @package liberty * @subpackage plugins_data */ @@ -14,27 +14,30 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Stephan Borg <wolff_borg@users.sourceforge.net> -// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) +// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) // | by: StarRider <starrrider@users.sourceforge.net> // +----------------------------------------------------------------------+ -// $Id: data.countdown.php,v 1.5 2005/11/22 07:27:18 squareing Exp $ +// $Id: data.countdown.php,v 1.6 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ define( 'PLUGIN_GUID_DATACOUNTDOWN', 'datacountdown' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'COUNTDOWN', - 'auto_activate' => TRUE, - 'requires_pair' => TRUE, - 'load_function' => 'data_countdown', - 'title' => 'CountDown', - 'help_page' => 'DataPluginCountDown', - 'description' => tra("Displays a Count-Down until a date:time is reached - then - negative numbers indicate how long it has been since that date. The Count-Down is displayed in the format of (X days, X hours, X minutes and X seconds)."), - 'help_function' => 'data_countdown_help', - 'syntax' => "{COUNTDOWN enddate= localtime= }" . tra("Text") . "{countdown}", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'COUNTDOWN', + 'auto_activate' => TRUE, + 'requires_pair' => TRUE, + 'load_function' => 'data_countdown', + 'title' => 'CountDown', + 'help_page' => 'DataPluginCountDown', + 'description' => tra("Displays a Count-Down until a date:time is reached - then - negative numbers indicate how long it has been since that date. The Count-Down is displayed in the format of (X days, X hours, X minutes and X seconds)."), + 'help_function' => 'data_countdown_help', + 'syntax' => "{COUNTDOWN enddate= localtime= }" . tra("Text") . "{countdown}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.countdown.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATACOUNTDOWN, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATACOUNTDOWN ); @@ -66,7 +69,7 @@ function data_countdown_help() { // Load Function function data_countdown($data, $params) { // The next 2 lines allow access to the $pluginParams given above - global $gLibertySystem; + global $gLibertySystem; $pluginParams = $gLibertySystem->mPlugins[PLUGIN_GUID_DATACOUNTDOWN]; extract ($params, EXTR_SKIP); if (!isset($enddate) ) { // The Manditory Parameter is missing diff --git a/plugins/data.div.php b/plugins/data.div.php index 0315892..672a49d 100644 --- a/plugins/data.div.php +++ b/plugins/data.div.php @@ -1,21 +1,28 @@ <?php -// $id: data.example.php,v 1.4.2.9 2005/07/14 09:03:36 starrider Exp $ /** - * assigned_modules - * - * @author xing - * @version $Revision: 1.4 $ - * @package liberty + * @version $Revision: 1.5 $ + * @package liberty * @subpackage plugins_data - * @copyright Copyright (c) 2004, bitweaver.org */ +// +----------------------------------------------------------------------+ +// | Copyright (c) 2004, bitweaver.org +// +----------------------------------------------------------------------+ +// | All Rights Reserved. See copyright.txt for details and a complete list of authors. +// | Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details +// | +// | For comments, please use phpdocu.sourceforge.net documentation standards!!! +// | -> see http://phpdocu.sourceforge.net/ +// +----------------------------------------------------------------------+ +// | Author: xing +// +----------------------------------------------------------------------+ +// $Id: data.div.php,v 1.5 2006/04/06 05:06:11 starrrider Exp $ /** - * Setup Code + * definitions */ define( 'PLUGIN_GUID_DATADIV', 'datadiv' ); global $gLibertySystem; -$pluginParams = array ( +$pluginParams = array ( 'tag' => 'DIV', 'auto_activate' => TRUE, 'requires_pair' => TRUE, @@ -25,6 +32,8 @@ $pluginParams = array ( 'description' => tra( "This plugin allows you to easily create a div with a number of optional CSS parameters." ), 'help_function' => 'data_div_help', 'syntax' => "{div border='3px solid blue'}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.div.php', + 'security' => 'registered', 'plugin_type' => DATA_PLUGIN ); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATADIV, $pluginParams ); diff --git a/plugins/data.dropdown.php b/plugins/data.dropdown.php index 5986450..e5fda67 100644 --- a/plugins/data.dropdown.php +++ b/plugins/data.dropdown.php @@ -1,34 +1,41 @@ <?php -// $id: /** - * assigned_modules - * - * @author StarRider <starrrider@sourceforge.net> - * @version $Revision: 1.8 $ + * @version $Revision: 1.9 $ * @package liberty * @subpackage plugins_data - * - * @copyright Copyright (c) 2004, bitweaver.org - * All Rights Reserved. See copyright.txt for details and a complete list of authors. - * @license Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. */ +// +----------------------------------------------------------------------+ +// | Copyright (c) 2004, bitweaver.org +// +----------------------------------------------------------------------+ +// | All Rights Reserved. See copyright.txt for details and a complete list of authors. +// | Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details +// | +// | For comments, please use phpdocu.sourceforge.net documentation standards!!! +// | -> see http://phpdocu.sourceforge.net/ +// +----------------------------------------------------------------------+ +// | Author: StarRider starrrider@sourceforge.net +// +----------------------------------------------------------------------+ +// $id: data.dropdown.php,v 1.8 2005/07/14 09:03:36 starrider Exp $ /** * Initialization */ global $gLibertySystem; define( 'PLUGIN_GUID_DROPDOWN', 'dropdown' ); -$pluginParams = array ( 'tag' => 'DD', - 'auto_activate' => TRUE, - 'requires_pair' => TRUE, - 'load_function' => 'data_dropdown', - 'title' => 'DropDown (DD)', - 'help_page' => 'DataPluginDropDown', - 'description' => tra("This plugin creates a expandable box of text.. All text should be entered between the ") . "{DD} " . tra("blocks."), - 'help_function' => 'data_dropdown_help', - 'syntax' => "{DD title= width= }" . tra("Text in the Drop-Down box.") . "{DD}", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'DD', + 'auto_activate' => TRUE, + 'requires_pair' => TRUE, + 'load_function' => 'data_dropdown', + 'title' => 'DropDown (DD)', + 'help_page' => 'DataPluginDropDown', + 'description' => tra("This plugin creates a expandable box of text.. All text should be entered between the ") . "{DD} " . tra("blocks."), + 'help_function' => 'data_dropdown_help', + 'syntax' => "{DD title= width= }" . tra("Text in the Drop-Down box.") . "{DD}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.dropdown.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DROPDOWN, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DROPDOWN ); diff --git a/plugins/data.example.php b/plugins/data.example.php index 3b5c54a..3a4140a 100644 --- a/plugins/data.example.php +++ b/plugins/data.example.php @@ -1,16 +1,22 @@ <?php -// $id: data.example.php,v 1.4.2.9 2005/07/14 09:03:36 starrider Exp $ /** - * assigned_modules - * - * @author StarRider starrrider@sourceforge.net - * @version $Revision: 1.9 $ + * @version $Revision: 1.10 $ * @package liberty * @subpackage plugins_data - * @copyright Copyright (c) 2004, bitweaver.org - * All Rights Reserved. See copyright.txt for details and a complete list of authors. - * @license Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. */ +// +----------------------------------------------------------------------+ +// | Copyright (c) 2004, bitweaver.org +// +----------------------------------------------------------------------+ +// | All Rights Reserved. See copyright.txt for details and a complete list of authors. +// | Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details +// | +// | For comments, please use phpdocu.sourceforge.net documentation standards!!! +// | -> see http://phpdocu.sourceforge.net/ +// +----------------------------------------------------------------------+ +// | Author: StarRider starrrider@sourceforge.net +// +----------------------------------------------------------------------+ +// $id: data.example.php,v 1.4.2.9 2005/07/14 09:03:36 starrider Exp $ + /****************** * Initialization * ******************/ @@ -25,6 +31,8 @@ $pluginParams = array ( 'tag' => 'EXAM', 'description' => tra("This Plugin is an Example that does nothing. It functions as a template for the creation of new plugins."), 'help_function' => 'data_example_help', 'syntax' => "{EXAM x1= x2= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.example.php', + 'security' => 'registered', 'plugin_type' => DATA_PLUGIN ); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAEXAMPLE, $pluginParams ); diff --git a/plugins/data.freemind.php b/plugins/data.freemind.php index f4ba52e..0695dc6 100644 --- a/plugins/data.freemind.php +++ b/plugins/data.freemind.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ * @package liberty * @subpackage plugins_data */ @@ -15,6 +15,7 @@ // +----------------------------------------------------------------------+ // | Author: Southpaw <southpawz@users.sourceforge.net> // +----------------------------------------------------------------------+ +// $Id: data.freemind.php,v 1.7 2006/04/06 05:06:11 starrrider Exp $ /** * definitions @@ -23,17 +24,20 @@ global $gLibertySystem; define( 'PLUGIN_GUID_FREEMIND', 'datafreemind' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'MM', - 'auto_activate' => TRUE, - 'requires_pair' => FALSE, - 'load_function' => 'data_freemind', - 'title' => 'FreeMind (Mind Map)', - 'help_page' => 'DataPluginFreeMind', - 'description' => tra("Displays a Freemind mindmap"), - 'help_function' => 'data_freemind_help', - 'syntax' => "{MM src= height= width= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'MM', + 'auto_activate' => TRUE, + 'requires_pair' => FALSE, + 'load_function' => 'data_freemind', + 'title' => 'FreeMind (Mind Map)', + 'help_page' => 'DataPluginFreeMind', + 'description' => tra("Displays a Freemind mindmap"), + 'help_function' => 'data_freemind_help', + 'syntax' => "{MM src= height= width= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.freemind.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_FREEMIND, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_FREEMIND ); @@ -67,14 +71,14 @@ function data_freemind_help() { } // Load Function -function data_freemind( $data, $params ) { +function data_freemind( $data, $params ) { $repl = ''; if( !empty( $params['src'] ) ) { $height = !empty( $params['height'] ) ? $params['height'] : '600'; $width = !empty( $params['width'] ) ? $params['width'] : '100%'; $drvr = '../drivers/freemind.jar'; if (!file_exists($drvr)) { - $repl = tra("Error - the file") . '<strong> freemind.jar </strong>' . tra("does not exist in the site's <strong>drivers</strong> directory."); + $repl = tra("Error - the file") . '<strong> freemind.jar </strong>' . tra("does not exist in the site's <strong>drivers</strong> directory."); } else { $repl = '<script language="JavaScript">'. @@ -92,7 +96,7 @@ function data_freemind( $data, $params ) { '</applet>'. '<br />'. '<span class="">Download <a href="' . $params["src"] . '">this mind map</a> and use this application to edit it: <a href="http://freemind.sourceforge.net/">Freemind </a> </span>'; - } + } } return $repl; } diff --git a/plugins/data.gauge.php b/plugins/data.gauge.php index cdaf1e4..a81cb5c 100644 --- a/plugins/data.gauge.php +++ b/plugins/data.gauge.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.8 $ + * @version $Revision: 1.9 $ * @package liberty * @subpackage plugins_data */ @@ -14,27 +14,30 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Luis Argerich <lrargerich@users.sourceforge.net> -// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) +// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) // | by: StarRider <starrrider@users.sourceforge.net> // +----------------------------------------------------------------------+ -// $Id: data.gauge.php,v 1.8 2005/11/22 07:27:18 squareing Exp $ +// $Id: data.gauge.php,v 1.9 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ define( 'PLUGIN_GUID_DATAGAUGE', 'datagauge' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'GAUGE', - 'auto_activate' => TRUE, - 'requires_pair' => TRUE, - 'load_function' => 'data_gauge', - 'title' => 'Gauge', - 'help_page' => 'DataPluginGauge', - 'description' => tra("This plugin displays a graphical GAUGE."), - 'help_function' => 'data_gauge_help', - 'syntax' => "{GAUGE color= bgcolor= max= value= size= perc= height= }" . tra("Description") . "{GAUGE}", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'GAUGE', + 'auto_activate' => TRUE, + 'requires_pair' => TRUE, + 'load_function' => 'data_gauge', + 'title' => 'Gauge', + 'help_page' => 'DataPluginGauge', + 'description' => tra("This plugin displays a graphical GAUGE."), + 'help_function' => 'data_gauge_help', + 'syntax' => "{GAUGE color= bgcolor= max= value= size= perc= height= }" . tra("Description") . "{GAUGE}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.guage.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAGAUGE, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAGAUGE ); @@ -89,7 +92,7 @@ function data_gauge_help() { .'</tr>' .'</table>' . tra("Example: ") . "{GAUGE color='red' bgcolor='blue' value='25' perc='True' }A Simple Gauge{GAUGE}" . '<br />' - . tra("<strong>Note:</strong> Browser Safe Colornames are available on the ") + . tra("<strong>Note:</strong> Browser Safe Colornames are available on the ") . '<a href="http://www.bitweaver.org/wiki/index.php?page=Web-Safe+HTML+Colors" title="Launch BitWeaver.Org in New Window" onkeypress="popUpWin(this.href,\'standard\',800,800);" onclick="popUpWin(this.href,\'standard\',800,800);return false;">' . tra( "BitWeaver Web Site" ) . '</a>' . tra(" Another useful site for obtaining HTML colors is ") . '<a href="http://www.pagetutor.com/pagetutor/makapage/picker" title="Launch PageTutor.com in New Window" onkeypress="popUpWin(this.href,\'standard\',800,800);" onclick="popUpWin(this.href,\'standard\',800,800);return false;">' . tra( "The Color Picker II" ) . '</a>'; diff --git a/plugins/data.geshidata.php b/plugins/data.geshidata.php index 49e44ee..b019cf8 100644 --- a/plugins/data.geshidata.php +++ b/plugins/data.geshidata.php @@ -1,10 +1,10 @@ <?php -// $Id: data.geshidata.php,v 1.1 2006/03/11 20:35:17 starrrider Exp $ +// $Id: data.geshidata.php,v 1.2 2006/04/06 05:06:11 starrrider Exp $ /** * assigned_modules * * @author StarRider <starrrider@sourceforge.net> - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ * @package liberty * @subpackage plugins_data * @copyright Copyright (c) 2004, bitweaver.org @@ -17,17 +17,20 @@ global $gLibertySystem; define( 'PLUGIN_GUID_DATAGESHIDATA','datageshidata' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'GESHIDATA', - 'auto_activate' => TRUE, - 'requires_pair' => FALSE, - 'load_function' => 'data_GeshiData', - 'title' => 'GeshiData', - 'help_page' => 'DataPluginGeshiData', - 'description' => tra("This plugin is a documentation tool for the bitweaver site. It will display some of information defined in the GeSHi (Generic Syntax Highlighter) package."), - 'help_function' => 'data_help_GeshiData', - 'syntax' => "{GESHIDATA doall= lang= info= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'GESHIDATA', + 'auto_activate' => TRUE, + 'requires_pair' => FALSE, + 'load_function' => 'data_GeshiData', + 'title' => 'GeshiData', + 'help_page' => 'DataPluginGeshiData', + 'description' => tra("This plugin is a documentation tool for the bitweaver site. It will display some of information defined in the GeSHi (Generic Syntax Highlighter) package."), + 'help_function' => 'data_help_GeshiData', + 'syntax' => "{GESHIDATA doall= lang= info= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.geshidata.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAGESHIDATA, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAGESHIDATA ); /***************** diff --git a/plugins/data.img.php b/plugins/data.img.php index e017be6..4335ee1 100644 --- a/plugins/data.img.php +++ b/plugins/data.img.php @@ -1,5 +1,5 @@ <?php -// $Header: /cvsroot/bitweaver/_bit_liberty/plugins/data.img.php,v 1.2 2006/02/19 21:01:38 bitweaver Exp $ +// $Header: /cvsroot/bitweaver/_bit_liberty/plugins/data.img.php,v 1.3 2006/04/06 05:06:11 starrrider Exp $ // Initialization define( 'PLUGIN_GUID_DATAIMG', 'dataimg' ); global $gLibertySystem; @@ -13,6 +13,8 @@ $pluginParams = array ( 'description' => tra( "Allows you to insert an image into your page with little effort and a multitude of styling options." ), 'help_function' => 'data_img_help', 'syntax' => "{img src=http://www.google.at/logos/olympics06_ski_jump.gif}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.img.php', + 'security' => 'registered', 'plugin_type' => DATA_PLUGIN ); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAIMG, $pluginParams ); diff --git a/plugins/data.include.php b/plugins/data.include.php index da40b46..6c26ba3 100644 --- a/plugins/data.include.php +++ b/plugins/data.include.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.8 $ + * @version $Revision: 1.9 $ * @package liberty * @subpackage plugins_data */ @@ -14,27 +14,30 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Marc Laporte <marclaporte@users.sourceforge.net> -// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) +// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) // | by: StarRider <starrrider@users.sourceforge.net> // +----------------------------------------------------------------------+ -// $Id: data.include.php,v 1.8 2006/02/16 13:48:11 squareing Exp $ +// $Id: data.include.php,v 1.9 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ define( 'PLUGIN_GUID_DATAINCLUDE', 'datainclude' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'INCLUDE', - 'auto_activate' => TRUE, - 'requires_pair' => FALSE, - 'load_function' => 'data_include', - 'title' => 'Include', - 'help_page' => 'DataPluginInclude', - 'description' => tra("This plugin is used to include the contents of one Wiki page in another Wiki page."), - 'help_function' => 'data_include_help', - 'syntax' => "{INCLUDE content_id= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'INCLUDE', + 'auto_activate' => TRUE, + 'requires_pair' => FALSE, + 'load_function' => 'data_include', + 'title' => 'Include', + 'help_page' => 'DataPluginInclude', + 'description' => tra("This plugin is used to include the contents of one Wiki page in another Wiki page."), + 'help_function' => 'data_include_help', + 'syntax' => "{INCLUDE content_id= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.include.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAINCLUDE, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAINCLUDE ); diff --git a/plugins/data.lang.php b/plugins/data.lang.php index d85af5e..f0ce124 100644 --- a/plugins/data.lang.php +++ b/plugins/data.lang.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ * @package liberty * @subpackage plugins_data */ @@ -14,29 +14,32 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Sylvie Greverend <sylvieg@users.sourceforge.net> -// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) +// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) // | by: StarRider <starrrider@users.sourceforge.net> // | Reworked from: wikiplugin_lang.php - see deprecated code below // +----------------------------------------------------------------------+ -// $Id: data.lang.php,v 1.4 2005/11/22 07:27:18 squareing Exp $ +// $Id: data.lang.php,v 1.5 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ define( 'PLUGIN_GUID_DATALANG', 'datalang' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'LANG', - 'auto_activate' => FALSE, - 'requires_pair' => TRUE, - 'load_function' => 'data_lang', - 'title' => 'Lang<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational -// 'title' => 'Lang', // and Remove the comment from the start of this line - 'help_page' => 'DataPluginLang', - 'description' => tra("This plugin will attempt to translate the text between the ") . "{LANG}" . tra(" blocks to the current language. If the translation fails - nothing is displayed."), - 'help_function' => 'data__lang_help', - 'syntax' => "{LANG lang= }" . tra("Text to be translated") . "{LANG}", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'LANG', + 'auto_activate' => FALSE, + 'requires_pair' => TRUE, + 'load_function' => 'data_lang', + 'title' => 'Lang<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational +// 'title' => 'Lang', // and Remove the comment from the start of this line + 'help_page' => 'DataPluginLang', + 'description' => tra("This plugin will attempt to translate the text between the ") . "{LANG}" . tra(" blocks to the current language. If the translation fails - nothing is displayed."), + 'help_function' => 'data__lang_help', + 'syntax' => "{LANG lang= }" . tra("Text to be translated") . "{LANG}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.lang.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATALANG, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATALANG ); diff --git a/plugins/data.ledgertable.php b/plugins/data.ledgertable.php index ee68af4..09116a5 100644 --- a/plugins/data.ledgertable.php +++ b/plugins/data.ledgertable.php @@ -1,10 +1,10 @@ <?php -// $Id: data.ledgertable.php,v 1.2 2005/11/22 07:27:18 squareing Exp $ +// $Id: data.ledgertable.php,v 1.3 2006/04/06 05:06:11 starrrider Exp $ /** * assigned_modules * * @author KainX <mej@kainx.org> - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ * @package liberty * @subpackage plugins_data * @copyright Copyright (c) 2004, bitweaver.org @@ -25,6 +25,8 @@ $pluginParams = array ( 'tag' => 'LEDGERTABLE', 'description' => tra("This Plugin creates a ledger-like table with even/odd row colors, optional top- or left-placed headers, and support for row/column spans."), 'help_function' => 'data_ledgertable_help', 'syntax' => "{LEDGERTABLE loc= head= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.ledgertable.php', + 'security' => 'registered', 'plugin_type' => DATA_PLUGIN ); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATALEDGERTABLE, $pluginParams ); diff --git a/plugins/data.maketoc.php b/plugins/data.maketoc.php index 61390e4..4c17127 100644 --- a/plugins/data.maketoc.php +++ b/plugins/data.maketoc.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.7 $ + * @version $Revision: 1.8 $ * @package liberty * @subpackage plugins_data */ @@ -15,7 +15,7 @@ // +----------------------------------------------------------------------+ // | Author: xing <xing@synapse.plus.com> // +----------------------------------------------------------------------+ -// $Id: data.maketoc.php,v 1.7 2006/01/20 11:08:50 squareing Exp $ +// $Id: data.maketoc.php,v 1.8 2006/04/06 05:06:11 starrrider Exp $ /** * definitions @@ -23,18 +23,20 @@ define( 'PLUGIN_GUID_DATAMAKETOC', 'datamaketoc' ); global $gLibertySystem; global $gContent; -$pluginParams = array ( 'tag' => 'MAKETOC', - 'auto_activate' => TRUE, - 'requires_pair' => FALSE, - 'load_function' => '', - 'title' => 'MakeTOC', - 'help_page' => 'DataPluginMakeTOC', - 'description' => tra("Will create a table of contents of the WikiPage based on the headings below."), - 'help_function' => 'data_maketoc_help', - - 'syntax' => "{MAKETOC}", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'MAKETOC', + 'auto_activate' => TRUE, + 'requires_pair' => FALSE, + 'load_function' => '', + 'title' => 'MakeTOC', + 'help_page' => 'DataPluginMakeTOC', + 'description' => tra("Will create a table of contents of the WikiPage based on the headings below."), + 'help_function' => 'data_maketoc_help', + 'syntax' => "{MAKETOC}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.maketoc.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAMAKETOC, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAMAKETOC ); diff --git a/plugins/data.mapquest.php b/plugins/data.mapquest.php index 418704c..a9c1042 100644 --- a/plugins/data.mapquest.php +++ b/plugins/data.mapquest.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ * @package liberty * @subpackage plugins_data */ @@ -15,24 +15,27 @@ // +----------------------------------------------------------------------+ // | Author: StarRider <starrrider@users.sourceforge.net> // +----------------------------------------------------------------------+ -// $Id: data.mapquest.php,v 1.6 2005/11/22 07:27:18 squareing Exp $ +// $Id: data.mapquest.php,v 1.7 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ define( 'PLUGIN_GUID_DATAMAPQUEST', 'datamapquest' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'MAPQUEST', - 'auto_activate' => TRUE, - 'requires_pair' => FALSE, - 'load_function' => 'data_mapquest', - 'title' => 'MapQuest', - 'help_page' => 'DataPluginMapQuest', - 'description' => tra("Creates an Icon link to MapQuest and/or a link to a Specific Map based on an Address."), - 'help_function' => 'data_mapquest_help', - 'syntax' => "{MAPQUEST icon= myicon= text= address= city= state= zip= country= title= style= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'MAPQUEST', + 'auto_activate' => TRUE, + 'requires_pair' => FALSE, + 'load_function' => 'data_mapquest', + 'title' => 'MapQuest', + 'help_page' => 'DataPluginMapQuest', + 'description' => tra("Creates an Icon link to MapQuest and/or a link to a Specific Map based on an Address."), + 'help_function' => 'data_mapquest_help', + 'syntax' => "{MAPQUEST icon= myicon= text= address= city= state= zip= country= title= style= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.mapquest.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAMAPQUEST, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAMAPQUEST ); @@ -48,9 +51,9 @@ function data_mapquest_help() { .'<tr class="odd">' .'<td>icon</td>' .'<td>' . tra( "key-word") . '<br />' . tra("(optional)") . '</td>' - .'<td>' . tra( "Creates an Icon Link to MapQuests primary URL. The size of the Icon can be:") + .'<td>' . tra( "Creates an Icon Link to MapQuests primary URL. The size of the Icon can be:") .' <strong>sm</strong> ' . tra("= Small,") - .' <strong>med</strong> ' . tra("= Medium,") + .' <strong>med</strong> ' . tra("= Medium,") .' <strong>lg</strong> ' . tra("= Large or") .' <strong>none</strong> ' . tra("= The primary URL to MapQuest is <strong>NOT</strong> Displayed)") . tra("<br />The Default = ") . ' <strong>sm</strong> ' . tra("The Small MapQuest Icon is displayed.") @@ -125,7 +128,7 @@ function data_mapquest_help() { } // Load Function -function data_mapquest( $data, $params ) { +function data_mapquest( $data, $params ) { extract ($params, EXTR_SKIP); $ret = '<a href="http://www.mapquest.com" title="Launch Map Quest in a New Window" onkeypress="popUpWin(this.href,\'standard\',800,800);" onclick="popUpWin(this.href,\'standard\',800,800);return false;">'; @@ -155,9 +158,9 @@ function data_mapquest( $data, $params ) { $map = isset($style) ? $map . '&style=' . $style : $map; $map = isset($title) ? $map . '&title=' . implode('+', explode(' ',$title)) : $map; $map = '"' . $map . '&cid=lfmaplink"'; - + $map = '<a href="' . $map . '" title="Launch Map Quest in a New Window" onkeypress="popUpWin(this.href,\'standard\',800,800);" onclick="popUpWin(this.href,\'standard\',800,800);return false;">'; - + if (isset($myicon)) { // Test for the existance of MyIcon $ret = $map . '<img border="0" src="' . $myicon . '"></a>'; } else { diff --git a/plugins/data.module.php b/plugins/data.module.php index 01dcdc2..a05d69f 100644 --- a/plugins/data.module.php +++ b/plugins/data.module.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.10 $ + * @version $Revision: 1.11 $ * @package liberty * @subpackage plugins_data */ @@ -16,7 +16,7 @@ // | Author (TikiWiki): Mose <mose@users.sourceforge.net> // | Reworked for Bitweaver by: Christian Fowler <spiderr@users.sourceforge.net> // +----------------------------------------------------------------------+ -// $Id: data.module.php,v 1.10 2006/02/09 14:52:47 squareing Exp $ +// $Id: data.module.php,v 1.11 2006/04/06 05:06:11 starrrider Exp $ /** * definitions @@ -24,17 +24,20 @@ define( 'PLUGIN_GUID_DATAMODULE', 'datamodule' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'MODULE', - 'auto_activate' => FALSE, - 'requires_pair' => FALSE, - 'load_function' => 'data_datamodule', - 'title' => 'Module', - 'help_page' => 'DataPluginModule', - 'description' => tra("Display a module block in content"), - 'help_function' => 'datamodule_help', - 'syntax' => '{MODULE module= align="right"}', - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'MODULE', + 'auto_activate' => FALSE, + 'requires_pair' => FALSE, + 'load_function' => 'data_datamodule', + 'title' => 'Module', + 'help_page' => 'DataPluginModule', + 'description' => tra("Display a module block in content"), + 'help_function' => 'datamodule_help', + 'syntax' => '{MODULE module= align="right"}', + 'path' => LIBERTY_PKG_PATH.'plugins/data.module.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAMODULE, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAMODULE ); diff --git a/plugins/data.mqdirections.php b/plugins/data.mqdirections.php index ac0e393..60e067b 100644 --- a/plugins/data.mqdirections.php +++ b/plugins/data.mqdirections.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ * @package liberty * @subpackage plugins_data */ @@ -15,24 +15,27 @@ // +----------------------------------------------------------------------+ // | Author: StarRider <starrrider@users.sourceforge.net> // +----------------------------------------------------------------------+ -// $Id: data.mqdirections.php,v 1.6 2005/11/22 07:27:18 squareing Exp $ +// $Id: data.mqdirections.php,v 1.7 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ define( 'PLUGIN_GUID_DATAMQDIR', 'datamqdir' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'MQDIR', - 'auto_activate' => TRUE, - 'requires_pair' => FALSE, - 'load_function' => 'data_mqdir', - 'title' => 'MapQuest Directions', - 'help_page' => 'DataPluginMapQuestDirections', - 'description' => tra("Creates an Icon link to MapQuest with a form to get Directions from MapQuest based on a Destination Address."), - 'help_function' => 'data_mqdir_help', - 'syntax' => "{MQDIR icon= myicon= text= address= city= state= zip= country= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'MQDIR', + 'auto_activate' => TRUE, + 'requires_pair' => FALSE, + 'load_function' => 'data_mqdir', + 'title' => 'MapQuest Directions', + 'help_page' => 'DataPluginMapQuestDirections', + 'description' => tra("Creates an Icon link to MapQuest with a form to get Directions from MapQuest based on a Destination Address."), + 'help_function' => 'data_mqdir_help', + 'syntax' => "{MQDIR icon= myicon= text= address= city= state= zip= country= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.mqdirections.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAMQDIR , $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAMQDIR ); @@ -48,9 +51,9 @@ function data_mqdir_help() { .'<tr class="odd">' .'<td>icon</td>' .'<td>' . tra( "key-word") . '<br />' . tra("(optional)") . '</td>' - .'<td>' . tra( "Creates an Icon Link to MapQuests primary URL. The size of the Icon can be:") + .'<td>' . tra( "Creates an Icon Link to MapQuests primary URL. The size of the Icon can be:") .' <strong>sm</strong> ' . tra("= Small,") - .' <strong>med</strong> ' . tra("= Medium,") + .' <strong>med</strong> ' . tra("= Medium,") .' <strong>lg</strong> ' . tra("= Large or") . tra("<br />The Default = ") . ' <strong>sm</strong> ' . tra("The Small MapQuest Icon is displayed.") .'</td>' @@ -93,7 +96,7 @@ function data_mqdir_help() { } // Load Function -function data_mqdir( $data, $params ) { +function data_mqdir( $data, $params ) { extract ($params, EXTR_SKIP); $a2a = isset($address) ? $address : ' '; @@ -118,7 +121,7 @@ function data_mqdir( $data, $params ) { break; } - $ret = + $ret = '<form action="http://www.mapquest.com/directions/main.adp" method="get">' .'<div align="center">' .'<input type="hidden" name="go" value="1+">' diff --git a/plugins/data.object.php b/plugins/data.object.php index 2aeb166..586ee0d 100644 --- a/plugins/data.object.php +++ b/plugins/data.object.php @@ -1,4 +1,9 @@ <?php +/** + * @version $Revision: 1.3 $ + * @package liberty + * @subpackage plugins_data + */ // +----------------------------------------------------------------------+ // | Copyright (c) 2004, bitweaver.org // +----------------------------------------------------------------------+ @@ -9,11 +14,12 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Damian Parker <damosoft@users.sourceforge.net> -// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) +// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) // | by: StarRider <starrrider@users.sourceforge.net> // | Rewrote data function so plugin can cover more types of objects than just Flash // | by: Jasp (Jared Woodbridge) <jaspp@users.sourceforge.net> // +----------------------------------------------------------------------+ +// $Id: data.object.php,v 1.3 2006/04/06 05:06:11 starrrider Exp $ /** * definitions @@ -23,17 +29,20 @@ if( $gBitSystem->isPackageActive( 'wiki' ) ) { // Do not include this Plugin if define( 'PLUGIN_GUID_DATAOBJECT', 'dataobject' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'OBJECT', - 'auto_activate' => TRUE, - 'requires_pair' => FALSE, - 'load_function' => 'data_object', - 'title' => 'Object', - 'help_page' => 'DataPluginObject', - 'description' => tra("This plugin displays a Flash, Tcl or Java applet/object."), - 'help_function' => 'data_object_help', - 'syntax' => "{OBJECT type= src= width= height=}", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'OBJECT', + 'auto_activate' => TRUE, + 'requires_pair' => FALSE, + 'load_function' => 'data_object', + 'title' => 'Object', + 'help_page' => 'DataPluginObject', + 'description' => tra("This plugin displays a Flash, Tcl or Java applet/object."), + 'help_function' => 'data_object_help', + 'syntax' => "{OBJECT type= src= width= height=}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.object.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAOBJECT, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAOBJECT ); @@ -84,7 +93,7 @@ function data_object_help() { . tra("(Default = ") . '<strong>' . tra( 'none - content is allowed to flow around object' ) . '</strong>)</td>' .'</tr>' .'</table>' - + .'<table class="data help">' .'<caption>' . tra( "Flash specific parameters" ) . '</caption>' .'<tr>' @@ -98,7 +107,7 @@ function data_object_help() { .'<td>' . tra( "The quality at which to display a Flash applet. Possible values are unknown - except:") . ' <strong>high</strong> ' . tra("and probably") . ' <strong>low</strong>.</td>' .'</tr>' .'</table>' - + .'<table class="data help">' .'<caption>' . tra( "Java specific parameters" ) . '</caption>' .'<tr>' @@ -132,10 +141,10 @@ function data_object_help() { .'<td>' . tra( "Specifies the name of the Java archive." ) . '</td>' .'</tr>' .'</table>' - + . tra("Example: ") . "{OBJECT type=flash src=../liberty/icons/Mind-Reader.swf}<br />" . tra("Example: ") . "{OBJECT type=flash src=http://www.bitweaver.org/liberty/icons/Mind-Reader.swf width='100%' height='600' quality='high'}<br />" - . tra('Both of these examples display "The Flash Mind Reader" by Andy Naughton. The first example is on your site and is not very large. The second example is located on the bitweaver.org site and takes the width of the center column with an appropriate height.'); + . tra('Both of these examples display "The Flash Mind Reader" by Andy Naughton. The first example is on your site and is not very large. The second example is located on the bitweaver.org site and takes the width of the center column with an appropriate height.'); return $help; } @@ -146,9 +155,9 @@ function data_object ($data, $params) { if (!array_key_exists($parameter, $params)) return '<span class="warning">'.tra('When using <strong>{object}</strong>, a <strong>type</strong> and <strong>src</strong> parameter is required.').'</span>'; } - + $objectParams = array(); - + switch ($params["type"]) { case "tcl": // This loop scans for and sets param_ custom object parmeters. Note that in the future, it may be used for object types other than Tcl, so don't go making this part of the tcl clause below. @@ -164,7 +173,7 @@ function data_object ($data, $params) { $objectParams["pluginspage"] = "http://www.tcl.tk/software/plugin/"; $objectParams["src"] = $params["src"]; break; - + case "flash": // Macromedia Flash movie $classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"; @@ -172,7 +181,7 @@ function data_object ($data, $params) { if (array_key_exists("quality", $params)) $objectParams["quality"] = $params["quality"]; break; - + case "java": // Java applet $classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"; @@ -189,12 +198,12 @@ function data_object ($data, $params) { if (array_key_exists("archive", $params)) $objectParams["archive"] = $params["archive"]; break; - + default: // Unrecognized object type return '<span class="warning">'.tra('The <strong>type</strong> parameter of <strong>{object}</strong> must either be <strong>tcl</strong>, <strong>flash</strong> or <strong>java</strong>.').'</span>'; } - + // Build the <object> HTML code $result = '<object classid="'.$classid.'" style="'; $result .= (array_key_exists("float", $params)) ? ' float: ' .$params["float"]. ';' : ''; @@ -206,7 +215,7 @@ function data_object ($data, $params) { foreach (array_keys($objectParams) as $parameter) $result .= '<param name="'.$parameter.'" value="'.$objectParams[$parameter].'"/>'; $result .= '</object>'; - + // ...and we're done return $result; } diff --git a/plugins/data.pluginhelp.php b/plugins/data.pluginhelp.php index efa7189..8cfad6a 100644 --- a/plugins/data.pluginhelp.php +++ b/plugins/data.pluginhelp.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.7 $ + * @version $Revision: 1.8 $ * @package liberty * @subpackage plugins_data */ @@ -13,28 +13,30 @@ // | For comments, please use phpdocu.sourceforge.net documentation standards!!! // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ -// | Author: StarRider <starrrider@sbcglobal.net> +// | Author: StarRider <starrrider@users.sourceforge.net> // | Rewritten for bitweaver by Author -// | wikiplugin_pluginhelp.php - see deprecated code below // +----------------------------------------------------------------------+ -// $Id: data.pluginhelp.php,v 1.7 2006/03/11 16:42:38 starrrider Exp $ +// $Id: data.pluginhelp.php,v 1.8 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ define( 'PLUGIN_GUID_DATAPLUGINHELP', 'datapluginhelp' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'PLUGINHELP', - 'auto_activate' => FALSE, - 'requires_pair' => FALSE, - 'load_function' => 'data_pluginhelp', - 'title' => 'PluginHelp', // and Remove the comment from the start of this line - 'help_page' => 'DataPluginPluginHelp', - 'description' => tra("This plugin will display the plugin's Help."), - 'help_function' => 'data_pluginhelp_help', - 'syntax' => "{PLUGINHELP plugin= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'PLUGINHELP', + 'auto_activate' => FALSE, + 'requires_pair' => FALSE, + 'load_function' => 'data_pluginhelp', + 'title' => 'PluginHelp', // and Remove the comment from the start of this line + 'help_page' => 'DataPluginPluginHelp', + 'description' => tra("This plugin will display the plugin's Help."), + 'help_function' => 'data_pluginhelp_help', + 'syntax' => "{PLUGINHELP plugin= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.pluginhelp.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAPLUGINHELP, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAPLUGINHELP ); 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>'; } diff --git a/plugins/data.sf.php b/plugins/data.sf.php index e3b667a..29b8460 100644 --- a/plugins/data.sf.php +++ b/plugins/data.sf.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.7 $ + * @version $Revision: 1.8 $ * @package liberty * @subpackage plugins_data */ @@ -14,10 +14,10 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Mose <mose@sourceforge.net> -// | Reworked & Undoubtedly Screwed-Up for (Bitweaver) +// | Reworked & Undoubtedly Screwed-Up for (Bitweaver) // | by: StarRider <starrrider@sourceforge.net> // +----------------------------------------------------------------------+ -// $Id: data.sf.php,v 1.7 2005/11/22 07:27:18 squareing Exp $ +// $Id: data.sf.php,v 1.8 2006/04/06 05:06:11 starrrider Exp $ /** * definitions @@ -26,17 +26,20 @@ define( 'PLUGIN_GUID_DATASF', 'datasf' ); define('SF_CACHE',48); # in hours define('DEF_TAG','bugs'); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'SF', - 'auto_activate' => TRUE, - 'requires_pair' => FALSE, - 'load_function' => 'data_sf', - 'title' => 'SourceForge (SF)', - 'help_page' => 'DataPluginSourceForge', - 'description' => tra("Creates a link to SourceForge. Can link to the Bugs / RFEs / Patches / Support Index pages or individual items on those pages."), - 'help_function' => 'data_sf_help', - 'syntax' => "{SF tag= aid= groupid= atid= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'SF', + 'auto_activate' => TRUE, + 'requires_pair' => FALSE, + 'load_function' => 'data_sf', + 'title' => 'SourceForge (SF)', + 'help_page' => 'DataPluginSourceForge', + 'description' => tra("Creates a link to SourceForge. Can link to the Bugs / RFEs / Patches / Support Index pages or individual items on those pages."), + 'help_function' => 'data_sf_help', + 'syntax' => "{SF tag= aid= groupid= atid= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.sf.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATASF, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATASF ); @@ -52,8 +55,8 @@ function data_sf_help() { .'<tr class="odd">' .'<td>tag</td>' .'<td>' . tra( "string") . '<br />' . tra("(optional)") . '</td>' - .'<td>' . tra( "The") . ' <strong>tag</strong> ' . tra("is a short-cut that allows you to use this plugin without having to look up the SourceForge") - .' <strong>groupid or adit</strong> ' . tra("numbers for specific projects.") + .'<td>' . tra( "The") . ' <strong>tag</strong> ' . tra("is a short-cut that allows you to use this plugin without having to look up the SourceForge") + .' <strong>groupid or adit</strong> ' . tra("numbers for specific projects.") .'<br/>' . tra("Possible values for BitWeaver are:") . '<strong>bugs / rfe / patches / support</strong>' .'<br/>' . tra("Possible values for TikiWiki are:") . '<strong>twbugs / twrfe / twpatches / twsupport</strong>' .'<br/>' . tra("Possible values for JGraph are:") . '<strong>jgbugs / jgrfe / jgsupport</strong>' @@ -73,7 +76,7 @@ function data_sf_help() { .'<tr class="even">' .'<td>atid</td>' .'<td>' . tra( "string") . '<br />' . tra("(optional)") . '</td>' - .'<td>' . tra( "Only") . ' <strong>Tracker</strong> ' . tra("pages on SourceForge used a") . ' <strong>adit</strong> ' + .'<td>' . tra( "Only") . ' <strong>Tracker</strong> ' . tra("pages on SourceForge used a") . ' <strong>adit</strong> ' .tra("number. These pages are: Bugs / RFE / Patches / and ") . '<strong>3</strong></td>' .'</tr>' .'</table>' @@ -86,7 +89,7 @@ function data_sf_help() { // Load Function function data_sf($data, $params) { # customize that (or extract it in a db) - // [tag] = array( groupid , atid , ProjectName , TrackerName , IndexName ) + // [tag] = array( groupid , atid , ProjectName , TrackerName , IndexName ) // BitWeaver ****************************************************** $sftags['bugs'] = array('141358','749176','BitWeaver',' Bug #',' Bug Index'); $sftags['rfe'] = array('141358','749179','BitWeaver',' RFE #',' RFE Index'); @@ -103,10 +106,10 @@ function data_sf($data, $params) { $sftags['jgsupport'] = array('43118','435211','JGraph',' Support #',' Support Index'); // JGraph ****************************************************** $sftags['pbbrfe'] = array('7885','58021','PhpBB',' Bug #',' Bug Index'); - + extract ($params, EXTR_SKIP); $tag = (isset($tag)) ? strtolower($tag) : ' '; // Just to be sure no caps - if (isset($sftags["$tag"]) and (is_array($sftags["$tag"])) ) { // is $tag in the array + if (isset($sftags["$tag"]) and (is_array($sftags["$tag"])) ) { // is $tag in the array list($groupid,$atid,$proj,$tag1,$tag2) = $sftags["$tag"]; $tag = (isset($aid)) ? $proj . $tag1 . $aid : $proj . $tag2; } else { // So their must be doing it the hard way @@ -116,7 +119,7 @@ function data_sf($data, $params) { } else { // Both groupid & atid are present / but project is unknown - so $tag = (isset($aid)) ? 'Unknown Project / ID #' . $aid : 'Unknown Project Index Page'; } } - $url = (isset($aid)) ? 'http://sourceforge.net/tracker/index.php?func=detail&aid=' . $aid . '&' : 'http://sourceforge.net/tracker/?'; + $url = (isset($aid)) ? 'http://sourceforge.net/tracker/index.php?func=detail&aid=' . $aid . '&' : 'http://sourceforge.net/tracker/?'; $url = $url . 'group_id=' . $groupid . '&atid=' . $atid; $ret = '<a href="' . $url . '" title="Launch Source Forge.net in a New Window" onkeypress="popUpWin(this.href,\'full\',800,800);" onclick="popUpWin(this.href,\'full\',800,800);return false;">' . $tag . '</a>'; diff --git a/plugins/data.sort.php b/plugins/data.sort.php index 5fbab75..1e829d8 100644 --- a/plugins/data.sort.php +++ b/plugins/data.sort.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ * @package liberty * @subpackage plugins_data */ @@ -14,27 +14,30 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Oliver Hertel <ohertel@users.sourceforge.net> -// | Reworked & Undoubtedly Screwed-Up for (Bitweaver) +// | Reworked & Undoubtedly Screwed-Up for (Bitweaver) // | by: StarRider <starrrider@sourceforge.net> // +----------------------------------------------------------------------+ -// $Id: data.sort.php,v 1.5 2005/11/22 07:27:18 squareing Exp $ +// $Id: data.sort.php,v 1.6 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ define( 'PLUGIN_GUID_DATASORT', 'datasort' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'SORT', - 'auto_activate' => FALSE, - 'requires_pair' => TRUE, - 'load_function' => 'data_sort', - 'title' => 'Sort', - 'help_page' => 'DataPluginSort', - 'description' => tra("This plugin sorts operates on lines of text - not the text in the lines. Every line between the ") . "~np~{SORT}~/np~" . tra(" blocks - including the lines the blocks are on - is sorted."), - 'help_function' => 'data_sort_help', - 'syntax' => "{SORT sort= }" . tra("Lines to be sorted") . "{SORT}", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'SORT', + 'auto_activate' => FALSE, + 'requires_pair' => TRUE, + 'load_function' => 'data_sort', + 'title' => 'Sort', + 'help_page' => 'DataPluginSort', + 'description' => tra("This plugin sorts operates on lines of text - not the text in the lines. Every line between the ") . "~np~{SORT}~/np~" . tra(" blocks - including the lines the blocks are on - is sorted."), + 'help_function' => 'data_sort_help', + 'syntax' => "{SORT sort= }" . tra("Lines to be sorted") . "{SORT}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.sort.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATASORT, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATASORT ); diff --git a/plugins/data.split.php b/plugins/data.split.php index 66cb3d5..7036ec2 100644 --- a/plugins/data.split.php +++ b/plugins/data.split.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ * @package liberty * @subpackage plugins_data */ @@ -14,29 +14,32 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Luis Argerich <lrargerich@users.sourceforge.net> -// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) +// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) // | by: StarRider <starrrider@users.sourceforge.net> // | Reworked from: wikiplugin_split.php - see deprecated code below // +----------------------------------------------------------------------+ -// $Id: data.split.php,v 1.5 2005/11/22 07:27:18 squareing Exp $ +// $Id: data.split.php,v 1.6 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ define( 'PLUGIN_GUID_DATASPLIT', 'datasplit' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'SPLIT', - 'auto_activate' => FALSE, - 'requires_pair' => TRUE, - 'load_function' => 'data_split', - 'title' => 'Split<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational -// 'title' => 'Split', // and Remove the comment from the start of this line - 'help_page' => 'DataPluginSplit', - 'description' => tra("This plugin is used to split a page in two or more columns using __-~045~-__ as a seperator."), - 'help_function' => 'data_split_help', - 'syntax' => "{SPLIT joincols= fixedsize= }{SPLIT}", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'SPLIT', + 'auto_activate' => FALSE, + 'requires_pair' => TRUE, + 'load_function' => 'data_split', + 'title' => 'Split - This plugin is not yet functional.', // Remove this line when the plugin becomes operational +// 'title' => 'Split', // and Remove the comment from the start of this line + 'help_page' => 'DataPluginSplit', + 'description' => tra("This plugin is used to split a page in two or more columns using __-~045~-__ as a seperator."), + 'help_function' => 'data_split_help', + 'syntax' => "{SPLIT joincols= fixedsize= }{SPLIT}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.split.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATASPLIT, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATASPLIT ); diff --git a/plugins/data.spytext.php b/plugins/data.spytext.php index ec70bb8..5550c27 100644 --- a/plugins/data.spytext.php +++ b/plugins/data.spytext.php @@ -1,34 +1,41 @@ <?php -// $id: /** - * assigned_modules - * - * @author StarRider starrrider@sourceforge.net - * @version $Revision: 1.7 $ + * @version $Revision: 1.8 $ * @package liberty * @subpackage plugins_data - * @copyright Copyright (c) 2004, bitweaver.org - * All Rights Reserved. See copyright.txt for details and a complete list of authors. - * @license Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. */ +// +----------------------------------------------------------------------+ +// | Copyright (c) 2004, bitweaver.org +// +----------------------------------------------------------------------+ +// | All Rights Reserved. See copyright.txt for details and a complete list of authors. +// | Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details +// | +// | For comments, please use phpdocu.sourceforge.net documentation standards!!! +// | -> see http://phpdocu.sourceforge.net/ +// +----------------------------------------------------------------------+ +// | Author: StarRider starrrider@sourceforge.net +// +----------------------------------------------------------------------+ +// $Id: data.spytext.php,v 1.8 2006/04/06 05:06:11 starrrider Exp $ /****************** * Initialization * ******************/ - global $gLibertySystem; define( 'PLUGIN_GUID_SPYTEXT', 'spytext' ); -$pluginParams = array ( 'tag' => 'SPYTEXT', - 'auto_activate' => TRUE, - 'requires_pair' => TRUE, - 'load_function' => 'data_spytext', - 'title' => 'Spy Text (SPYTEXT)', - 'help_page' => 'DataPluginSpyText', - 'description' => tra("Allows text to be stored that is only visible to a List of Spys or to a Spy Agency (Group). To anyone else (except an Admin) the text is not be visible."), - 'help_function' => 'data_spytext_help', - 'syntax' => "{SPYTEXT spy= agency= sender= to= hidden= title= width= icon= alert= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'SPYTEXT', + 'auto_activate' => TRUE, + 'requires_pair' => TRUE, + 'load_function' => 'data_spytext', + 'title' => 'Spy Text (SPYTEXT)', + 'help_page' => 'DataPluginSpyText', + 'description' => tra("Allows text to be stored that is only visible to a List of Spys or to a Spy Agency (Group). To anyone else (except an Admin) the text is not be visible."), + 'help_function' => 'data_spytext_help', + 'syntax' => "{SPYTEXT spy= agency= sender= to= hidden= title= width= icon= alert= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.spytext.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_SPYTEXT, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_SPYTEXT ); diff --git a/plugins/data.titlesearch.php b/plugins/data.titlesearch.php index 35e8281..1f38521 100644 --- a/plugins/data.titlesearch.php +++ b/plugins/data.titlesearch.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ * @package liberty * @subpackage plugins_data */ @@ -14,29 +14,32 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Claudio Bustos <cdx@users.sourceforge.net> -// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) +// | Reworked for Bitweaver (& Undoubtedly Screwed-Up) // | by: StarRider <starrrider@users.sourceforge.net> // | Reworked from: wikiplugin_titlesearch.php - see deprecated code below // +----------------------------------------------------------------------+ -// $Id: data.titlesearch.php,v 1.5 2005/11/22 07:27:18 squareing Exp $ +// $Id: data.titlesearch.php,v 1.6 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ define( 'PLUGIN_GUID_DATATITLESEARCH', 'datatitlesearch' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'TITLESEARCH', - 'auto_activate' => FALSE, - 'requires_pair' => FALSE, - 'load_function' => 'data_titlesearch', - 'title' => 'TitleSearch<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational -// 'title' => 'TitleSearch', // and Remove the comment from the start of this line - 'help_page' => 'DataPluginTitleSearch', - 'description' => tra("This plugin search the titles of all pages in this wiki."), - 'help_function' => 'data_titlesearch_help', - 'syntax' => "{TITLESEARCH search= info= exclude= noheader= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'TITLESEARCH', + 'auto_activate' => FALSE, + 'requires_pair' => FALSE, + 'load_function' => 'data_titlesearch', + 'title' => 'TitleSearch<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational +// 'title' => 'TitleSearch', // and Remove the comment from the start of this line + 'help_page' => 'DataPluginTitleSearch', + 'description' => tra("This plugin search the titles of all pages in this wiki."), + 'help_function' => 'data_titlesearch_help', + 'syntax' => "{TITLESEARCH search= info= exclude= noheader= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.titlesearch.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATATITLESEARCH, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATATITLESEARCH ); diff --git a/plugins/data.toc.php b/plugins/data.toc.php index ecfc627..e1df1bf 100644 --- a/plugins/data.toc.php +++ b/plugins/data.toc.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ * @package liberty * @subpackage plugins_data */ @@ -15,7 +15,7 @@ // +----------------------------------------------------------------------+ // | Author: Christian Fowler <spiderr@users.sourceforge.net> // +----------------------------------------------------------------------+ -// $Id: data.toc.php,v 1.5 2006/01/14 19:54:56 squareing Exp $ +// $Id: data.toc.php,v 1.6 2006/04/06 05:06:11 starrrider Exp $ /** * definitions @@ -25,17 +25,20 @@ global $gLibertySystem; define( 'PLUGIN_GUID_TOC', 'datatoc' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'toc', - 'auto_activate' => TRUE, - 'requires_pair' => FALSE, - 'load_function' => 'data_toc', - 'title' => 'Table Of Contents (TOC)', - 'help_page' => 'DataPluginTOC', - 'description' => tra("Display a Table Of Contents for Structures"), - 'help_function' => 'data_toc_help', - 'syntax' => '{TOC sturcture_id= }', - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'toc', + 'auto_activate' => TRUE, + 'requires_pair' => FALSE, + 'load_function' => 'data_toc', + 'title' => 'Table Of Contents (TOC)', + 'help_page' => 'DataPluginTOC', + 'description' => tra("Display a Table Of Contents for Structures"), + 'help_function' => 'data_toc_help', + 'syntax' => '{TOC sturcture_id= }', + 'path' => LIBERTY_PKG_PATH.'plugins/data.toc.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_TOC, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_TOC ); @@ -77,7 +80,7 @@ function data_toc( $data, $params ) { } else { $get_structure = $struct->mStructureId; } - $tree = $struct->getSubTree( $get_structure, ( @$display == 'full_toc' ) ); + $tree = $struct->getSubTree( $get_structure, ( @$display == 'full_toc' ) ); $gBitSmarty->assign( "subtree", $tree ); $repl = $gBitSmarty->fetch( "bitpackage:liberty/display_toc_inc.tpl" ); if( empty( $repl ) ) { diff --git a/plugins/data.translated.php b/plugins/data.translated.php index b7533b1..be4d48d 100644 --- a/plugins/data.translated.php +++ b/plugins/data.translated.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ * @package liberty * @subpackage plugins_data */ @@ -14,29 +14,32 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Mose <mose@users.sourceforge.net> -// | Reworked & Undoubtedly Screwed-Up for (Bitweaver) +// | Reworked & Undoubtedly Screwed-Up for (Bitweaver) // | by: StarRider <starrrider@sourceforge.net> // | Reworked from: wikiplugin_translated.php - see deprecated code below // +----------------------------------------------------------------------+ -// $Id: data.translated.php,v 1.5 2005/11/22 07:27:18 squareing Exp $ +// $Id: data.translated.php,v 1.6 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ define( 'PLUGIN_GUID_DATATRANSLATED', 'datatranslated' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'TRANSLATED', - 'auto_activate' => FALSE, - 'requires_pair' => FALSE, - 'load_function' => 'data_translated', - 'title' => 'Translated<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational -// 'title' => 'Translated', // and Remove the comment from the start of this line - 'help_page' => 'DataPluginTranslated', - 'description' => tra("This plugin is used to create a link to a page that contains a translation. The link can be shown as an Icon for the country or as an abreviation for the language."), - 'help_function' => 'data_translated_help', - 'syntax' => "{TRANSLATED page= lang= flag= }", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'TRANSLATED', + 'auto_activate' => FALSE, + 'requires_pair' => FALSE, + 'load_function' => 'data_translated', + 'title' => 'Translated<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational +// 'title' => 'Translated', // and Remove the comment from the start of this line + 'help_page' => 'DataPluginTranslated', + 'description' => tra("This plugin is used to create a link to a page that contains a translation. The link can be shown as an Icon for the country or as an abreviation for the language."), + 'help_function' => 'data_translated_help', + 'syntax' => "{TRANSLATED page= lang= flag= }", + 'path' => LIBERTY_PKG_PATH.'plugins/data.translated.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATATRANSLATED, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATATRANSLATED ); diff --git a/plugins/data.usercount.php b/plugins/data.usercount.php index ba2d4fe..12027d2 100644 --- a/plugins/data.usercount.php +++ b/plugins/data.usercount.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ * @package liberty * @subpackage plugins_data */ @@ -14,29 +14,32 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Damian Parker <damosoft@users.sourceforge.net> -// | Reworked & Undoubtedly Screwed-Up for (Bitweaver) +// | Reworked & Undoubtedly Screwed-Up for (Bitweaver) // | by: StarRider <starrrider@sourceforge.net> // | Reworked from: wikiplugin_usercount.php - see deprecated code below // +----------------------------------------------------------------------+ -// $Id: data.usercount.php,v 1.5 2005/11/22 07:27:18 squareing Exp $ +// $Id: data.usercount.php,v 1.6 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ define( 'PLUGIN_GUID_DATAUSERCOUNT', 'datausercount' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'USERCOUNT', - 'auto_activate' => FALSE, - 'requires_pair' => TRUE, - 'load_function' => 'data_usercount', - 'title' => 'UserCount<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational -// 'title' => 'UserCount', // and Remove the comment from the start of this line - 'help_page' => 'DataPluginUserCount', - 'description' => tra("Will show the number of users. If a Group Name can be included to filter the Groups."), - 'help_function' => 'data_usercount_help', - 'syntax' => "{USERCOUNT}Group Name{USERCOUNT}", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'USERCOUNT', + 'auto_activate' => FALSE, + 'requires_pair' => TRUE, + 'load_function' => 'data_usercount', + 'title' => 'UserCount<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational +// 'title' => 'UserCount', // and Remove the comment from the start of this line + 'help_page' => 'DataPluginUserCount', + 'description' => tra("Will show the number of users. If a Group Name can be included to filter the Groups."), + 'help_function' => 'data_usercount_help', + 'syntax' => "{USERCOUNT}Group Name{USERCOUNT}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.usercount.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAUSERCOUNT, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAUSERCOUNT ); diff --git a/plugins/data.userlink.php b/plugins/data.userlink.php index 15eeb3c..703d87f 100755 --- a/plugins/data.userlink.php +++ b/plugins/data.userlink.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ * @package liberty * @subpackage plugins_data * @author bigwasp bigwasp@sourceforge.net @@ -15,28 +15,31 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Damian Parker <damosoft@users.sourceforge.net> -// | Reworked & Undoubtedly Screwed-Up for (Bitweaver) +// | Reworked & Undoubtedly Screwed-Up for (Bitweaver) // | by: StarRider <starrrider@sourceforge.net> // | Reworked from: wikiplugin_usercount.php - see deprecated code below // +----------------------------------------------------------------------+ -// $Id: data.userlink.php,v 1.4 2006/01/10 21:13:43 squareing Exp $ +// $Id: data.userlink.php,v 1.5 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ define( 'PLUGIN_GUID_DATAUSERLINK', 'datauserlink' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'USERLINK', - 'auto_activate' => FALSE, - 'requires_pair' => FALSE, - 'load_function' => 'data_userlink', - 'title' => 'UserLink shows a link to the UserPage for a given login or email', - 'help_page' => 'DataPluginUserLink', - 'description' => tra("Will show a link to the userpage"), - 'help_function' => 'data_userlink_help', - 'syntax' => "{USERLINK login='bigwasp'}", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'USERLINK', + 'auto_activate' => FALSE, + 'requires_pair' => FALSE, + 'load_function' => 'data_userlink', + 'title' => 'UserLink shows a link to the UserPage for a given login or email', + 'help_page' => 'DataPluginUserLink', + 'description' => tra("Will show a link to the userpage"), + 'help_function' => 'data_userlink_help', + 'syntax' => "{USERLINK login='bigwasp'}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.userlink.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAUSERLINK, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAUSERLINK ); @@ -50,23 +53,23 @@ function data_userlink_help() { .'<th>' . tra( "Comments") . '</th>' .'</tr>' .'<tr class="odd">' - .'<td>login</td>' + .'<td>login</td>' .'<td>' . tra( "string" ) . '<br />' . tra( "(optional)") . '</td>' .'<td>' . tra( "The login name to generate the link" ) . '</td>' .'</tr>' .'<tr class="even">' .'<td>email</td>' .'<td>' . tra( "string" ) . '<br />' . tra( "(optional)") . '</td>' - .'<td>' . tra( "The e-mail address to generate the link" ) . '</td>' + .'<td>' . tra( "The e-mail address to generate the link" ) . '</td>' .'</tr>' .'<tr class="odd">' .'<td>label</td>' .'<td>' . tra( "string" ) . '<br />' . tra( "(optional)") . '</td>' - .'<td>' . tra( "The label to show; default is user's name" ) . '</td>' + .'<td>' . tra( "The label to show; default is user's name" ) . '</td>' .'</tr>' .'</table>' .tra("Example: ") . "{USERLINK login='admin' label='Site Administrator'}"; - return $help; + return $help; } // Load Function @@ -83,7 +86,7 @@ function data_userlink($data, $params) { $myHash['email'] = $email; } else if ( isset( $user_id ) ) { $myHash['user_id'] = $user_id; - } + } $user = $gBitUser->userExists($myHash); diff --git a/plugins/data.userlist.php b/plugins/data.userlist.php index 691b133..34dbe4b 100644 --- a/plugins/data.userlist.php +++ b/plugins/data.userlist.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ * @package liberty * @subpackage plugins_data */ @@ -14,29 +14,32 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): sQuare -// | Reworked & Undoubtedly Screwed-Up for (Bitweaver) +// | Reworked & Undoubtedly Screwed-Up for (Bitweaver) // | by: StarRider <starrrider@sourceforge.net> // | Reworked from: wikiplugin_userlist.php - see deprecated code below // +----------------------------------------------------------------------+ -// $Id: data.userlist.php,v 1.6 2006/02/08 18:32:10 mej Exp $ +// $Id: data.userlist.php,v 1.7 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ define( 'PLUGIN_GUID_DATAUSERLIST', 'datauserlist' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'USERLIST', - 'auto_activate' => FALSE, - 'requires_pair' => TRUE, - 'load_function' => 'data_userlist', - 'title' => 'UserList<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational -// 'title' => 'UserList',, // and Remove the comment from the start of this line - 'help_page' => 'DataPluginUserList', - 'description' => tra("This plugin will displays an alphabetically sorted list of registered users. A Group Name can be included to filter Groups to be listed."), - 'help_function' => 'data_userlist_help', - 'syntax' => "{USERLIST num= userspage= alpha= total= email= }GroupName{USERLIST}", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'USERLIST', + 'auto_activate' => FALSE, + 'requires_pair' => TRUE, + 'load_function' => 'data_userlist', + 'title' => 'UserList<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational +// 'title' => 'UserList',, // and Remove the comment from the start of this line + 'help_page' => 'DataPluginUserList', + 'description' => tra("This plugin will displays an alphabetically sorted list of registered users. A Group Name can be included to filter Groups to be listed."), + 'help_function' => 'data_userlist_help', + 'syntax' => "{USERLIST num= userspage= alpha= total= email= }GroupName{USERLIST}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.userlist.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAUSERLIST, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAUSERLIST ); @@ -125,12 +128,12 @@ function wikiplugin_userlist($data, $params) { global $gBitUser, $gBitSystem; extract ($params, EXTR_SKIP); - $num = (isset($num)) ? True : False; // Default = False - $userspage = (!isset($userspage)) ? True : False; // Default = True - $alpha = (!isset($alpha)) ? True : False; // Default = True - $total = (!isset($total)) ? True : False; // Default = True - $email = (isset($email)) ? True : False; // Default = False - + $num = (isset($num)) ? True : False; // Default = False + $userspage = (!isset($userspage)) ? True : False; // Default = True + $alpha = (!isset($alpha)) ? True : False; // Default = True + $total = (!isset($total)) ? True : False; // Default = True + $email = (isset($email)) ? True : False; // Default = False + $colcount = 1; $ret = '<table class="normal">'; diff --git a/plugins/data.wikigraph.php b/plugins/data.wikigraph.php index 1cf5e42..18871de 100644 --- a/plugins/data.wikigraph.php +++ b/plugins/data.wikigraph.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.10 $ + * @version $Revision: 1.11 $ * @package liberty * @subpackage plugins_data */ @@ -14,28 +14,31 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Unknown -// | Reworked & Undoubtedly Screwed-Up for (Bitweaver) +// | Reworked & Undoubtedly Screwed-Up for (Bitweaver) // | by: wolff_borg <wolff_borg@yahoo.com.au> // | Reworked from: wikiplugin_wikigraph.php - see deprecated code below // +----------------------------------------------------------------------+ -// $Id: data.wikigraph.php,v 1.10 2006/03/20 15:58:35 squareing Exp $ +// $Id: data.wikigraph.php,v 1.11 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ global $gBitSystem, $gLibertySystem; if ($gBitSystem->isPackageActive( 'wiki' ) ) { // Do not include this Plugin if the Package is not active define( 'PLUGIN_GUID_DATAWIKIGRAPH', 'datawikigraph' ); -$pluginParams = array ( 'tag' => 'WIKIGRAPH', - 'auto_activate' => FALSE, - 'requires_pair' => TRUE, - 'load_function' => 'data_wikigraph', - 'title' => 'WikiGraph', - 'help_page' => 'DataPluginWikiGraph', - 'description' => tra("Inserts a graph for visual navigation. The graph shows the page and every page that can be reached from that page."), - 'help_function' => 'data_wikigraph_help', - 'syntax' => "{WIKIGRAPH level= ,title= ,nodesep= ,rankdir= ,bgcolor= ,size= ,fontsize= ,fontname= ,shap= ,nodestyle= ,nodecolor= ,nodefillcolor= ,nodewidth= ,nodeheight= ,edgecolor= ,edgestyle= }".tra("Wiki page name")."{WIKIGRAPH}", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'WIKIGRAPH', + 'auto_activate' => FALSE, + 'requires_pair' => TRUE, + 'load_function' => 'data_wikigraph', + 'title' => 'WikiGraph', + 'help_page' => 'DataPluginWikiGraph', + 'description' => tra("Inserts a graph for visual navigation. The graph shows the page and every page that can be reached from that page."), + 'help_function' => 'data_wikigraph_help', + 'syntax' => "{WIKIGRAPH level= ,title= ,nodesep= ,rankdir= ,bgcolor= ,size= ,fontsize= ,fontname= ,shap= ,nodestyle= ,nodecolor= ,nodefillcolor= ,nodewidth= ,nodeheight= ,edgecolor= ,edgestyle= }".tra("Wiki page name")."{WIKIGRAPH}", + 'path' => LIBERTY_PKG_PATH.'plugins/data.wikigraph.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAWIKIGRAPH, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAWIKIGRAPH ); diff --git a/plugins/data.wikilist.php b/plugins/data.wikilist.php index f1042b1..b518bfb 100644 --- a/plugins/data.wikilist.php +++ b/plugins/data.wikilist.php @@ -1,6 +1,6 @@ <?php /** - * @version $Revision: 1.6 $ + * @version $Revision: 1.7 $ * @package liberty * @subpackage plugins_data */ @@ -14,29 +14,32 @@ // | -> see http://phpdocu.sourceforge.net/ // +----------------------------------------------------------------------+ // | Author (TikiWiki): Unknown -// | Reworked & Undoubtedly Screwed-Up for (Bitweaver) +// | Reworked & Undoubtedly Screwed-Up for (Bitweaver) // | by: StarRider <starrrider@sourceforge.net> // | Reworked from: wikiplugin_wikilist.php - see deprecated code below // +----------------------------------------------------------------------+ -// $Id: data.wikilist.php,v 1.6 2006/02/06 22:56:47 squareing Exp $ +// $Id: data.wikilist.php,v 1.7 2006/04/06 05:06:11 starrrider Exp $ /** * definitions */ define( 'PLUGIN_GUID_DATAWIKILIST', 'datawikilist' ); global $gLibertySystem; -$pluginParams = array ( 'tag' => 'WIKILIST', - 'auto_activate' => FALSE, - 'requires_pair' => TRUE, - 'load_function' => 'data_wikilist', - 'title' => 'WikiList<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational -// 'title' => 'WikiList', // and Remove the comment from the start of this line - 'help_page' => 'DataPluginWikiList', - 'description' => tra("Displays an alphabetically sorted list of WikiPages"), - 'help_function' => 'data_wikilist_help', - 'syntax' => "{WIKILIST num= alpha= total= list= }Group Name{WIKILIST} ", - 'plugin_type' => DATA_PLUGIN - ); +$pluginParams = array ( + 'tag' => 'WIKILIST', + 'auto_activate' => FALSE, + 'requires_pair' => TRUE, + 'load_function' => 'data_wikilist', + 'title' => 'WikiList<strong> - This plugin is not yet functional.</strong>', // Remove this line when the plugin becomes operational +// 'title' => 'WikiList', // and Remove the comment from the start of this line + 'help_page' => 'DataPluginWikiList', + 'description' => tra("Displays an alphabetically sorted list of WikiPages"), + 'help_function' => 'data_wikilist_help', + 'syntax' => "{WIKILIST num= alpha= total= list= }Group Name{WIKILIST} ", + 'path' => LIBERTY_PKG_PATH.'plugins/data.wikilist.php', + 'security' => 'registered', + 'plugin_type' => DATA_PLUGIN +); $gLibertySystem->registerPlugin( PLUGIN_GUID_DATAWIKILIST, $pluginParams ); $gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAWIKILIST ); |
