<?php
/*
Copyright (C) 2009 Dantobb Team
http://www.dantobb.com
*/
/**
* Post doorway
*
* Forms the doorway to posting topics and posts.
*
* @author DantoBB Team
* @link http://www.dantobb.com
* @license GPL-2
* @version $Revision: 1.0 $
* @copyright Copyright (C) 2009 DantoBB Team
* @package DantoBB
*/
define('INCLUDED', true);
define('ROOT_PATH', './');
//
// Include dantobb engine
//
require(ROOT_PATH.'sources/common.php');
//
// Include the right file for either topic or reply posting...
//
if ( !empty($_GET['topic']) && valid_int($_GET['topic']) ) {
require(ROOT_PATH.'sources/post_reply.php');
} elseif ( !empty($_GET['forum']) && valid_int($_GET['forum']) ) {
require(ROOT_PATH.'sources/post_topic.php');
} else {
//
// There's no ID! Get us back to the index...
//
$functions->redirect('index.php');
}
?>