Project

General

Profile

« Previous | Next » 

Revision 1069

Added by Matthias almost 15 years ago

Fixed some validiation bugs in core and different modules (Thanks to luisehahne)

View differences:

modify_settings.php
73 73

  
74 74
<form name="edit" action="<?php echo WB_URL; ?>/modules/form/save_settings.php" method="post" style="margin: 0;">
75 75

  
76
<input type="hidden" name="page_id" value="<?php echo $page_id; ?>">
77
<input type="hidden" name="section_id" value="<?php echo $section_id; ?>">
76
<input type="hidden" name="page_id" value="<?php echo $page_id; ?>" />
77
<input type="hidden" name="section_id" value="<?php echo $section_id; ?>" />
78 78

  
79 79
<table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%">
80 80
	<tr>
......
83 83
	<tr>
84 84
		<td class="setting_name"><?php echo $TEXT['CAPTCHA_VERIFICATION']; ?>:</td>
85 85
		<td>
86
			<input type="radio" name="use_captcha" id="use_captcha_true" value="1"<?php if($setting['use_captcha'] == true) { echo ' checked'; } ?> />
86
			<input type="radio" name="use_captcha" id="use_captcha_true" value="1"<?php if($setting['use_captcha'] == true) { echo ' checked="checked"'; } ?> />
87 87
			<label for="use_captcha_true"><?php echo $TEXT['ENABLED']; ?></label>
88
			<input type="radio" name="use_captcha" id="use_captcha_false" value="0"<?php if($setting['use_captcha'] == false) { echo ' checked'; } ?> />
88
			<input type="radio" name="use_captcha" id="use_captcha_false" value="0"<?php if($setting['use_captcha'] == false) { echo ' checked="checked"'; } ?> />
89 89
			<label for="use_captcha_false"><?php echo $TEXT['DISABLED']; ?></label>
90 90
		</td>
91 91
	</tr>
......
104 104
	<tr>
105 105
		<td class="setting_name"><?php echo $TEXT['HEADER']; ?>:</td>
106 106
		<td class="setting_value">
107
			<textarea name="header" style="width: 98%; height: 80px;"><?php echo ($setting['header']); ?></textarea>
107
			<textarea name="header" cols="80" rows="6" style="width: 98%; height: 80px;"><?php echo ($setting['header']); ?></textarea>
108 108
		</td>
109 109
	</tr>
110 110
	<tr>
111 111
		<td class="setting_name"><?php echo $TEXT['FIELD'].' '.$TEXT['LOOP']; ?>:</td>
112 112
		<td class="setting_value">
113
			<textarea name="field_loop" style="width: 98%; height: 80px;"><?php echo ($setting['field_loop']); ?></textarea>
113
			<textarea name="field_loop" cols="80" rows="6" style="width: 98%; height: 80px;"><?php echo ($setting['field_loop']); ?></textarea>
114 114
		</td>
115 115
	</tr>
116 116
	<tr>
117 117
		<td class="setting_name"><?php echo $TEXT['FOOTER']; ?>:</td>
118 118
		<td class="setting_value">
119
			<textarea name="footer" style="width: 98%; height: 80px;"><?php echo str_replace($raw, $friendly, ($setting['footer'])); ?></textarea>
119
			<textarea name="footer" cols="80" rows="6" style="width: 98%; height: 80px;"><?php echo str_replace($raw, $friendly, ($setting['footer'])); ?></textarea>
120 120
		</td>
121 121
	</tr>
122 122
</table>	
......
213 213
	<tr>
214 214
		<td class="setting_name"><?php echo $TEXT['EMAIL'].' '.$TEXT['TEXT']; ?>:</td>
215 215
		<td class="setting_value">
216
			<textarea name="success_email_text" style="width: 98%; height: 80px;"><?php echo str_replace($raw, $friendly, ($setting['success_email_text'])); ?></textarea>
216
			<textarea name="success_email_text" cols="80" rows="1" style="width: 98%; height: 80px;"><?php echo str_replace($raw, $friendly, ($setting['success_email_text'])); ?></textarea>
217 217
		</td>
218 218
	</tr>
219 219
	<tr>
......
229 229
					continue;
230 230
				$mail_pagename = $mail_page['menu_title'];		
231 231
				$success_page = $mail_page['page_id'];
232
				echo $success_page.':'.$setting['success_page'].':';
232
			  //	echo $success_page.':'.$setting['success_page'].':'; not vailde
233 233
				if($setting['success_page'] == $success_page) {
234
					$selected = ' selected';
234
					$selected = ' selected="selected"';
235 235
				} else { 
236 236
					$selected = '';
237 237
				}
......
246 246
<table cellpadding="0" cellspacing="0" border="0" width="100%">
247 247
	<tr>
248 248
		<td align="left">
249
			<input name="save" type="submit" value="<?php echo $TEXT['SAVE']; ?>" style="width: 100px; margin-top: 5px;"></form>
249
			<input name="save" type="submit" value="<?php echo $TEXT['SAVE']; ?>" style="width: 100px; margin-top: 5px;">
250 250
		</td>
251 251
		<td align="right">
252 252
			<input type="button" value="<?php echo $TEXT['CANCEL']; ?>" onclick="javascript: window.location = '<?php echo ADMIN_URL; ?>/pages/modify.php?page_id=<?php echo $page_id; ?>';" style="width: 100px; margin-top: 5px;" />
253 253
		</td>
254 254
	</tr>
255 255
</table>
256

  
256
</form>
257 257
<?php
258 258

  
259 259
// Print admin footer

Also available in: Unified diff