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:

index.php
36 36
require_once(WB_PATH.'/framework/class.frontend.php');
37 37
// Create new frontend object
38 38
// Perform general initializations
39
$wb = & new frontend();
39
if (!isset($wb)) $wb = new frontend();
40 40

  
41 41
// Figure out which page to display
42 42
// Stop processing if intro page was shown
......
49 49
// Collect general website settings
50 50
$wb->get_website_settings();
51 51

  
52
// Load some ugly compatibility code
53
require(WB_PATH.'/framework/compatibility.php');
52
// Load functions available to templates, modules and code sections
53
// also, set some aliases for backward compatibility
54
require(WB_PATH.'/framework/frontend.functions.php');
54 55

  
55 56
// Display the template
56 57
require(WB_PATH.'/templates/'.TEMPLATE.'/index.php');

Also available in: Unified diff