Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 1068)
+++ trunk/CHANGELOG	(revision 1069)
@@ -12,6 +12,7 @@
 
 ------------------------------------- 2.8.0 -------------------------------------
 15-July 2009 Matthias Gallas
+#	Fixed some validiation bugs in core and different modules (Thanks to luisehahne)
 #	fixed display issue of jscalendar in news modul (Thanks to Aldus)
 !	changed modules/admin.php to also make use of backend theme templates
 !	changed in class_login.php mktime() to time()
Index: trunk/wb/admin/pages/index.php
===================================================================
--- trunk/wb/admin/pages/index.php	(revision 1068)
+++ trunk/wb/admin/pages/index.php	(revision 1069)
@@ -335,7 +335,7 @@
 									'LINK_COLOR' => '000000',
 									'CURSOR' => 'default',
 									'NAME' => $admin_group_name['name'],
-									'CHECKED' => ' checked'
+									'CHECKED' => ' checked="checked"'
 									)
 							);
 	$template->parse('group_list', 'group_list_block', true);
@@ -384,7 +384,7 @@
 									'LINK_COLOR' => '000000',
 									'CURSOR' => 'default',
 									'NAME' => $admin_group_name['name'],
-									'CHECKED' => ' checked'
+									'CHECKED' => ' checked="checked"'
 									)
 							);
 	$template->parse('group_list2', 'group_list_block2', true);
Index: trunk/wb/framework/module.functions.php
===================================================================
--- trunk/wb/framework/module.functions.php	(revision 1068)
+++ trunk/wb/framework/module.functions.php	(revision 1069)
@@ -80,12 +80,12 @@
 			?>
 			<form name="edit_module_file" action="<?php echo WB_URL .'/modules/edit_module_files.php?page_id='.$page_id;?>" 
 				method="post" style="margin: 0; align:right;">
-				<input type="hidden" name="page_id" value="<?php echo $page_id; ?>">
-				<input type="hidden" name="section_id" value="<?php echo $section_id; ?>">
-				<input type="hidden" name="mod_dir" value="<?php echo $mod_dir; ?>">
-				<input type="hidden" name="edit_file" value="<?php echo ($frontend_css) ?'frontend.css' : 'backend.css';?>">
-				<input type="hidden" name="action" value="edit">
-				<input type="submit" value="<?php echo $edit_css_caption;?>" class="mod_<?php echo $mod_dir;?>_edit_css">
+				<input type="hidden" name="page_id" value="<?php echo $page_id; ?>" />
+				<input type="hidden" name="section_id" value="<?php echo $section_id; ?>" />
+				<input type="hidden" name="mod_dir" value="<?php echo $mod_dir; ?>" />
+				<input type="hidden" name="edit_file" value="<?php echo ($frontend_css) ?'frontend.css' : 'backend.css';?>" />
+				<input type="hidden" name="action" value="edit" />
+				<input type="submit" value="<?php echo $edit_css_caption;?>" class="mod_<?php echo $mod_dir;?>_edit_css" />
 			</form>
 			<?php
     }
@@ -110,12 +110,12 @@
 		if(mod_file_exists($mod_dir, $toggle_file)) {
 			?>
 			<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;">
-				<input type="hidden" name="page_id" value="<?php echo $page_id; ?>">
-				<input type="hidden" name="section_id" value="<?php echo $section_id; ?>">
-				<input type="hidden" name="mod_dir" value="<?php echo $mod_dir; ?>">
-				<input type="hidden" name="edit_file" value="<?php echo $toggle_file; ?>">
-				<input type="hidden" name="action" value="edit">
-				<input type="submit" value="<?php echo ucwords($toggle_file);?>" class="mod_<?php echo $mod_dir;?>_edit_css">
+				<input type="hidden" name="page_id" value="<?php echo $page_id; ?>" />
+				<input type="hidden" name="section_id" value="<?php echo $section_id; ?>" />
+				<input type="hidden" name="mod_dir" value="<?php echo $mod_dir; ?>" />
+				<input type="hidden" name="edit_file" value="<?php echo $toggle_file; ?>" />
+				<input type="hidden" name="action" value="edit" />
+				<input type="submit" value="<?php echo ucwords($toggle_file);?>" class="mod_<?php echo $mod_dir;?>_edit_css" />
 			</form>
 			<?php
 		}
Index: trunk/wb/install/index.php
===================================================================
--- trunk/wb/install/index.php	(revision 1068)
+++ trunk/wb/install/index.php	(revision 1069)
@@ -302,10 +302,10 @@
 				Server Operating System:
 			</td>
 			<td width="180">
