Project

General

Profile

« Previous | Next » 

Revision 1530

Added by Dietmar about 13 years ago

update templates allcss and round (Tks to Rübenwurzel)
Add UPGRADE Instructions
Update INSTALL Instructions
Optimize config.php handling for installation

View differences:

branches/2.8.x/INSTALL
1
WebsiteBaker 2.8.2 Installation Instructions
2
============================================
1
WebsiteBaker 2.8.2 SP2 Installation Instructions
2
=================================================
3 3

  
4
You can find detailed informations in the INSTALL
5
file of the needed installer interface.
4
Step 1 - Preparing your existing webspace:
5
- Login to your webspace account and create a database.
6 6

  
7
Short Instruction:
7
Step 2 - Download WebsiteBaker from http://www.websitebaker2.org/en/download/latest-version.php
8
- Download "WebsiteBaker 2.8.2 [R1528] including ServicePack 2"
9
- Unzip the package to your lokal machine
10
- rename config.php.new to config.php
11
- change favicon to your own
12
- upload all files to your Webspace.
8 13

  
9
1.: create empty database and remember access data
10
2.: Unzip WB and move it to the Server
11
3.: Unzip Fix-Packet and move it to the Server  !!! very important !!!
12
4.: chmod directories/files as usual if needed (most with mod-apache running)
13
5.: rename config.php.new into config.php (never needed with micro-installer)
14
6.: start installation
14
Step 3 - Installation:
15
- call in your Browser www.yourdomainname.com
16
- follow the Installation Instructions
15 17

  
18
Step 4 - Installation folder:
19
- Delete folder install
20

  
21
Step 5 - Upgrade-script:
22
- Delete File upgrade-script.php
23

  
24
Have fun with WB 2.8.2 SP2
25

  
26

  
branches/2.8.x/CHANGELOG
11 11
! = Update/Change
12 12

  
13 13
=========================== add small Features 2.8.2 ==========================
14
27 Nov-2011 Build 1530 Dietmar Woellbrink (Luisehahne)
15
! update templates allcss and round (Tks to Rübenwurzel)
16
+ Add UPGRADE Instructions
17
! Update INSTALL Instructions
18
! Optimize config.php handling for installation
14 19
25 Nov-2011 Build 1529 Dietmar Woellbrink (Luisehahne)
15 20
+ add new backend theme handling (Tks to Stefek)
16 21
----------------------------------- Fixes 2.8.2 --------------------------------
branches/2.8.x/UPGRADE
1
WebsiteBaker 2.8.2 SP2 UPGRADE Instructions
2
=================================================
3

  
4
Upgrade from WB 2.8.0 to WB 2.8.2 SP2
5
Upgrade from WB 2.8.1 to WB 2.8.2 SP2
6
- need full package "WebsiteBaker 2.8.2 [R1528] including ServicePack 2"
7

  
8
Upgrade from WB 2.8.2 to WB 2.8.2 SP2
9
- download "ServicePack 2 for WebsiteBaker 2.8.2 all fixes"
10

  
11
Download WebsiteBaker from http://www.websitebaker2.org/en/download/latest-version.php
12

  
13
Step 1 - Preparing your existing system:
14
- Login to your backend and set "Settings" - "Backend-Theme" to "wb_theme" and don't forget to store.
15
- Backup your changed Files in modules and templates folder like .css, .js, wb_config.js for the Editor
16

  
17
Step 2 - Download Instructions
18
- Download "WebsiteBaker 2.8.2 [R1528] including ServicePack 2"
19
- If you already installed WB 2.8.2
20
  Download "ServicePack 2 for WebsiteBaker 2.8.2 all fixes"
21

  
22
Step 3 - upgrading
23
- Unzip the packages to your lokal machine
24
- upload all files to your Webspace.
25
- Be shure that existing files are overwritten.
26

  
27
Step 4 - Cleanup Files and Folders on your Webspace:
28
- Delete File admin/preferences/details.php
29
- Delete File admin/preferences/email.php
30
- Delete File admin/preferences/password.php
31
- Delete Folder modules/backup
32
- Delete Folder modules/droplets/js
33
- Delete Folder templates/classic_theme
34

  
35
Step 5 - Upgrade the database:
36
- call in your Browser www.yourdomainname. com/upgrade-script.php
37

  
38
Step 6 - Delete the upgrade-script:
39
- Delete File upgrade-script.php
40

  
41
Step 7 - Delete the config.php.new:
42
- to solve the problem with overwritten config.php by upgrade to 2.8.2  we upload a config.php.new.
43

  
44
Have fun with WB 2.8.2 SP2
branches/2.8.x/wb/admin/interface/version.php
52 52

  
53 53
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
54 54
if(!defined('VERSION')) define('VERSION', '2.8.2');
55
if(!defined('REVISION')) define('REVISION', '1529');
55
if(!defined('REVISION')) define('REVISION', '1530');
branches/2.8.x/wb/templates/allcss/template.css
130 130
	display: block;
131 131
	padding: 2px;
