Source for file data.agentinfo.php
Documentation is available at data.agentinfo.php
* @subpackage plugins_data
// +----------------------------------------------------------------------+
// | Copyright (c) 2004, bitweaver.org
// +----------------------------------------------------------------------+
// | All Rights Reserved. See below for details and a complete list of authors.
// | Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
// | For comments, please use phpdocu.sourceforge.net documentation standards!!!
// | -> see http://phpdocu.sourceforge.net/
// +----------------------------------------------------------------------+
// | Author (TikiWiki): Damian Parker <damosoft@users.sourceforge.net>
// | Reworked for Bitweaver (& Undoubtedly Screwed-Up)
// | by: StarRider <starrrider@users.sourceforge.net>
// +----------------------------------------------------------------------+
define( 'PLUGIN_GUID_DATAAGENTINFO', 'dataagentinfo' );
'auto_activate' => FALSE,
'requires_pair' => FALSE,
'load_function' => 'data_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= }",
'<table class="data help">'
. '<th>' . tra( "Key" ) . '</th>'
. '<th>' . tra( "Type" ) . '</th>'
. '<th>' . tra( "Comments" ) . '</th>'
. '<td>' . tra( "string") . '<br />' . tra("(optional)") . '</td>'
. '<td>' . tra( "Show information about the Browser being used.") . '<br />'
. '<strong>ip</strong>: ' . tra( "To get the client\'s IP address (default)" ) . '<br />'
. '<strong>browser</strong>: ' . tra( "To get the clients Browser infromation." ) . '<br />'
. '<strong>server</strong>: ' . tra( "To get the site\'s server software" ) . '</td>'
. tra("Example: ") . "{AGENTINFO info='browser'}";
case 'SVRSW': // To maintain Pre-Clyde Parameters
$ret = $_SERVER["SERVER_SOFTWARE"];
$ret = $_SERVER["HTTP_USER_AGENT"];
$ret = $_SERVER["REMOTE_ADDR"];
|