-				<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'; } ?> />
+				<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"'; } ?> />
 				<font style="cursor: pointer;" onclick="javascript: change_os('linux');">Linux/Unix based</font>
 				<br />
-				<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'; } ?> />
+				<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"'; } ?> />
 				<font style="cursor: pointer;" onclick="javascript: change_os('windows');">Windows</font>
 			</td>
 			<td>
@@ -353,7 +353,7 @@
 			</td>
 			<td>&nbsp;</td>
 			<td colspan="2">
-				<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'; } ?> />
+				<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"'; } ?> />
 				<label for="install_tables" style="color: #666666;">Install Tables</label>
 				<br />
 				<span style="font-size: 10px; color: #666666;">(Please note: May remove existing tables and data)</span></td>		
Index: trunk/wb/modules/droplets/tool.php
===================================================================
--- trunk/wb/modules/droplets/tool.php	(revision 1068)
+++ trunk/wb/modules/droplets/tool.php	(revision 1069)
@@ -39,10 +39,6 @@
 //removes empty entries from the table so they will not be displayed
 $database->query("DELETE FROM ".TABLE_PREFIX."mod_droplets WHERE name=''");
 ?>
-<style type="text/css">
-a.tooltip span {display:none; margin-left:14px; width:430px;}
-a.tooltip:hover span{display:inline; position:absolute; padding:5px; border:1px solid #000000; background:#ffffff; color:#000000;}
-</style>
 
 <br />
 <table cellpadding="0" cellspacing="0" border="0" width="100%">
@@ -71,15 +67,15 @@
 if($num_droplets > 0) {
 	?>
 	<table class="row_a" border="0" cellspacing="0" cellpadding="3" width="100%">
-	<tr>
-		<thead>
+	<thead>
+		<tr>
 			<td width="3%"></td>
 			<td width="21%"><?php echo $TEXT['NAME']; ?></td>
 			<td width="68%"><?php echo $TEXT['DESCRIPTION']; ?></td>
-			<td width="4%"><?php echo $TEXT['ACTIVE']; ?></td>  
+			<td width="4%"><?php echo $TEXT['ACTIVE']; ?></td>
 			<td width="3%"></td>
-		</thead>
-	</tr>
+		</tr>
+	</thead>
 	<?php
 	$row = 'a';
 	while($droplet = $query_droplets->fetchRow()) {
@@ -102,7 +98,7 @@
 		$comments = '<span>'.$comments.'</span>';
 		?>
 		
-		<tr class="row_<?php echo $row; ?>" height="20">
+		<tr class="row_<?php echo $row; ?>" >
 			<td >
 				<a href="<?php echo WB_URL; ?>/modules/droplets/modify_droplet.php?droplet_id=<?php echo $droplet['id']?>" title="<?php echo $TEXT['MODIFY']; ?>">
 					<img src="<?php echo THEME_URL; ?>/images/modify_16.png" border="0" alt="Modify" /> 
Index: trunk/wb/modules/droplets/modify_droplet.php
===================================================================
--- trunk/wb/modules/droplets/modify_droplet.php	(revision 1068)
+++ trunk/wb/modules/droplets/modify_droplet.php	(revision 1069)
@@ -62,8 +62,8 @@
 <br />
 <form name="modify" action="<?php echo WB_URL; ?>/modules/droplets/save_droplet.php" method="post" style="margin: 0;">
 <input type="hidden" name="data_codepress" value="" />
-<input type="hidden" name="droplet_id" value="<?php echo $droplet_id; ?>">
-<input type="hidden" name="show_wysiwyg" value="<?php echo $fetch_content['show_wysiwyg']; ?>">
+<input type="hidden" name="droplet_id" value="<?php echo $droplet_id; ?>" />
+<input type="hidden" name="show_wysiwyg" value="<?php echo $fetch_content['show_wysiwyg']; ?>" />
 
 <table class="row_a" cellpadding="4" cellspacing="0" border="0" width="100%">
 		<tr>
@@ -85,11 +85,11 @@
 			<?php echo $TEXT['ACTIVE']; ?>:
 		</td>
 		<td>	
-			<input type="radio" name="active" id="active_true" value="1" <?php if($fetch_content['active'] == 1) { echo ' checked'; } ?> />
+			<input type="radio" name="active" id="active_true" value="1" <?php if($fetch_content['active'] == 1) { echo ' checked="checked"'; } ?> />
 			<a href="#" onclick="javascript: document.getElementById('active_true').checked = true;">
 			<label><?php echo $TEXT['YES']; ?></label>
 			</a>
-			<input type="radio" name="active" id="active_false" value="0" <?php if($fetch_content['active'] == 0) { echo ' checked'; } ?> />
+			<input type="radio" name="active" id="active_false" value="0" <?php if($fetch_content['active'] == 0) { echo ' checked="checked"'; } ?> />
 			<a href="#" onclick="javascript: document.getElementById('active_false').checked = true;">
 			<label><?php echo $TEXT['NO']; ?></label>
 			</a>
@@ -105,21 +105,21 @@
 		</td>
 		<td> 
 			<?php echo $DR_TEXT['ADMIN_EDIT']; ?>&nbsp;   	
-			<input type="radio" name="admin_edit" id="admin_edit_true" value="1" <?php if($fetch_content['admin_edit'] == 1) { echo ' checked'; } ?> />
+			<input type="radio" name="admin_edit" id="admin_edit_true" value="1" <?php if($fetch_content['admin_edit'] == 1) { echo ' checked="checked"'; } ?> />
 			<a href="#" onclick="javascript: document.getElementById('admin_edit_true').checked = true;">
 			<label><?php echo $TEXT['YES']; ?></label>
 			</a>
-			<input type="radio" name="admin_edit" id="admin_edit_false" value="0" <?php if($fetch_content['admin_edit'] == 0) { echo ' checked'; } ?> />
+			<input type="radio" name="admin_edit" id="admin_edit_false" value="0" <?php if($fetch_content['admin_edit'] == 0) { echo ' checked="checked"'; } ?> />
 			<a href="#" onclick="javascript: document.getElementById('admin_edit_false').checked = true;">
 			<label><?php echo $TEXT['NO']; ?></label>
 			</a>
 			&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
 			<?php echo $DR_TEXT['ADMIN_VIEW']; ?>:
-			<input type="radio" name="admin_view" id="admin_view_true" value="1" <?php if($fetch_content['admin_view'] == 1) { echo ' checked'; } ?> />
+			<input type="radio" name="admin_view" id="admin_view_true" value="1" <?php if($fetch_content['admin_view'] == 1) { echo ' checked="checked"'; } ?> />
 			<a href="#" onclick="javascript: document.getElementById('admin_view_true').checked = true;">
 			<label><?php echo $TEXT['YES']; ?></label>
 			</a>
-			<input type="radio" name="admin_view" id="admin_view_false" value="0" <?php if($fetch_content['admin_view'] == 0) { echo ' checked'; } ?> />
+			<input type="radio" name="admin_view" id="admin_view_false" value="0" <?php if($fetch_content['admin_view'] == 0) { echo ' checked="checked"'; } ?> />
 			<a href="#" onclick="javascript: document.getElementById('admin_view_false').checked = true;">
 			<label><?php echo $TEXT['NO']; ?></label>
 			</a>
@@ -130,7 +130,7 @@
 ?>
 	<tr>
 		<td valign="top" class="setting_name" width="60px"><?php echo $TEXT['CODE']; ?>:</td>
-		<td ><textarea name="savecontent" id ="contentedit" style="width: 98%; height: 450px;" wrap="off"><?php echo $content; ?></textarea>&nbsp;
+		<td ><textarea name="savecontent" id ="contentedit" style="width: 98%; height: 450px;" rows="50" cols="120"><?php echo $content; ?></textarea>&nbsp;
 		</td>
 	</tr>
 	<tr>
@@ -140,7 +140,7 @@
 	<tr>
 		<td valign="top" class="setting_name" width="60px"><?php echo $TEXT['COMMENTS']; ?>:</td>
 		<td>
-			<textarea name="comments" style="width: 98%; height: 100px;"><?php echo stripslashes($fetch_content['comments']); ?></textarea>
+			<textarea name="comments" style="width: 98%; height: 100px;" rows="50" cols="120"><?php echo stripslashes($fetch_content['comments']); ?></textarea>
 		</td>
 	</tr>
 	<tr>
@@ -160,7 +160,7 @@
 	<?php
 }
 ?>
-			</form>
+
 		</td>
 		<td align="right">
 			<button class="cancel" type="button" onclick="javascript: window.location = '<?php echo $module_edit_link; ?>';"><?php echo $TEXT['CANCEL']; ?></button>
@@ -167,7 +167,7 @@
 		</td>
 	</tr>
 </table>
-
+</form>
 <?php
 
 // Print admin footer
Index: trunk/wb/modules/droplets/backend.css
===================================================================
--- trunk/wb/modules/droplets/backend.css	(revision 1068)
+++ trunk/wb/modules/droplets/backend.css	(revision 1069)
@@ -23,3 +23,5 @@
 }
 
 .row_om_over   { background: #ffffe0; border: outset 1px #679b38 }
+a.tooltip span {display:none; margin-left:14px; width:430px;}
+a.tooltip:hover span{display:inline; position:absolute; padding:5px; border:1px solid #000000; background:#ffffff; color:#000000;}
Index: trunk/wb/modules/edit_module_files.php
===================================================================
--- trunk/wb/modules/edit_module_files.php	(revision 1068)
+++ trunk/wb/modules/edit_module_files.php	(revision 1069)
@@ -125,11 +125,11 @@
 		// output content of module file to textareas
 	?>
 		<form name="edit_module_file" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post" style="margin: 0;">
-	  	<input type="hidden" name="page_id" value="<?php echo $page_id; ?>">
-	  	<input type="hidden" name="section_id" value="<?php echo $section_id; ?>">
-	  	<input type="hidden" name="mod_dir" value="<?php echo $mod_dir; ?>">
+	  	<input type="hidden" name="page_id" value="<?php echo $page_id; ?>" />
+	  	<input type="hidden" name="section_id" value="<?php echo $section_id; ?>" />
+	  	<input type="hidden" name="mod_dir" value="<?php echo $mod_dir; ?>" />
 		<input type="hidden" name="edit_file" value="<?php echo $css_file; ?>" />
-	  	<input type="hidden" name="action" value="save">
+	  	<input type="hidden" name="action" value="save" />
 		<textarea id="code_area" name="css_data" cols="115" rows="25" wrap="VIRTUAL" style="margin:2px;"><?php
 			echo htmlspecialchars($css_content); ?>
 		</textarea>
Index: trunk/wb/modules/form/modify_field.php
===================================================================
--- trunk/wb/modules/form/modify_field.php	(revision 1068)
+++ trunk/wb/modules/form/modify_field.php	(revision 1069)
@@ -41,6 +41,11 @@
 // Include WB admin wrapper script
 require(WB_PATH.'/modules/admin.php');
 
+//overwrite php.ini on Apache servers for valid SESSION ID Separator
+if(function_exists('ini_set')) {
+	ini_set('arg_separator.output', '&amp;');
+}
+
 // Get header and footer
 $query_content = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_form_fields WHERE field_id = '$field_id'");
 $form = $query_content->fetchRow();
@@ -56,9 +61,9 @@
 
 <form name="modify" action="<?php echo WB_URL; ?>/modules/form/save_field.php" method="post" style="margin: 0;">
 
-<input type="hidden" name="section_id" value="<?php echo $section_id; ?>">
-<input type="hidden" name="page_id" value="<?php echo $page_id; ?>">
-<input type="hidden" name="field_id" value="<?php echo $field_id; ?>">
+<input type="hidden" name="section_id" value="<?php echo $section_id; ?>" />
+<input type="hidden" name="page_id" value="<?php echo $page_id; ?>" />
+<input type="hidden" name="field_id" value="<?php echo $field_id; ?>" />
 
 <table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%">
 	<tr>
@@ -75,13 +80,13 @@
 		<td>
 			<select name="type" style="width: 98%;">
 				<option value=""><?php echo $TEXT['PLEASE_SELECT']; ?>...</option>
-				<option value="heading"<?php if($type == 'heading') { echo ' selected'; } ?>><?php echo $TEXT['HEADING']; ?></option>
-				<option value="textfield"<?php if($type == 'textfield') { echo ' selected'; } ?>><?php echo $TEXT['SHORT'].' '.$TEXT['TEXT']; ?> (Textfield)</option>
-				<option value="textarea"<?php if($type == 'textarea') { echo ' selected'; } ?>><?php echo $TEXT['LONG'].' '.$TEXT['TEXT']; ?> (Textarea)</option>
-				<option value="select"<?php if($type == 'select') { echo ' selected'; } ?>><?php echo $TEXT['SELECT_BOX']; ?></option>
-				<option value="checkbox"<?php if($type == 'checkbox') { echo ' selected'; } ?>><?php echo $TEXT['CHECKBOX_GROUP']; ?></option>
-				<option value="radio"<?php if($type == 'radio') { echo ' selected'; } ?>><?php echo $TEXT['RADIO_BUTTON_GROUP']; ?></option>
-				<option value="email"<?php if($type == 'email') { echo ' selected'; } ?>><?php echo $TEXT['EMAIL_ADDRESS']; ?></option>
+				<option value="heading"<?php if($type == 'heading') { echo ' selected="selected"'; } ?>><?php echo $TEXT['HEADING']; ?></option>
+				<option value="textfield"<?php if($type == 'textfield') { echo ' selected="selected"'; } ?>><?php echo $TEXT['SHORT'].' '.$TEXT['TEXT']; ?> (Textfield)</option>
+				<option value="textarea"<?php if($type == 'textarea') { echo ' selected="selected"'; } ?>><?php echo $TEXT['LONG'].' '.$TEXT['TEXT']; ?> (Textarea)</option>
+				<option value="select"<?php if($type == 'select') { echo ' selected="selected"'; } ?>><?php echo $TEXT['SELECT_BOX']; ?></option>
+				<option value="checkbox"<?php if($type == 'checkbox') { echo ' selected="selected"'; } ?>><?php echo $TEXT['CHECKBOX_GROUP']; ?></option>
+				<option value="radio"<?php if($type == 'radio') { echo ' selected="selected"'; } ?>><?php echo $TEXT['RADIO_BUTTON_GROUP']; ?></option>
+				<option value="email"<?php if($type == 'email') { echo ' selected="selected"'; } ?>><?php echo $TEXT['EMAIL_ADDRESS']; ?></option>
 			</select>
 		</td>
 	</tr>
@@ -162,12 +167,12 @@
 	<tr>
 		<td><?php echo $TEXT['ALLOW_MULTIPLE_SELECTIONS']; ?>:</td>
 		<td>
-			<input type="radio" name="multiselect" id="multiselect_true" value="multiple" <?php if($form['extra'][1] == 'multiple') { echo ' checked'; } ?> />
+			<input type="radio" name="multiselect" id="multiselect_true" value="multiple" <?php if($form['extra'][1] == 'multiple') { echo ' checked="checked"'; } ?> />
 			<a href="#" onclick="javascript: document.getElementById('multiselect_true').checked = true;">
 			<?php echo $TEXT['YES']; ?>
 			</a>
 			&nbsp;
-			<input type="radio" name="multiselect" id="multiselect_false" value="" <?php if($form['extra'][1] == '') { echo ' checked'; } ?> />
+			<input type="radio" name="multiselect" id="multiselect_false" value="" <?php if($form['extra'][1] == '') { echo ' checked="checked"'; } ?> />
 			<a href="#" onclick="javascript: document.getElementById('multiselect_false').checked = true;">
 			<?php echo $TEXT['NO']; ?>
 			</a>
@@ -186,12 +191,12 @@
 	<tr>
 		<td><?php echo $TEXT['REQUIRED']; ?>:</td>
 		<td>
-			<input type="radio" name="required" id="required_true" value="1" <?php if($form['required'] == 1) { echo ' checked'; } ?> />
+			<input type="radio" name="required" id="required_true" value="1" <?php if($form['required'] == 1) { echo ' checked="checked"'; } ?> />
 			<a href="#" onclick="javascript: document.getElementById('required_true').checked = true;">
 			<?php echo $TEXT['YES']; ?>
 			</a>
 			&nbsp;
-			<input type="radio" name="required" id="required_false" value="0" <?php if($form['required'] == 0) { echo ' checked'; } ?> />
+			<input type="radio" name="required" id="required_false" value="0" <?php if($form['required'] == 0) { echo ' checked="checked"'; } ?> />
 			<a href="#" onclick="javascript: document.getElementById('required_false').checked = true;">
 			<?php echo $TEXT['NO']; ?>
 			</a>
@@ -203,7 +208,7 @@
 <table cellpadding="0" cellspacing="0" border="0" width="100%">
 	<tr>
 		<td align="left">
-			<input name="save" type="submit" value="<?php echo $TEXT['SAVE']; ?>" style="width: 100px; margin-top: 5px;"></form>
+			<input name="save" type="submit" value="<?php echo $TEXT['SAVE']; ?>" style="width: 100px; margin-top: 5px;" />
 		</td>
 		<?php
 		// added by John Maats, PCWacht, 12 januar 2006
@@ -210,7 +215,7 @@
 		if ($type<>'none') {
 		?>
 		<td align="center">
-			<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;" />
+			<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;" />
 		</td>
 		<?php } 
 		// end addition
@@ -220,7 +225,7 @@
 		</td>
 	</tr>
 </table>
-
+</form>
 <?php
 
 // Print admin footer
Index: trunk/wb/modules/form/add_field.php
===================================================================
--- trunk/wb/modules/form/add_field.php	(revision 1068)
+++ trunk/wb/modules/form/add_field.php	(revision 1069)
@@ -33,6 +33,11 @@
 // Include WB admin wrapper script
 require(WB_PATH.'/modules/admin.php');
 
+//overwrite php.ini on Apache servers for valid SESSION ID Separator
+if(function_exists('ini_set')) {
+	ini_set('arg_separator.output', '&amp;');
+}
+
 // Include the ordering class
 require(WB_PATH.'/framework/class.order.php');
 // Get new order
@@ -47,9 +52,9 @@
 
 // Say that a new record has been added, then redirect to modify page
 if($database->is_error()) {
-	$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);
+	$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);
 } else {
-	$admin->print_success($TEXT['SUCCESS'], WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&section_id='.$section_id.'&field_id='.$field_id);
+	$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);
 }
 
 // Print admin footer
Index: trunk/wb/modules/form/save_field.php
===================================================================
--- trunk/wb/modules/form/save_field.php	(revision 1068)
+++ trunk/wb/modules/form/save_field.php	(revision 1069)
@@ -42,9 +42,14 @@
 $update_when_modified = true; // Tells script to update when this page was last updated
 require(WB_PATH.'/modules/admin.php');
 
+//overwrite php.ini on Apache servers for valid SESSION ID Separator
+if(function_exists('ini_set')) {
+	ini_set('arg_separator.output', '&amp;');
+}
+
 // Validate all fields
 if($admin->get_post('title') == '' OR $admin->get_post('type') == '') {
-	$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);
+	$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);
 } else {
 	$title = $admin->add_slashes($admin->get_post('title'));
 	$type = $admin->add_slashes($admin->get_post('type'));
@@ -93,9 +98,9 @@
 
 // Check if there is a db error, otherwise say successful
 if($database->is_error()) {
-	$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);
+	$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);
 } else {
-	$admin->print_success($TEXT['SUCCESS'], WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'&section_id='.$section_id.'&field_id='.$field_id);
+	$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);
 }
 
 // Print admin footer
