> /home/data/sources/log/getInpiDecisions.log * 00 19 * * * /home/scores/batch/getInpiDecisions.php >> /home/data/sources/log/getInpiDecisionsSoir.log */ // Define path to application directory defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application')); // Define application environment defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production')); // Ensure library/ is on include_path set_include_path(implode(PATH_SEPARATOR, array( realpath(APPLICATION_PATH . '/../library'), get_include_path(), ))); //Use classmap autoloader - useful with opcode and realpath cache require_once 'Zend/Loader/AutoloaderFactory.php'; require_once 'Zend/Loader/ClassMapAutoloader.php'; Zend_Loader_AutoloaderFactory::factory(array( 'Zend_Loader_ClassMapAutoloader' => array( __DIR__ . '/../library/Zend/autoload_classmap.php', __DIR__ . '/../library/Application/autoload_classmap.php', __DIR__ . '/../library/Scores/autoload_classmap.php', __DIR__ . '/../application/autoload_classmap.php', ), 'Zend_Loader_StandardAutoloader' => array( 'prefixes' => array( 'Zend' => __DIR__ . '/../library/Zend', 'Application' => __DIR__ . '/../library/Application', 'Scores' => __DIR__ . '/../library/Scores', 'SdMetier' => __DIR__ . '/../library/SdMetier', 'Metier' => __DIR__ . '/../library/Metier', ), 'fallback_autoloader' => true ) )); // Zend_Application - Use it if you don't have autoloaders //require_once 'Zend/Application.php'; // Create application, bootstrap, and run $application = new Zend_Application( APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini' ); $c = new Zend_Config($application->getOptions()); $db = Zend_Db::factory($c->profil->db->metier); Zend_Db_Table::setDefaultAdapter($db); require_once APPLICATION_PATH.'/configs/config.php'; require_once 'framework/fwk.php'; require_once 'framework/common/chiffres.php'; require_once 'framework/common/dates.php'; require_once 'framework/mail/sendMail.php'; require_once 'Metier/insee/classMInsee.php'; require_once 'Metier/partenaires/classMRncs.php'; require_once 'Metier/partenaires/classMGreffes.php'; $table='annonces'; function wsLog($service, $siret='', $ref='') {} define('RNCS_IMR_FTP_HOST', '194.5.119.252'); define('RNCS_IMR_FTP_LOGIN', 'score'); define('RNCS_IMR_FTP_PASS', '1eUauTJZ'); define('RNCS_IMR_FTP_DIR', '/var/home_ftp/score/Send/'); define('RNCS_IMR_FTP_LOCALDIR', '/home/data/sources/rncs/extelia/'); define('RNCS_IMR_BACKUP_DIR', '/home/data/sources/rncs/imr/'); $strInfoScript='Usage : '.basename($argv[0]). "