Private Post
"); echo("This post has not yet been made public by the publisher. Please check back again later. Thank you.
"); } echo 'file = substr($blogentry->file, strlen(POSTS_ROOT), -4);
if (!(($posts = apcu_fetch('posts')) && isset($posts[$blogentry->file]) && $blogentry=$posts[$blogentry->file])) {
//echo "[DBG] Regenerate meta info block...";
if (!isset($blogentry->file))
$blogentry->file = "";
if (!isset($blogentry->title))
$blogentry->title = "Untitled";
if (!isset($blogentry->description))
$blogentry->description = $blogentry->title;
if (!isset($blogentry->author))
$blogentry->author = "Anonymous";
if (!isset($blogentry->status))
$blogentry->status = "private";
if (!isset($blogentry->ctime))
$blogentry->ctime = time();
if (!isset($blogentry->tags))
$blogentry->tags = "untagged";
$blogentry->tags = explode(',', $blogentry->tags);
sort($blogentry->tags);
$blogentry->permalink = getServerUrl() . "/?p=blog&b=" . str_replace("/", POSTS_DIR_SEP, $blogentry->file);
$blogentry->isVisible = ($blogentry->ctime <= time()) && (($blogentry->status == "released") || ($blogentry->status == "unlisted"));
$blogentry->isPublic = ($blogentry->status == "released") && $blogentry->isVisible;
}
$renderIt = $CMS_INDEXING || $blogentry->isVisible;
if ($renderIt && !isset($CMS_RSS)) {
if (isset($postUrl) && !$CMS_INDEXING) { // Set meta information
$pageTitle = $blogentry->title;
$htmlHead .= '
tags) . '">
';
}
echo " ";
//echo 'permalink\">$blogentry->title
' . date("l, F jS Y, H:i", $blogentry->ctime) . "
Sources:
';
foreach ($meta['sources'] as $v) {
echo ' [' . $i++ . ']: ' . $v . '
';
}
echo '
→ Click here to continue reading ←
'; } return $renderExt; } function password($pw) { global $userPassword; if ("$userPassword" == "$pw") { echo ''; return true; } else { echo ""; if ($userPassword == "") echo "This section is protected. To view it, enter the correct password."; else echo "The password you entered is incorrect! Please try again."; ?>
$object){ ob_start(); // These ob_lines will prevent output of actual HTML (the function already does this?!) require "$file"; $blogentry->includeFile = $file; //echo "This post has not yet been made public by the publisher. Please check back again later. Thank you.
"); } echo 'Archive for '$tagSearch' | "; if (RSS_ENABLED) { echo ''; } echo ' |
<< Older posts | '; if ($postsSkip > 0) echo 'Newer posts >> | '; if ($morePosts == 2|| $postsSkip > 0) echo "