checkFilePermissions(); if ( Misc::setProcessUID( Misc::findWebServerOSUser() ) != true ) { //Debug::Display(); //Handled in TTShutdown now. //Debug::writeToLog(); //Handled in TTShutdown now. exit( 1 ); } } //Check post install requirements, because PHP CLI usually uses a different php.ini file. if ( $install_obj->checkAllRequirements( true ) == 1 ) { $failed_requirements = $install_obj->getFailedRequirements( true ); unset( $failed_requirements[0] ); echo "----WARNING----WARNING----WARNING-----\n"; echo "--------------------------------------\n"; echo "Minimum PHP Requirements are NOT met!!\n"; echo "--------------------------------------\n"; echo "Failed Requirements: " . implode( ',', (array)$failed_requirements ) . " \n"; echo "--------------------------------------\n"; echo "PHP INI: " . $install_obj->getPHPConfigFile() . " \n"; echo "Process Owner: " . $install_obj->getWebServerUser() . " \n"; echo "--------------------------------------\n\n\n"; } unset( $install_obj ); TTi18n::chooseBestLocale(); //Make sure a locale is set, specifically when generating PDFs. //Uncomment the below block to force debug logging with maintenance jobs. /* Debug::setEnable( TRUE ); Debug::setBufferOutput( TRUE ); Debug::setEnableLog( TRUE ); if ( Debug::getVerbosity() <= 1 ) { Debug::setVerbosity( 1 ); } */ ?>