132 132
}
133
.menu_default a:link, .menu_default a:visited, .menu_default a:active {
133
.menu-default a:link, .menu-default a:visited, .menu-default a:active {
134 134
	border-bottom: 1px dashed #999;
135 135
}
136
.menu_default a:hover {
136
.menu-default a:hover {
137 137
	border-bottom: 1px dashed #333;
138 138
}
139 139

  
140
.menu_current  {
140
.menu-current  {
141 141
	border-bottom: 1px dashed #999;
142 142
	font-weight:bold;
143 143
}
branches/2.8.x/wb/templates/allcss/index.php
79 79

  
80 80
	<!-- main navigation menu -->
81 81
	<div class="menu">
82
<?php show_menu2(SM2_ALLMENU, SM2_ROOT, SM2_ROOT+PAGE_LEVEL_LIMIT, SM2_ALL|SM2_NUMCLASS );	?>
83
<?php
82
		<?php
83
		show_menu2(0,SM2_ROOT,SM2_ROOT,SM2_TRIM,'<li><span class="menu-default">[ac][menu_title]</a></span>','</li>','<ul>','</ul>');
84 84
		// CODE FOR WEBSITE BAKER FRONTEND LOGIN
85 85
		if (FRONTEND_LOGIN == 'enabled' && VISIBILITY != 'private' && $wb->get_session('USER_ID') == '') {
86
				$redirect_url = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : WB_URL );
87
				$redirect_url = (isset($thisApp->redirect_url) ? $thisApp->redirect_url : $redirect_url );
88
?>
86
			$redirect_url = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : WB_URL );
87
			$redirect_url = (isset($thisApp->redirect_url) ? $thisApp->redirect_url : $redirect_url );?>
89 88
			<!-- login form -->
90 89
			<br />
91 90
			<form name="login" id="login" action="<?php echo LOGIN_URL; ?>" method="post">
branches/2.8.x/wb/templates/round/template.css
99 99
	background-color: #369;
100 100
	text-decoration: none;
101 101
}
102
.menu_current {
102
.menu-current {
103 103
	font-weight: bold;
104 104
}
105 105
.highlight {
branches/2.8.x/wb/templates/round/index.php
78 78
		</tr>
79 79
		<tr>
80 80
			<td width="170">
81
<?php show_menu2(SM2_ALLMENU,SM2_ROOT, SM2_ROOT+PAGE_LEVEL_LIMIT, SM2_ALL|SM2_NUMCLASS );	?>
81
				<?php show_menu2(0,SM2_ROOT,SM2_ROOT,SM2_TRIM,'<li><span class="menu-default">[ac][menu_title]</a></span>','</li>','<ul>','</ul>');?>
82 82
			</td>
83 83
		</tr>
84 84
		<tr>
branches/2.8.x/wb/install/index.php
21 21
	session_start();
22 22
	define('SESSION_STARTED', true);
23 23
}
24
	$mod_path = dirname(str_replace('\\', '/', __FILE__));
25
    $doc_root = rtrim(str_replace('\\', '/',$_SERVER['DOCUMENT_ROOT']),'/');
26
	$mod_name = basename($mod_path);
27
	$wb_path = dirname(dirname(str_replace('\\', '/', __FILE__)));
28
    $wb_root = str_replace($doc_root,'',$wb_path);
29 24

  
25
$mod_path = dirname(str_replace('\\', '/', __FILE__));
26
$doc_root = rtrim(str_replace('\\', '/',$_SERVER['DOCUMENT_ROOT']),'/');
27
$mod_name = basename($mod_path);
28
$wb_path = dirname(dirname(str_replace('\\', '/', __FILE__)));
29
$wb_root = str_replace(realpath($doc_root),'',$wb_path);
30

  
30 31
// Function to highlight input fields which contain wrong/missing data
31 32
function field_error($field_name='') {
32 33
	if(!defined('SESSION_STARTED') || $field_name == '') return;
......
89 90
		document.getElementById('file_perms_box').style.display = 'none';
90 91
	}
91 92
}
92

  
93 93
</script>
94 94
</head>
95 95
<body>
......
189 189
		</tr>
190 190
		<tr>
191 191
<?php
192
$config = '<font class="good">Writeable</font>';
193
$configFile = '/config.php';
194
if(!isset($_SESSION['config_rename'])) {
195
	if( ( file_exists($wb_path.$configFile)==false ) && (file_exists($wb_path.'/config.php.new')==true ) ){
196
		if( (is_writeable($wb_path.'/config.php.new')==true) && (rename($wb_path.'/config.php.new',$wb_path.'/config.php')) ) {
197
			$config = '<font class="good">Writeable</font>';
198
			$_SESSION['config_rename'] = true;
199
		} else {
200
			$installFlag = false;
192
	$config = '<font class="good">Writeable</font>';
193
	$configFile = '/config.php';
194
	if(!isset($_SESSION['config_rename']) ) {
195

  
196
		if( (file_exists($wb_path.$configFile)==true)) {
197
			if ( filesize($wb_path.$configFile) > 128) {
198
				$installFlag = false;
199
				$config = '<font class="bad">Not empty!!?</font>';
200
			} elseif( is_writeable($wb_path.$configFile)==true ) {
201
				$config = '<font class="good">isWriteable</font>';
202
				$_SESSION['config_rename'] = true;
203
			}
204
		} elseif((file_exists($wb_path.'/config.php.new')==true)) {
201 205
			$configFile = '/config.php.new';
202
			$config = '<font class="bad">Unwriteable</font>';
203
		}
204
	} elseif( (file_exists($wb_path.'/config.php.new')==true) && ( file_exists($wb_path.$configFile)==true ) ) {
205
		if( (file_exists($wb_path.$configFile)==true) ) {
206 206
			$installFlag = false;
207
			$config = '<font class="bad">Already installed?</font>';
207
			$config = '<font class="bad">Please rename</font>';
208
		} else {
209
				$installFlag = false;
210
				$config = '<font class="bad">Missing!!?</font>';
208 211
		}
209
	} elseif( (is_writeable($wb_path.'/config.php.new')==false) ) {
210
			$installFlag = false;
211
			$configFile = '/config.php.new';
212
			$config = '<font class="bad">Unwriteable</font>';
212

  
213 213
	}
214
}
215 214
?>
216 215
			<td width="150px" style="color: #666666;"><?php print $wb_root.$configFile ?></td>
217 216
			<td width="150px"><?php echo $config ?></td>

Also available in: Unified diff