2
1. For XOOPS_URL to work, you must include mainfile.php from the XOOPS root directory [i.e. include ('../../mainfile.php');]
2. You can use the XoopsModule object
// Create instance of module handler
$hModule = xoops_gethandler('module');
// Retrieve module object
$module =& $hModule->getByDirname('module_name');
// Will put the name of the module in $module_name
$module_name = $module->getVar('name');