Merge from branch 2.8, ready to release
This commit is contained in:
commit
399ed2f638
@ -1,39 +0,0 @@
|
||||
<?php
|
||||
// Generated by ZF's ./bin/classmap_generator.php
|
||||
return array(
|
||||
'Bootstrap' => dirname(__FILE__) . '//Bootstrap.php',
|
||||
'AideController' => dirname(__FILE__) . '//controllers/AideController.php',
|
||||
'AuthController' => dirname(__FILE__) . '//controllers/AuthController.php',
|
||||
'BdfController' => dirname(__FILE__) . '//controllers/BdfController.php',
|
||||
'DashboardController' => dirname(__FILE__) . '//controllers/DashboardController.php',
|
||||
'DirigeantController' => dirname(__FILE__) . '//controllers/DirigeantController.php',
|
||||
'ErrorController' => dirname(__FILE__) . '//controllers/ErrorController.php',
|
||||
'EvaluationController' => dirname(__FILE__) . '//controllers/EvaluationController.php',
|
||||
'FichierController' => dirname(__FILE__) . '//controllers/FichierController.php',
|
||||
'FinanceController' => dirname(__FILE__) . '//controllers/FinanceController.php',
|
||||
'GiantController' => dirname(__FILE__) . '//controllers/GiantController.php',
|
||||
'IdentiteController' => dirname(__FILE__) . '//controllers/IdentiteController.php',
|
||||
'IndexController' => dirname(__FILE__) . '//controllers/IndexController.php',
|
||||
'JuridiqueController' => dirname(__FILE__) . '//controllers/JuridiqueController.php',
|
||||
'LogoController' => dirname(__FILE__) . '//controllers/LogoController.php',
|
||||
'MandataireController' => dirname(__FILE__) . '//controllers/MandataireController.php',
|
||||
'OrderController' => dirname(__FILE__) . '//controllers/OrderController.php',
|
||||
'PiecesController' => dirname(__FILE__) . '//controllers/PiecesController.php',
|
||||
'PrintController' => dirname(__FILE__) . '//controllers/PrintController.php',
|
||||
'RechercheController' => dirname(__FILE__) . '//controllers/RechercheController.php',
|
||||
'SaisieController' => dirname(__FILE__) . '//controllers/SaisieController.php',
|
||||
'SurveillanceController' => dirname(__FILE__) . '//controllers/SurveillanceController.php',
|
||||
'TelechargementController' => dirname(__FILE__) . '//controllers/TelechargementController.php',
|
||||
'UserController' => dirname(__FILE__) . '//controllers/UserController.php',
|
||||
'WorldcheckController' => dirname(__FILE__) . '//controllers/WorldcheckController.php',
|
||||
'Zend_View_Helper_CssHelper' => dirname(__FILE__) . '//views/default/helpers/CssHelper.php',
|
||||
'Zend_View_Helper_Editable' => dirname(__FILE__) . '//views/default/helpers/Editable.php',
|
||||
'Zend_View_Helper_FormatPct' => dirname(__FILE__) . '//views/default/helpers/FormatPct.php',
|
||||
'Zend_View_Helper_JavascriptHelper' => dirname(__FILE__) . '//views/default/helpers/JavascriptHelper.php',
|
||||
'Zend_View_Helper_MenuScript' => dirname(__FILE__) . '//views/default/helpers/MenuScript.php',
|
||||
'Zend_View_Helper_NewsDate' => dirname(__FILE__) . '//views/mobile/helpers/NewsDate.php',
|
||||
'Zend_View_Helper_RemplaceSiren' => dirname(__FILE__) . '//views/default/helpers/RemplaceSiren.php',
|
||||
'Zend_View_Helper_SirenTexte' => dirname(__FILE__) . '//views/default/helpers/SirenTexte.php',
|
||||
'Zend_View_Helper_SiretTexte' => dirname(__FILE__) . '//views/default/helpers/SiretTexte.php',
|
||||
'Zend_View_Helper_TrueLabel' => dirname(__FILE__) . '//views/default/helpers/TrueLabel.php',
|
||||
);
|
@ -29,7 +29,7 @@ class AuthController extends Zend_Controller_Action
|
||||
//Désactiver le layout
|
||||
$this->_helper->layout()->disableLayout();
|
||||
|
||||
$this->view->headLink()->appendStylesheet($this->themes->pathStyle.'/user.css', 'all');
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
||||
|
@ -645,7 +645,7 @@ class DashboardController extends Zend_Controller_Action
|
||||
|
||||
public function usersAction()
|
||||
{
|
||||
$this->view->headLink()->appendStylesheet($this->themes->pathStyle.'/user.css', 'all');
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
|
||||
@ -672,7 +672,7 @@ class DashboardController extends Zend_Controller_Action
|
||||
|
||||
public function userAction()
|
||||
{
|
||||
$this->view->headLink()->appendStylesheet($this->themes->pathStyle.'/user.css', 'all');
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/user.js', 'text/javascript');
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
@ -46,7 +46,7 @@ class GiantController extends Zend_Controller_Action
|
||||
// --- Theme
|
||||
$this->theme = Zend_Registry::get('theme');
|
||||
|
||||
$this->view->headLink()->appendStylesheet($this->themes->pathStyle.'/giant.css', 'all');
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/giant.css', 'all');
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/giant.js', 'text/javascript');
|
||||
$this->view->debug = false;
|
||||
$this->config = new Zend_Config_Ini( APPLICATION_PATH.'/../library/Giant/giant.ini' );
|
||||
@ -260,7 +260,7 @@ class GiantController extends Zend_Controller_Action
|
||||
public function startmonitoringAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->view->headLink()->appendStylesheet($this->themes->pathStyle.'/giant.css', 'all');
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/giant.css', 'all');
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/giant.js', 'text/javascript');
|
||||
$this->view->lang = $this->getRequest()->getParam('lang');
|
||||
$this->view->CompanyId = $this->getRequest()->getParam('CompanyId');
|
||||
@ -295,7 +295,7 @@ class GiantController extends Zend_Controller_Action
|
||||
public function stopmonitoringAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->view->headLink()->appendStylesheet($this->themes->pathStyle.'/giant.css', 'all');
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/giant.css', 'all');
|
||||
$this->view->CompanyId = $this->getRequest()->getParam('CompanyId');
|
||||
$this->view->InternalOrderId = $this->getRequest()->getParam('InternalOrderId');
|
||||
$this->view->Pays = $this->getRequest()->getParam('Pays');
|
||||
@ -318,7 +318,7 @@ class GiantController extends Zend_Controller_Action
|
||||
public function updatemonitoringAction()
|
||||
{
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->view->headLink()->appendStylesheet($this->themes->pathStyle.'/giant.css', 'all');
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/giant.css', 'all');
|
||||
$this->view->lang = $this->getRequest()->getParam('lang');
|
||||
$this->view->CompanyId = $this->getRequest()->getParam('CompanyId');
|
||||
$this->view->InternalOrderId = $this->getRequest()->getParam('InternalOrderId');
|
||||
|
@ -824,50 +824,35 @@ class PiecesController extends Zend_Controller_Action
|
||||
|
||||
$session = new Scores_Session_Entreprise($this->siret, $this->id);
|
||||
|
||||
$c = Zend_Registry::get('config');
|
||||
$path = $c->profil->path->data.'/association/actes';
|
||||
|
||||
$actes = array();
|
||||
if ( !empty($siren) || intval($siren)==0 ){
|
||||
foreach (glob("$path/ST-".$siren."-*.pdf") as $filename) {
|
||||
preg_match('/ST-([0-9]{9})-([0-9]{8})\.pdf$/', $filename, $matches);
|
||||
$date = $matches[2];
|
||||
if ( $user->checkPerm('actes') ) {
|
||||
$href = $this->view->url(array(
|
||||
'controller'=>'pieces',
|
||||
'action'=>'associationacte',
|
||||
'fichier'=> basename($filename),
|
||||
), 'default', true);
|
||||
$title = 'Télécharger le document correspondant';
|
||||
} else {
|
||||
$href = '#';
|
||||
$title = 'Vous n\'avez pas les droits nécessaires pour commander le document correspondant.';
|
||||
}
|
||||
$actes[$date] = array(
|
||||
'date' => substr($date,6,2).'/'.substr($date,4,2).'/'.substr($date,0,4),
|
||||
'type' => 'Statut',
|
||||
'href' => $href,
|
||||
'descision' => '',
|
||||
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$session = new Scores_Session_Entreprise($this->siret);
|
||||
if (substr($session->AutreId,0.1)=='W'){
|
||||
foreach (glob("$path/ST-".$session->AutreId."-*.pdf") as $filename) {
|
||||
preg_match('/ST-(.*)-([0-9]{8})\.pdf$/', $filename, $matches);
|
||||
$date = $matches[2];
|
||||
$actes[$date] = array(
|
||||
'date' => substr($date,6,2).'/'.substr($date,4,2).'/'.substr($date,0,4),
|
||||
'type' => 'Statut',
|
||||
'fichier' => $filename,
|
||||
'descision' => '',
|
||||
);
|
||||
}
|
||||
}
|
||||
krsort($actes);
|
||||
$this->view->assign('actes', $actes);
|
||||
// --- Liste des documents depuis le webservice
|
||||
$ws = new Scores_Ws_Client('pieces', '0.1');
|
||||
$params = new stdClass();
|
||||
$params->companyId = $siren;
|
||||
$result = $ws->getAssoActes($params);
|
||||
$actes = array();
|
||||
Zend_Registry::get('firebug')->info($result);
|
||||
if (count($result->item) > 0) {
|
||||
foreach ($result->item as $item) {
|
||||
Zend_Registry::get('firebug')->info($item);
|
||||
if ( $user->checkPerm('actes') ) {
|
||||
$href = $this->view->url(array('controller'=>'pieces', 'action'=>'associationacte',
|
||||
'date'=> $item->Date), 'default', true);
|
||||
$title = 'Télécharger le document correspondant';
|
||||
} else {
|
||||
$href = '#';
|
||||
$title = "Vous n'avez pas les droits nécessaires pour commander le document correspondant.";
|
||||
}
|
||||
$actes[] = array(
|
||||
'date' => substr($item->Date,8,2).'/'.substr($item->Date,5,2).'/'.substr($item->Date,0,4),
|
||||
'type' => 'Statut',
|
||||
'href' => $href,
|
||||
'title' => $title,
|
||||
'file' => $item->File,
|
||||
'decision' => '',
|
||||
);
|
||||
}
|
||||
}
|
||||
$this->view->assign('actes', $actes);
|
||||
|
||||
$this->view->assign('ModeEdition', $user->checkModeEdition());
|
||||
$this->view->assign('email', $user->getEmail());
|
||||
@ -882,27 +867,52 @@ class PiecesController extends Zend_Controller_Action
|
||||
*/
|
||||
public function associationacteAction()
|
||||
{
|
||||
//Désactivation affichage
|
||||
// --- Désactivation affichage
|
||||
$this->_helper->layout()->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
|
||||
$siren = substr($this->siret, 0,9);
|
||||
|
||||
$request = $this->getRequest();
|
||||
$file = $request->getParam('fichier');
|
||||
$date = $request->getParam('date');
|
||||
|
||||
$ws = new WsScores();
|
||||
$ws->setLog('greffe_actes', $siren, 0, 'Acte association');
|
||||
// --- Chemin du fichier
|
||||
$ws = new Scores_Ws_Client('pieces', '0.1');
|
||||
$params = new stdClass();
|
||||
$params->companyId = $siren;
|
||||
$params->type = 'siren';
|
||||
$params->date = $date;
|
||||
$result = $ws->getAssoActe($params);
|
||||
if ($result === false) {
|
||||
$this->view->assign('msg', "Erreur lors de la demande du fichier");
|
||||
} else {
|
||||
// --- Récupération du fichier
|
||||
if ( !empty($result) ) {
|
||||
try {
|
||||
$client = new Zend_Http_Client($result);
|
||||
$client->setStream();
|
||||
$stream = $client->request('GET');
|
||||
if ( $stream->isSuccessful() && substr($stream->getBody(),0,4)=='%PDF' ) {
|
||||
$c = Zend_Registry::get('config');
|
||||
$file = 'ST-'.$siren.'-'.$date.'.pdf';
|
||||
if (copy($stream->getStreamName(), $c->profil->path->files . '/' . $file)) {
|
||||
$this->view->assign('url', $this->view->url(array('controller' => 'fichier',
|
||||
'action' => 'greffe'), 'default', true).'/'.$file);
|
||||
} else {
|
||||
$this->view->assign('msg', "Impossible de distribuer le fichier.");
|
||||
}
|
||||
} else {
|
||||
$this->view->assign('msg', "Erreur lors du téléchargement du fichier.");
|
||||
}
|
||||
} catch (Zend_Http_Client_Exception $e) {
|
||||
Zend_Registry::get('firebug')->info('HTTP Exception : '.$e->getMessage());
|
||||
$this->view->assign('msg', "Erreur lors du téléchargement du fichier.");
|
||||
}
|
||||
|
||||
$href = $this->view->url(array(
|
||||
'controller'=>'fichier',
|
||||
'action'=>'pdfassociation',
|
||||
'type'=>'actes',
|
||||
'fichier'=>$file,
|
||||
), 'default', true);
|
||||
|
||||
echo '<br/><a href="'.$href.'" target="_blank">Cliquez ici pour ouvrir le fichier</a>';
|
||||
exit;
|
||||
} else {
|
||||
$this->view->assign('msg', "Fichier indisponible !");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -929,13 +939,9 @@ class PiecesController extends Zend_Controller_Action
|
||||
foreach ( $listBilans as $item) {
|
||||
if ( $user->checkPerm('actes') ) {
|
||||
if ( !empty($item->File) ) {
|
||||
$href = $this->view->url(array(
|
||||
'controller'=>'pieces',
|
||||
'action'=>'associationbilan',
|
||||
'siren'=> $siren,
|
||||
'dateCloture'=> $item->DateCloture,
|
||||
'reference'=> $item->File,
|
||||
), 'default', true);
|
||||
$href = $this->view->url(array('controller'=>'pieces', 'action'=>'associationbilan',
|
||||
'siren'=> $siren, 'dateCloture'=> $item->DateCloture, 'reference'=> $item->File),
|
||||
'default', true);
|
||||
$title = 'Télécharger le document correspondant';
|
||||
} else {
|
||||
$href = '#';
|
||||
|
@ -273,7 +273,7 @@ class SaisieController extends Zend_Controller_Action
|
||||
$this->currencies = $currencies;
|
||||
}
|
||||
|
||||
$this->view->headLink()->appendStylesheet($this->themes->pathStyle.'/saisie.css', 'all');
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/saisie.css', 'all');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -41,7 +41,7 @@ class UserController extends Zend_Controller_Action
|
||||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
$this->view->headLink()->appendStylesheet($this->themes->pathStyle.'/user.css', 'all');
|
||||
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
|
||||
|
@ -0,0 +1,5 @@
|
||||
<?php if($this->msg) {?>
|
||||
<?=$this->msg?>
|
||||
<?php } else {?>
|
||||
<a href="<?=$this->url?>" target="_blank">Télécharger le fichier</a>
|
||||
<?php }?>
|
@ -25,7 +25,7 @@
|
||||
<p>Nous ne disposons pas de l'intégralité des statuts des associations en ligne,
|
||||
mais il est possible de commander les derniers statuts à jour de l'association
|
||||
(délai approximatif de 15 jours)</p>
|
||||
|
||||
|
||||
<a id="asso-statut" title="Statut Association" href="<?=$this->url(array('controller'=>'pieces',
|
||||
'action'=>'cmdassociation'))?>">Commander les statuts de l'association...</a>
|
||||
<script type="text/javascript">
|
||||
@ -52,15 +52,19 @@
|
||||
return false;
|
||||
});
|
||||
</script>
|
||||
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<?php if (count($this->actes)!=0){?>
|
||||
<table class="greffe">
|
||||
<thead>
|
||||
<tr><th>Date</th><th>Type</th><th>Décisions</th>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Type</th>
|
||||
<th>Décisions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->actes as $acte):?>
|
||||
<?php foreach($this->actes as $acte) {?>
|
||||
<tr>
|
||||
<td class="date"><?=$acte['date']?></td>
|
||||
<td class="type"><?=$acte['type']?>
|
||||
@ -72,7 +76,7 @@
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
<?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php }?>
|
||||
@ -111,5 +115,5 @@ $('#acteUpload').on('click', function(e){
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
@ -1,38 +0,0 @@
|
||||
<?php
|
||||
// Generated by ZF's ./bin/classmap_generator.php
|
||||
return array(
|
||||
'Application_Controller_Plugin_Auth' => dirname(__FILE__) . '//Controller/Plugin/Auth.php',
|
||||
'Application_Controller_Plugin_Cgu' => dirname(__FILE__) . '//Controller/Plugin/Cgu.php',
|
||||
'Application_Controller_Plugin_Lang' => dirname(__FILE__) . '//Controller/Plugin/Lang.php',
|
||||
'Application_Controller_Plugin_Menu' => dirname(__FILE__) . '//Controller/Plugin/Menu.php',
|
||||
'Application_Controller_Plugin_Pdf' => dirname(__FILE__) . '//Controller/Plugin/Pdf.php',
|
||||
'Application_Controller_Plugin_Theme' => dirname(__FILE__) . '//Controller/Plugin/Theme.php',
|
||||
'Application_Controller_Plugin_Xml' => dirname(__FILE__) . '//Controller/Plugin/Xml.php',
|
||||
'Application_Form_Login' => dirname(__FILE__) . '//Form/Login.php',
|
||||
'Application_Form_RechercheActionnaire' => dirname(__FILE__) . '//Form/RechercheActionnaire.php',
|
||||
'Application_Form_RechercheDirigeant' => dirname(__FILE__) . '//Form/RechercheDirigeant.php',
|
||||
'Application_Form_RechercheEnquete' => dirname(__FILE__) . '//Form/RechercheEnquete.php',
|
||||
'Application_Form_RechercheEntreprise' => dirname(__FILE__) . '//Form/RechercheEntreprise.php',
|
||||
'Application_Form_RechercheWorldcheck' => dirname(__FILE__) . '//Form/RechercheWorldcheck.php',
|
||||
'Application_Model_ActesFiles' => dirname(__FILE__) . '//Model/ActesFiles.php',
|
||||
'Application_Model_BilanInput' => dirname(__FILE__) . '//Model/BilanInput.php',
|
||||
'Application_Model_City' => dirname(__FILE__) . '//Model/City.php',
|
||||
'Application_Model_ClientStat' => dirname(__FILE__) . '//Model/ClientStat.php',
|
||||
'Application_Model_Commandes' => dirname(__FILE__) . '//Model/Commandes.php',
|
||||
'Application_Model_CommandesErreur' => dirname(__FILE__) . '//Model/CommandesErreur.php',
|
||||
'Application_Model_CommandesGiants' => dirname(__FILE__) . '//Model/CommandesGiants.php',
|
||||
'Application_Model_CommandesKbis' => dirname(__FILE__) . '//Model/CommandesKbis.php',
|
||||
'Application_Model_CommandesPieces' => dirname(__FILE__) . '//Model/CommandesPieces.php',
|
||||
'Application_Model_CommandesStatut' => dirname(__FILE__) . '//Model/CommandesStatut.php',
|
||||
'Application_Model_CommandesTarifs' => dirname(__FILE__) . '//Model/CommandesTarifs.php',
|
||||
'Application_Model_FctDir' => dirname(__FILE__) . '//Model/FctDir.php',
|
||||
'Application_Model_MonitoringGiants' => dirname(__FILE__) . '//Model/MonitoringGiants.php',
|
||||
'Application_Model_Naf5' => dirname(__FILE__) . '//Model/Naf5.php',
|
||||
'Application_Model_Nouveautes' => dirname(__FILE__) . '//Model/Nouveautes.php',
|
||||
'Application_Model_RapportsGiants' => dirname(__FILE__) . '//Model/RapportsGiants.php',
|
||||
'Application_Model_RetriveGiants' => dirname(__FILE__) . '//Model/RetriveGiants.php',
|
||||
'Application_Model_TabDepartements' => dirname(__FILE__) . '//Model/TabDepartements.php',
|
||||
'Application_Model_TabEvenements' => dirname(__FILE__) . '//Model/TabEvenements.php',
|
||||
'Application_Model_TabFJur' => dirname(__FILE__) . '//Model/TabFJur.php',
|
||||
'Application_Model_Worldcheck' => dirname(__FILE__) . '//Model/Worldcheck.php',
|
||||
);
|
@ -181,13 +181,13 @@ class Scores_Finance_Ratios_Graph
|
||||
$i=-100; while($i>100){
|
||||
$labelsY[] = $i;
|
||||
}
|
||||
$c = new XYChart(350, 250);
|
||||
$c->setPlotArea(70, 10, 280, 200);
|
||||
$c = new XYChart(380, 250);
|
||||
$c->setPlotArea(65, 10, 280, 200);
|
||||
$c->yAxis->setTitle($data['unite']);
|
||||
$c->xAxis->setTitle("Années");
|
||||
$c->xAxis->setWidth(2);
|
||||
$c->yAxis->setWidth(2);
|
||||
$legendObj = $c->addLegend(50, 10, false, "times.ttf", 9);
|
||||
$legendObj = $c->addLegend(65, 10, false, "times.ttf", 9);
|
||||
$legendObj->setBackground(Transparent);
|
||||
$c->addLineLayer($dataX1, 0x0000ff, "Entreprise");
|
||||
$c->addLineLayer($dataX2, 0x008C00, "Secteur");
|
||||
|
@ -8,5 +8,9 @@ return array(
|
||||
'debug' => true,
|
||||
'errorMsg' => array('0902'),
|
||||
),
|
||||
'getAssoActes' => array(
|
||||
'debug' => true,
|
||||
),
|
||||
'getAssoActe' => array(),
|
||||
)
|
||||
);
|
@ -1,41 +0,0 @@
|
||||
<?php
|
||||
// Generated by ZF's ./bin/classmap_generator.php
|
||||
return array(
|
||||
'Annonces' => dirname(__FILE__) . '//Annonces.php',
|
||||
'Scores_Auth_Adapter_Db' => dirname(__FILE__) . '//Auth/Adapter/Db.php',
|
||||
'Scores_Auth_Adapter_Ws' => dirname(__FILE__) . '//Auth/Adapter/Ws.php',
|
||||
'BDF' => dirname(__FILE__) . '//Bdf.php',
|
||||
'Cache' => dirname(__FILE__) . '//Cache.php',
|
||||
'Scores_Export_ArrayCsv' => dirname(__FILE__) . '//Export/ArrayCsv.php',
|
||||
'Scores_Export_Print' => dirname(__FILE__) . '//Export/Print.php',
|
||||
'Scores_Finance_Liasse_XLS' => dirname(__FILE__) . '//Finance/Liasse/XLS.php',
|
||||
'Scores_Finance_Liasse' => dirname(__FILE__) . '//Finance/Liasse.php',
|
||||
'Scores_Finance_Ratios_Data' => dirname(__FILE__) . '//Finance/Ratios/Data.php',
|
||||
'Scores_Finance_Ratios_Graph' => dirname(__FILE__) . '//Finance/Ratios/Graph.php',
|
||||
'GestionCommande' => dirname(__FILE__) . '//GestionCommandes.php',
|
||||
'Scores_Google_Maps' => dirname(__FILE__) . '//Google/Maps.php',
|
||||
'Scores_Google_Streetview' => dirname(__FILE__) . '//Google/Streetview.php',
|
||||
'IdentiteEntreprise' => dirname(__FILE__) . '//IdentiteEntreprise.php',
|
||||
'IdentiteProcol' => dirname(__FILE__) . '//IdentiteProcol.php',
|
||||
'Scores_Insee_AvisSituation' => dirname(__FILE__) . '//Insee/AvisSituation.php',
|
||||
'Scores_Insee_Iris' => dirname(__FILE__) . '//Insee/Iris.php',
|
||||
'Scores_Locale_String' => dirname(__FILE__) . '//Locale/String.php',
|
||||
'Logo' => dirname(__FILE__) . '//Logo.php',
|
||||
'Scores_Mail_Method' => dirname(__FILE__) . '//Mail/Method.php',
|
||||
'Mappy' => dirname(__FILE__) . '//Mappy.php',
|
||||
'Scores_Menu' => dirname(__FILE__) . '//Menu.php',
|
||||
'Scores_Mobile_Detect' => dirname(__FILE__) . '//Mobile/Detect.php',
|
||||
'Scores_Pdf_Fpdi' => dirname(__FILE__) . '//Pdf/Fpdi.php',
|
||||
'Scores_Pdf_Page' => dirname(__FILE__) . '//Pdf/Page.php',
|
||||
'PdfParser' => dirname(__FILE__) . '//Pdf/PdfParser.php',
|
||||
'Scores_Pdf_Tcpdf' => dirname(__FILE__) . '//Pdf/Tcpdf.php',
|
||||
'RapportComment' => dirname(__FILE__) . '//RapportComment.php',
|
||||
'Scores_Serializer_Adapter_Xml' => dirname(__FILE__) . '//Serializer/Adapter/Xml.php',
|
||||
'Scores_Session_Entreprise' => dirname(__FILE__) . '//Session/Entreprise.php',
|
||||
'Scores_Session_Recherche' => dirname(__FILE__) . '//Session/Recherche.php',
|
||||
'Siren' => dirname(__FILE__) . '//Siren.php',
|
||||
'Scores_Utilisateur' => dirname(__FILE__) . '//Utilisateur.php',
|
||||
'Scores_Wkhtml_Pdf' => dirname(__FILE__) . '//Wkhtml/Pdf.php',
|
||||
'Scores_Ws_Client' => dirname(__FILE__) . '//Ws/Client.php',
|
||||
'WsScores' => dirname(__FILE__) . '//WsScores.php',
|
||||
);
|
File diff suppressed because it is too large
Load Diff
@ -30,10 +30,7 @@ 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',
|
||||
__DIR__ . '/../library/autoload_classmap.php',
|
||||
),
|
||||
'Zend_Loader_StandardAutoloader' => array(
|
||||
'prefixes' => array(
|
||||
|
33
scripts/build/classmap.php
Normal file
33
scripts/build/classmap.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
// 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(),
|
||||
)));
|
||||
|
||||
$dir = array(
|
||||
APPLICATION_PATH,
|
||||
APPLICATION_PATH."/../library/Zend",
|
||||
APPLICATION_PATH."/../library/Application",
|
||||
APPLICATION_PATH."/../library/Scores",
|
||||
);
|
||||
|
||||
$fileClassmap = APPLICATION_PATH."/../library/autoload_classmap.php";
|
||||
|
||||
$i = 0;
|
||||
foreach($dir as $d) {
|
||||
$options = " -a";
|
||||
if ($i==0) {
|
||||
$options = " -w";
|
||||
}
|
||||
passthru("php ".APPLICATION_PATH."/../bin/classmap_generator.php -l ".d.$options." -o ".$fileClassmap);
|
||||
$i++;
|
||||
}
|
@ -19,6 +19,9 @@ set_include_path(implode(PATH_SEPARATOR, array(
|
||||
require_once 'Zend/Loader/AutoloaderFactory.php';
|
||||
require_once 'Zend/Loader/ClassMapAutoloader.php';
|
||||
Zend_Loader_AutoloaderFactory::factory(array(
|
||||
'Zend_Loader_ClassMapAutoloader' => array(
|
||||
__DIR__ . '/../../library/autoload_classmap.php',
|
||||
),
|
||||
'Zend_Loader_StandardAutoloader' => array(
|
||||
'prefixes' => array(
|
||||
'Zend' => __DIR__ . '/../../library/Zend',
|
||||
|
@ -18,10 +18,7 @@ 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',
|
||||
__DIR__ . '/../../library/autoload_classmap.php',
|
||||
),
|
||||
'Zend_Loader_StandardAutoloader' => array(
|
||||
'prefixes' => array(
|
||||
|
@ -24,10 +24,7 @@ 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',
|
||||
__DIR__ . '/../../library/autoload_classmap.php',
|
||||
),
|
||||
'Zend_Loader_StandardAutoloader' => array(
|
||||
'prefixes' => array(
|
||||
@ -138,7 +135,7 @@ if ( $opts->save ) {
|
||||
if ( $opts->send ) {
|
||||
|
||||
echo date('Y-m-d H:i:s')." - Envoi fichier.\n";
|
||||
|
||||
|
||||
$tabFichier = array();
|
||||
|
||||
// --- Selection fichier
|
||||
@ -153,7 +150,7 @@ if ( $opts->send ) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// --- Envoi sur le FTP
|
||||
if (count($tabFichier) > 0) {
|
||||
foreach ($tabFichier as $fichier) {
|
||||
@ -167,6 +164,6 @@ if ( $opts->send ) {
|
||||
echo "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
echo date('Y-m-d H:i:s')." - Envoi fichier FIN.\n";
|
||||
}
|
||||
|
@ -18,10 +18,7 @@ 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',
|
||||
__DIR__ . '/../../library/autoload_classmap.php',
|
||||
),
|
||||
'Zend_Loader_StandardAutoloader' => array(
|
||||
'prefixes' => array(
|
||||
|
@ -19,10 +19,7 @@ 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',
|
||||
__DIR__ . '/../../library/autoload_classmap.php',
|
||||
),
|
||||
'Zend_Loader_StandardAutoloader' => array(
|
||||
'prefixes' => array(
|
||||
|
@ -18,10 +18,7 @@ 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',
|
||||
__DIR__ . '/../../library/autoload_classmap.php',
|
||||
),
|
||||
'Zend_Loader_StandardAutoloader' => array(
|
||||
'prefixes' => array(
|
||||
|
@ -19,10 +19,7 @@ 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',
|
||||
__DIR__ . '/../../library/autoload_classmap.php',
|
||||
),
|
||||
'Zend_Loader_StandardAutoloader' => array(
|
||||
'prefixes' => array(
|
||||
|
@ -19,10 +19,7 @@ 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',
|
||||
__DIR__ . '/../../library/autoload_classmap.php',
|
||||
),
|
||||
'Zend_Loader_StandardAutoloader' => array(
|
||||
'prefixes' => array(
|
||||
|
@ -19,10 +19,7 @@ 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',
|
||||
__DIR__ . '/../../library/autoload_classmap.php',
|
||||
),
|
||||
'Zend_Loader_StandardAutoloader' => array(
|
||||
'prefixes' => array(
|
||||
|
@ -18,10 +18,7 @@ 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',
|
||||
__DIR__ . '/../../library/autoload_classmap.php',
|
||||
),
|
||||
'Zend_Loader_StandardAutoloader' => array(
|
||||
'prefixes' => array(
|
||||
|
Loading…
Reference in New Issue
Block a user