Example #1
0
        header('Pragma: public');
        header('Content-Length: ' . filesize($navigation_dir));
        ob_clean();
        flush();
        if ($options['general']['read_chunks'] == true) {
            readfile_chunked($navigation_dir);
        } else {
            readfile($navigation_dir);
        }
    } else {
        set_404_error();
    }
    exit;
} else {
    if (!file_exists($navigation_dir)) {
        set_404_error();
        exit;
    }
}
// Declare vars used beyond this point.
$file_list = array();
$folder_list = array();
$total_size = 0;
if ($options['bootstrap']['icons'] == "glyphicons") {
    $icons['tag'] = 'span';
    $icons['home'] = "<span class=\"glyphicon glyphicon-home\"></span>";
    if ($options['general']['enable_search'] == true) {
        $icons['search'] = "          <span class=\"glyphicon glyphicon-search form-control-feedback\"></span>" . PHP_EOL;
    }
} else {
    if ($options['bootstrap']['icons'] == "fontawesome" || $options['bootstrap']['icons'] == 'fa-files') {
Example #2
0
        header('Pragma: public');
        header('Content-Length: ' . filesize($navigation_dir));
        ob_clean();
        flush();
        if ($options['general']['read_chunks'] == true) {
            readfile_chunked($navigation_dir);
        } else {
            readfile($navigation_dir);
        }
    } else {
        set_404_error($root_dir, basename($navigation_dir));
    }
    exit;
} else {
    if (!file_exists($navigation_dir)) {
        set_404_error($root_dir, basename($navigation_dir));
    }
}
// Declare vars used beyond this point.
$file_list = array();
$folder_list = array();
$total_size = 0;
// Load icon set
if ($options['bootstrap']['icons'] !== null) {
    try {
        $icons = load_iconset($options['bootstrap']['icons']);
    } catch (Exception $e) {
        echo 'Caught exception: ', $e->getMessage(), "\n";
        die;
    }
}