<?php
/*
Copyright (C) 2009 DantoBB Team
http://www.dantobb.com
*/
/**
* Edit doorway
*
* Forms the doorway to editing 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');
//
// Call the right source file for either topic or post altering
//
if ( !empty($_GET['topic']) && valid_int($_GET['topic']) ) {
require(ROOT_PATH.'sources/edit_topic.php');
} elseif ( !empty($_GET['post']) && valid_int($_GET['post']) ) {
require(ROOT_PATH.'sources/edit_post.php');
} else {
//
// There's no ID! Get us back to the index...
//
$functions->redirect('index.php');
}
?>