Page 1 of 1

SOLVED: Need help with php inclusion using hesk code

Posted: Sat Feb 19, 2011 2:50 am
by marciab80
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Can you help me with some little thing?

I want to include something like

Code: Select all

include("style/blue/template/index.php"); ?>
But instead of blue I need it to be

Code: Select all

include("style/'.$hesk_settings['hesk_style'].'/template/index.php"); ?>
Where

Code: Select all

'.$hesk_settings['hesk_style'].'

Re: SOLVED: Need help with php inclusion using hesk code

Posted: Sat Feb 19, 2011 8:43 pm
by marciab80
So here is the solution

Code: Select all

$url = 'style/'.$hesk_settings['hesk_style'].'/template/index.php';
include($url);

Code: Select all

$url = 'style/'.$hesk_settings['hesk_style'].'/template/knowledgebase.php';
include($url);
So I know have all the files in a template folder that can be set via admin :)