Location: PHPKode > projects > Enigma > Enigma2/Enigma2_Install/modules/ModuleSubs.php

LSP: Lunabyte Systems Portal
Open-Source Project Inspired by Zef Hemel (hide@address.com)
Software Version:                  LSP 2.0 "Enigma 2"
Software by:                         Lunabyte Systems (http://www.lunabyte.net)
Copyright 2002-2005 by:       Lunabyte Systems (http://www.lunabyte.net)
Support, News, Updates at:    http://www.lunabyte.net
This program is free software; you may redistribute it and/or modify it 
under the terms of the provided license as published by Lunabyte Systems.

This program is distributed in the hope that it is and will be useful,                  
but WITHOUT ANY WARRANTIES; without even any implied warranty of           

See the "LSP_license.txt" file for details of the LSP license.
The latest version can always be found at http://www.lunabyte.net.

if (!defined('ENIGMA'))
	die('<b>Access Violation</b><br />Direct Access to this location is not allowed.');

Use this file for any module related functions that may need to be loaded on every
page load.  If the function is not needed on every page load, then it's suggested
that the function be placed within the Mod_{name}.php file.

// the ShoutBox function will call the Shout Box module anywhere see the Shout Box text
// file for more information
function ShoutBox()
	global $moduledir, $context;
	// set a variable before include the Shout Box module file, or it will error out
	$context['ShoutInclude'] = (int) true;
	// include the file
	require_once($moduledir . '/Mod_ShoutBox.php');
	// call the main shout display function, the rest is done automatically


Return current item: Enigma