Hello Runners,
First my thanks for a system which saves time and money, good and improving support and last but not least a collection of PHP Runners who are mor inclined to help each other than hinder.
Now to my question, the introduction of templates was a major improvement in the system which reduded Project time even more. In the Templates it is possible to import external files which are then included in the build run.
My problem is that the PHPRunner variables are being ignored and appear in the built file as ##VARIABLE##
and not as in the standard files. For example if I make a copy of the menu.php in my template here a piece of code.
origional PHPRunner menu.php
<?php
ini_set("display_errors","1");
ini_set("display_startup_errors","1");
session_start();
set_magic_quotes_runtime(0);
include("include/dbcommon.php");
LOGIN##
if(!@$_SESSION["UserID"])
{
header("Location: login.php");
return;
}
/LOGIN##
MULTILANG##include("include/languages.php");##/MULTILANG
This then becomes in the built code
<?php
ini_set("display_errors","1");
ini_set("display_startup_errors","1");
session_start();
set_magic_quotes_runtime(0);
include("include/dbcommon.php");
if(!@$_SESSION["UserID"])
{
header("Location: login.php");
return;
}
include("include/languages.php");
?>
However the same code in an external php file becomes
<?php
ini_set("display_errors","1");
ini_set("display_startup_errors","1");
session_start();
set_magic_quotes_runtime(0);
include("include/dbcommon.php");
LOGIN##
if(!@$_SESSION["UserID"])
{
header("Location: login.php");
return;
}
/LOGIN##
MULTILANG##include("include/languages.php");##/MULTILANG##
?>
This is only an example to show that the PHPRunner Variables are ignored.
Question:
Is it possible to have external files scanned for PHPRunner Variables and to use them?
Question:
If I put my code into the PHPRunner menu.php and use PHPRunner Variables will they be processed?
thanks in advance for any help.
Robert