Index: trunk/wb/modules/form/modify_settings.php
===================================================================
--- trunk/wb/modules/form/modify_settings.php	(revision 1068)
+++ trunk/wb/modules/form/modify_settings.php	(revision 1069)
@@ -73,8 +73,8 @@
 
 <form name="edit" action="<?php echo WB_URL; ?>/modules/form/save_settings.php" method="post" style="margin: 0;">
 
-<input type="hidden" name="page_id" value="<?php echo $page_id; ?>">
-<input type="hidden" name="section_id" value="<?php echo $section_id; ?>">
+<input type="hidden" name="page_id" value="<?php echo $page_id; ?>" />
+<input type="hidden" name="section_id" value="<?php echo $section_id; ?>" />
 
 <table class="row_a" cellpadding="2" cellspacing="0" border="0" width="100%">
 	<tr>
@@ -83,9 +83,9 @@
 	<tr>
 		<td class="setting_name"><?php echo $TEXT['CAPTCHA_VERIFICATION']; ?>:</td>
 		<td>
-			<input type="radio" name="use_captcha" id="use_captcha_true" value="1"<?php if($setting['use_captcha'] == true) { echo ' checked'; } ?> />
+			<input type="radio" name="use_captcha" id="use_captcha_true" value="1"<?php if($setting['use_captcha'] == true) { echo ' checked="checked"'; } ?> />
 			<label for="use_captcha_true"><?php echo $TEXT['ENABLED']; ?></label>
