Easy question first: How to find what config variables there are:
lang/english.php; find:
if (defined('CONFIG_PHP')) $lang_config_data = array(
Look at the items in the array: The first field is what it's used for; the second is what the index is for that variable.
Now for tricking coppermine to hand out a different cookie name for a specific theme:
(FYI, this is probably not a wise thing to do if you use Coppermine bridged to anything)
include/init.inc.php; find:
// Process theme selection if present in URI or in user profile
if (!empty($HTTP_GET_VARS['theme'])) {
$USER['theme'] = $HTTP_GET_VARS['theme'];
}
// Load theme file
if (isset($USER['theme']) && !strstr($USER['theme'], '/') && is_dir('themes/' . $USER['theme'])) {
$CONFIG['theme'] = strtr($USER['theme'], '$/\\:*?"\'<>|`', '____________');
} else {
unset($USER['theme']);
}
if (!file_exists("themes/{$CONFIG['theme']}/theme.php")) $CONFIG['theme'] = 'classic';
require "themes/{$CONFIG['theme']}/theme.php";
$THEME_DIR = "themes/{$CONFIG['theme']}/";
change to:
// moved theme block to just under the include of media.functions.inc.php for cookie_name mod
include/init.inc.php; find:
require 'include/media.functions.inc.php';
add after it:
// moved block so that the theme would be set prior to substituting the cookie_name
// Process theme selection if present in URI or in user profile
if (!empty($HTTP_GET_VARS['theme'])) {
$USER['theme'] = $HTTP_GET_VARS['theme'];
}
// check referrer for our target theme; needed if a cookie has not been saved yet
// otherwise you will get the login screen from the theme from the regular cookie
// and it will not let you log on.
$USER['theme'] = (strpos($REFERER,'water_drop')) ? 'water_drop' : $USER['theme'];
// Load theme file
if (isset($USER['theme']) && !strstr($USER['theme'], '/') && is_dir('themes/' . $USER['theme'])) {
$CONFIG['theme'] = strtr($USER['theme'], '$/\\:*?"\'<>|`', '____________');
} else {
unset($USER['theme']);
}
if (!file_exists("themes/{$CONFIG['theme']}/theme.php")) $CONFIG['theme'] = 'classic';
require "themes/{$CONFIG['theme']}/theme.php";
$THEME_DIR = "themes/{$CONFIG['theme']}/";
// moved block so that the theme would be set prior to substituting the cookie_name
// override cookie_name for a specific theme
$CONFIG['cookie_name'] = ($CONFIG['theme'] == 'water_drop') ? 'cpg_water_drop' : $CONFIG['cookie_name'];
// override cookie_name for a specific theme
Hope that helps;
FYI, the two mod questions were pretty well related, so they were good to have in the same thread. In the future if you have a slightly off topic question it's better to create a new thread, that way its easier for others to search and find relevant answers based on the TITLE of the thread, rather than having to open and search each one.