Exemplo n.º 1
0
function clearPageCache()
{
    require_once dirname(__FILE__) . '/../../embed.php';
    GalleryEmbed::init();
    $ret1 = GalleryCoreApi::removeAllMapEntries('GalleryCacheMap');
    $ret2 = GalleryEmbed::done();
    if ($ret1 || $ret2) {
        $status[] = array('error', 'Error deleting page cache!');
    } else {
        $status[] = array('info', 'Successfully deleted page cache');
    }
    return $status;
}
Exemplo n.º 2
0
    echo g2ic_make_html_display_options();
    echo g2ic_make_html_controls();
    print_r($g2ic_page_navigation);
    echo g2ic_make_html_image_navigation();
    print_r($g2ic_page_navigation);
}
echo g2ic_make_html_about($g2ic_version_text);
echo '                    </div>' . "\n";
echo '                </td>' . "\n";
echo '            </tr>' . "\n";
echo '        </table>' . "\n";
echo '    </form>' . "\n";
echo '</body>' . "\n\n";
echo '</html>';
$_SESSION['g2ic_last_album_visited'] = $g2ic_options['current_album'];
GalleryEmbed::done();
// ====( Functions - Alphabetical by Function Name)
/**
 * Get all of the Gallery2 items
 *
 * @return array $album_info Album Title and URL for the current album
 * @return array $gallery_items Sorted array of IDs and Titles for all Gallery2 Data Items in the current album
 */
function g2ic_get_gallery_items()
{
    global $gallery, $g2ic_options;
    $gallery_items = array();
    $item_mod_times = array();
    $item_orig_times = array();
    $item_create_times = array();
    $item_titles = array();
Exemplo n.º 3
0
        global $gallery;
        $gallery->initEmptySession();
    }
    $remember = array();
    foreach ($_REQUEST['target'] as $key => $ignored) {
        /* Make sure the dir is legit */
        if (!array_key_exists($key, $caches)) {
            $status[] = array('error', "Ignoring illegal cache: {$key}");
            continue;
        }
        $func = $caches[$key][1];
        $args = $caches[$key][2];
        $status = array_merge($status, call_user_func_array($func, $args));
        $remember[] = $key;
    }
    $ret = GalleryEmbed::done();
    if ($ret) {
        $status[] = array('error', 'Error completing transaction!');
    }
    $_COOKIE['g2cache'] = join(',', $remember);
}
?>
<html>
  <head>
    <title>Gallery Support | Cache Maintenance</title>
    <link rel="stylesheet" type="text/css" href="<?php 
print $baseUrl;
?>
support.css"/>
  </head>
  <body>