Order that Coppermine Executes Order that Coppermine Executes
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Order that Coppermine Executes

Started by lambda, October 17, 2012, 03:26:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lambda

I am trying to require a PHP file to load some settings that are separate from Coppermine. Thing is, they have conflicting variables.

When I try to require the file inside function.inc.php it cannot connect to the Coppermine DB; conversely, when I try to require the files inside of my custom header, it gives me a Call to a member function error on a uninitialized object.

I want to try to put my require at the very top of Coppermine so that it can execute without conflicting with the Coppermine variables, then unset the variables for coppermine to use.

If someone could help me out I'd greatly appreciate it.

ΑndrĂ©

Have you already tried to require it at some point inside include/init.inc.php?