Revision 989
Added by aldus over 16 years ago
| index.php | ||
|---|---|---|
| 92 | 92 |
} |
| 93 | 93 |
} |
| 94 | 94 |
|
| 95 |
if(file_exists(WB_PATH .'/modules/output_filter/filter-routines.php')) {
|
|
| 96 |
// reconnect to database |
|
| 97 |
$database = new database(); |
|
| 98 |
// include the output filter module routines |
|
| 99 |
@require_once(WB_PATH .'/modules/output_filter/filter-routines.php'); |
|
| 100 |
|
|
| 101 |
if(function_exists('filter_frontend_output')) {
|
|
| 102 |
// store output in variable for filtering |
|
| 103 |
@ob_start(); |
|
| 104 |
require(WB_PATH.'/templates/'.TEMPLATE.'/index.php'); |
|
| 105 |
$frontend_output = ob_get_contents(); |
|
| 106 |
@ob_end_clean(); |
|
| 107 |
// Display the filtered output on the frontend |
|
| 108 |
echo filter_frontend_output($frontend_output); |
|
| 109 |
die; |
|
| 110 |
} |
|
| 111 |
} |
|
| 95 |
// Backwards compatible Frontend filter support |
|
| 96 |
// include the output filter module routines |
|
| 97 |
if(file_exists(WB_PATH .'/modules/output_filter/filter-routines.php')) {@require_once(WB_PATH .'/modules/output_filter/filter-routines.php');}
|
|
| 98 |
// Load Droplet engine |
|
| 99 |
if(file_exists(WB_PATH .'/modules/droplets/droplets.php')) { @require_once(WB_PATH .'/modules/droplets/droplets.php'); }
|
|
| 112 | 100 |
|
| 113 |
// Display the template (no output filtering) |
|
| 101 |
//Get pagecontent in buffer for Droplets and/or Filter operations |
|
| 102 |
ob_start(); |
|
| 114 | 103 |
require(WB_PATH.'/templates/'.TEMPLATE.'/index.php'); |
| 104 |
$output = ob_get_contents(); |
|
| 105 |
ob_end_clean(); |
|
| 115 | 106 |
|
| 107 |
if(function_exists('evalDroplets')) { $output = evalDroplets($output); }
|
|
| 108 |
if(function_exists('filter_frontend_output')) { $output = filter_frontend_output($output); }
|
|
| 109 |
echo $output; |
|
| 110 |
|
|
| 116 | 111 |
?> |
Also available in: Unified diff
Add Droplets Modul to the project and the modificated files (index, seach and frontendfunctions)