Beispiel #1
0
    header("Status: 302 Found");
    header('Location: ' . WEBPATH . '/index.php');
    exitZP();
}
$obj = @$_zp_gallery_page;
$_zp_gallery_page = '404.php';
if (isset($_index_theme)) {
    $_zp_script = SERVERPATH . "/" . THEMEFOLDER . '/' . internalToFilesystem($_index_theme) . '/404.php';
} else {
    $_zp_script = NULL;
}
header('Content-Type: text/html; charset=' . LOCAL_CHARSET);
header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");
zp_apply_filter('theme_headers');
debug404($album, $image, @$_index_theme);
if ($_zp_script && file_exists($_zp_script)) {
    if (isset($custom) && $custom) {
        require_once $custom;
    }
    include $_zp_script;
} else {
    ?>
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml">
		<head>
		</head>
		<body>
			<?php 
    print404status(isset($album) ? $album : NULL, isset($image) ? $image : NULL, $obj);
    ?>
Beispiel #2
0
    }
    // Include the appropriate page for the requested object, and a 200 OK header.
    header('Content-Type: text/html; charset=' . LOCAL_CHARSET);
    header("HTTP/1.0 200 OK");
    header("Status: 200 OK");
    header('Last-Modified: ' . $_zp_last_modified);
    zp_apply_filter('theme_headers');
    include internalToFilesystem($_zp_obj);
} else {
    // If the requested object does not exist, issue a 404 and redirect to the theme's
    // 404.php page, or a 404.php in the zp-core folder.
    if (is_object($_zp_HTML_cache)) {
        $_zp_HTML_cache->abortHTMLCache();
    }
    list($album, $image) = rewrite_get_album_image('album', 'image');
    debug404($album, $image, $theme);
    $_zp_gallery_page = '404.php';
    $errpage = THEMEFOLDER . '/' . internalToFilesystem($theme) . '/404.php';
    header('Content-Type: text/html; charset=' . LOCAL_CHARSET);
    header("HTTP/1.0 404 Not Found");
    header("Status: 404 Not Found");
    zp_apply_filter('theme_headers');
    if (file_exists(SERVERPATH . "/" . $errpage)) {
        if ($custom) {
            require_once $custom;
        }
        include $errpage;
    } else {
        include ZENFOLDER . '/404.php';
    }
}