Location: PHPKode > projects > EmbryoCore > content/plugins/welcomemessage/welcomemessage.php
<?php
/*==============================================================================================
/**
 * @package                 EmbryoCore
 * @author                  Steve Dunstan (hide@address.com)
 * @copyright               2010-2011 EmbryoCore
 * @licence                 GNU General Public License v3: http://www.gnu.org/licenses/
 * @link                    http://embryocore.com
 * @since                   File available since Release 1.0
 * @version                 SVN: $Id: welcomemessage.php 3 2010-08-10 11:09:05Z stevedunstan $
/**
===============================================================================================*/

function welcomemessage()
{
	
	if(_constant('script') != 'post' || _constant('id')) {
		return false;
	}
	
	$options = _core('welcomemessage');
	
	switch(_constant('user:type')) {
		case 'guest':
			if($options->ga) {
				return $options->gm;
			}
		break;
		case 'member':
			if($options->ma) {
				return $options->mm;
			}
		break;
		case 'admin':
			if($options->aa) {
				return $options->am;
			}
		break;
	}
}

?>
Return current item: EmbryoCore