Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Order that Coppermine Executes  (Read 2479 times)

0 Members and 1 Guest are viewing this topic.

lambda

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Order that Coppermine Executes
« on: October 17, 2012, 03:26:55 am »

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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Order that Coppermine Executes
« Reply #1 on: October 18, 2012, 04:21:06 pm »

Have you already tried to require it at some point inside include/init.inc.php?
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.