Ejemplo n.º 1
0
    // load the drop-in replacement library
    require_once dirname(__FILE__) . '/lib-json.php';
}
require_once dirname(__FILE__) . '/functions-basic.php';
require_once dirname(__FILE__) . '/functions-filter.php';
require_once SERVERPATH . '/' . ZENFOLDER . '/lib-kses.php';
$_zp_captcha = new _zp_captcha();
// this will be overridden by the plugin if enabled.
$_zp_HTML_cache = new _zp_HTML_cache();
// this will be overridden by the plugin if enabled.
//setup session before checking for logon cookie
require_once dirname(__FILE__) . '/functions-i18n.php';
if (GALLERY_SESSION) {
    zp_session_start();
}
define('ZENPHOTO_LOCALE', setMainDomain());
define('SITE_LOCALE', getOptionFromDB('locale'));
require_once dirname(__FILE__) . '/load_objectClasses.php';
$_zp_current_context_stack = array();
$_zp_albumthumb_selector = array(array('field' => '', 'direction' => '', 'desc' => 'random'), array('field' => 'id', 'direction' => 'DESC', 'desc' => gettext('most recent')), array('field' => 'mtime', 'direction' => '', 'desc' => gettext('oldest')), array('field' => 'title', 'direction' => '', 'desc' => gettext('first alphabetically')), array('field' => 'hitcounter', 'direction' => 'DESC', 'desc' => gettext('most viewed')));
$_zp_missing_album = new AlbumBase(gettext('missing'), false);
$_zp_missing_image = new Transientimage($_zp_missing_album, SERVERPATH . '/' . ZENFOLDER . '/images/err-imagenotfound.png');
/**
 * parses the allowed HTML tags for use by htmLawed
 *
 * @param string &$source by name, contains the string with the tag options
 * @return array the allowed_tags array.
 * @since 1.1.3
 * */
function parseAllowedTags(&$source)
{
Ejemplo n.º 2
0
    }
    if ($environ) {
        setupLog(gettext("Full environment"));
    } else {
        setupLog(gettext("Primitive environment"));
        if ($connectDBErr) {
            setupLog(sprintf(gettext("Query error: %s"), $connectDBErr), true);
        }
    }
    setcookie('setup_test_cookie', ZENPHOTO_RELEASE, time() + 3600, '/');
}
if (!isset($_zp_setupCurrentLocale_result) || empty($_zp_setupCurrentLocale_result)) {
    if (DEBUG_LOCALE) {
        debugLog('Setup checking locale');
    }
    $_zp_setupCurrentLocale_result = setMainDomain();
    if (DEBUG_LOCALE) {
        debugLog('$_zp_setupCurrentLocale_result = ' . $_zp_setupCurrentLocale_result);
    }
}
$taskDisplay = array('create' => gettext("create"), 'update' => gettext("update"));
if ($i = getOption('zenphoto_install')) {
    $install = unserialize($i);
    $prevRel = $install['ZENPHOTO'];
} else {
    $prevRel = '';
}
if (empty($prevRel)) {
    // pre 1.4.2 release, compute the version
    $prevRel = getOption('zenphoto_release');
    $zp_versions = array('1.2' => '2213', '1.2.1' => '2635', '1.2.2' => '2983', '1.2.3' => '3427', '1.2.4' => '3716', '1.2.5' => '4022', '1.2.6' => '4335', '1.2.7' => '4741', '1.2.8' => '4881', '1.2.9' => '5088', '1.3.0' => '5088', '1.3.1' => '5736', '1.4' => '6454', '1.4.1' => '6506', 'x.x.x' => '99999999');