$CONFIG $CONFIG
 

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]

Main Menu

$CONFIG

Started by nanothree, January 07, 2005, 12:35:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nanothree

I searched and it didnt help me, how can i find out about waht variables are held in the $CONFIG array? Is it what is held in the config table?

Joachim Müller


nanothree

thanks, another question... what does this mean:

define('IN_COPPERMINE', true);
define('FAQ_PHP', true);


Abbas Ali

Quote from: nanothree on January 07, 2005, 01:07:43 PM
define('IN_COPPERMINE', true);
define('FAQ_PHP', true);


These constants are defined to stop the direct execution of the init.inc.php script.
Chief Geek at Ranium Systems

nanothree

if i were to put

define('MY_PAGE', true);

would i get an error? i'm trying to create a mod/hack, but im not syre about what needs to be done with bits like that, im finding it a bit confusing,

Also how can i add more options on config.php i looked at the script and it made no sense

Abbas Ali

define('MY_PAGE', true);
wont give you any error. But you will have to add the above mentioned constants (IN_COPPERMINE) if you want init.inc.php to be used by your mod.

QuoteAlso how can i add more options on config.php i looked at the script and it made no sense

What i suggest is rather changing the config.php file you should add the values in the config table in the database. By doing so you will have the options available to you in $CONFIG array automatically.
Chief Geek at Ranium Systems

Nibbler

define('FAQ_PHP'true);

That is for the benefit of the language files, you don't need to make one up yourself.

You can put print_r($CONFIG); to see what is in $CONFIG.

To add more options to the config page you need to add an entry both into the config table, and into the language file.

nanothree

thanks alot , ill get working on my mod then :D