Revision 1520
Added by darkviper almost 14 years ago
| index.php | ||
|---|---|---|
| 4 | 4 |
* @category frontend |
| 5 | 5 |
* @package page |
| 6 | 6 |
* @author WebsiteBaker Project |
| 7 |
* @copyright 2004-2009, Ryan Djurovich |
|
| 8 |
* @copyright 2009-2011, Website Baker Org. e.V. |
|
| 7 |
* @copyright 2009-, Website Baker Org. e.V. |
|
| 9 | 8 |
* @link http://www.websitebaker2.org/ |
| 10 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
| 11 | 10 |
* @platform WebsiteBaker 2.8.x |
| ... | ... | |
| 130 | 129 |
$wb->preprocess($output); |
| 131 | 130 |
} |
| 132 | 131 |
// Load Droplet engine and process |
| 133 |
if(file_exists(WB_PATH .'/modules/droplets/droplets.php')) |
|
| 134 |
{
|
|
| 135 |
include_once(WB_PATH .'/modules/droplets/droplets.php'); |
|
| 136 |
if(function_exists('evalDroplets'))
|
|
| 137 |
{
|
|
| 138 |
$output = evalDroplets($output); |
|
| 139 |
} |
|
| 140 |
} |
|
| 132 |
if(file_exists(WB_PATH .'/modules/droplets/droplets.php')) {
|
|
| 133 |
include_once(WB_PATH .'/modules/droplets/droplets.php'); |
|
| 134 |
if(function_exists('evalDroplets')) {
|
|
| 135 |
$output = evalDroplets($output); |
|
| 136 |
} |
|
| 137 |
} |
|
| 141 | 138 |
// Load backwards compatible frontend filter support and process |
| 142 |
if(file_exists(WB_PATH .'/modules/output_filter/filter-routines.php')) |
|
| 143 |
{
|
|
| 144 |
include_once(WB_PATH .'/modules/output_filter/filter-routines.php'); |
|
| 145 |
if(function_exists('filter_frontend_output'))
|
|
| 146 |
{
|
|
| 147 |
$output = filter_frontend_output($output); |
|
| 148 |
} |
|
| 149 |
} |
|
| 139 |
if(file_exists(WB_PATH .'/modules/output_filter/filter-routines.php')) {
|
|
| 140 |
include_once(WB_PATH .'/modules/output_filter/filter-routines.php'); |
|
| 141 |
if(function_exists('executeFrontendOutputFilter')) {
|
|
| 142 |
$output = executeFrontendOutputFilter($output); |
|
| 143 |
}elseif(function_exists('filter_frontend_output')) {
|
|
| 144 |
$output = filter_frontend_output($output); |
|
| 145 |
} |
|
| 146 |
|
|
| 147 |
} |
|
| 150 | 148 |
// move css definitions into head section |
| 151 |
if(function_exists('moveCssToHead')) {
|
|
| 152 |
$output = moveCssToHead($output); |
|
| 153 |
} |
|
| 149 |
if(function_exists('moveCssToHead')) {
|
|
| 150 |
$output = moveCssToHead($output);
|
|
| 151 |
}
|
|
| 154 | 152 |
// now send complete page to the browser |
| 155 | 153 |
echo $output; |
| 156 | 154 |
// end of wb-script |
Also available in: Unified diff
/modules/output_filter completely recoded
+ new filter for relative-URL added
+ some small fixes
/admin/admintools/tool.php completely recoded
/wb/index.php output_filter request changed to adopt new output_filter