Re: Nach Update von 1.5 auf 1.7.9 kein RT {PHP:file.php} meh
Posted: Thu 1. Oct 2015, 13:49
Code: Select all
$phpwcms['allow_cntPHP_rt'] = 1;
The phpwcms support forum will help to find answers to your questions. The small but strong community is here since more than 10 years.
https://forum.phpwcms.org/
Code: Select all
$phpwcms['allow_cntPHP_rt'] = 1;
Code: Select all
$content["all"] = preg_replace_callback('/\{PHP_INLOAD:(.*?)\}/', 'load_php_file', $content["all"]);
function load_php_file($filename = ''){
ob_start();
require_once($filename);
$output = ob_get_contents();
return $output;
}
bitte funktion kurz benennen damit dokumentiert.Oliver Georgi wrote:{PHP_INLOAD:…} ist überflüssig, kann das System selbst. Doppelt moppeln nicht erforderlich.
Code: Select all
render_PHPcode($string='');
Code: Select all
include_ext_php($array(1=>file)/$string)
Code: Select all
include_int_php($array(1=>file)/$string);
Code: Select all
{PHP:file.php/http://example.com/file.html}
[PHP]foobar();[PHP]
{PHPVAR:$foobar=5}