How To Include Some Php In Header

Hi all,

Can anyone help me to fix this please?

I trying to add security and include_once php need to be added in to header
which i have added rhis

{php}
include('secure/guarder/config.php');
include('secure/project-security.php');
{/php}


into:
public_html/design/themes/responsive/templates/index.tpl

https://screenshots.firefox.com/Nx9VNd8QqJ5TP1k8/c48505.sgvps.net

But it wont work (version is 4.7.4)

Thank you in advance

Kind regards

Kris

Unfortunately, php tags in SMARTY are disabled in CS-Cart due to security reasons.

Try to use My changes module and create the following file

app/addons/my_changes/controllers/frontend/init.pre.php

if (!defined(‘BOOTSTRAP’)) { die(‘Access denied’); }

if ($_SERVER[‘REQUEST_METHOD’] == ‘POST’) {
return;
}

include(‘secure/guarder/config.php’);
include(‘secure/project-security.php’);

(!) Not tested