-			<input type="radio" name="use_captcha" id="use_captcha_false" value="0"<?php if($setting['use_captcha'] == false) { echo ' checked'; } ?> />
+			<input type="radio" name="use_captcha" id="use_captcha_false" value="0"<?php if($setting['use_captcha'] == false) { echo ' checked="checked"'; } ?> />
 			<label for="use_captcha_false"><?php echo $TEXT['DISABLED']; ?></label>
 		</td>
 	</tr>
@@ -104,19 +104,19 @@
 	<tr>
 		<td class="setting_name"><?php echo $TEXT['HEADER']; ?>:</td>
 		<td class="setting_value">
-			<textarea name="header" style="width: 98%; height: 80px;"><?php echo ($setting['header']); ?></textarea>
+			<textarea name="header" cols="80" rows="6" style="width: 98%; height: 80px;"><?php echo ($setting['header']); ?></textarea>
 		</td>
 	</tr>
 	<tr>
 		<td class="setting_name"><?php echo $TEXT['FIELD'].' '.$TEXT['LOOP']; ?>:</td>
 		<td class="setting_value">
-			<textarea name="field_loop" style="width: 98%; height: 80px;"><?php echo ($setting['field_loop']); ?></textarea>
+			<textarea name="field_loop" cols="80" rows="6" style="width: 98%; height: 80px;"><?php echo ($setting['field_loop']); ?></textarea>
 		</td>
 	</tr>
 	<tr>
 		<td class="setting_name"><?php echo $TEXT['FOOTER']; ?>:</td>
 		<td class="setting_value">
