<?

/*
 * demo plugin
 */

// Required functions
/* 
 * This function is  called prior to any output to the web browser and is intended
 * for the plugin to parse possible form data. This function is called only, if this
 * plugin is selected in the plugins tab
 */
function demoplugin_ParseInput( $plugin_id ) {

	$_SESSION['warning'] = "Warning set by demo plugin!";
	$_SESSION['error'] = "Error set by demo plugin!";

} // End of demoplugin_ParseInput


/*
 * This function is called after the header with the navigation bar have been sent to the
 * browser. It's now up to this function what to display.
 * This function is called only, if this plugin is selected in the plugins tab
 */
function demoplugin_Run( $plugin_id ) {

	print "<h3>Hello I'm the demo plugin with id $plugin_id</h3>\n";

} // End of demoplugin_Run


?>
