Exemplo n.º 1
0
    return;
}
//
// Load default header
//
$phpbb_root_path = "./../";
require $phpbb_root_path . 'extension.inc';
require './pagestart.' . $phpEx;
require $phpbb_root_path . 'includes/prune.' . $phpEx;
require $phpbb_root_path . 'includes/functions_admin.' . $phpEx;
//-- mod: sf
include $phpbb_root_path . 'includes/functions_sf.' . $phpEx;
include $phpbb_root_path . 'includes/functions_sf_admin.' . $phpEx;
_sf_lang($lang);
$_sf_tree = new _sf_tree();
$_sf_tree->read();
//-- mod: sf - end
//
// Get the forum ID for pruning
//
if (isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_URL])) {
    $forum_id = isset($HTTP_POST_VARS[POST_FORUM_URL]) ? $HTTP_POST_VARS[POST_FORUM_URL] : $HTTP_GET_VARS[POST_FORUM_URL];
    if ($forum_id == -1) {
        $forum_sql = '';
    } else {
        $forum_id = intval($forum_id);
        $forum_sql = "AND forum_id = {$forum_id}";
    }
} else {
    $forum_id = '';
    $forum_sql = '';