Beispiel #1
0
header("Pragma: cache");
$domain = $cache->select_domain();
$id = $db->real_escape_string($_GET['id']);
if (!is_numeric($id)) {
    $id = str_replace("#", "", $id);
}
$id = (int) $id;
$date = date("Ymd");
//Load post_table data and the previous next values in array. 0 previous, 1 next.
$post_data = $post->show($id);
//Check if data exists in array, if so, kinda ignore it.
if ($post_data == "" || is_null($post_data)) {
    header('Location: index.php?page=post&s=list');
    exit;
}
$prev_next = $post->prev_next($id);
if (!is_dir("{$main_cache_dir}" . "" . "\\cache/{$id}")) {
    $cache->create_page_cache("cache/{$id}");
}
$data = $cache->load("cache/" . $id . "/post.cache");
if ($data !== false) {
    echo str_replace("f6ca1c7d5d00a2a3fb4ea2f7edfa0f96a6d09c11717f39facabad2d724f16fbb", $domain, $data);
    flush();
    $tcount = 1;
} else {
    ob_start();
    $tags = mb_trim(html_entity_decode($post_data['tags'], ENT_QUOTES, "UTF-8"));
    $ttags = explode(" ", $tags);
    $rating = $post_data['rating'];
    $lozerisdumb = "- " . str_replace('_', ' ', str_replace('"', '\\"', $tags));
    $pg = "post";