I have developped a buddy punch application and am offering in in a SaaS mode. On my webserver, I have 15 clients running the same application. Each client has its own directory for its specific business rules and of course its own database. But they all use the same QCodo installation. Its a lot easier to maintain it this way. But it requires that each client has its own configuration file for database credentials, meaning it cannot be in the include directory, which was OK until I updated to version 4. Now these lines in prepend validate that both prepend.inc.php and configuration.inc.php are in the same directory AND validates that prepend is in the includes directory :
if (!file_exists(dirname(__FILE__) . '/configuration.inc.php'))
exit('error: configuration.inc.php missing from includes/ directory; copy includes/qcodo/_core/configuration.inc.php-dist to the includes/ directory');
require(dirname(__FILE__) . '/configuration.inc.php');
if (realpath(__FILE__) != realpath(__INCLUDES__ . '/prepend.inc.php'))
exit('error: __DOCROOT__ and/or __INCLUDES__ settings not valid in configuration.inc.php; update includes/configuration.inc.php with the correct settings');
Is there a functional reason for this, or can I just comment the function or find any workaround? Any thought on this is welcome.
Patrick