Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 582)
+++ trunk/CHANGELOG	(revision 583)
@@ -11,16 +11,18 @@
 ! = Update/Change
 
 ------------------------------------- 2.7.0 -------------------------------------
-
-21-Jan-2008 Thomas Hornik
+
+21-Jan-2008 Christian Sommer
+#	Fixed bug with the edit module CSS file implementation (IE7, Opera)
+21-Jan-2008 Thomas Hornik
 +	Unique session-identifier for each website baker installation. fixes #354
 20-Jan-2008 Christian Sommer
 #	fixed E_NOTICE-warning in save.php when input data was wrong
 +	added the new admin tool email output filter which allows to transform
 	emails before displaying them on the frontend
-20-Jan-2008 Thomas Hornik
-!	upgrade-script.php: fixed mysql_error() handling
-!	upgrade-script.php: added code to update menu_links
+20-Jan-2008 Thomas Hornik
+!	upgrade-script.php: fixed mysql_error() handling
+!	upgrade-script.php: added code to update menu_links
 #	fixed a typo in upgrade-script.php
 !	updated admin/pages/sections.php to changed jscalendar-api from changeset 571
 !	module menu_link: after adding a menu_link, the anchor dropdown shows "#"; fixed 
Index: trunk/wb/modules/form/edit_css.php
===================================================================
--- trunk/wb/modules/form/edit_css.php	(revision 582)
+++ trunk/wb/modules/form/edit_css.php	(revision 583)
@@ -1,33 +1,28 @@
 <?php
 
-// $Id:$
+// $Id$
 
-######################################################################################################################
-#
-#	PURPOSE OF THIS FILE:
-#	This file contains the routines required to edit the optional module files: frontend.css and backend.css.
-# Nothing needs to be changed in this file. Keep it as is.
-#
-#	INVOKED BY:
-#	This file should be invoked by clicking on a text link shown in modify.php.
-#
-######################################################################################################################
+/*
 
-/**
-  Module developed for the Open Source Content Management System Website Baker (http://websitebaker.org)
-  Copyright (C) year, Authors name
-  Contact me: author(at)domain.xxx, http://authorwebsite.xxx
+ Website Baker Project <http://www.websitebaker.org/>
+ Copyright (C) 2004-2008, Ryan Djurovich
 
-  This module is free software. You can redistribute it and/or modify it 
-  under the terms of the GNU General Public License  - version 2 or later, 
-  as published by the Free Software Foundation: http://www.gnu.org/licenses/gpl.html.
+ Website Baker is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
 
-  This module is distributed in the hope that it will be useful, 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
-  GNU General Public License for more details.
-**/
+ Website Baker is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
 
+ You should have received a copy of the GNU General Public License
+ along with Website Baker; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+*/
+
 // include configuration file and admin wrapper script
 require('../../config.php');
 require(WB_PATH.'/modules/admin.php');
@@ -103,15 +98,18 @@
 			
 			<p><?php echo $TXT_EDIT_CSS_FILE; ?></p> 
 			
-			<textarea name="css_data" id="css_data" class="codepress css" cols="115" rows="25" wrap="VIRTUAL" style="margin:2px;"><?php echo $css_content; ?></textarea>
+			<textarea id="css_data" class="codepress css" cols="115" rows="25"
+				wrap="VIRTUAL" style="margin:2px;"><?php echo $css_content; ?></textarea>
 			
 			<table cellpadding="0" cellspacing="0" border="0" width="100%">
 				<tr>
 					<td align="left">
-						<input name="save" type="submit" value="<?php echo $TEXT['SAVE'];?>" onclick="javascript: css_codepress.value = css_data.getCode();" style="width: 100px; margin-top: 5px;" />
+						<input name="save" type="submit" value="<?php echo $TEXT['SAVE'];?>" 
+							onclick="javascript: css_codepress.value = css_data.getCode();" 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;" />
+						<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;" />
 					</td>
 				</tr>
 			</table>
Index: trunk/wb/modules/form/css.functions.php
===================================================================
--- trunk/wb/modules/form/css.functions.php	(revision 582)
+++ trunk/wb/modules/form/css.functions.php	(revision 583)
@@ -2,39 +2,28 @@
 
 // $Id$
 
-######################################################################################################################
-#
-#	PURPOSE OF THIS FILE:
-#	This file contains functions to edit the module CSS files (frontend.css and backend.css)
-#
-#	INVOKED BY:
-# 	This file is invoked when a user clicks on the edit CSS button in the modify.php file
-#
-######################################################################################################################
+/*
 
-/**
-  Module developed for the Open Source Content Management System Website Baker (http://websitebaker.org)
-  Copyright (C) year, Authors name
-  Contact me: author(at)domain.xxx, http://authorwebsite.xxx
+ Website Baker Project <http://www.websitebaker.org/>
+ Copyright (C) 2004-2008, Ryan Djurovich
 
-  This module is free software. You can redistribute it and/or modify it 
-  under the terms of the GNU General Public License  - version 2 or later, 
-  as published by the Free Software Foundation: http://www.gnu.org/licenses/gpl.html.
+ Website Baker is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
 
-  This module is distributed in the hope that it will be useful, 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
-  GNU General Public License for more details.
-**/
+ Website Baker is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
 
