<?php
// $Id: admin_header.php,v 1.4 2005/11/07 11:32:41 ohwada Exp $

// 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';

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

include_once XOOPS_ROOT_PATH."/modules/whatsnew/class/whatsnew_module_table.php";
include_once XOOPS_ROOT_PATH."/modules/whatsnew/class/whatsnew_module_handler.php";
include_once XOOPS_ROOT_PATH."/modules/whatsnew/class/whatsnew_module_save.php";
include_once XOOPS_ROOT_PATH."/modules/whatsnew/class/whatsnew_config_define.php";
include_once XOOPS_ROOT_PATH."/modules/whatsnew/class/whatsnew_config_table.php";
include_once XOOPS_ROOT_PATH."/modules/whatsnew/class/whatsnew_config_handler.php";
include_once XOOPS_ROOT_PATH."/modules/whatsnew/class/whatsnew_config_form.php";
include_once XOOPS_ROOT_PATH."/modules/whatsnew/class/whatsnew_config_save.php";
include_once XOOPS_ROOT_PATH."/modules/whatsnew/class/whatsnew_lang_base.php";
include_once XOOPS_ROOT_PATH."/modules/whatsnew/include/whatsnew_version.php";

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

include_once XOOPS_ROOT_PATH."/modules/whatsnew/admin/admin_function.php";
include_once XOOPS_ROOT_PATH."/modules/whatsnew/admin/admin_config_class.php";

$file_lang_conv = XOOPS_ROOT_PATH."/modules/whatsnew/language/".$xoopsConfig['language']."/whatsnew_lang_conv.php";

if ( file_exists($file_lang_conv) ) 
{
	include_once $file_lang_conv;
}
else
{
	include_once XOOPS_ROOT_PATH."/modules/whatsnew/language/english/whatsnew_lang_conv.php";
}

$file_lang_modinfo = XOOPS_ROOT_PATH."/modules/whatsnew/language/".$xoopsConfig['language']."/modinfo.php";

if ( file_exists($file_lang_modinfo) ) 
{
	include_once $file_lang_modinfo;
}
else
{
	include_once XOOPS_ROOT_PATH."/modules/whatsnew/language/english/modinfo.php";
}

?>