Ejemplo n.º 1
0
                    $index['Index_comment'] = 'zp20';
                }
                break;
            case 'folder':
                if ($table == 'albums' && $index['Column_name'] === '`folder`') {
                    $index['Index_comment'] = 'zp20';
                }
                break;
        }
        $database[$table]['keys'][$keyname] = $index;
    }
}
$collation = db_collation();
$template = unserialize(file_get_contents(SERVERPATH . '/' . ZENFOLDER . '/databaseTemplate'));
//Add in the enabled image metadata fields
$metadataProviders = array(zpFunctions::exifvars(), 'class-video' => 'Video', 'xmpMetadata' => 'xmpMetadata');
foreach ($metadataProviders as $source => $handler) {
    if (is_array($handler)) {
        $enabled = true;
        $exifvars = $handler;
    } else {
        $enabled = extensionEnabled($source);
        $plugin = getPlugin($source . '.php');
        require_once $plugin;
        $exifvars = $handler::getMetadataFields();
        foreach ($exifvars as $key => $item) {
            if (!is_null($disable = getOption($key . '-disabled'))) {
                $exifvars[$key][5] = !($disable & true);
            }
            if (!is_null($display = getOption($key . '-display'))) {
                $exifvars[$key][3] = $display;
Ejemplo n.º 2
0
    {
        return array('input' => NULL, 'html' => '<p class="errorbox">' . gettext('No captcha handler is enabled.') . '</p>', 'hidden' => '');
    }
    function checkCaptcha($s1, $s2)
    {
        return false;
    }
}
/**
 * stand-in for when there is no HTML cache plugin enabled
 */
class _zp_HTML_cache
{
    function disable()
    {
    }
    function startHTMLCache()
    {
    }
    function abortHTMLCache($flush)
    {
    }
    function endHTMLCache()
    {
    }
    function clearHtmlCache()
    {
    }
}
$_zp_exifvars = zpFunctions::exifvars();
$_locale_Subdomains = zpFunctions::LanguageSubdomains();
Ejemplo n.º 3
0
					<?php 
}
if ($subtab == 'image' && zp_loggedin(OPTIONS_RIGHTS)) {
    require_once dirname(__FILE__) . '/lib-Imagick.php';
    require_once dirname(__FILE__) . '/lib-GD.php';
    ?>

					<script type="text/javascript">
						// <!-- <![CDATA[
						function checkMeta(cls) {
							$('.' + cls).prop('checked', 'checked');
						}
						function setMetaDefaults() {
							$('.showMeta').prop('checked', 'checked');
	<?php 
    foreach (zpFunctions::exifvars(true) as $key => $data) {
        if (!$data[5]) {
            ?>
									$('#<?php 
            echo $key;
            ?>
_disable').prop('checked', 'checked');
			<?php 
        } else {
            if (!$data[3] || !$data[4]) {
                ?>
									$('#<?php 
                echo $key;
                ?>
_hide').prop('checked', 'checked');
			<?php