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:

trunk/CHANGELOG
12 12

  
13 13
------------------------------------- 2.8.0 -------------------------------------
14 14
15-July 2009 Matthias Gallas
15
#	Fixed some validiation bugs in core and different modules (Thanks to luisehahne)
15 16
#	fixed display issue of jscalendar in news modul (Thanks to Aldus)
16 17
!	changed modules/admin.php to also make use of backend theme templates
17 18
!	changed in class_login.php mktime() to time()
trunk/wb/admin/pages/index.php
335 335
									'LINK_COLOR' => '000000',
336 336
									'CURSOR' => 'default',
337 337
									'NAME' => $admin_group_name['name'],
338
									'CHECKED' => ' checked'
338
									'CHECKED' => ' checked="checked"'
339 339
									)
340 340
							);
341 341
	$template->parse('group_list', 'group_list_block', true);
......
384 384
									'LINK_COLOR' => '000000',
385 385
									'CURSOR' => 'default',
386 386
									'NAME' => $admin_group_name['name'],
387
									'CHECKED' => ' checked'
387
									'CHECKED' => ' checked="checked"'
388 388
									)
389 389
							);
390 390
	$template->parse('group_list2', 'group_list_block2', true);
trunk/wb/framework/module.functions.php
80 80
			?>
81 81
			<form name="edit_module_file" action="<?php echo WB_URL .'/modules/edit_module_files.php?page_id='.$page_id;?>" 
82 82
				method="post" style="margin: 0; align:right;">
83
				<input type="hidden" name="page_id" value="<?php echo $page_id; ?>">
84
				<input type="hidden" name="section_id" value="<?php echo $section_id; ?>">
85
				<input type="hidden" name="mod_dir" value="<?php echo $mod_dir; ?>">
86
				<input type="hidden" name="edit_file" value="<?php echo ($frontend_css) ?'frontend.css' : 'backend.css';?>">
87
				<input type="hidden" name="action" value="edit">
88
				<input type="submit" value="<?php echo $edit_css_caption;?>" class="mod_<?php echo $mod_dir;?>_edit_css">
83
				<input type="hidden" name="page_id" value="<?php echo $page_id; ?>" />
84
				<input type="hidden" name="section_id" value="<?php echo $section_id; ?>" />
85
				<input type="hidden" name="mod_dir" value="<?php echo $mod_dir; ?>" />
86
				<input type="hidden" name="edit_file" value="<?php echo ($frontend_css) ?'frontend.css' : 'backend.css';?>" />
87
				<input type="hidden" name="action" value="edit" />
88
				<input type="submit" value="<?php echo $edit_css_caption;?>" class="mod_<?php echo $mod_dir;?>_edit_css" />
89 89
			</form>
90 90
			<?php
91 91
    }
......
110 110
		if(mod_file_exists($mod_dir, $toggle_file)) {
111 111
			?>
112 112
			<form name="toggle_module_file" action="<?php echo WB_URL .'/modules/edit_module_files.php?page_id='.$page_id;?>" method="post" style="margin: 0; align:right;">
113
				<input type="hidden" name="page_id" value="<?php echo $page_id; ?>">
114
				<input type="hidden" name="section_id" value="<?php echo $section_id; ?>">
115
				<input type="hidden" name="mod_dir" value="<?php echo $mod_dir; ?>">
116
				<input type="hidden" name="edit_file" value="<?php echo $toggle_file; ?>">
117
				<input type="hidden" name="action" value="edit">
118
				<input type="submit" value="<?php echo ucwords($toggle_file);?>" class="mod_<?php echo $mod_dir;?>_edit_css">
113
				<input type="hidden" name="page_id" value="<?php echo $page_id; ?>" />
114
				<input type="hidden" name="section_id" value="<?php echo $section_id; ?>" />
115
				<input type="hidden" name="mod_dir" value="<?php echo $mod_dir; ?>" />
116
				<input type="hidden" name="edit_file" value="<?php echo $toggle_file; ?>" />
117
				<input type="hidden" name="action" value="edit" />
118
				<input type="submit" value="<?php echo ucwords($toggle_file);?>" class="mod_<?php echo $mod_dir;?>_edit_css" />
119 119
			</form>
120 120
			<?php
121 121
		}
trunk/wb/install/index.php
302 302
				Server Operating System:
303 303
			</td>
304 304
			<td width="180">
