Revision 810
Added by doc over 16 years ago
edit_module_files.php | ||
---|---|---|
40 | 40 |
|
41 | 41 |
// leave if the required module.functions.php file does not exist |
42 | 42 |
if(!file_exists(WB_PATH .'/framework/module.functions.php')) { |
43 |
echo 'Uups, the required file: /framework/module.functions.php is missing - script stopped.';
|
|
43 |
echo 'The required file: /framework/module.functions.php is missing - script stopped.';
|
|
44 | 44 |
die; |
45 | 45 |
} |
46 | 46 |
|
47 |
/** |
|
48 |
DEFINE LANGUAGE DEPENDING OUTPUTS FOR THE EDIT CSS PART |
|
49 |
*/ |
|
50 |
$lang_dir = WB_PATH .'/modules/' .$_POST['mod_dir'] .'/languages/'; |
|
51 |
if(file_exists($lang_dir .LANGUAGE .'.php')) { |
|
52 |
// try to include custom language file if exists |
|
53 |
require_once($lang_dir .LANGUAGE .'.php'); |
|
54 |
} elseif(file_exists($lang_dir .'EN.php')) { |
|
55 |
// try to include default module language file |
|
56 |
require_once($lang_dir .'EN.php'); |
|
57 |
} |
|
47 |
// set default text output if varibles are not defined in the global WB language files |
|
48 |
$HEADING_CSS_FILE = (isset($GLOBALS['TEXT']['HEADING_CSS_FILE'])) ?$GLOBALS['TEXT']['HEADING_CSS_FILE'] :'Actual module file: '; |
|
49 |
$TXT_EDIT_CSS_FILE = (isset($GLOBALS['TEXT']['TXT_EDIT_CSS_FILE'])) ?$GLOBALS['TEXT']['TXT_EDIT_CSS_FILE'] :'Edit the CSS definitions in the textarea below.'; |
|
58 | 50 |
|
59 |
// set defaults if output varibles are not set in the languages files |
|
60 |
if(!isset($HEADING_CSS_FILE)) $HEADING_CSS_FILE = 'Actual module file: '; |
|
61 |
if(!isset($TXT_EDIT_CSS_FILE)) $TXT_EDIT_CSS_FILE = 'Edit the CSS definitions in the textarea below.'; |
|
62 |
|
|
63 | 51 |
// include functions to edit the optional module CSS files (frontend.css, backend.css) |
64 | 52 |
require_once(WB_PATH .'/framework/module.functions.php'); |
65 | 53 |
|
Also available in: Unified diff
removed some obsolete language variables from news and form module (now defined in global WB language files)