8
this is my headerfile:
<?
include( "../../../mainfile.php" );
include XOOPS_ROOT_PATH."/include/cp_functions.php";
if ( file_exists(XOOPS_ROOT_PATH."/modules/system/language/".$xoopsConfig['language']."/admin.php") ) {
include XOOPS_ROOT_PATH."/modules/system/language/".$xoopsConfig['language']."/admin.php";
} else {
include XOOPS_ROOT_PATH."/modules/system/language/english/admin.php";
}
include_once XOOPS_ROOT_PATH."/class/xoopsmodule.php";
include_once XOOPS_ROOT_PATH."/include/xoopscodes.php";
include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
if ( file_exists("../language/".$xoopsConfig['language']."/admin.php") ) {
include "../language/".$xoopsConfig['language']."/admin.php";
} else {
include "../language/english/admin.php";
}
xoops_cp_header();
?>
So if you are right the language inclution code is writen twice now.. hmm... well it works..
How do I add a module to xoops.orgs download??
Its a simple job listing module, with FCK editor to write the text..
You can add a start date, and end date for when its showed on the page.. When end date is passed, its moved to "old jobs listing"... There is also a checkbox if the job should be showed at all...
You can add, edit and delete jobs.
I only have the danish translation now.