305
				<input type="radio" tabindex="4" name="operating_system" id="operating_system_linux" onclick="document.getElementById('file_perms_box').style.display = 'block';" value="linux"<?php if(!isset($_SESSION['operating_system']) OR $_SESSION['operating_system'] == 'linux') { echo ' checked'; } ?> />
305
				<input type="radio" tabindex="4" name="operating_system" id="operating_system_linux" onclick="document.getElementById('file_perms_box').style.display = 'block';" value="linux"<?php if(!isset($_SESSION['operating_system']) OR $_SESSION['operating_system'] == 'linux') { echo ' checked="checked"'; } ?> />
306 306
				<font style="cursor: pointer;" onclick="javascript: change_os('linux');">Linux/Unix based</font>
307 307
				<br />
308
				<input type="radio" tabindex="5" name="operating_system" id="operating_system_windows" onclick="document.getElementById('file_perms_box').style.display = 'none';" value="windows"<?php if(isset($_SESSION['operating_system']) AND $_SESSION['operating_system'] == 'windows') { echo ' checked'; } ?> />
308
				<input type="radio" tabindex="5" name="operating_system" id="operating_system_windows" onclick="document.getElementById('file_perms_box').style.display = 'none';" value="windows"<?php if(isset($_SESSION['operating_system']) AND $_SESSION['operating_system'] == 'windows') { echo ' checked="checked"'; } ?> />
309 309
				<font style="cursor: pointer;" onclick="javascript: change_os('windows');">Windows</font>
310 310
			</td>
311 311
			<td>
......
353 353
			</td>
354 354
			<td>&nbsp;</td>
355 355
			<td colspan="2">
356
				<input type="checkbox" tabindex="12" name="install_tables" id="install_tables" value="true"<?php if(!isset($_SESSION['install_tables'])) { echo ' checked'; } elseif($_SESSION['install_tables'] == 'true') { echo ' checked'; } ?> />
356
				<input type="checkbox" tabindex="12" name="install_tables" id="install_tables" value="true"<?php if(!isset($_SESSION['install_tables'])) { echo ' checked="checked"'; } elseif($_SESSION['install_tables'] == 'true') { echo ' checked="checked"'; } ?> />
357 357
				<label for="install_tables" style="color: #666666;">Install Tables</label>
358 358
				<br />
359 359
				<span style="font-size: 10px; color: #666666;">(Please note: May remove existing tables and data)</span></td>		