-			<textarea name="footer" style="width: 98%; height: 80px;"><?php echo str_replace($raw, $friendly, ($setting['footer'])); ?></textarea>
+			<textarea name="footer" cols="80" rows="6" style="width: 98%; height: 80px;"><?php echo str_replace($raw, $friendly, ($setting['footer'])); ?></textarea>
 		</td>
 	</tr>
 </table>	
@@ -213,7 +213,7 @@
 	<tr>
 		<td class="setting_name"><?php echo $TEXT['EMAIL'].' '.$TEXT['TEXT']; ?>:</td>
 		<td class="setting_value">
-			<textarea name="success_email_text" style="width: 98%; height: 80px;"><?php echo str_replace($raw, $friendly, ($setting['success_email_text'])); ?></textarea>
+			<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>
 		</td>
 	</tr>
 	<tr>
@@ -229,9 +229,9 @@
 					continue;
 				$mail_pagename = $mail_page['menu_title'];		
 				$success_page = $mail_page['page_id'];
-				echo $success_page.':'.$setting['success_page'].':';
+			  //	echo $success_page.':'.$setting['success_page'].':'; not vailde
 				if($setting['success_page'] == $success_page) {
-					$selected = ' selected';
+					$selected = ' selected="selected"';
 				} else { 
 					$selected = '';
 				}
