Beispiel #1
0
            $doc = $POD->getContent(array('id' => $_POST['id']));
        }
    }
}
if (!$doc->success()) {
    header("Status: 404 Not Found");
    echo "404 Not Found";
    exit;
}
if (isset($_POST['comment'])) {
    // this is a request to post a comment
    $comment = $doc->addComment($_POST['comment']);
    if (!$comment || !$comment->success()) {
        $POD->addMessage("Couldn't add comment! " . $doc->error());
    } else {
        header("Location: " . $doc->get('permalink') . "#" . $comment->get('id'));
        exit;
    }
}
if (isset($_GET['vote'])) {
    // this is a request to vote
    if ($POD->isAuthenticated()) {
        if (!$POD->currentUser()->getVote($doc)) {
            $doc->vote($_GET['vote']);
        }
    }
}
$POD->header($doc->get('headline'));
$doc->output($output_template);
$POD->footer();
Beispiel #2
0
	<div class="column_8">
		<? 
		if ($POD->libOptions("enable_contenttype_wiki_add")) 
			if($POD->isAuthenticated() && $POD->currentUser()->get('adminUser')){ ?>
				<p>Add a new wiki now! <a href="<? $POD->siteRoot(); echo $edit_pattern; ?>">Click here!</a></p>
		<? }
		else {
			?><p>This software is under developement. Adding new wikis by users will be enabled in coming releases inshalla!</p><?
		}
		
		?><p>To connect your account on one of the wikis below, please add it <a href="wikiman">here</a></p><?

		
		$wikis->output('short_wiki','header','pager','List of supported wikis','Nothing has been posted on this site yet. Wow, it must be brand new!'); ?>
		
	</div>	
	<div class="column_4 structure_only">
		
		<? $POD->output('sidebars/search'); ?>

		<? $POD->output('sidebars/ad_unit'); ?>

		<? $POD->output('sidebars/tag_cloud'); ?>

		<? $POD->output('sidebars/recent_visitors'); ?>
		
	</div>	

<?	$POD->footer(); ?>