Project

General

Profile

« Previous | Next » 

Revision 583

Added by doc almost 17 years ago

Fixed bug with the edit module CSS file implementation (IE7, Opera)

View differences:

trunk/CHANGELOG
11 11
! = Update/Change
12 12

  
13 13
------------------------------------- 2.7.0 -------------------------------------
14

  
15
21-Jan-2008 Thomas Hornik
14

  
15
21-Jan-2008 Christian Sommer
16
#	Fixed bug with the edit module CSS file implementation (IE7, Opera)
17
21-Jan-2008 Thomas Hornik
16 18
+	Unique session-identifier for each website baker installation. fixes #354
17 19
20-Jan-2008 Christian Sommer
18 20
#	fixed E_NOTICE-warning in save.php when input data was wrong
19 21
+	added the new admin tool email output filter which allows to transform
20 22
	emails before displaying them on the frontend
21
20-Jan-2008 Thomas Hornik
22
!	upgrade-script.php: fixed mysql_error() handling
23
!	upgrade-script.php: added code to update menu_links
23
20-Jan-2008 Thomas Hornik

24
!	upgrade-script.php: fixed mysql_error() handling

25
!	upgrade-script.php: added code to update menu_links

24 26
#	fixed a typo in upgrade-script.php
25 27
!	updated admin/pages/sections.php to changed jscalendar-api from changeset 571
26 28
!	module menu_link: after adding a menu_link, the anchor dropdown shows "#"; fixed 
trunk/wb/modules/form/edit_css.php
1 1
<?php
2 2

  
3
// $Id:$
3
// $Id$
4 4

  
5
######################################################################################################################
6
#
7
#	PURPOSE OF THIS FILE:
8
#	This file contains the routines required to edit the optional module files: frontend.css and backend.css.
9
# Nothing needs to be changed in this file. Keep it as is.
10
#
11
#	INVOKED BY:
12
#	This file should be invoked by clicking on a text link shown in modify.php.
13
#
14
######################################################################################################################
5
/*
15 6

  
16
/**
17
  Module developed for the Open Source Content Management System Website Baker (http://websitebaker.org)
18
  Copyright (C) year, Authors name
19
  Contact me: author(at)domain.xxx, http://authorwebsite.xxx
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2008, Ryan Djurovich
20 9

  
21
  This module is free software. You can redistribute it and/or modify it 
22
  under the terms of the GNU General Public License  - version 2 or later, 
23
  as published by the Free Software Foundation: http://www.gnu.org/licenses/gpl.html.
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
24 14

  
25
  This module is distributed in the hope that it will be useful, 
26
  but WITHOUT ANY WARRANTY; without even the implied warranty of 
27
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
28
  GNU General Public License for more details.
29
**/
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
30 19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
*/
25

  
31 26
// include configuration file and admin wrapper script
32 27
require('../../config.php');
33 28
require(WB_PATH.'/modules/admin.php');
......
103 98
			
104 99
			<p><?php echo $TXT_EDIT_CSS_FILE; ?></p> 
105 100
			
106
			<textarea name="css_data" id="css_data" class="codepress css" cols="115" rows="25" wrap="VIRTUAL" style="margin:2px;"><?php echo $css_content; ?></textarea>
101
			<textarea id="css_data" class="codepress css" cols="115" rows="25"
102
				wrap="VIRTUAL" style="margin:2px;"><?php echo $css_content; ?></textarea>
107 103
			
108 104
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
109 105
				<tr>
110 106
					<td align="left">
111
						<input name="save" type="submit" value="<?php echo $TEXT['SAVE'];?>" onclick="javascript: css_codepress.value = css_data.getCode();" style="width: 100px; margin-top: 5px;" />
107
						<input name="save" type="submit" value="<?php echo $TEXT['SAVE'];?>" 
108
							onclick="javascript: css_codepress.value = css_data.getCode();" style="width: 100px; margin-top: 5px;" />
112 109
					</td>
113 110
					<td align="right">
114
						<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;" />
111
						<input type="button" value="<?php echo $TEXT['CANCEL']; ?>"	
112
							onclick="javascript: window.location = '<?php echo ADMIN_URL;?>/pages/modify.php?page_id=<?php echo $page_id; ?>';" style="width: 100px; margin-top: 5px;" />
115 113
					</td>
116 114
				</tr>
117 115
			</table>