-// prevent this file from being accesses directly
-if(defined('WB_PATH') == false) {
-	exit("Cannot access this file directly"); 
-}
+ You should have received a copy of the GNU General Public License
+ along with Website Baker; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-/**
-DEFINE LANGUAGE DEPENDING OUTPUTS FOR THE EDIT CSS PART
 */
+
+// DEFINE LANGUAGE DEPENDING OUTPUTS FOR THE EDIT CSS PART
 $lang_dir = WB_PATH .'/modules/' .basename(dirname(__FILE__)) .'/languages/';
 if(file_exists($lang_dir .LANGUAGE .'.php')) {
 	// try to include custom language file if exists
Index: trunk/wb/modules/news/edit_css.php
===================================================================
--- trunk/wb/modules/news/edit_css.php	(revision 582)
+++ trunk/wb/modules/news/edit_css.php	(revision 583)
@@ -2,32 +2,27 @@
 
 // $Id$
 
-######################################################################################################################
-#
-#	PURPOSE OF THIS FILE:
-#	This file contains the routines required to edit the optional module files: frontend.css and backend.css.
-# Nothing needs to be changed in this file. Keep it as is.
-#
-#	INVOKED BY:
-#	This file should be invoked by clicking on a text link shown in modify.php.
-#
-######################################################################################################################
+/*
 
-/**
-  Module developed for the Open Source Content Management System Website Baker (http://websitebaker.org)
-  Copyright (C) year, Authors name
-  Contact me: author(at)domain.xxx, http://authorwebsite.xxx
+ Website Baker Project <http://www.websitebaker.org/>
+ Copyright (C) 2004-2008, Ryan Djurovich
 
-  This module is free software. You can redistribute it and/or modify it 
-  under the terms of the GNU General Public License  - version 2 or later, 
-  as published by the Free Software Foundation: http://www.gnu.org/licenses/gpl.html.
+ Website Baker is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
 
-  This module is distributed in the hope that it will be useful, 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
-  GNU General Public License for more details.
-**/
+ Website Baker is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
 
+ You should have received a copy of the GNU General Public License
+ along with Website Baker; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+*/
+
 // include configuration file and admin wrapper script
 require('../../config.php');
 require(WB_PATH.'/modules/admin.php');
@@ -103,15 +98,18 @@
 			
 			<p><?php echo $TXT_EDIT_CSS_FILE; ?></p> 
 			
-			<textarea name="css_data" id="css_data" class="codepress css" cols="115" rows="25" wrap="VIRTUAL" style="margin:2px;"><?php echo $css_content; ?></textarea>
+			<textarea id="css_data" class="codepress css" cols="115" rows="25"
+				wrap="VIRTUAL" style="margin:2px;"><?php echo $css_content; ?></textarea>
 			
 			<table cellpadding="0" cellspacing="0" border="0" width="100%">
 				<tr>
 					<td align="left">
-						<input name="save" type="submit" value="<?php echo $TEXT['SAVE'];?>" onclick="javascript: css_codepress.value = css_data.getCode();" style="width: 100px; margin-top: 5px;" />
+						<input name="save" type="submit" value="<?php echo $TEXT['SAVE'];?>" 
+							onclick="javascript: css_codepress.value = css_data.getCode();" 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;" />
+						<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;" />
 					</td>
 				</tr>
 			</table>
Index: trunk/wb/modules/news/css.functions.php
===================================================================
--- trunk/wb/modules/news/css.functions.php	(revision 582)
+++ trunk/wb/modules/news/css.functions.php	(revision 583)
@@ -2,39 +2,28 @@
 
 // $Id$
 
-######################################################################################################################
-#
-#	PURPOSE OF THIS FILE:
-#	This file contains functions to edit the module CSS files (frontend.css and backend.css)
-#
-#	INVOKED BY:
-# 	This file is invoked when a user clicks on the edit CSS button in the modify.php file
-#
-######################################################################################################################
+/*
 
-/**
-  Module developed for the Open Source Content Management System Website Baker (http://websitebaker.org)
-  Copyright (C) year, Authors name
-  Contact me: author(at)domain.xxx, http://authorwebsite.xxx
+ Website Baker Project <http://www.websitebaker.org/>
+ Copyright (C) 2004-2008, Ryan Djurovich
 
-  This module is free software. You can redistribute it and/or modify it 
-  under the terms of the GNU General Public License  - version 2 or later, 
-  as published by the Free Software Foundation: http://www.gnu.org/licenses/gpl.html.
+ Website Baker is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
 
-  This module is distributed in the hope that it will be useful, 
-  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
-  GNU General Public License for more details.
-**/
+ Website Baker is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
 
-// prevent this file from being accesses directly
-if(defined('WB_PATH') == false) {
-	exit("Cannot access this file directly"); 
-}
+ You should have received a copy of the GNU General Public License
+ along with Website Baker; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-/**
-DEFINE LANGUAGE DEPENDING OUTPUTS FOR THE EDIT CSS PART
 */
+
+// DEFINE LANGUAGE DEPENDING OUTPUTS FOR THE EDIT CSS PART
 $lang_dir = WB_PATH .'/modules/' .basename(dirname(__FILE__)) .'/languages/';
 if(file_exists($lang_dir .LANGUAGE .'.php')) {
 	// try to include custom language file if exists
