Project

General

Profile

« Previous | Next » 

Revision 106

Added by stefan about 19 years ago

Renamed compatibility.php to frontend.functions.php.
Moved frontend functions from class frontend to frontend.functions.php.
Removed instances of strip_slashes_dummy. Replaced $this by $wb in a couple of places.
Created file initialize.php, where all initializations now take place (moved from class wb constructor).

View differences:

save.php
280 280
"define('ADMIN_PATH', '$wb_path/admin');\n".
281 281
"define('ADMIN_URL', '$wb_url/admin');\n".
282 282
"\n".
283
"require_once(WB_PATH.'/framework/initialize.php');\n".
283 284
"?>";
284 285

  
285 286
$config_filename = '../config.php';
......
300 301
}
301 302

  
302 303
// Include configuration file
303
require('../config.php');
304
define('DB_TYPE', 'mysql');
305
define('DB_HOST', $database_host);
306
define('DB_USERNAME', $database_username);
307
define('DB_PASSWORD', $database_password);
308
define('DB_NAME', $database_name);
309
define('TABLE_PREFIX', $table_prefix);
310
define('WB_PATH', $wb_path);
311
define('WB_URL', $wb_url);
312
define('ADMIN_PATH', $wb_path.'/admin');
313
define('ADMIN_URL', $wb_url.'/admin');
304 314

  
315
//require('../config.php');
316

  
305 317
// Check if the user has entered a correct path
306 318
if(!file_exists(WB_PATH.'/framework/class.admin.php')) {
307 319
	set_error('It appears the Absolute path that you entered is incorrect');
......
548 560
	// Search template
549 561
	$database->query("INSERT INTO `".TABLE_PREFIX."search` (name) VALUES ('template')");
550 562
	
551
	$wb=new wb();
563
	require_once(WB_PATH.'/framework/initialize.php');
564
	$wb = new wb();
552 565
	
553 566
	// Include the pre-installed module install scripts
554 567
	require(WB_PATH.'/modules/wysiwyg/install.php');

Also available in: Unified diff