Exemplo n.º 1
0
    }
}
$cachesubfolders = array("index", "albums", "images", "pages");
foreach ($cachesubfolders as $cachesubfolder) {
    $cache_folder = $cache_path . $cachesubfolder . '/';
    if (!file_exists($cache_folder)) {
        if (!mkdir($cache_folder, CHMOD_VALUE)) {
            die(gettext("Static HTML Cache folder could not be created. Please try to create it manually via FTP with chmod 0777."));
        }
    }
}
if (OFFSET_PATH) {
    if (isset($_GET['action']) && $_GET['action'] == 'clear_html_cache' && zp_loggedin(ADMIN_RIGHTS)) {
        XSRFdefender('ClearHTMLCache');
        $_zp_HTML_cache = new staticCache();
        $_zp_HTML_cache->clearHTMLCache();
        header('Location: ' . FULLWEBPATH . '/' . ZENFOLDER . '/admin.php?action=external&msg=' . gettext('HTML cache cleared.'));
        exit;
    }
} else {
    //	if the page is cached then handle it early
    $_zp_HTML_cache = new staticCache();
    $_zp_HTML_cache->startHTMLCache();
}
/**
 * Plugin option handling class
 *
 */
class staticCache_options
{
    function staticCache_options()