getOptions()); // --- Options $displayUsage = false; try { $opts = new Zend_Console_Getopt(array( 'help|?' => "Displays usage information.", 'siren=s' => "SIREN", )); $opts->parse(); } catch (Zend_Console_Getopt_Exception $e) { $displayUsage = true; } // --- Aide / Options if (count($opts->getOptions())==0 || isset($opts->help)) { $displayUsage = true; } // --- Usage if ($displayUsage) { echo "\nDebuggage Scoring.\n\n"; echo $opts->getUsageMessage(); exit; } $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/Scores/MScores.php'; $tabIndiscore = calculIndiScore($opts->siren, 0, false, 2, false); echo "NOTE/100 = ".$tabIndiscore['Indiscore']; echo "\n"; echo "NOTE/20 = ".$tabIndiscore['Indiscore20']; echo "\n"; echo "ENCOURS = ".$tabIndiscore['encours']; echo "\n";