trunk/wb/modules/droplets/tool.php
39 39
//removes empty entries from the table so they will not be displayed
40 40
$database->query("DELETE FROM ".TABLE_PREFIX."mod_droplets WHERE name=''");
41 41
?>
42
<style type="text/css">
43
a.tooltip span {display:none; margin-left:14px; width:430px;}
44
a.tooltip:hover span{display:inline; position:absolute; padding:5px; border:1px solid #000000; background:#ffffff; color:#000000;}
45
</style>
46 42

  
47 43
<br />
48 44
<table cellpadding="0" cellspacing="0" border="0" width="100%">
......
71 67
if($num_droplets > 0) {
72 68
	?>
73 69
	<table class="row_a" border="0" cellspacing="0" cellpadding="3" width="100%">
74
	<tr>
75
		<thead>
70
	<thead>
71
		<tr>
76 72
			<td width="3%"></td>
77 73
			<td width="21%"><?php echo $TEXT['NAME']; ?></td>
78 74
			<td width="68%"><?php echo $TEXT['DESCRIPTION']; ?></td>
79
			<td width="4%"><?php echo $TEXT['ACTIVE']; ?></td>  
75
			<td width="4%"><?php echo $TEXT['ACTIVE']; ?></td>
80 76
			<td width="3%"></td>
81
		</thead>
82
	</tr>
77
		</tr>
78
	</thead>
83 79
	<?php
84 80
	$row = 'a';
85 81
	while($droplet = $query_droplets->fetchRow()) {
......
102 98
		$comments = '<span>'.$comments.'</span>';
103 99
		?>
104 100
		
105
		<tr class="row_<?php echo $row; ?>" height="20">
101
		<tr class="row_<?php echo $row; ?>" >
106 102
			<td >
107 103
				<a href="<?php echo WB_URL; ?>/modules/droplets/modify_droplet.php?droplet_id=<?php echo $droplet['id']?>" title="<?php echo $TEXT['MODIFY']; ?>">
108 104
					<img src="<?php echo THEME_URL; ?>/images/modify_16.png" border="0" alt="Modify" /> 
trunk/wb/modules/droplets/modify_droplet.php
62 62
<br />
63 63
<form name="modify" action="<?php echo WB_URL; ?>/modules/droplets/save_droplet.php" method="post" style="margin: 0;">
64 64
<input type="hidden" name="data_codepress" value="" />
65
<input type="hidden" name="droplet_id" value="<?php echo $droplet_id; ?>">
66
<input type="hidden" name="show_wysiwyg" value="<?php echo $fetch_content['show_wysiwyg']; ?>">
65
<input type="hidden" name="droplet_id" value="<?php echo $droplet_id; ?>" />
66
<input type="hidden" name="show_wysiwyg" value="<?php echo $fetch_content['show_wysiwyg']; ?>" />
67 67

  
68 68
<table class="row_a" cellpadding="4" cellspacing="0" border="0" width="100%">
69 69
		<tr>
......
85 85
			<?php echo $TEXT['ACTIVE']; ?>:
86 86
		</td>
87 87
		<td>	
88
			<input type="radio" name="active" id="active_true" value="1" <?php if($fetch_content['active'] == 1) { echo ' checked'; } ?> />
88
			<input type="radio" name="active" id="active_true" value="1" <?php if($fetch_content['active'] == 1) { echo ' checked="checked"'; } ?> />
89 89
			<a href="#" onclick="javascript: document.getElementById('active_true').checked = true;">
90 90
			<label><?php echo $TEXT['YES']; ?></label>
91 91
			</a>
92
			<input type="radio" name="active" id="active_false" value="0" <?php if($fetch_content['active'] == 0) { echo ' checked'; } ?> />
92
			<input type="radio" name="active" id="active_false" value="0" <?php if($fetch_content['active'] == 0) { echo ' checked="checked"'; } ?> />
93 93
			<a href="#" onclick="javascript: document.getElementById('active_false').checked = true;">
94 94
			<label><?php echo $TEXT['NO']; ?></label>
95 95
			</a>
......
105 105
		</td>
106 106
		<td> 
107 107
			<?php echo $DR_TEXT['ADMIN_EDIT']; ?>&nbsp;   	
108
			<input type="radio" name="admin_edit" id="admin_edit_true" value="1" <?php if($fetch_content['admin_edit'] == 1) { echo ' checked'; } ?> />
108
			<input type="radio" name="admin_edit" id="admin_edit_true" value="1" <?php if($fetch_content['admin_edit'] == 1) { echo ' checked="checked"'; } ?> />
109 109
			<a href="#" onclick="javascript: document.getElementById('admin_edit_true').checked = true;">
110 110
			<label><?php echo $TEXT['YES']; ?></label>
111 111
			</a>
112
			<input type="radio" name="admin_edit" id="admin_edit_false" value="0" <?php if($fetch_content['admin_edit'] == 0) { echo ' checked'; } ?> />
112
			<input type="radio" name="admin_edit" id="admin_edit_false" value="0" <?php if($fetch_content['admin_edit'] == 0) { echo ' checked="checked"'; } ?> />
113 113
			<a href="#" onclick="javascript: document.getElementById('admin_edit_false').checked = true;">
114 114
			<label><?php echo $TEXT['NO']; ?></label>
115 115
			</a>
116 116
			&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
117 117
			<?php echo $DR_TEXT['ADMIN_VIEW']; ?>:
118
			<input type="radio" name="admin_view" id="admin_view_true" value="1" <?php if($fetch_content['admin_view'] == 1) { echo ' checked'; } ?> />
118
			<input type="radio" name="admin_view" id="admin_view_true" value="1" <?php if($fetch_content['admin_view'] == 1) { echo ' checked="checked"'; } ?> />
119 119
			<a href="#" onclick="javascript: document.getElementById('admin_view_true').checked = true;">
120 120
			<label><?php echo $TEXT['YES']; ?></label>
121 121
			</a>
122
			<input type="radio" name="admin_view" id="admin_view_false" value="0" <?php if($fetch_content['admin_view'] == 0) { echo ' checked'; } ?> />
122
			<input type="radio" name="admin_view" id="admin_view_false" value="0" <?php if($fetch_content['admin_view'] == 0) { echo ' checked="checked"'; } ?> />
123 123
			<a href="#" onclick="javascript: document.getElementById('admin_view_false').checked = true;">
124 124
			<label><?php echo $TEXT['NO']; ?></label>
125 125
			</a>
......
130 130
?>
131 131
	<tr>
132 132
		<td valign="top" class="setting_name" width="60px"><?php echo $TEXT['CODE']; ?>:</td>
133
		<td ><textarea name="savecontent" id ="contentedit" style="width: 98%; height: 450px;" wrap="off"><?php echo $content; ?></textarea>&nbsp;
133
		<td ><textarea name="savecontent" id ="contentedit" style="width: 98%; height: 450px;" rows="50" cols="120"><?php echo $content; ?></textarea>&nbsp;
134 134
		</td>
135 135
	</tr>
136 136
	<tr>
......
140 140
	<tr>
141 141
		<td valign="top" class="setting_name" width="60px"><?php echo $TEXT['COMMENTS']; ?>:</td>
142 142
		<td>
143
			<textarea name="comments" style="width: 98%; height: 100px;"><?php echo stripslashes($fetch_content['comments']); ?></textarea>
143
			<textarea name="comments" style="width: 98%; height: 100px;" rows="50" cols="120"><?php echo stripslashes($fetch_content['comments']); ?></textarea>
144 144
		</td>
145 145
	</tr>
146 146
	<tr>
......
160 160
	<?php
161 161
}
162 162
?>
163
			</form>
163

  
164 164
		</td>
165 165
		<td align="right">
166 166
			<button class="cancel" type="button" onclick="javascript: window.location = '<?php echo $module_edit_link; ?>';"><?php echo $TEXT['CANCEL']; ?></button>
167 167
		</td>
168 168
	</tr>
169 169
</table>
170

  
170
</form>
171 171
<?php
172 172

  
173 173
// Print admin footer
trunk/wb/modules/droplets/backend.css
23 23
}
24 24

  
25 25
.row_om_over   { background: #ffffe0; border: outset 1px #679b38 }
26
a.tooltip span {display:none; margin-left:14px; width:430px;}
27
a.tooltip:hover span{display:inline; position:absolute; padding:5px; border:1px solid #000000; background:#ffffff; color:#000000;}
trunk/wb/modules/edit_module_files.php
125 125
		// output content of module file to textareas
126 126
	?>
127 127
		<form name="edit_module_file" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post" style="margin: 0;">
128
	  	<input type="hidden" name="page_id" value="<?php echo $page_id; ?>">
129
	  	<input type="hidden" name="section_id" value="<?php echo $section_id; ?>">
130
	  	<input type="hidden" name="mod_dir" value="<?php echo $mod_dir; ?>">
128
	  	<input type="hidden" name="page_id" value="<?php echo $page_id; ?>" />
129
	  	<input type="hidden" name="section_id" value="<?php echo $section_id; ?>" />
130
	  	<input type="hidden" name="mod_dir" value="<?php echo $mod_dir; ?>" />
131 131
		<input type="hidden" name="edit_file" value="<?php echo $css_file; ?>" />
132
	  	<input type="hidden" name="action" value="save">
132
	  	<input type="hidden" name="action" value="save" />
133 133
		<textarea id="code_area" name="css_data" cols="115" rows="25" wrap="VIRTUAL" style="margin:2px;"><?php
134 134
			echo htmlspecialchars($css_content); ?>
135 135
		</textarea>
trunk/wb/modules/form/modify_field.php
41 41
// Include WB admin wrapper script
42 42
require(WB_PATH.'/modules/admin.php');
43 43

  
44
//overwrite php.ini on Apache servers for valid SESSION ID Separator
45
if(function_exists('ini_set')) {
46
	ini_set('arg_separator.output', '&amp;');
47
}
48

  
44 49
// Get header and footer
45 50
$query_content = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_form_fields WHERE field_id = '$field_id'");
46 51
$form = $query_content->fetchRow();
......
56 61

  
57 62
<form name="modify" action="<?php echo WB_URL; ?>/modules/form/save_field.php" method="post" style="margin: 0;">
58 63

  
59
<input type="hidden" name="section_id" value="<?php echo $section_id; ?>">
60
<input type="hidden" name="page_id" value="<?php echo $page_id; ?>">
61
<input type="hidden" name="field_id" value="<?php echo $field_id; ?>">
64
<input type="hidden" name="section_id" value="<?php echo $section_id; ?>" />
65
<input type="hidden" name="page_id" value="<?php echo $page_id; ?>" />
66
<input type="hidden" name="field_id" value="<?php echo $field_id; ?>" />
62 67

  
63 68
<table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%">
64 69
	<tr>
......
75 80
		<td>
76 81
			<select name="type" style="width: 98%;">
77 82
				<option value=""><?php echo $TEXT['PLEASE_SELECT']; ?>...</option>
78
				<option value="heading"<?php if($type == 'heading') { echo ' selected'; } ?>><?php echo $TEXT['HEADING']; ?></option>
79
				<option value="textfield"<?php if($type == 'textfield') { echo ' selected'; } ?>><?php echo $TEXT['SHORT'].' '.$TEXT['TEXT']; ?> (Textfield)</option>
80
				<option value="textarea"<?php if($type == 'textarea') { echo ' selected'; } ?>><?php echo $TEXT['LONG'].' '.$TEXT['TEXT']; ?> (Textarea)</option>
81
				<option value="select"<?php if($type == 'select') { echo ' selected'; } ?>><?php echo $TEXT['SELECT_BOX']; ?></option>
82
				<option value="checkbox"<?php if($type == 'checkbox') { echo ' selected'; } ?>><?php echo $TEXT['CHECKBOX_GROUP']; ?></option>
83
				<option value="radio"<?php if($type == 'radio') { echo ' selected'; } ?>><?php echo $TEXT['RADIO_BUTTON_GROUP']; ?></option>
84
				<option value="email"<?php if($type == 'email') { echo ' selected'; } ?>><?php echo $TEXT['EMAIL_ADDRESS']; ?></option>
83
				<option value="heading"<?php if($type == 'heading') { echo ' selected="selected"'; } ?>><?php echo $TEXT['HEADING']; ?></option>
84
				<option value="textfield"<?php if($type == 'textfield') { echo ' selected="selected"'; } ?>><?php echo $TEXT['SHORT'].' '.$TEXT['TEXT']; ?> (Textfield)</option>
85
				<option value="textarea"<?php if($type == 'textarea') { echo ' selected="selected"'; } ?>><?php echo $TEXT['LONG'].' '.$TEXT['TEXT']; ?> (Textarea)</option>
86
				<option value="select"<?php if($type == 'select') { echo ' selected="selected"'; } ?>><?php echo $TEXT['SELECT_BOX']; ?></option>
87
				<option value="checkbox"<?php if($type == 'checkbox') { echo ' selected="selected"'; } ?>><?php echo $TEXT['CHECKBOX_GROUP']; ?></option>
88
				<option value="radio"<?php if($type == 'radio') { echo ' selected="selected"'; } ?>><?php echo $TEXT['RADIO_BUTTON_GROUP']; ?></option>
89
				<option value="email"<?php if($type == 'email') { echo ' selected="selected"'; } ?>><?php echo $TEXT['EMAIL_ADDRESS']; ?></option>
85 90
			</select>
86 91
		</td>
87 92
	</tr>
......
162 167
	<tr>
163 168
		<td><?php echo $TEXT['ALLOW_MULTIPLE_SELECTIONS']; ?>:</td>
164 169
		<td>
165
			<input type="radio" name="multiselect" id="multiselect_true" value="multiple" <?php if($form['extra'][1] == 'multiple') { echo ' checked'; } ?> />
170
			<input type="radio" name="multiselect" id="multiselect_true" value="multiple" <?php if($form['extra'][1] == 'multiple') { echo ' checked="checked"'; } ?> />
166 171
			<a href="#" onclick="javascript: document.getElementById('multiselect_true').checked = true;">
167 172
			<?php echo $TEXT['YES']; ?>
168 173
			</a>
169 174
			&nbsp;
170
			<input type="radio" name="multiselect" id="multiselect_false" value="" <?php if($form['extra'][1] == '') { echo ' checked'; } ?> />
175
			<input type="radio" name="multiselect" id="multiselect_false" value="" <?php if($form['extra'][1] == '') { echo ' checked="checked"'; } ?> />
171 176
			<a href="#" onclick="javascript: document.getElementById('multiselect_false').checked = true;">
172 177
			<?php echo $TEXT['NO']; ?>
173 178
			</a>
......
186 191
	<tr>
187 192
		<td><?php echo $TEXT['REQUIRED']; ?>:</td>
188 193
		<td>
189
			<input type="radio" name="required" id="required_true" value="1" <?php if($form['required'] == 1) { echo ' checked'; } ?> />
194
			<input type="radio" name="required" id="required_true" value="1" <?php if($form['required'] == 1) { echo ' checked="checked"'; } ?> />
190 195
			<a href="#" onclick="javascript: document.getElementById('required_true').checked = true;">
191 196
			<?php echo $TEXT['YES']; ?>
192 197
			</a>
193 198
			&nbsp;
194
			<input type="radio" name="required" id="required_false" value="0" <?php if($form['required'] == 0) { echo ' checked'; } ?> />
199
			<input type="radio" name="required" id="required_false" value="0" <?php if($form['required'] == 0) { echo ' checked="checked"'; } ?> />
195 200
			<a href="#" onclick="javascript: document.getElementById('required_false').checked = true;">
196 201
			<?php echo $TEXT['NO']; ?>
197 202
			</a>
......
203 208
<table cellpadding="0" cellspacing="0" border="0" width="100%">
204 209
	<tr>
205 210
		<td align="left">
206
			<input name="save" type="submit" value="<?php echo $TEXT['SAVE']; ?>" style="width: 100px; margin-top: 5px;"></form>
211
			<input name="save" type="submit" value="<?php echo $TEXT['SAVE']; ?>" style="width: 100px; margin-top: 5px;" />
207 212
		</td>
208 213
		<?php
209 214
		// added by John Maats, PCWacht, 12 januar 2006
210 215
		if ($type<>'none') {
211 216
		?>
212 217
		<td align="center">
213
			<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: 200px; margin-top: 5px;" />
218
			<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: 200px; margin-top: 5px;" />
214 219
		</td>
215 220
		<?php } 
216 221
		// end addition
......
220 225
		</td>
221 226
	</tr>
222 227
</table>
223

  
228
</form>
224 229
<?php
225 230

  
226 231
// Print admin footer
trunk/wb/modules/form/add_field.php
33 33
// Include WB admin wrapper script
34 34
require(WB_PATH.'/modules/admin.php');
35 35

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

  
36 41
// Include the ordering class
37 42
require(WB_PATH.'/framework/class.order.php');
38 43
// Get new order
......
47 52

  
48 53
// Say that a new record has been added, then redirect to modify page
49 54
if($database->is_error()) {
50
	$admin->print_error($database->get_error(), WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&section_id='.$section_id.'&field_id='.$field_id);
55
	$admin->print_error($database->get_error(), WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&amp;section_id='.$section_id.'&amp;field_id='.$field_id);
51 56
} else {
52
	$admin->print_success($TEXT['SUCCESS'], WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&section_id='.$section_id.'&field_id='.$field_id);
57
	$admin->print_success($TEXT['SUCCESS'], WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&amp;section_id='.$section_id.'&amp;field_id='.$field_id);
53 58
}
54 59

  
55 60
// Print admin footer
trunk/wb/modules/form/save_field.php
42 42
$update_when_modified = true; // Tells script to update when this page was last updated
43 43
require(WB_PATH.'/modules/admin.php');
44 44

  
45
//overwrite php.ini on Apache servers for valid SESSION ID Separator
46
if(function_exists('ini_set')) {
47
	ini_set('arg_separator.output', '&amp;');
48
}
49

  
45 50
// Validate all fields
46 51
if($admin->get_post('title') == '' OR $admin->get_post('type') == '') {
47
	$admin->print_error($MESSAGE['GENERIC']['FILL_IN_ALL'], WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&section_id='.$section_id.'&field_id='.$field_id);
52
	$admin->print_error($MESSAGE['GENERIC']['FILL_IN_ALL'], WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&amp;section_id='.$section_id.'&amp;field_id='.$field_id);
48 53
} else {
49 54
	$title = $admin->add_slashes($admin->get_post('title'));
50 55
	$type = $admin->add_slashes($admin->get_post('type'));
......
93 98

  
94 99
// Check if there is a db error, otherwise say successful
95 100
if($database->is_error()) {
96
	$admin->print_error($database->get_error(), WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&section_id='.$section_id.'&field_id='.$field_id);
101
	$admin->print_error($database->get_error(), WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&amp;section_id='.$section_id.'&amp;field_id='.$field_id);
97 102
} else {
98
	$admin->print_success($TEXT['SUCCESS'], WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&section_id='.$section_id.'&field_id='.$field_id);
103
	$admin->print_success($TEXT['SUCCESS'], WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&amp;section_id='.$section_id.'&amp;field_id='.$field_id);
99 104
}
100 105

  
101 106
// Print admin footer
trunk/wb/modules/form/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
trunk/wb/modules/form/view.php
137 137

  
138 138
?>
139 139
<form <?php echo ( ( (strlen($form_name) > 0) AND (false == $use_xhtml_strict) ) ? "name=\"".$form_name."\"" : ""); ?> action="<?php echo htmlspecialchars(strip_tags($_SERVER['PHP_SELF'])); ?>#wb_<?PHP echo $section_id;?>" method="post">
140
<div><input type="hidden" name="submission_id" value="<?php echo $_SESSION['form_submission_id']; ?>" /></div>
140
<div>
141
<input type="hidden" name="submission_id" value="<?php echo $_SESSION['form_submission_id']; ?>" />
142
</div>
141 143
<?php
142 144
if(ENABLED_ASP) { // first add some honeypot-fields
143 145
?>
144
<div><input type="hidden" name="submitted_when" value="<?php $t=time(); echo $t; $_SESSION['submitted_when']=$t; ?>" /></div>
146
<div>
147
<input type="hidden" name="submitted_when" value="<?php $t=time(); echo $t; $_SESSION['submitted_when']=$t; ?>" />
148
</div>
145 149
<p class="nixhier">
146 150
email address:
147 151
<label for="email">Leave this field email-address blank:</label>
trunk/wb/modules/form/view_submission.php
41 41
// Include WB admin wrapper script
42 42
require(WB_PATH.'/modules/admin.php');
43 43

  
44
//overwrite php.ini on Apache servers for valid SESSION ID Separator
45
if(function_exists('ini_set')) {
46
	ini_set('arg_separator.output', '&amp;');
47
}
48

  
44 49
// Get submission details
45 50
$query_content = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_form_submissions WHERE submission_id = '$submission_id'");
46 51
$submission = $query_content->fetchRow();
......
84 89
<br />
85 90

  
86 91
<input type="button" value="<?php echo $TEXT['CLOSE']; ?>" onclick="javascript: window.location = '<?php echo ADMIN_URL; ?>/pages/modify.php?page_id=<?php echo $page_id; ?>';" style="width: 150px; margin-top: 5px;" />
87
<input type="button" value="<?php echo $TEXT['DELETE']; ?>" onclick="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/form/delete_submission.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&submission_id=<?php echo $submission_id; ?>');" style="width: 150px; margin-top: 5px;" />
92
<input type="button" value="<?php echo $TEXT['DELETE']; ?>" onclick="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/form/delete_submission.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&submission_id=<?php echo $submission_id; ?>');" style="width: 150px; margin-top: 5px;" />
88 93
<?php
89 94

  
90 95
// Print admin footer
trunk/wb/modules/form/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>
......
61 66
	<?php
62 67
	while($field = $query_fields->fetchRow()) {
63 68
		?>
64
		<tr class="row_<?php echo $row; ?>" height="20">
69
		<tr class="row_<?php echo $row; ?>">
65 70
			<td width="20" style="padding-left: 5px;">
66
				<a href="<?php echo WB_URL; ?>/modules/form/modify_field.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&field_id=<?php echo $field['field_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>">
71
				<a href="<?php echo WB_URL; ?>/modules/form/modify_field.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&amp;field_id=<?php echo $field['field_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>">
67 72
					<img src="<?php echo THEME_URL; ?>/images/modify_16.png" border="0" alt="^" />
68 73
				</a>
69 74
			</td>		
70 75
			<td>
71
				<a href="<?php echo WB_URL; ?>/modules/form/modify_field.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&field_id=<?php echo $field['field_id']; ?>">
76
				<a href="<?php echo WB_URL; ?>/modules/form/modify_field.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&amp;field_id=<?php echo $field['field_id']; ?>">
72 77
					<?php echo $field['title']; ?>
73 78
				</a>
74 79
			</td>
......
109 114
			</td>
110 115
			<td width="20">
111 116
			<?php if($field['position'] != 1) { ?>
112
				<a href="<?php echo WB_URL; ?>/modules/form/move_up.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&field_id=<?php echo $field['field_id']; ?>" title="<?php echo $TEXT['MOVE_UP']; ?>">
117
				<a href="<?php echo WB_URL; ?>/modules/form/move_up.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&amp;field_id=<?php echo $field['field_id']; ?>" title="<?php echo $TEXT['MOVE_UP']; ?>">
113 118
					<img src="<?php echo THEME_URL; ?>/images/up_16.png" border="0" alt="^" />
114 119
				</a>
115 120
			<?php } ?>
116 121
			</td>
117 122
			<td width="20">
118 123
			<?php if($field['position'] != $num_fields) { ?>
119
				<a href="<?php echo WB_URL; ?>/modules/form/move_down.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&field_id=<?php echo $field['field_id']; ?>" title="<?php echo $TEXT['MOVE_DOWN']; ?>">
124
				<a href="<?php echo WB_URL; ?>/modules/form/move_down.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&amp;field_id=<?php echo $field['field_id']; ?>" title="<?php echo $TEXT['MOVE_DOWN']; ?>">
120 125
					<img src="<?php echo THEME_URL; ?>/images/down_16.png" border="0" alt="v" />
121 126
				</a>
122 127
			<?php } ?>
123 128
			</td>
124 129
			<td width="20">
125
				<a href="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/form/delete_field.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&field_id=<?php echo $field['field_id']; ?>');" title="<?php echo $TEXT['DELETE']; ?>">
130
				<a href="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/form/delete_field.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&amp;field_id=<?php echo $field['field_id']; ?>');" title="<?php echo $TEXT['DELETE']; ?>">
126 131
					<img src="<?php echo THEME_URL; ?>/images/delete_16.png" border="0" alt="X" />
127 132
				</a>
128 133
			</td>
......
160 165
	$row = 'a';
161 166
	while($submission = $query_submissions->fetchRow()) {
162 167
		?>
163
		<tr class="row_<?php echo $row; ?>" height="20">
168
		<tr class="row_<?php echo $row; ?>">
164 169
			<td width="20" style="padding-left: 5px;">
165
				<a href="<?php echo WB_URL; ?>/modules/form/view_submission.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&submission_id=<?php echo $submission['submission_id']; ?>" title="<?php echo $TEXT['OPEN']; ?>">
170
				<a href="<?php echo WB_URL; ?>/modules/form/view_submission.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&submission_id=<?php echo $submission['submission_id']; ?>" title="<?php echo $TEXT['OPEN']; ?>">
166 171
					<img src="<?php echo THEME_URL; ?>/images/folder_16.png" alt="<?php echo $TEXT['OPEN']; ?>" border="0" />
167 172
				</a>
168 173
			</td>
169 174
			<td width="237"><?php echo $TEXT['SUBMISSION_ID'].': '.$submission['submission_id']; ?></td>
170 175
			<td><?php echo $TEXT['SUBMITTED'].': '.gmdate(TIME_FORMAT.', '.DATE_FORMAT, $submission['submitted_when']+TIMEZONE); ?></td>
171 176
			<td width="20">
172
				<a href="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/form/delete_submission.php?page_id=<?php echo $page_id; ?>&section_id=<?php echo $section_id; ?>&submission_id=<?php echo $submission['submission_id']; ?>');" title="<?php echo $TEXT['DELETE']; ?>">
177
				<a href="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/form/delete_submission.php?page_id=<?php echo $page_id; ?>&amp;section_id=<?php echo $section_id; ?>&submission_id=<?php echo $submission['submission_id']; ?>');" title="<?php echo $TEXT['DELETE']; ?>">
173 178
					<img src="<?php echo THEME_URL; ?>/images/delete_16.png" border="0" alt="X" />
174 179
				</a>
175 180
			</td>
......
190 195
}
191 196

  
192 197
?>
193

  
194
<br />
trunk/wb/modules/news/modify_settings.php
136 136
		<tr>
137 137
			<td class="setting_name"><?php echo $TEXT['CAPTCHA_VERIFICATION']; ?>:</td>
138 138
			<td>
139
				<input type="radio" name="use_captcha" id="use_captcha_true" value="1"<?php if($fetch_content['use_captcha'] == true) { echo ' checked'; } ?> />
139
				<input type="radio" name="use_captcha" id="use_captcha_true" value="1"<?php if($fetch_content['use_captcha'] == true) { echo ' checked="checked"'; } ?> />
140 140
				<label for="use_captcha_true"><?php echo $TEXT['ENABLED']; ?></label>
141
				<input type="radio" name="use_captcha" id="use_captcha_false" value="0"<?php if($fetch_content['use_captcha'] == false) { echo ' checked'; } ?> />
141
				<input type="radio" name="use_captcha" id="use_captcha_false" value="0"<?php if($fetch_content['use_captcha'] == false) { echo ' checked="checked"'; } ?> />
142 142
				<label for="use_captcha_false"><?php echo $TEXT['DISABLED']; ?></label>
143 143
			</td>
144 144
		</tr>

Also available in: Unified diff