2
first try:
global $xoopsModule;
You will need to check if $xoopsModule is being called from inside a function or not.
If not check to see if $xoopsModule is being called before xoops_cp_header();
Which version of XOOPS are you using?
$xoopsModule is declared either at line:
xoops_cp_header();
or at:
require_once '../../../include/cp_header.php';
I don't remember which so you will have to test.
www.kaotik.biz