Project

General

Profile

« Previous | Next » 

Revision 1079

Added by Matthias over 15 years ago

- Again added some & to news and form to get more valid output (Thanks to Luisehahne)

-Fixed wrong set </form> tag to get valid output (Thanks to Luisehahne)

View differences:

modify.php
31 31
// Must include code to stop this file being access directly
32 32
if(!defined('WB_PATH')) { exit("Cannot access this file directly"); }
33 33

  
34
//overwrite php.ini on Apache servers for valid SESSION ID Separator
35
if(function_exists('ini_set')) {
36
	ini_set('arg_separator.output', '&amp;');
37
}
38

  
34 39
//Delete all form fields with no title
35 40
$database->query("DELETE FROM ".TABLE_PREFIX."mod_form_fields  WHERE page_id = '$page_id' and section_id = '$section_id' and title=''");
36 41

  
......
38 43
<table cellpadding="0" cellspacing="0" border="0" width="100%">
39 44
<tr>
40 45
	<td align="left" width="33%">
41
		<input type="button" value="<?php echo $TEXT['ADD'].' '.$TEXT['FIELD']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/form/add_field.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>';" style="width: 100%;" />
46
		<input type="button" value="<?php echo $TEXT['ADD'].' '.$TEXT['FIELD']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/form/add_field.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>';" style="width: 100%;" />
42 47
	</td>
43 48
	<td align="right" width="33%">
44
		<input type="button" value="<?php echo $TEXT['SETTINGS']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/form/modify_settings.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>';" style="width: 100%;" />
49
		<input type="button" value="<?php echo $TEXT['SETTINGS']; ?>" onclick="javascript: window.location = '<?php echo WB_URL; ?>/modules/form/modify_settings.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>';" style="width: 100%;" />
45 50
	</td>
46 51
</tr>
47 52
</table>

Also available in: Unified diff