External Content

A quite simple solution to merge in itself locked external scripts and show the result at the place of the tag {DOM_SCRIPT}.

Have a look: Containing of php-file/-variables

Docu:
Forum: http://forum.phpwcms.org/viewtopic.php?p=117631#p117631

Autor: O.Georgi http://phpwcms.de
CMS-Version: >= V1.3.0
Version: V1.0 2009/06/23

Fileiname: rt_ext_content.php

Folder: /template/inc_script/frontend_render/

Condition:/config/phpwcms/conf.inc.php


<?php
 
ob_start();
include('my_simple_script.php');
$result = ob_get_contents();
ob_end_clean();
 
$content['all'] = str_raplace('{DOM_SCRIPT}', $result, $content['all']);
?>