change path library

This commit is contained in:
benoitpotier 2017-04-11 09:24:43 +02:00
parent ba51eed034
commit 3f7a1deba5
4 changed files with 21 additions and 21 deletions

View File

@ -61,7 +61,7 @@ if( $opts->generate == 'Tribunaux' ) {
$stmt->execute();
$result = $stmt->fetchAll(\PDO::FETCH_OBJ);
$fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/BodaccTribunaux.php','w');
$fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/BodaccTribunaux.php','w');
fwrite($fp, "<?php\n");
fwrite($fp, "return array(\n");
@ -89,7 +89,7 @@ if ( $opts->generate == 'FctDir' ) {
$stmt->execute();
$result = $stmt->fetchAll(\PDO::FETCH_OBJ);
$fp=fopen(APPLICATION_PATH . '/../library/Metier/Table/FctDir.php','w');
$fp=fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/FctDir.php','w');
fwrite($fp, "<?php\n");
fwrite($fp, "return array(\n");
@ -111,7 +111,7 @@ if ( $opts->generate == 'Evenements' ) {
$stmt->execute();
$result = $stmt->fetchAll(\PDO::FETCH_OBJ);
$fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/Evenements.php','w');
$fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/Evenements.php','w');
fwrite($fp, "<?php\n");
fwrite($fp, "return array(\n");
@ -141,7 +141,7 @@ if ( $opts->generate == 'Devises' ) {
$stmt->execute();
$result = $stmt->fetchAll(\PDO::FETCH_OBJ);
$fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/Devises.php','w');
$fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/Devises.php','w');
fwrite($fp, "<?php\n");
fwrite($fp, "return array(\n");
@ -163,7 +163,7 @@ if ( $opts->generate == 'RncsTribunaux' ) {
$stmt->execute();
$result = $stmt->fetchAll(\PDO::FETCH_OBJ);
$fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/RncsTribunaux.php','w');
$fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/RncsTribunaux.php','w');
fwrite($fp, "<?php\n");
fwrite($fp, "return array(\n");
@ -187,7 +187,7 @@ if ( $opts->generate == 'DevisesInpi' ) {
$stmt->execute();
$result = $stmt->fetchAll(\PDO::FETCH_OBJ);
$fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/DevisesInpi.php','w');
$fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/DevisesInpi.php','w');
fwrite($fp, "<?php\n");
fwrite($fp, "return array(\n");
@ -209,7 +209,7 @@ if ( $opts->generate == 'Jugements' ) {
$stmt->execute();
$result = $stmt->fetchAll(\PDO::FETCH_OBJ);
$fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/Jugements.php','w');
$fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/Jugements.php','w');
fwrite($fp, "<?php\n");
fwrite($fp, "return array(\n");
@ -231,7 +231,7 @@ if ( $opts->generate == 'PaysInpi' ) {
$stmt->execute();
$result = $stmt->fetchAll(\PDO::FETCH_OBJ);
$fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/PaysInpi.php','w');
$fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/PaysInpi.php','w');
fwrite($fp, "<?php\n");
fwrite($fp, "return array(\n");
@ -253,7 +253,7 @@ if ( $opts->generate == 'CodesNaf' ) {
$stmt->execute();
$result = $stmt->fetchAll(\PDO::FETCH_OBJ);
$fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/CodesNaf.php','w');
$fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/CodesNaf.php','w');
fwrite($fp, "<?php\n");
fwrite($fp, "return array(\n");
@ -287,7 +287,7 @@ if ( $opts->generate == 'CodesNace' ) {
$stmt->execute();
$result = $stmt->fetchAll(\PDO::FETCH_OBJ);
$fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/CodesNace.php','w');
$fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/CodesNace.php','w');
fwrite($fp, "<?php\n");
fwrite($fp, "return array(\n");
@ -309,7 +309,7 @@ if ( $opts->generate == 'CodesNafa' ) {
$stmt->execute();
$result = $stmt->fetchAll(\PDO::FETCH_OBJ);
$fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/CodesNafa.php','w');
$fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/CodesNafa.php','w');
fwrite($fp, "<?php\n");
fwrite($fp, "return array(\n");
@ -331,7 +331,7 @@ if ( $opts->generate == 'CodesFJ' ) {
$stmt->execute();
$result = $stmt->fetchAll(\PDO::FETCH_OBJ);
$fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/CodesFJ.php','w');
$fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/CodesFJ.php','w');
fwrite($fp, "<?php\n");
fwrite($fp, "return array(\n");
@ -354,7 +354,7 @@ if ( $opts->generate == 'AffairesTypes' ) {
$stmt->execute();
$result = $stmt->fetchAll(\PDO::FETCH_OBJ);
$fp = fopen(APPLICATION_PATH . '/../library/Metier/Table/AffairesTypes.php','w');
$fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Table/AffairesTypes.php','w');
fwrite($fp, "<?php\n");
fwrite($fp, "return array(\n");
@ -376,7 +376,7 @@ if ( $opts->generate == 'ProcolDelete' ) {
$stmt->execute();
$result = $stmt->fetchAll(\PDO::FETCH_OBJ);
$fp = fopen(APPLICATION_PATH . '/../library/Metier/Defaillance/ProcolDelete.php', 'w');
$fp = fopen(APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Defaillance/ProcolDelete.php', 'w');
fwrite($fp, "<?php\n");
fwrite($fp, "return array(\n");

View File

@ -31,7 +31,7 @@ if ($opts->log) {
$stmt = $conn->prepare($sql);
$stmt->execute();
$outPath = APPLICATION_PATH . '/../library/Scores/Account/Log/List.php';
$outPath = APPLICATION_PATH . '/../vendor/scores/library/src/Scores/Account/Log/List.php';
$outFile = $outPath . '/Config.php';
if ($stmt->rowCount() > 0) {
$result = $stmt->fetchAll(\PDO::FETCH_OBJ);

View File

@ -36,7 +36,7 @@ if ($displayUsage) {
// Fichier MRatios
if (isset($opts->ratios)) {
$configFile = APPLICATION_PATH.'/../library/Metier/Scores/MRatios.php';
$configFile = APPLICATION_PATH.'/../vendor/scores/library/src/Metier/Scores/MRatios.php';
$fp = fopen($configFile, 'w');
fwrite($fp, '<?php'."\n");
@ -471,13 +471,13 @@ if (isset($opts->formules)) {
// Select the right table in database in function of type
switch ($type) {
case 'score':
$file = APPLICATION_PATH.'/../library/Metier/Scores/Formule/Score_'.$version.'.php';
$file = APPLICATION_PATH.'/../vendor/scores/library/src/Metier/Scores/Formule/Score_'.$version.'.php';
$tableFormu = 'jo.scores_formules_'.$version;
$tableComment = 'jo.scores_commentaires_'.$version;
break;
case 'valo':
$file = APPLICATION_PATH.'/../library/Metier/Scores/Formule/Valo_'.$version.'.php';
$file = APPLICATION_PATH.'/../vendor/scores/library/src/Metier/Scores/Formule/Valo_'.$version.'.php';
$tableFormu = 'jo.valo_formules_'.$version;
$tableComment = 'jo.valo_commentaires_'.$version;
break;
@ -791,7 +791,7 @@ if ( isset($opts->comments) ) {
$tableComment = 'jo.valo_commentaires_'.$version;
break;
}
$path = APPLICATION_PATH.'/../library/Metier/Scores/Comment';
$path = APPLICATION_PATH.'/../vendor/scores/library/src/Metier/Scores/Comment';
// Read comments text
$stmt = $conn->executeQuery("SELECT code, langue, cycle, ligne, commentaire, tri, deleted
@ -841,7 +841,7 @@ if ( isset($opts->comments) ) {
// --- Gestion des éléments de cache
if ( $opts->tabcache) {
$pathCache = APPLICATION_PATH . '/../library/Metier/Scores/Data';
$pathCache = APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Scores/Data';
// Variables
$fp = fopen($pathCache . '/Variables.php','w');

View File

@ -286,7 +286,7 @@ else
echo "\n***********************************************\n";
}
$pathCache = APPLICATION_PATH . '/../library/Metier/Scores/Variables';
$pathCache = APPLICATION_PATH . '/../vendor/scores/library/src/Metier/Scores/Variables';
$copy_fic = $nomfichier;
if($nomfichier) // Si le nom du fichier comprend 'scores' ou 'valo'...