/web/htdocs/www.euroroma.net/home/zenphoto/zp-core/setup/setup_themeOptions.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
 * Used for setting theme/plugin default options
 *
 * @package setup
 *
 */
define('OFFSET_PATH',2);
require_once(
'setup-functions.php');
require_once(
dirname(dirname(__FILE__)).'/admin-functions.php');

$iMutex = new Mutex('i',getOption('imageProcessorConcurrency'));
$iMutex-> lock();

$theme sanitize(sanitize($_REQUEST['theme']));
setupLog(sprintf(gettext('Theme:%s setup started'),$theme),true);
$requirePath getPlugin('themeoptions.php'$theme);
if (!empty(
$requirePath)) {
    require_once(
SERVERPATH.'/'.ZENFOLDER.'/'.PLUGIN_FOLDER.'/cacheManager.php');
    require_once(
SERVERPATH.'/'.THEMEFOLDER.'/'.$theme.'/themeoptions.php');
    
/* prime the default theme options */
    
$optionHandler = new ThemeOptions();
    
setupLog(sprintf(gettext('Theme:%s option interface instantiated'),$theme),true);
}
/* then set any "standard" options that may not have been covered by the theme */
standardThemeOptions($themeNULL);
/* and record that we finished */
setupLog(sprintf(gettext('Theme:%s setup completed'),$theme),true);

$iMutex->unlock();

header('Last-Modified: ' gmdate('D, d M Y H:i:s').' GMT');
header('Content-Type: image/png');
header('Location: ' FULLWEBPATH.'/'.ZENFOLDER.'/images/pass.png'true301);
?>