@@ -246,7 +246,7 @@
 <table cellpadding="0" cellspacing="0" border="0" width="100%">
 	<tr>
 		<td align="left">
-			<input name="save" type="submit" value="<?php echo $TEXT['SAVE']; ?>" style="width: 100px; margin-top: 5px;"></form>
+			<input name="save" type="submit" value="<?php echo $TEXT['SAVE']; ?>" style="width: 100px; margin-top: 5px;">
 		</td>
 		<td align="right">
 			<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,7 +253,7 @@
 		</td>
 	</tr>
 </table>
-
+</form>
 <?php
 
 // Print admin footer
Index: trunk/wb/modules/form/view.php
===================================================================
--- trunk/wb/modules/form/view.php	(revision 1068)
+++ trunk/wb/modules/form/view.php	(revision 1069)
@@ -137,11 +137,15 @@
 
 ?>
 <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">
-<div><input type="hidden" name="submission_id" value="<?php echo $_SESSION['form_submission_id']; ?>" /></div>
+<div>
+<input type="hidden" name="submission_id" value="<?php echo $_SESSION['form_submission_id']; ?>" />
+</div>
 <?php
 if(ENABLED_ASP) { // first add some honeypot-fields
 ?>
-<div><input type="hidden" name="submitted_when" value="<?php $t=time(); echo $t; $_SESSION['submitted_when']=$t; ?>" /></div>
+<div>
+<input type="hidden" name="submitted_when" value="<?php $t=time(); echo $t; $_SESSION['submitted_when']=$t; ?>" />
+</div>
 <p class="nixhier">
 email address:
 <label for="email">Leave this field email-address blank:</label>
Index: trunk/wb/modules/form/view_submission.php
===================================================================
--- trunk/wb/modules/form/view_submission.php	(revision 1068)
+++ trunk/wb/modules/form/view_submission.php	(revision 1069)
@@ -41,6 +41,11 @@
 // Include WB admin wrapper script
 require(WB_PATH.'/modules/admin.php');
 
+//overwrite php.ini on Apache servers for valid SESSION ID Separator
+if(function_exists('ini_set')) {
+	ini_set('arg_separator.output', '&amp;');
+}
+
 // Get submission details
 $query_content = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_form_submissions WHERE submission_id = '$submission_id'");
 $submission = $query_content->fetchRow();
@@ -84,7 +89,7 @@
 <br />
 
 <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;" />
-<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;" />
+<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;" />
 <?php
 
 // Print admin footer
Index: trunk/wb/modules/form/modify.php
===================================================================
--- trunk/wb/modules/form/modify.php	(revision 1068)
+++ trunk/wb/modules/form/modify.php	(revision 1069)
@@ -31,6 +31,11 @@
 // Must include code to stop this file being access directly
 if(!defined('WB_PATH')) { exit("Cannot access this file directly"); }
 
+//overwrite php.ini on Apache servers for valid SESSION ID Separator
+if(function_exists('ini_set')) {
+	ini_set('arg_separator.output', '&amp;');
+}
+
 //Delete all form fields with no title
 $database->query("DELETE FROM ".TABLE_PREFIX."mod_form_fields  WHERE page_id = '$page_id' and section_id = '$section_id' and title=''");
 
@@ -38,10 +43,10 @@
 <table cellpadding="0" cellspacing="0" border="0" width="100%">
 <tr>
 	<td align="left" width="33%">
-		<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%;" />
+		<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%;" />
 	</td>
 	<td align="right" width="33%">
-		<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%;" />
+		<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%;" />
 	</td>
 </tr>
 </table>
@@ -61,14 +66,14 @@
 	<?php
 	while($field = $query_fields->fetchRow()) {
 		?>
-		<tr class="row_<?php echo $row; ?>" height="20">
+		<tr class="row_<?php echo $row; ?>">
 			<td width="20" style="padding-left: 5px;">
-				<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']; ?>">
+				<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']; ?>">
 					<img src="<?php echo THEME_URL; ?>/images/modify_16.png" border="0" alt="^" />
 				</a>
 			</td>		
 			<td>
-				<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']; ?>">
+				<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']; ?>">
 					<?php echo $field['title']; ?>
 				</a>
 			</td>
@@ -109,7 +114,7 @@
 			</td>
 			<td width="20">
 			<?php if($field['position'] != 1) { ?>
-				<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']; ?>">
+				<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']; ?>">
 					<img src="<?php echo THEME_URL; ?>/images/up_16.png" border="0" alt="^" />
 				</a>
 			<?php } ?>
@@ -116,13 +121,13 @@
 			</td>
 			<td width="20">
 			<?php if($field['position'] != $num_fields) { ?>
-				<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']; ?>">
+				<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']; ?>">
 					<img src="<?php echo THEME_URL; ?>/images/down_16.png" border="0" alt="v" />
 				</a>
 			<?php } ?>
 			</td>
 			<td width="20">
-				<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']; ?>">
+				<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']; ?>">
 					<img src="<?php echo THEME_URL; ?>/images/delete_16.png" border="0" alt="X" />
 				</a>
 			</td>
@@ -160,9 +165,9 @@
 	$row = 'a';
 	while($submission = $query_submissions->fetchRow()) {
 		?>
-		<tr class="row_<?php echo $row; ?>" height="20">
+		<tr class="row_<?php echo $row; ?>">
 			<td width="20" style="padding-left: 5px;">
-				<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']; ?>">
+				<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']; ?>">
 					<img src="<?php echo THEME_URL; ?>/images/folder_16.png" alt="<?php echo $TEXT['OPEN']; ?>" border="0" />
 				</a>
 			</td>
@@ -169,7 +174,7 @@
 			<td width="237"><?php echo $TEXT['SUBMISSION_ID'].': '.$submission['submission_id']; ?></td>
 			<td><?php echo $TEXT['SUBMITTED'].': '.gmdate(TIME_FORMAT.', '.DATE_FORMAT, $submission['submitted_when']+TIMEZONE); ?></td>
 			<td width="20">
-				<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']; ?>">
+				<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']; ?>">
 					<img src="<?php echo THEME_URL; ?>/images/delete_16.png" border="0" alt="X" />
 				</a>
 			</td>
@@ -190,5 +195,3 @@
 }
 
 ?>
-
-<br />
\ No newline at end of file
Index: trunk/wb/modules/news/modify_settings.php
===================================================================
--- trunk/wb/modules/news/modify_settings.php	(revision 1068)
+++ trunk/wb/modules/news/modify_settings.php	(revision 1069)
@@ -136,9 +136,9 @@
 		<tr>
 			<td class="setting_name"><?php echo $TEXT['CAPTCHA_VERIFICATION']; ?>:</td>
 			<td>
-				<input type="radio" name="use_captcha" id="use_captcha_true" value="1"<?php if($fetch_content['use_captcha'] == true) { echo ' checked'; } ?> />
+				<input type="radio" name="use_captcha" id="use_captcha_true" value="1"<?php if($fetch_content['use_captcha'] == true) { echo ' checked="checked"'; } ?> />
 				<label for="use_captcha_true"><?php echo $TEXT['ENABLED']; ?></label>
-				<input type="radio" name="use_captcha" id="use_captcha_false" value="0"<?php if($fetch_content['use_captcha'] == false) { echo ' checked'; } ?> />
+				<input type="radio" name="use_captcha" id="use_captcha_false" value="0"<?php if($fetch_content['use_captcha'] == false) { echo ' checked="checked"'; } ?> />
 				<label for="use_captcha_false"><?php echo $TEXT['DISABLED']; ?></label>
 			</td>
 		</tr>
