Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

How To Include Some Php In Header Rate Topic   - - - - -

 
  • sinit
  • Newbie
  • Members
  • Join Date: 13-Jun 18
  • 1 posts

Posted 13 June 2018 - 06:40 AM #1

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....48505.sgvps.net

 

But it wont work (version is 4.7.4)

 

Thank you in advance

Kind regards

Kris



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17405 posts

Posted 13 June 2018 - 01:20 PM #2

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

<?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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.