trunk/wb/modules/form/css.functions.php
2 2

  
3 3
// $Id$
4 4

  
5
######################################################################################################################
6
#
7
#	PURPOSE OF THIS FILE:
8
#	This file contains functions to edit the module CSS files (frontend.css and backend.css)
9
#
10
#	INVOKED BY:
11
# 	This file is invoked when a user clicks on the edit CSS button in the modify.php file
12
#
13
######################################################################################################################
5
/*
14 6

  
15
/**
16
  Module developed for the Open Source Content Management System Website Baker (http://websitebaker.org)
17
  Copyright (C) year, Authors name
18
  Contact me: author(at)domain.xxx, http://authorwebsite.xxx
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2008, Ryan Djurovich
19 9

  
20
  This module is free software. You can redistribute it and/or modify it 
21
  under the terms of the GNU General Public License  - version 2 or later, 
22
  as published by the Free Software Foundation: http://www.gnu.org/licenses/gpl.html.
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
23 14

  
24
  This module is distributed in the hope that it will be useful, 
25
  but WITHOUT ANY WARRANTY; without even the implied warranty of 
26
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
27
  GNU General Public License for more details.
28
**/
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
29 19

  
30
// prevent this file from being accesses directly
31
if(defined('WB_PATH') == false) {
32
	exit("Cannot access this file directly"); 
33
}
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
34 23

  
35
/**
36
DEFINE LANGUAGE DEPENDING OUTPUTS FOR THE EDIT CSS PART
37 24
*/
25

  
26
// DEFINE LANGUAGE DEPENDING OUTPUTS FOR THE EDIT CSS PART
38 27
$lang_dir = WB_PATH .'/modules/' .basename(dirname(__FILE__)) .'/languages/';
39 28
if(file_exists($lang_dir .LANGUAGE .'.php')) {
40 29
	// try to include custom language file if exists
trunk/wb/modules/news/edit_css.php
2 2

  
3 3
// $Id$
4 4

  
5
######################################################################################################################
6
#
7
#	PURPOSE OF THIS FILE:
8
#	This file contains the routines required to edit the optional module files: frontend.css and backend.css.
9
# Nothing needs to be changed in this file. Keep it as is.
10
#
11
#	INVOKED BY:
12
#	This file should be invoked by clicking on a text link shown in modify.php.
13
#
14
######################################################################################################################
5
/*
15 6

  
16
/**
17
  Module developed for the Open Source Content Management System Website Baker (http://websitebaker.org)
18
  Copyright (C) year, Authors name
19
  Contact me: author(at)domain.xxx, http://authorwebsite.xxx
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2008, Ryan Djurovich
20 9

  
21
  This module is free software. You can redistribute it and/or modify it 
22
  under the terms of the GNU General Public License  - version 2 or later, 
23
  as published by the Free Software Foundation: http://www.gnu.org/licenses/gpl.html.
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
24 14

  
25
  This module is distributed in the hope that it will be useful, 
26
  but WITHOUT ANY WARRANTY; without even the implied warranty of 
27
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
28
  GNU General Public License for more details.
29
**/
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
30 19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
*/
25

  
31 26
// include configuration file and admin wrapper script
32 27
require('../../config.php');
33 28
require(WB_PATH.'/modules/admin.php');
......
103 98
			
104 99
			<p><?php echo $TXT_EDIT_CSS_FILE; ?></p> 
105 100
			
106
			<textarea name="css_data" id="css_data" class="codepress css" cols="115" rows="25" wrap="VIRTUAL" style="margin:2px;"><?php echo $css_content; ?></textarea>
101
			<textarea id="css_data" class="codepress css" cols="115" rows="25"
102
				wrap="VIRTUAL" style="margin:2px;"><?php echo $css_content; ?></textarea>
107 103
			
108 104
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
109 105
				<tr>
110 106
					<td align="left">
111
						<input name="save" type="submit" value="<?php echo $TEXT['SAVE'];?>" onclick="javascript: css_codepress.value = css_data.getCode();" style="width: 100px; margin-top: 5px;" />
107
						<input name="save" type="submit" value="<?php echo $TEXT['SAVE'];?>" 
108
							onclick="javascript: css_codepress.value = css_data.getCode();" style="width: 100px; margin-top: 5px;" />
112 109
					</td>
113 110
					<td align="right">
114
						<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;" />
111
						<input type="button" value="<?php echo $TEXT['CANCEL']; ?>"	
112
							onclick="javascript: window.location = '<?php echo ADMIN_URL;?>/pages/modify.php?page_id=<?php echo $page_id; ?>';" style="width: 100px; margin-top: 5px;" />
115 113
					</td>
116 114
				</tr>
117 115
			</table>
trunk/wb/modules/news/css.functions.php
2 2

  
3 3
// $Id$
4 4

  
5
######################################################################################################################
6
#
7
#	PURPOSE OF THIS FILE:
8
#	This file contains functions to edit the module CSS files (frontend.css and backend.css)
9
#
10
#	INVOKED BY:
11
# 	This file is invoked when a user clicks on the edit CSS button in the modify.php file
12
#
13
######################################################################################################################
5
/*
14 6

  
15
/**
16
  Module developed for the Open Source Content Management System Website Baker (http://websitebaker.org)
17
  Copyright (C) year, Authors name
18
  Contact me: author(at)domain.xxx, http://authorwebsite.xxx
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2008, Ryan Djurovich
19 9

  
20
  This module is free software. You can redistribute it and/or modify it 
21
  under the terms of the GNU General Public License  - version 2 or later, 
22
  as published by the Free Software Foundation: http://www.gnu.org/licenses/gpl.html.
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
23 14

  
24
  This module is distributed in the hope that it will be useful, 
25
  but WITHOUT ANY WARRANTY; without even the implied warranty of 
26
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
27
  GNU General Public License for more details.
28
**/
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
29 19

  
30
// prevent this file from being accesses directly
31
if(defined('WB_PATH') == false) {
32
	exit("Cannot access this file directly"); 
33
}
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
34 23

  
35
/**
36
DEFINE LANGUAGE DEPENDING OUTPUTS FOR THE EDIT CSS PART
37 24
*/
25

  
26
// DEFINE LANGUAGE DEPENDING OUTPUTS FOR THE EDIT CSS PART
38 27
$lang_dir = WB_PATH .'/modules/' .basename(dirname(__FILE__)) .'/languages/';
39 28
if(file_exists($lang_dir .LANGUAGE .'.php')) {
40 29
	// try to include custom language file if exists

Also available in: Unified diff