Project

General

Profile

« Previous | Next » 

Revision 1457

Added by Dietmar almost 13 years ago

Preparing 2.8.2 stable, last tests

View differences:

modify_settings.php
11 11
 * @platform        WebsiteBaker 2.8.x
12 12
 * @requirements    PHP 5.2.2 and higher
13 13
 * @version         $Id$
14
 * @filesource		$HeadURL:  $
15
 * @lastmodified    $Date:  $
14
 * @filesource		$HeadURL$
15
 * @lastmodified    $Date$
16 16
 * @description     
17 17
 */
18 18

  
19 19
require('../../config.php');
20 20

  
21
$print_info_banner = true;
22
// Tells script to update when this page was last updated
23
$update_when_modified = false;
21 24
// Include WB admin wrapper script
22 25
require(WB_PATH.'/modules/admin.php');
23 26

  
24 27
// include core functions of WB 2.7 to edit the optional module CSS files (frontend.css, backend.css)
25 28
@include_once(WB_PATH .'/framework/module.functions.php');
26 29

  
27
// check if module language file exists for the language set by the user (e.g. DE, EN)
28
if(!file_exists(WB_PATH .'/modules/form/languages/'.LANGUAGE .'.php')) {
29
	// no module language file exists for the language set by the user, include default module language file EN.php
30
	require_once(WB_PATH .'/modules/form/languages/EN.php');
31
} else {
32
	// a module language file exists for the language defined by the user, load it
33
	require_once(WB_PATH .'/modules/form/languages/'.LANGUAGE .'.php');
34
}
30
// load module language file
31
$lang = (dirname(__FILE__)) . '/languages/' . LANGUAGE . '.php';
32
require_once(!file_exists($lang) ? (dirname(__FILE__)) . '/languages/EN.php' : $lang );
35 33

  
36 34
// Get header and footer
37 35
$query_content = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_form_settings WHERE section_id = '$section_id'");
......
40 38
// Set raw html <'s and >'s to be replace by friendly html code
41 39
$raw = array('<', '>');
42 40
$friendly = array('&lt;', '&gt;');
43

  
41
/*
44 42
// check if backend.css file needs to be included into the <body></body> of modify.php
45 43
if(!method_exists($admin, 'register_backend_modfiles') && file_exists(WB_PATH ."/modules/form/backend.css")) {
46 44
	echo '<style type="text/css">';
47 45
	include(WB_PATH .'/modules/form/backend.css');
48 46
	echo "\n</style>\n";
49 47
}
50

  
48
*/
51 49
?>
52 50
<h2><?php echo $MOD_FORM['SETTINGS']; ?></h2>
53 51
<?php
......
247 245

  
248 246
// Print admin footer
249 247
$admin->print_footer();
250

  
251
?>
252 248

  

Also available in: Unified diff