gtroll,
Unfortunately this does not work for this particular situation, I will post my answer as to why from what I wrote at nukecops.com.
Inside the header.php, the $module_name must have already been declared by the module and bepassed on to the header.php when it is included, since the init.inc.php is not included till after the header.php, the $module_name variable is not passed to the header.php, it just overwrites itself from "" to $name after the header.php has already been parsed. If the init.inc.php was above the include for the header.php I could see this as working, but since it falls below the header.php it does not work properly. If you do however add the $module_name variable statement to the top of the main files (i.e index.php, addpic.php, etc) it works properly because it was declared before the header.php and passed onto it as a global.
Thank you very much for looking into this with us, I am trying to get this new version of GoogleTap going, it works on a per module basis, so when that module is loaded the header.php looks at it and says, OK coppermine, here are your conversion entries for GoogleTap, I am trying cut down on the resource time spent by having the header.php handle all of the conversions as in the older version of GoogleTap. I requested that irving talk to any of you to see if the $module_name variable could be included in the next beta/release candidate you all are releasing, or see if you all knew of a way to easily make it work. As of right now, it must be added to each main file before the header.php is included. Thanks for your support, look foward to talking to you.
-Bill (Audioslaved)