<?php
// $Id: admin_header.php,v 1.5 2006/06/21 04:27:26 ohwada Exp $

// 2006-06-20 K.OHWADA
// use constant WHATSNEW_ROOT_PATH
// use whatsnew_constant.php, compatible.php

// 20005-11-06 K.OHWADA
// BUG 3169: need to sanitaize $_SERVER['PHP_SELF']

//=========================================================
// What's New Module
// admin header
// 2005-10-01 K.OHWADA
//=========================================================

include '../../../include/cp_header.php';

if( !defined("WHATSNEW_ROOT_PATH") )
{
	define("WHATSNEW_ROOT_PATH", XOOPS_ROOT_PATH.'/modules/whatsnew' );
}

$XOOPS_LANGUAGE = $xoopsConfig['language'];

include_once XOOPS_ROOT_PATH."/kernel/object.php";
include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';

include_once WHATSNEW_ROOT_PATH."/include/whatsnew_version.php";
include_once WHATSNEW_ROOT_PATH."/include/whatsnew_constant.php";
include_once WHATSNEW_ROOT_PATH."/class/whatsnew_module_table.php";
include_once WHATSNEW_ROOT_PATH."/class/whatsnew_module_handler.php";
include_once WHATSNEW_ROOT_PATH."/class/whatsnew_module_save.php";
include_once WHATSNEW_ROOT_PATH."/class/whatsnew_config_define.php";
include_once WHATSNEW_ROOT_PATH."/class/whatsnew_config_table.php";
include_once WHATSNEW_ROOT_PATH."/class/whatsnew_config_handler.php";
include_once WHATSNEW_ROOT_PATH."/class/whatsnew_config_form.php";
include_once WHATSNEW_ROOT_PATH."/class/whatsnew_config_save.php";
include_once WHATSNEW_ROOT_PATH."/class/whatsnew_lang_base.php";

// BUG 3169: need to sanitaize $_SERVER['PHP_SELF']
include_once WHATSNEW_ROOT_PATH."/class/whatsnew_show_block.php";

include_once WHATSNEW_ROOT_PATH."/admin/admin_function.php";
include_once WHATSNEW_ROOT_PATH."/admin/admin_config_class.php";

if ( file_exists(WHATSNEW_ROOT_PATH."/language/".$XOOPS_LANGUAGE."/whatsnew_lang_conv.php") ) 
{
	include_once WHATSNEW_ROOT_PATH."/language/".$XOOPS_LANGUAGE."/whatsnew_lang_conv.php";
}
else
{
	include_once WHATSNEW_ROOT_PATH."/language/english/whatsnew_lang_conv.php";
}

if ( file_exists(WHATSNEW_ROOT_PATH."/language/".$XOOPS_LANGUAGE."/modinfo.php") ) 
{
	include_once WHATSNEW_ROOT_PATH."/language/".$XOOPS_LANGUAGE."/modinfo.php";
}
else
{
	include_once WHATSNEW_ROOT_PATH."/language/english/modinfo.php";
}

// compatible to old version
include_once WHATSNEW_ROOT_PATH."/language/compatible.php";

?>