Forums / Setup & design / Include php code in site.ini.append.php

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Include php code in site.ini.append.php

Author Message

Angelika Freihoff

Friday 11 March 2011 3:54:58 am

Hello,

is it possible to integrate php code in a configuration file like site.ini.append.php with include_once( "../../globaluser/user1/site-ini-common-part.php" );

I am using a Exponential Installation with many different user site accesses. In site.ini I have many common code and only a view differenzen for each site access. For instance google site verification.

For this installation it is not possible to put the common user stuff in override because I will get problems with the admin interface.

So I tried the php include statement, but it looks like it is compleatly ignored. Some ideas?

Thank you very much

Angelika

André R.

Friday 11 March 2011 4:51:24 am

you can not use includes, file_get_contents is used to read file as is to not allow any code to run by design.
You can however use ActiveAccessExtensions to specify a settings extension for these siteaccesses, but be aware that this was buggy prior to 4.4.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom