pittmike
June 9th, 2005, 13:42
After throwing my head into the problem that PHP Safe Mode = ON does bring Facile Forms into problems, I made the following that does work for me (and hopefully others as well):
File: /components/com_facileforms/facileforms.frame.php
Line 18-21 shall read as:
// get mos basics
// chdir($ff_mospath);
include_once($ff_mospath.'/globals.php');
require_once($ff_mospath.'/configuration.php');
Line 42-44 shall read as:
/** mainframe is an API workhorse, lots of 'core' interaction routines */
$mainframe = new mosMainFrame( $database, $option, $ff_mospath );
$mainframe->initSession();
Apparently there is also mistake in one of the Mambo Core files:
File: /includes/mambo.php
Line 2376-2377 shall read as:
function mosGetBrowser( $agent ) {
require( "agent_browser.php" );
Line 2414-2415 shall read as:
function mosGetOS( $agent ) {
require( "agent_os.php" );
The "require" statements are called from within mambo.php, so the additional path is not necessary and does point PHP into a wrong direction apparently.
With these corrections, Facile Forms does work here on my site now with PHP Safe Mode ON.
Hopefully the author of Facile Forms can incorporate the changes for his files into a future release.
And the guys from Mambo Server can look into their part of the code changes... :)
File: /components/com_facileforms/facileforms.frame.php
Line 18-21 shall read as:
// get mos basics
// chdir($ff_mospath);
include_once($ff_mospath.'/globals.php');
require_once($ff_mospath.'/configuration.php');
Line 42-44 shall read as:
/** mainframe is an API workhorse, lots of 'core' interaction routines */
$mainframe = new mosMainFrame( $database, $option, $ff_mospath );
$mainframe->initSession();
Apparently there is also mistake in one of the Mambo Core files:
File: /includes/mambo.php
Line 2376-2377 shall read as:
function mosGetBrowser( $agent ) {
require( "agent_browser.php" );
Line 2414-2415 shall read as:
function mosGetOS( $agent ) {
require( "agent_os.php" );
The "require" statements are called from within mambo.php, so the additional path is not necessary and does point PHP into a wrong direction apparently.
With these corrections, Facile Forms does work here on my site now with PHP Safe Mode ON.
Hopefully the author of Facile Forms can incorporate the changes for his files into a future release.
And the guys from Mambo Server can look into their part of the code changes... :)