Forums

FOUND PROBLEM - Anti Spam image wont work w/move config file

novagiant 28 Aug, 2008
ABSOULUTELY LOVE CHRONOFORM!!! However, I am in a little bit of a pinch here...

In an effort to secure my J1.5 sites I have moved my config file outside of the public root pretty basic stuff... Basically we have configuration.php in the public root (as normal) but instead of the config code; there is a php require that points to another file with the configuration details which is somewhere else. I read how to do this here http://support.appliedi.net/647/moving-configurationphp-for-better-joomla-security.html

The sites work fine with this set up well, ALL but ChronoForm

PROBLEM is : the anti spam image verificatino does not show up - only a red X. The only way I can get it to work is by placing the REAL confuguration file back inside the public root.

Why would ChronoForm require configuration.php to be like this? since - all other stuff works fine. Do you guys have any suggestions? There must be a line of code somewhere in ChronoForm that points to the standard location of configuration.php???

I am scouring through the code looking for such a line.

thank you!
GreyHead 28 Aug, 2008
Hi novagiant,

I wonder if the problem is with DIRECTORY_SEPARATOR, try defining that inside the chrono_verification.php file.

Bob
novagiant 28 Aug, 2008
Looked at that line but I have no idea what to put there. 😶
GreyHead 28 Aug, 2008
Hi novagiant,

Try this:
// define( 'DS', DIRECTORY_SEPARATOR );

require_once ( JPATH_BASE '/includes/defines.php' );
require_once ( JPATH_BASE '/includes/framework.php' );

If that gives an error try the other slash instead.

Bob
This topic is locked and no more replies can be posted.