SOLVED: Need help with php inclusion using hesk code

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
marciab80
Posts: 20
Joined: Fri Feb 11, 2011 2:23 pm

SOLVED: Need help with php inclusion using hesk code

Post 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'].'
marciab80
Posts: 20
Joined: Fri Feb 11, 2011 2:23 pm

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

Post 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 :)
Post Reply