Topic: Additional Multipurpose pages...

I know that punbb is made up of multipurpose pages and what I plan on doing is add an additional multipurpose page. Whenever I try to include the common.php file I get this fatal error:

Fatal error: Cannot redeclare check_cookie() (previously declared in /var/www/html/include/functions.php:29) in /var/www/html/include/functions.php on line 29

Is there anyway I that I can fix this while still having access to punbb's global variables?
Thanks,
~Goober

Re: Additional Multipurpose pages...

what else are you including on that page? extern.php? functions.php?

Re: Additional Multipurpose pages...

yes, I am including extern.php but not functions.php...

Re: Additional Multipurpose pages...

well thats why extern.php includes functions.php

Re: Additional Multipurpose pages...

Hmmm...I commented everything in my script with extern.php and it still displays the same error message.

Re: Additional Multipurpose pages...

well it happens when you include functions.php twice sothat must be happening somewhere

Re: Additional Multipurpose pages...

I replaced require with require_once and I stopped getting the error message, although I'm going to run some tests to see if works properly...

8 (edited by Goober 2005-05-28 18:11)

Re: Additional Multipurpose pages...

Sweet I do have access to punbb's global variables...