9
Yah, I have been updating allot.
I am working in the myReviews admin/index.php file and I have this if statement wrapped around the inclusion of the SPAW editor.
Here is the top part of the file:
include '../../../mainfile.php';
if ( file_exists(XOOPS_ROOT_PATH.'/modules/myReviews/language/'.$xoopsConfig['language']."/main.php") )
{
include (XOOPS_ROOT_PATH.'/modules/myReviews/language/'.$xoopsConfig['language']."/main.php");
}
else
{
include (XOOPS_ROOT_PATH.'/modules/myReviews/language/english/main.php');
}//End if
include (XOOPS_ROOT_PATH.'/modules/myReviews/admin/admin_header.php');
include (XOOPS_ROOT_PATH.'/modules/myReviews/include/functions.php');
include (XOOPS_ROOT_PATH.'/modules/myReviews/include/config.php');
include (XOOPS_ROOT_PATH.'/modules/myReviews/ulconf/exten.php');
include XOOPS_ROOT_PATH.'/header.php';
include_once XOOPS_ROOT_PATH.'/class/xoopstree.php';
include_once XOOPS_ROOT_PATH."/class/xoopslists.php";
include_once XOOPS_ROOT_PATH."/include/xoopscodes.php";
include_once XOOPS_ROOT_PATH.'/class/module.errorhandler.php';
//include("../cache/config.php");
//EDIT: Include SPAW
if ($xoopsModuleConfig['xmyReviews_admin_spaw'] == '1')
{
$module_handler = &xoops_gethandler('module');
$module = &$module_handler->getByDirname('spaw');
if (is_object($module) && $module->getVar('isactive'))
{
include_once XOOPS_ROOT_PATH . "/modules/spaw/spaw_control.class.php";
}
}
//insert finish