Merge branch 'master' into wip-2.9-design2016

Conflicts:
	application/modules/default/controllers/AuthController.php
	application/modules/default/views/default/scripts/auth/index.phtml
	docs/application.ini
	library/Scores/IdentiteEntreprise.php
	library/Scores/Ws/Client/Account.php
	public/themes/default/styles/main.css
This commit is contained in:
Michael RICOIS 2016-12-14 16:11:37 +01:00
commit f338f6a1ed
60 changed files with 929 additions and 1506822 deletions

View File

@ -0,0 +1,266 @@
<?php
class AuthController extends Zend_Controller_Action
{
protected $theme;
protected $partnerConfig = array(
'inextenso' => array(
'logo' => 'logo-in-extenso.gif',
'clientId' => 195,
'serviceCode' => 'SSO',
'authType' => 'userSSO',
'login' => 'mail',
'token' => 'token',
)
);
public function init()
{
// --- Theme
$this->theme = Zend_Registry::get('theme');
}
/**
* Point d'entrée pour les connexions partenaires.
* L'utilisateur s'identifie sur son portail habituel.
*/
public function indexAction()
{
// --- Désactiver le layout
$this->_helper->layout()->disableLayout();
$this->view->headLink()
->appendStylesheet($this->theme->pathStyle.'/inexweb.css', 'all')
->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
$request = $this->getRequest();
/**
* Get partner name - see route in bootstrap
*/
$partner = $request->getParam('partner');
if ( array_key_exists($partner, $this->partnerConfig) ) {
$config = $this->partnerConfig[$partner];
$this->view->logo = $config['logo'];
$params = $request->getParams();
$objectParams = array();
foreach ($params as $label => $value) {
if (in_array($label, array('controller', 'action'))) continue;
$object = new stdClass();
$object->label = $label;
$object->value = $value;
$objectParams[] = $object;
}
$this->view->Params = $objectParams;
$login = $params[$config['login']];
$part = strstr($login, '@', true);
if ($part !== false) {
$login = $part;
}
$token = $params[$config['token']];
try {
$ws = new Scores_Ws_Client('account', '0.1');
$parameters = new stdClass();
$parameters->client = $config['clientId'];
$parameters->login = $login;
$parameters->token = $token;
$parameters->params = $objectParams;
$hash = $ws->ssoAuthenticate($parameters);
// --- Utilisateur inexistant
if ( $hash === 'false' || $hash === false ) {
$this->view->NoUser = true;
$urlParams = array('controller'=>'auth', 'action'=>'userssoform');
$urlParams = array_merge($params, $urlParams);
$this->view->FormUrlParams = $urlParams;
}
// --- Redirection
else {
$auth = Zend_Auth::getInstance();
// --- Set partial identity
$identity = new stdClass();
$identity->username = $login;
$identity->password = $hash;
$auth->getStorage()->write($identity);
// --- End Set partial identity
// --- Get InfosLogin
$adressIp = $_SERVER['REMOTE_ADDR'];
$parameters = new stdClass();
$parameters->login = $login;
$parameters->ipUtilisateur = $adressIp;
$parameters->from = 'auth';
try {
$ws = new Scores_Ws_Client('gestion', '0.3');
$InfosLogin = $ws->getInfosLogin($parameters);
Zend_Registry::get('firebug')->info($InfosLogin);
if ( is_string($InfosLogin) || $InfosLogin->error->errnum != 0 ) {
$this->view->Error = true;
} else {
$user = new Scores_Utilisateur();
$identity = $user->updateProfil($InfosLogin);
$auth->getStorage()->write($identity);
// --- Redirect
$this->redirect('/');
}
} catch ( Exception $e ) {
switch ( $e->getCode() ) {
case 'MSG':
$this->view->Message = $e->getMessage();
break;
default:
$this->view->Error = true;
break;
}
}
// --- End Get InfosLogin
}
} catch ( Exception $e ) {
switch ( $e->getCode() ) {
case 'MSG':
$this->view->Message = $e->getMessage();
break;
default:
$this->view->Error = true;
break;
}
}
} else {
$this->view->Message = "Erreur dans les paramètres.";
}
}
/**
* Affichage du formulaire pour l'inscription des utilisateurs
*/
public function userssoformAction()
{
// --- Désactiver le layout
$this->_helper->layout()->disableLayout();
$this->view->headLink()->appendStylesheet($this->theme->pathStyle.'/user.css', 'all');
$request = $this->getRequest();
/**
* Get partner name - see route in bootstrap
*/
$partner = $request->getParam('partner');
if ( array_key_exists($partner, $this->partnerConfig) ) {
$config = $this->partnerConfig[$partner];
$this->view->logo = $config['logo'];
$params = $request->getParams();
$objectParams = array();
foreach ($params as $label => $value) {
if (in_array($label, array('controller', 'action'))) continue;
$object = new stdClass();
$object->label = $label;
$object->value = $value;
$objectParams[] = $object;
}
$this->view->Params = $objectParams;
$login = $params[$config['login']];
$part = strstr($login, '@', true);
if ($part !== false) {
$login = $part;
}
$token = $params[$config['token']];
$this->view->NoUser = true;
// --- Set form value
$this->view->FormPartner = $partner;
$this->view->FormIdentifiant = $login;
$this->view->FormCourriel = $request->getParam('mail');
$this->view->FormSiret = $request->getParam('siret');
$this->view->FormNom = $request->getParam('lastname');
$this->view->FormPrenom = $request->getParam('name');
}
else {
$this->view->Message = "Erreur dans les paramètres.";
}
}
/**
* Creation d'un utilisateur en SSO
*/
public function userssocreateAction()
{
$this->_helper->layout()->disableLayout();
$request = $this->getRequest();
$partner = $request->getParam('partner');
if ( array_key_exists($partner, $this->partnerConfig) ) {
$config = $this->partnerConfig[$partner];
$this->view->logo = $config['logo'];
$data = array(
'idClient' => $config['clientId'],
'login' => $request->getParam('login'),
'email' => $request->getParam('email', ''),
'actif' => 1,
'nom' => $request->getParam('nom', ''),
'prenom' => $request->getParam('prenom', ''),
'siret' => str_replace(' ', '', $request->getParam('siret', '')),
'tel' => str_replace(array(' ','.'), array('',''), $request->getParam('tel', '')),
'Service' => $config['serviceCode'],
);
try {
$ws = new Scores_Ws_Client('account', '0.1');
$parameters = new stdClass();
$parameters->data = json_encode($data);
$created = $ws->setUserSSO($parameters);
if ($created === false ) {
$this->view->Message = "Erreur lors de la création de votre compte.";
} else {
$this->view->UserCreated = true;
// --- Data to go back
$params = $request->getParams();
$urlArgs = array();
foreach ($params as $label => $value) {
if (in_array($label, array('controller', 'action'))) continue;
if (substr($label, 0, 2) == 'P-') {
$urlArgs[substr($label, 2)] = $value;
}
}
$urlArgs['partner'] = 'inextenso';
$this->view->UrlArgs = $urlArgs;
}
} catch ( Exception $e ) {
switch ( $e->getCode() ) {
case 'MSG':
$this->view->Message = $e->getMessage();
break;
default:
$this->view->Error = true;
break;
}
}
} else {
$this->view->Message = "Erreur dans les paramètres.";
}
}
/**
* Lien de validation depuis email
* Paramètres
* - login ou email
* - key
* L'action renvoi sur un affichage spécifique suivant le type de client
*/
public function validateAction()
{
$request = $this->getRequest();
//Validation en erreur
//Validation invalide
//Validation Ok => Comment afficher les particularités
}
}

View File

@ -248,16 +248,19 @@ class EvaluationController extends Zend_Controller_Action
$this->view->headTitle()->prepend("Siret ".$this->siret);
$user = new Scores_Utilisateur();
if(!$user->checkPerm('INDISCORE2') && !$user->checkPerm('INDISCORE2P'))
if(!$user->checkPerm('INDISCORE2') && !$user->checkPerm('INDISCORE2P')) {
$this->forward('perms', 'error');
}
$siren = substr($this->siret,0,9);
$entreprise = new Scores_Session_Entreprise($this->siret, $this->id);
//@todo : transformer le webservice pour ne faire qu'une seule requete
$ws = new WsScores();
$entreprise = new Scores_Session_Entreprise($this->siret, $this->id);
$identite = $ws->getIdentite($siren);
$indiscore = $ws->getIndiScore($siren);
$indiscore = $ws->getIndiScore($siren, 0, 1);
if ($indiscore === false) {
$this->forward('soap', 'error');
}
$identite = $ws->getIdentite($siren);
$infos = $ws->getRatios($siren, 'indiscore2');
$score = array();
@ -297,13 +300,11 @@ class EvaluationController extends Zend_Controller_Action
$annees = array_slice($annees, 0, $nbMaxBilan);
sort($annees);
$tabResult = array();
foreach($annees as $annee)
{
foreach($annees as $annee) {
$data = array();
$dataEvol = array();
//Formatter les données
foreach($tabRatio as $idRatio => $valRatio)
{
foreach($tabRatio as $idRatio => $valRatio) {
$data[$idRatio] = $ratiosData->dRatio($typeBilan, $annee, $idRatio);
$dataTotal[$idRatio] = $ratiosData->dTotal($typeBilan, $annee, $idRatio, $valRatio['total']);
$dInfo[$idRatio] = $valRatio['total_info'];
@ -1051,8 +1052,14 @@ class EvaluationController extends Zend_Controller_Action
$params = new stdClass();
$params->companyId = $siren;
try {
$response = $ws->getCadastrePatrimoine($params);
if ($response === false) {
$this->forward('soap', 'error');
}
$this->view->List = $response->item;
} catch (Exception $e) {
$this->view->MsgTxt = $e->getMessage();

View File

@ -1042,12 +1042,17 @@ class FinanceController extends Zend_Controller_Action
} else {
$infos = $this->getRequest()->getParam('infos');
}
$user = new Scores_Utilisateur();
$this->view->assign('edition', $user->checkModeEdition());
$entreprise = new Scores_Session_Entreprise($this->siret, $this->id);
$this->view->assign('banques', $infos->result->item);
$this->view->assign('raisonSociale', $entreprise->getRaisonSociale());
$this->view->assign('siren', substr($this->siret, 0, 9));
$this->view->assign('exportObjet', $infos);
$this->view->assign('siret', $this->siret);
}
/**

View File

@ -41,7 +41,7 @@ class JuridiqueController extends Zend_Controller_Action
$session = new Scores_Session_Entreprise($this->siret, $this->id);
$fj = $session->getFormeJuridique();
if ( $fj>9000 && $fj<9999 && intval($siren)==0 ) {
if ($fj > 9000 && $fj < 9999 && intval($siren) == 0) {
$vue = 'asso';
}
@ -51,30 +51,21 @@ class JuridiqueController extends Zend_Controller_Action
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('AutrePage', $autrePage);
if ($session->getSource()=='006' || $session->getSourceId()=='007') {
if ($session->getSource() == '006' || $session->getSourceId() == '007') {
$this->view->assign('AutreSource', true);
} else {
$this->view->assign('vue', $vue);
//Pagination
$page = $request->getParam('page', 1);
if ( $page <= 0 ) $page = 1;
if ( $page <= 0 ) {
$page = 1;
}
$nbAffichage = 20;
$position = ($page - 1 ) * $nbAffichage;
$ws = new WsScores();
switch ( $vue ) {
case 'bodacc':
case 'abod':
default:
if(intval($siren)==0) {
$idAnn = $session->getSourceId();
}
$infos = $ws->getAnnoncesLegales($siren, $idAnn, null, $position, $nbAffichage);
break;
case 'balo':
$infos = $ws->getAnnoncesBalo($siren, $idAnn, null, $position, $nbAffichage);
break;
@ -89,13 +80,25 @@ class JuridiqueController extends Zend_Controller_Action
}
break;
case 'bomp':
$filtre = $request->getParam('filtre', null);
$filtre = $request->getParam('filtre', 'A');
$this->view->assign('filtre', $filtre);
Zend_Registry::get('firebug')->info("getAnnoncesBoamp");
$infos = $ws->getAnnoncesBoamp($siren, $idAnn, $filtre, $position, $nbAffichage);
break;
case 'bodacc':
case 'abod':
default:
if(intval($siren)==0) {
$idAnn = $session->getSourceId();
}
$infos = $ws->getAnnoncesLegales($siren, $idAnn, null, $position, $nbAffichage);
break;
}
if ($infos === false) $this->_forward('soap', 'error');
Zend_Registry::get('firebug')->info($infos);
if ($infos === false) {
$this->forward('soap', 'error');
}
require_once 'Scores/Annonces.php';
$objAnnonces = new Annonces($infos->result->item);
@ -108,7 +111,6 @@ class JuridiqueController extends Zend_Controller_Action
$user = new Scores_Utilisateur();
$this->view->assign('hasModeEdition', $user->checkModeEdition());
$this->view->assign('exportObjet', $infos);
$this->view->assign('surveillance', $user->checkPerm('survannonce'));
@ -157,13 +159,11 @@ class JuridiqueController extends Zend_Controller_Action
$this->view->assign('PageCurrent', $page);
//Définir url pour téléchargement pdf
if ( in_array($annonce['Code'], array('BODA', 'BODB', 'BODC')) && intval($annonce['Annee'])>=2008) {
$lienBodacc = $this->view->url(array(
'controller' => 'juridique',
'action' => 'bodaccpdf',
'type' => substr($annonce['Code'],3,1),
'annee' => $annonce['Annee'],
'num' => $annonce['Num'],
if (in_array($annonce['Code'], array('BODA', 'BODB', 'BODC')) &&
intval($annonce['Annee']) >= 2008) {
$lienBodacc = $this->view->url(array('controller' => 'juridique',
'action' => 'bodaccpdf', 'type' => substr($annonce['Code'],3,1),
'annee' => $annonce['Annee'], 'num' => $annonce['Num'],
), 'default', true);
$this->view->assign('lienBodacc', $lienBodacc);
}
@ -173,7 +173,6 @@ class JuridiqueController extends Zend_Controller_Action
// --- Affichage pour la liste des annonces
} else {
// --- Titre de la page
if ( empty($autrePage) ) {
if( empty($siren) ){
@ -209,16 +208,15 @@ class JuridiqueController extends Zend_Controller_Action
$this->view->assign('nbReponses', empty($nbReponses) ? 0 : $nbReponses);
$this->view->assign('nbReponsesTotal', empty($nbReponsesTotal) ? 0 : $nbReponsesTotal);
foreach ( $typeAnnonces as $type ) {
$classType = 'annonces'.$type;
$annonces = array();
if ( count( $objAnnonces->$classType ) > 0 ) {
foreach( $objAnnonces->$classType as $ann ) {
$annonces[] = $objAnnonces->getAnnonceResume($ann);
}
$this->view->assign($classType, $annonces);
}
}
$classType = 'annonces'.ucfirst($vue);;
$annonces = array();
if (count($objAnnonces->$classType) > 0) {
foreach($objAnnonces->$classType as $ann) {
$annonces[] = $objAnnonces->getAnnonceResume($ann);
}
Zend_Registry::get('firebug')->info($annonces);
$this->view->assign($classType, $annonces);
}
$this->view->headScript()->appendFile($this->theme->pathScript.'/annonces.js', 'text/javascript');
}
}

View File

@ -280,7 +280,7 @@ class PiecesController extends Zend_Controller_Action
//Catégorie Juridique
$cj = $session->getFormeJuridique();
if( in_array($cj, $this->association_cj) ) {
$this->_forward('associationbilans');
$this->forward('associationbilans');
} else {
$request = $this->getRequest();
$siren = substr($this->siret,0,9);

View File

@ -451,10 +451,6 @@ class SaisieController extends Zend_Controller_Action
$ws = new WsScores();
$reponse = $ws->getListeJalCollecte();
$listeJalCollecte = $reponse->result->item;
$this->view->assign('ListeJalCollecte', $listeJalCollecte);
if (Zend_Session::sessionExists()){
if(Zend_Session::namespaceIsset('saisie')){
$sessionSaisie = new Zend_Session_Namespace('saisie');
@ -2903,4 +2899,47 @@ class SaisieController extends Zend_Controller_Action
}
}
public function ribibanAction()
{
$this->_helper->layout()->disableLayout();
$request = $this->getRequest();
$siren = $request->getParam('siren', null);
$mode = $request->getParam('mode');
$guichetMod = $request->getParam('guichetMod');
$banqueMod = $request->getParam('banqueMod');
$ws = new WsScores();
$result = $ws->getIdentite($siren);
$infos = $ws->getBanques($siren);
$this->view->assign('actif',$result->Actif);
$this->view->assign('siren', $siren);
$this->view->assign('mode', $mode);
$this->view->assign('banques', $infos->result->item);
$this->view->assign('guichetMod', $guichetMod);
$this->view->assign('banqueMod', $banqueMod);
}
public function ribansaveAction(){
$this->_helper->layout()->disableLayout();
$request = $this->getRequest();
$codeBanque = str_replace(' ', '',$request->getParam('code_banque'));
$codeGuichet = str_replace(' ', '',$request->getParam('code_guichet'));
$numCompte = str_replace(' ', '',$request->getParam('num_compte'));
$bicSwift = str_replace(' ', '',$request->getParam('bic_swift'));
$iban = str_replace(' ', '',$request->getParam('iban'));
$mode = $request->getParam('mode');
$this->view->assign('code_banque', $guichetMod);
$this->view->assign('code_guichet', $codeGuichet);
$this->view->assign('num_compte', $numCompte);
$this->view->assign('bic_swift', $bicSwift);
$this->view->assign('iban', $iban);
}
}

View File

@ -91,7 +91,10 @@ class UserController extends Zend_Controller_Action
$options['profil'] = 'Utilisateur';
}
$ws = new WsScores();
Zend_Registry::get('firebug')->info('setInfosLogin');
Zend_Registry::get('firebug')->info($options);
$reponse = $ws->setInfosLogin($login, $action, $options);
Zend_Registry::get('firebug')->info($response);
$isProfilUpdated = true;
$message = 'Erreur lors de la mise à jour du compte !';

View File

@ -0,0 +1,100 @@
<?php echo $this->doctype(); ?>
<html>
<head>
<?php echo $this->headMeta(); ?>
<?php echo $this->headTitle(); ?>
<?php echo $this->headStyle(); ?>
<?php echo $this->headLink(); ?>
<?php echo $this->headScript(); ?>
</head>
<body>
<div id="wrap">
<div class="container">
<div class="row">
<div class="col-md-6">
<h1 class="text-center">Scores & Decisions</h1>
<br/>
<p>
Scores & Decisions est l'éditeur d'une base de données de référence sur toutes les entreprises de France.
Scores & Decisions est licencié officiel depuis 2008 pour la rediffusion du répertoire Sirène (INSEE), du RNCS
Registre National du Commerce et des Sociétés (INPI) et des Journaux Officiels (DILA). Scores & Decisions est
un service privé distinct des services publics cités.
</p>
<br/>
<div class="panel panel-default">
<div class="panel-body">
<p class="text-primary">Spécialiste de l'information légales et financières sur les entreprises, Scores & Décisions vous permet par
confirmation des éléments ci-contre d'accéder à toute sa base de données.</p>
<ul class="list-group">
<li class="list-group-item">
Télécharger nos Conditions Générales de Services
<a href="<?=$this->baseUrl()?>/documents/inextenso_cgs.pdf" target="_blank">
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
</li>
<li class="list-group-item">
Télécharger nos Conditions Tarifaires
<a href="#" target="_blank">
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
</li>
<li class="list-group-item">
Télécharger les coordonnées de vos contacts
<a href="<?=$this->baseUrl()?>/documents/inextenso_contacts.pdf" target="_blank">
<span class="glyphicon glyphicon-file pull-right" aria-hidden="true"></span></a>
</li>
</ul>
</div>
</div>
</div>
<div class="col-md-6">
<h2>Trouvez les réponses à vos questions !</h2>
<ul class="arguments">
<li><strong>Disposez de certitudes sur l'identité de vos interlocuteurs, les liens financiers et les liens
dirigeants... ></strong> Mon client a t il une existence légale ? Quels sont les derniers événements qui ont touché l'entreprise ?</li>
<li><strong>Évitez les mauvais payeurs ></strong>
Ce prospect paye t'il rapidement, est-il en procédure collective ? Quel est sa rentabilité, son niveau de
trésorerie ?</li>
<li><strong>Surveillez la solvabilité de vos partenaires, clients et fournisseurs ou concurrents ></strong>
Mes clients sont ils viables dans la durée, puis je continuer et développer les ventes ?</li>
<li><strong>Découvrez la valeur de votre entreprises ou celles de vos concurrents ></strong> Mon entreprise a t elle de la
valeur ? combien me coûterait le rachat d'un concurrent ?</li>
<li><strong>Trouvez vos futurs clients ></strong> Où sont et qui sont mes prospects ?</li>
</ul>
<p>Les données agrégées sont officielles, exhaustives, fraîches et opposables aux tiers. Elles sont utilisées
par des grands groupes et institutionnels dans des cadres contentieux, de conformité, de fraude...</p>
<a type="button" class="btn btn-success btn-lg" href="<?=$this->url($this->FormUrlParams, 'default', true)?>">Accédez au site</a>
</div>
</div>
<div class="row">
<div class="col-md-12">
<p class="inexweb text-center"><img src="/themes/default/images/partner/logo-inexweb.png"/> <strong>vous offre 60 jours de gratuité, et la surveillance de votre portefeuille clients !</strong></p>
</div>
</div>
</div>
</div>
<?php echo $this->inlineScript(); ?>
</body>
</html>

View File

@ -49,7 +49,7 @@
<?php foreach($this->List as $p) {?>
<?php if ($p->Type == 'local') {?>
<tr>
<td><?=$p->Role?></td>
<td title="<?=$p->RoleLib?>"><?=$p->Role?></td>
<td><?=$p->Departement?></td>
<td><?=$p->CommuneLib?></td>
<td><?=$p->Section?></td>
@ -64,14 +64,14 @@
<td><?=$p->Batiment?></td>
<td><?=$p->Ent?></td>
<td><?=$p->Niveau?></td>
<td><?=number_format($p->SurfaceTotal, 0, ",", " ")?></td>
<td><?=number_format($p->SurfaceTotal, 0, ",", " ")?></td>
<td></td>
</tr>
<?php if (count($p->SurfaceDetail->item) > 0) {?>
<?php foreach($p->SurfaceDetail->item as $s) {?>
<tr>
<td colspan="10" align="right"><i>Detail</i></td>
<td><?=number_format($s->Surface, 0, ",", " ")?></td>
<td><?=number_format($s->Surface, 0, ",", " ")?></td>
<td><?=$s->Label?></td>
</tr>
<?php }?>
@ -104,7 +104,7 @@
<?php foreach($this->List as $p) {?>
<?php if ($p->Type == 'parcelle') {?>
<tr>
<td><?=$p->Role?></td>
<td title="<?=$p->RoleLib?>"><?=$p->Role?></td>
<td><?=$p->Departement?></td>
<td><?=$p->CommuneLib?></td>
<td><?=$p->Section?></td>
@ -116,14 +116,14 @@
<?=empty($p->AdresseType) ? '' : $p->AdresseType.' ' ; ?>
<?=empty($p->AdresseLib) ? '' : $p->AdresseLib.' ' ; ?>
</td>
<td><?=number_format($p->SurfaceTotal, 0, ",", " ")?></td>
<td><?=number_format($p->SurfaceTotal, 0, ",", " ")?></td>
<td></td>
</tr>
<?php if (count($p->SurfaceDetail->item) > 0) {?>
<?php foreach($p->SurfaceDetail->item as $s) {?>
<tr>
<td colspan="7" align="right"><i>Detail</i></td>
<td><?=number_format($s->Surface, 0, ",", " ")?></td>
<td><?=number_format($s->Surface, 0, ",", " ")?></td>
<td><?=$s->Label?></td>
</tr>
<?php }?>

View File

@ -17,6 +17,16 @@
<h2>Liste des relations bancaires</h2>
<div class="paragraph">
<?php if (empty($this->AutrePage) && $this->edition) {?>
<div style="line-height:16px;">
<a class="dialog" title="Ajouter RIB/IBAN" href="<?=$this->url(array('controller'=>'saisie','action'=>'ribiban','mode'=>'add','siren'=>$this->siren), null, true)?>">
<img style="vertical-align:middle;" src="/themes/default/images/interfaces/ajouter.png" /> Ajouter une autre relation bancaire</a>
</div>
<?php
}?>
<?php if(count($this->banques)>0) { ?>
<table class="data">
<thead>
@ -30,7 +40,12 @@
<tbody>
<?php foreach($this->banques as $relation) { ?>
<tr>
<td valign="top" style="text-decoration:underline;"><?=$relation->libBanque?></td>
<td valign="top" ><p style="text-decoration:underline;"><?=$relation->libBanque?></p>
<?php if (empty($this->AutrePage) && $this->edition) {?>
<a class="dialog" title="Edition RIB/IBAN" href="<?=$this->url(array('controller'=>'saisie','action'=>'ribiban','mode'=>'edit','siren'=>$this->siren, 'guichetMod'=>$relation->codeGuichet, 'banqueMod'=>$relation->codeBanque), null, true)?>"><img src="/themes/default/images/interfaces/editer.png" /></a>
<a class="dialog" title="Supprimer RIB/IBAN" href="<?=$this->url(array('controller'=>'saisie','action'=>'ribiban','mode'=>'delete','siren'=>$this->siren,'siret'=>$this->siret), null, true)?>"><img src="/themes/default/images/interfaces/supprimer.png" /></a>
<?php }?>
</td>
<td>
<?php if($relation->adresse1!='') {?>
<?=$relation->adresse1?><br />
@ -50,4 +65,33 @@
<?php } ?>
</div>
<?php echo $this->render('cgu.phtml', $this->cgu);?>
</div>
</div>
<script>
$('a.dialog').on('click', function(){
var href = $(this).attr('href');
if (href!='#') {
var title = $(this).attr('title');
var dialogOpts = {
bgiframe: true,
title: title,
width: 650,
height: 600,
modal: true,
open: function(event, ui) {
$(this).html('Chargement...');
$(this).load(href);
},
buttons: {
Quitter: function() { $(this).dialog('close'); }
},
close: function() { $('#dialog').remove(); }
};
$('<div id="dialog"></div>').dialog(dialogOpts);
return false;
}
});
</script>

View File

@ -1,7 +1,7 @@
<?php if ($this->msg) {?>
<div style="padding: 0 .7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-alert"></span>
<strong>Alert:</strong> <?=$this->msg?></p>
<strong>Alerte :</strong> <?=$this->msg?></p>
</div>
<?php }?>

View File

@ -13,7 +13,7 @@ $('#dialogbilanclient').dialog({ buttons: [ {
<div style="padding: 0 .7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-alert"></span>
<strong>Alert:</strong> <?=$this->errMsg?></p>
<strong>Alerte :</strong> <?=$this->errMsg?></p>
</div>
<?php } ?>

View File

@ -11,25 +11,20 @@
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
<td width="350" class="StyleInfoData">
<?=$this->raisonSociale?>
<?php if($this->hasModeEdition) : ?>
<a href="<?=$this->url(array(
'controller' => 'saisie',
'action' => 'fiche',
'siret' => $this->siret,
'id' => $this->id,
<?=$this->raisonSociale?>
<?php if($this->hasModeEdition) { ?>
<a href="<?=$this->url(array('controller' => 'saisie', 'action' => 'fiche',
'siret' => $this->siret, 'id' => $this->id,
), 'default', true)?>">(Edition)</a>
<?php endif; ?>
<?php }?>
</td>
</tr>
<?php if ($this->surveillance) {?>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" width="550" class="StyleInfoData">
<?=$this->action('infos','surveillance', null, array(
'source' => 'annonces',
'siret' => $this->siret
))?>
<?=$this->action('infos', 'surveillance', null, array('source' => 'annonces',
'siret' => $this->siret))?>
</td>
</tr>
<?php }?>
@ -133,7 +128,6 @@ Télécharger le bulletin officiel</a>
<a href="<?=$this->url(array('controller'=>'identite','action'=>'fiche','siret'=>$entite->siret), 'default', true)?>">
<?=$this->SiretTexte($entite->siret)?></a>
<?php }?>
</td>
</tr>
<?php }?>
@ -144,13 +138,8 @@ Télécharger le bulletin officiel</a>
<div class="paragraph" style="text-align:center;">
<?php if (intval($this->siret)!=0) {?>
<?php
$href = $this->url(array(
'controller' => 'juridique',
'action' => 'annonces',
'siret' => $this->siret,
'id' => $this->id,
'vue' => $this->vue,
'page' => $this->PageCurrent,
$href = $this->url(array('controller' => 'juridique', 'action' => 'annonces',
'siret' => $this->siret, 'id' => $this->id, 'vue' => $this->vue, 'page' => $this->PageCurrent,
), 'default', true);
?>
<a href="<?=$href?>">Revenir à la liste des annonces</a>

View File

@ -1,3 +0,0 @@
<div id="center">
<pre><?php print_r($this->infos); ?></pre>
</div>

View File

@ -1,8 +1,8 @@
<?php if (empty($this->AutrePage)):?>
<?php if (empty($this->AutrePage)) {?>
<div id="center">
<?php endif;?>
<?php }?>
<?php if (empty($this->AutrePage)):?>
<?php if (empty($this->AutrePage)) {?>
<h1 class="titre">ANNONCES L&Eacute;GALES</h1>
<div class="paragraph">
<table class="identite">
@ -15,30 +15,24 @@
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Dénomination Sociale</td>
<td width="350" class="StyleInfoData"><?=$this->raisonSociale?>
<?php if($this->hasModeEdition) : ?>
<a href="<?=$this->url(array(
'controller' => 'saisie',
'action' => 'fiche',
'siret' => $this->siret,
'id' => $this->id,
))?>">(Edition)</a>
<?php endif ?>
<?php if($this->hasModeEdition) {?>
<a href="<?=$this->url(array('controller' => 'saisie', 'action' => 'fiche',
'siret' => $this->siret, 'id' => $this->id))?>">(Edition)</a>
<?php }?>
</td>
</tr>
<?php if ($this->surveillance) {?>
<tr>
<td width="30">&nbsp;</td>
<td colspan="2" width="550" class="StyleInfoData">
<?=$this->action('infos','surveillance', null, array(
'source' => 'annonces',
'siret' => $this->siret
))?>
<?=$this->action('infos','surveillance', null, array('source' => 'annonces',
'siret' => $this->siret))?>
</td>
</tr>
<?php }?>
</table>
</div>
<?php endif;?>
<?php }?>
<?php if ($this->AutreSource){ ?>
<h2>EV&Eacute;NEMENTS L&Eacute;GAUX</h2>
@ -110,29 +104,37 @@ a.lienType {
<div class="clearfix" style="margin:0 auto 5px auto;">
<div id="TypeBodacc" class="blockType<?php if ($this->vue=='bodacc') echo 'Active';?>">
<a class="lienType" title="Annonces légales" href="<?=$this->url(array('controller'=>'juridique', 'action'=>'annonces', 'vue'=>'bodacc', 'siret'=>$this->siret, 'id'=>$this->id))?>">Annonces Légales</a>
<a class="lienType" title="Annonces légales" href="<?=$this->url(array('controller'=>'juridique',
'action'=>'annonces', 'vue'=>'bodacc', 'siret'=>$this->siret,
'id'=>$this->id))?>">Annonces Légales</a>
</div>
<div id="TypeBalo" class="blockType<?php if ($this->vue=='balo') echo 'Active';?>">
<a class="lienType" title="Bulletin des Annonces Légales Obligatoires" href="<?=$this->url(array('controller'=>'juridique', 'action'=>'annonces', 'vue'=>'balo', 'siret'=>$this->siret, 'id'=>$this->id))?>">B.A.L.O.</a>
<a class="lienType" title="Bulletin des Annonces Légales Obligatoires" href="<?=$this->url(array(
'controller'=>'juridique', 'action'=>'annonces', 'vue'=>'balo', 'siret'=>$this->siret,
'id'=>$this->id))?>">B.A.L.O.</a>
</div>
<div id="TypeBoamp" class="blockType<?php if ($this->vue=='bomp') echo 'Active';?>">
<a class="lienType" title="Bulletin officiel des annonces des marchés publics" href="<?=$this->url(array('controller'=>'juridique', 'action'=>'annonces', 'vue'=>'bomp', 'siret'=>$this->siret, 'id'=>$this->id))?>">B.O.A.M.P.</a>
<a class="lienType" title="Bulletin officiel des annonces des marchés publics" href="<?=$this->url(array(
'controller'=>'juridique', 'action'=>'annonces', 'vue'=>'bomp', 'siret'=>$this->siret,
'id'=>$this->id))?>">B.O.A.M.P.</a>
</div>
<div id="TypeAsso" class="blockType<?php if ($this->vue=='asso') echo 'Active';?>">
<a class="lienType" title="Journal Officiel des Associations" href="<?=$this->url(array('controller'=>'juridique', 'action'=>'annonces', 'vue'=>'asso', 'siret'=>$this->siret, 'id'=>$this->id))?>">J.O Associations</a>
<a class="lienType" title="Journal Officiel des Associations" href="<?=$this->url(array(
'controller'=>'juridique', 'action'=>'annonces', 'vue'=>'asso', 'siret'=>$this->siret,
'id'=>$this->id))?>">J.O Associations</a>
</div>
</div>
</div>
<?php }?>
<?php if ($this->vue=='bodacc'){ ?>
<?php if ($this->vue=='bodacc') {?>
<h2>EV&Eacute;NEMENTS L&Eacute;GAUX</h2>
<div class="paragraph">
<?php if(count($this->annoncesBodacc)==0){ ?>
<?php if (count($this->annoncesBodacc) == 0) { ?>
Néant
<?php } else {?>
<table class="data">
@ -142,10 +144,10 @@ a.lienType {
</div>
<?php }?>
<?php if ($this->vue=='balo'){ ?>
<?php if ($this->vue=='balo') {?>
<h2>BALO</h2>
<div class="paragraph">
<?php if(count($this->annoncesBalo)==0){ ?>
<?php if(count($this->annoncesBalo) == 0){ ?>
Néant
<?php } else {?>
<table class="data">
@ -155,27 +157,27 @@ a.lienType {
</div>
<?php }?>
<?php if ($this->vue=='bomp'){ ?>
<?php if ($this->vue == 'bomp') {?>
<div class="paragraph" style="margin:0 0 0 40px;">
<form name="filtreBoamp" method="post" action="<?=$this->url(array('controller'=>'juridique',
'action'=>'annonces','vue'=>'bomp','siret'=>$this->siret,'id'=>$this->id),null,true)?>">
<form name="filtreBoamp" method="post" action="<?=$this->url(array('controller'=>'juridique', 'action'=>'annonces', 'vue'=>'bomp',
'siret'=>$this->siret, 'id'=>$this->id), 'default', true)?>">
<label>Type d'annonce</label>
<select name="filtre">
<option value="">-</option>
<option value="A"<?=($this->filtre=='A')?' selected':'';?>>Avis d'attribution</option>
<option value="M"<?=($this->filtre=='M')?' selected':'';?>>Avis de marchés</option>
</select>
</form>
<script>
$('select[name=filtre]').on('change',function(){
$(this).parent('form').submit();
$('select[name=filtre]').on('change', function(e){
e.preventDefault();
$('form[name=filtreBoamp]').submit();
});
</script>
</div>
<h2>March&eacute;s publics</h2>
<div class="paragraph">
<?php if (count($this->annoncesBomp)==0) { ?>
<?php if (count($this->annoncesBomp) == 0) {?>
Néant
<?php } else {?>
<table class="data">
@ -188,7 +190,7 @@ Néant
<?php if ($this->vue=='asso') { ?>
<h2>Associations</h2>
<div class="paragraph">
<?php if (count($this->annoncesAsso)==0){ ?>
<?php if (count($this->annoncesAsso) == 0){ ?>
Néant
<?php } else {?>
<table class="data">
@ -203,11 +205,11 @@ Néant
<?php if ($this->PageTotal>1) {?>
<div class="paragraph">
<div class="pagination clearfix">
<a class="first" href="<?=$this->url(array('page'=>1))?>">&laquo;</a>
<a class="previous" href="<?=$this->url(array('page'=>$this->PagePrev))?>">&lsaquo;</a>
<a class="first" href="<?=$this->url(array('filtre'=>$this->filtre, 'page'=>1))?>">&laquo;</a>
<a class="previous" href="<?=$this->url(array('filtre'=>$this->filtre, 'page'=>$this->PagePrev))?>">&lsaquo;</a>
<span>Page <?=$this->PageCurrent?>/<?=$this->PageTotal?></span>
<a class="next" href="<?=$this->url(array('page'=>$this->PageNext))?>">&rsaquo;</a>
<a class="last" href="<?=$this->url(array('page'=>$this->PageTotal))?>">&raquo;</a>
<a class="next" href="<?=$this->url(array('filtre'=>$this->filtre, 'page'=>$this->PageNext))?>">&rsaquo;</a>
<a class="last" href="<?=$this->url(array('filtre'=>$this->filtre, 'page'=>$this->PageTotal))?>">&raquo;</a>
</div>
</div>
<?php }?>

View File

@ -5,7 +5,7 @@
<div class="paragraph">
<div style="padding: 0 .7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-alert"></span>
<strong>Alert:</strong> <?=$this->msg?></p>
<strong>Alerte :</strong> <?=$this->msg?></p>
</div>
</div>
<?php } else {?>
@ -27,7 +27,7 @@
<td width="200" class="StyleInfoLib">Affaire(s) en tant que</td>
<td width="350" class="StyleInfoData">
<form action="<?=$this->url(array('module'=>'default','controller'=>'juridique',
'action'=>'ctx'))?>" method="post">
'action'=>'ctx', 'siret'=>$this->siret, 'id'=>$this->id), 'default', true)?>" method="post">
<select name="type">
<?php foreach($this->TypeList as $k => $v) {?>
<option value="<?=$k?>" <?php if ($k==$this->Type){?> selected<?php }?>><?=$v?></option>
@ -80,11 +80,11 @@
<?php if ($this->PageTotal>1) {?>
<div class="paragraph">
<div class="pagination clearfix">
<a class="first" href="<?=$this->url(array('page'=>1))?>">&laquo;</a>
<a class="previous" href="<?=$this->url(array('page'=>$this->PagePrev))?>">&lsaquo;</a>
<a class="first" href="<?=$this->url(array('page'=>1, 'type'=>$this->Type))?>">&laquo;</a>
<a class="previous" href="<?=$this->url(array('page'=>$this->PagePrev, 'type'=>$this->Type))?>">&lsaquo;</a>
<span>Page <?=$this->PageCurrent?>/<?=$this->PageTotal?></span>
<a class="next" href="<?=$this->url(array('page'=>$this->PageNext))?>">&rsaquo;</a>
<a class="last" href="<?=$this->url(array('page'=>$this->PageTotal))?>">&raquo;</a>
<a class="next" href="<?=$this->url(array('page'=>$this->PageNext, 'type'=>$this->Type))?>">&rsaquo;</a>
<a class="last" href="<?=$this->url(array('page'=>$this->PageTotal, 'type'=>$this->Type))?>">&raquo;</a>
</div>
</div>
<?php }?>

View File

@ -5,7 +5,7 @@
<div class="paragraph">
<div style="padding: 0 .7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-alert"></span>
<strong>Alert:</strong> <?=$this->msg?></p>
<strong>Alerte :</strong> <?=$this->msg?></p>
</div>
</div>
<?php } else {?>

View File

@ -1,7 +1,7 @@
<?php if ($this->msg) {?>
<div style="padding: 0 .7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-alert"></span>
<strong>Alert:</strong> <?=$this->msg?></p>
<strong>Alerte :</strong> <?=$this->msg?></p>
</div>
<?php } else if ($this->ref) {?>

View File

@ -2,7 +2,7 @@
<div style="padding: 0 .7em;" class="ui-state-error ui-corner-all">
<p><span style="float: left; margin-right: .3em;" class="ui-icon ui-icon-alert"></span>
<strong>Alert:</strong> <?=$this->msg?></p>
<strong>Alerte :</strong> <?=$this->msg?></p>
</div>
<?php } else if ($this->ref) {?>

View File

@ -22,17 +22,6 @@ $select = '';
if ( $this->saisie['source']=='JT' ){ $select = 'selected'; }
?>
<option value="JT" <?=$select?>>TESSI</option>
<?php
if (count($this->ListeJalCollecte)>0) {
foreach ($this->ListeJalCollecte as $jal) {
echo "<option value=\"JS$jal->id\" ";
if ( $this->saisie['source']=="JS$jal->id" ) {
echo 'selected';
}
echo ">$jal->nom</option>";
}
}
?>
</select>
<div id="dateParution">

View File

@ -0,0 +1,116 @@
<style>
div#dialog form em {color:#FF0000;}
div#dialog fieldset {border:1px solid; padding:1px; }
div#dialog fieldset legend {padding:5px; font-weight:bold; }
</style>
<form name="saveRiban" action="<?=$this->url(array('controller'=>'saisie', 'action'=>'ribansave'),null, true)?>" method="post">
<?php if($this->mode == add || $this->mode == edit){?>
<input type="hidden" name="mode" value="<?=$this->mode?>" />
<input type="hidden" name="siren" value="<?=$this->siren?>" />
<div class="fieldgrp">
<label>Siren</label>
<div class="field">
<div style="float:left;"><?=$this->siren?></div>
</div>
</div>
<div class="fieldgrp">
<label>Situation RIB</label>
<div class="field">
<?php
if ($this->actif==1){
$checkActive = 'checked';
} else {
$checkInactive = 'checked';
}
?>
<div style="float:left;">Active<input type="radio" name="actif" value="1" <?=$checkActive;?>/></div>
<div style="float:left;">Inactive<input type="radio" name="actif" value="0" <?=$checkInactive;?>/></div>
</div>
</div>
<div class="fieldgrp">
<fieldset>
<legend>Saisie RIB</legend>
<div class="fieldgrp">
<label>Banque</label>
<div class="field" >
<select name="Banque" style="width:160px;" >
<option value=""><?=$this->banqueMod?></option>
<?php foreach( $this->banques as $val ) {?>
<option value="<?=$val->codeBanque?>"><?=$val->codeBanque?></option>
<?php }?>
</select>
</div>
</div>
<div class="fieldgrp">
<label>Guichet</label>
<div class="field" >
<select name="Guichet" style="width:160px;" >
<option value=""><?=$this->guichetMod?></option>
<?php foreach( $this->banques as $val ) {?>
<option value="<?=$val->codeGuichet?>"><?=$val->codeGuichet?></option>
<?php }?>
</select>
</div>
</div>
<div class="fieldgrp">
<label>RIB</label>
<div class="field">
<input type="text" name="code_banque" size="4" value=""/>
<input type="text" name="code_guichet" size="4" value=""/>
<input type="text" name="num_compte" size="32" value=""/>
</div>
</div>
</fieldset>
</div>
<div class="fieldgrp">
<fieldset>
<legend>Saisie BIC/IBAN</legend>
<div class="fieldgrp">
<label>BIC/SWIFT</label>
<div class="field">
<input type="text" name="bic_swift" value="" size="20"/>
</div>
</div>
<div class="fieldgrp">
<label>IBAN</label>
<div class="field">
<input type="text" name="iban" value="" size="47"/>
</div>
</div>
</fieldset>
<?php }else {?>
<p>Voulez vous supprimer ce RIB ?</p>
<?php }?>
</form>
<script>
$('#dialog').dialog({ buttons: [
{ text: "Valider", click: function() {
var form = $('form[name=saveRiban]');
$.post(form.attr('action'), form.serialize(), function(data){
form.replaceWith(data);
}).fail(function(){ alert('Unknow error'); });
} },
{ text: "Annuler", click: function() { $(this).dialog("close"); } }
] });
</script>

View File

@ -46,11 +46,9 @@
<?php }?>
</div>
<div style="float:left;">
<button id="user-emails" data-href="<?=$this->url(array(
'controller' => 'user', 'action' => 'email',
'q' => $this->options->email,
))?>">Editer e-mail du compte</button>
<button id="user-emailsecondary" data-href="<?=$this->url(array('controller' => 'user', 'action' => 'emailsecondary',
<button id="user-emails" data-href="<?=$this->url(array('controller'=>'user', 'action'=>'email',
'q'=>$this->options->email))?>">Editer e-mail du compte</button>
<button id="user-emailsecondary" data-href="<?=$this->url(array('controller'=>'user', 'action'=>'emailsecondary',
'idClient' => $this->options->idClient, 'login' => $this->loginVu,))?>">
Voir ou associer des e-mails secondaires</button>
<script>

View File

@ -45,36 +45,47 @@ Environment configuration
Define application environment in the vhost. This mode activate special features and debugging mode.
SetEnv APPLICATION_ENV "production" => Production
SetEnv APPLICATION_ENV "staging" => Recette
SetEnv APPLICATION_ENV "development" => Developpement
SetEnv APPLICATION_ENV "production" => Production
SetEnv APPLICATION_ENV "staging" => Recette
SetEnv APPLICATION_ENV "development" => Developpement
- Persistent Storage
data/asso
data/association
data/bilanclient
data/bodacc
data/courrier
data/giant
data/greffes
data/groupes
data/iris
data/log
data/logos
data/marques
data/nouveautes
data/wkhtml
[profil.path.shared]/persit/
asso
association
bilanclient
bodacc
courrier
giant
greffes
groupes
iris
log
logos
marques
nouveautes
wkhtml
- Temporary storage
[projet]/data/
[profil.path.shared]/temp/
cache
files
pages
sessions
wsdl
files
sessions
wsdl
pages/file/image/logo
pages/file/image/cache
pages/file/streetview/img
pages/imgcache
- Printing symbolic links
ln -vsf [profil.path.shared]/temp/pages/imgcache [profil.path.shared]/temp/pages/file/image/cache/q;
ln -vsf [profil.path.shared]/persist/streetview [profil.path.shared]/temp/pages/file/streetview/img/q;
ln -vsf [profil.path.shared]/persist/logos [profil.path.shared]/temp/pages/file/image/logo/q;
ln -vsf [VHOST]/publis/themes [profil.path.shared]/temp/pages/themes;
Apache configuration
--------------------
@ -132,14 +143,7 @@ Session
Project Configuration
---------------------
- Autoloader
See in the public/index.php. We use Classmpap Autloader which store Class Key and his file
path.
To generate classmap file use bin/classmap_generator.php
-
See docs/application.ini, sample config
WKHTMLTOPDF
-----------
@ -167,19 +171,6 @@ WKHTMLTOPDF
Inherit Valeur identique à celle de l'élément parent.
WebService
----------
Partners
--------
LIBRARY
=======
TRANSLATE
=========
@ -216,12 +207,6 @@ TRANSLATE
Gestion des sessions
====================
Pour la gestion des sessions, il est nécessaire de faire une configuration spéciale afin d'éviter

View File

@ -60,8 +60,10 @@ class IdentiteEntreprise
return false;
return '<a href="'.
$this->view->url(array('module'=>'legal', 'controller'=>'identite',
'action'=>'fiche', 'siret'=>$this->identite->SiretSiege), 'default', true).'">'.
$this->view->url(array(
'controller' => 'identite',
'action' => 'fiche',
'siret' => $this->identite->SiretSiege), 'default', true).'">'.
substr($this->identite->SiretSiege,0,3).' '.
substr($this->identite->SiretSiege,3,3).' '.
substr($this->identite->SiretSiege,6,3).' '.
@ -96,8 +98,11 @@ class IdentiteEntreprise
if ($this->identite->Isin == '') return false;
return '<a href="'.
$this->view->url(array('module'=>'legal', 'controller'=>'finance', 'action'=>'bourse',
'id'=>$this->identite->id, 'siret'=>$this->identite->Siret), 'default', true).
$this->view->url(array(
'controller' => 'finance',
'action' => 'bourse',
'id' => $this->identite->id,
'siret' => $this->identite->Siret), 'default', true).
'" title="Voir les informations boursi&eacute;res">'.
$this->identite->Isin.'</a>';
}
@ -192,8 +197,11 @@ class IdentiteEntreprise
{
$lib = 'Etablissement actif';
if ($this->identite->Siege==0 && !empty($this->identite->SiretSiege) ){
$href = $this->view->url(array('module'=>'legal', 'controller'=>'identite',
'action'=>'fiche', 'siret'=>$this->identite->SiretSiege), 'default', true);
$href = $this->view->url(array(
'controller' => 'identite',
'action' => 'fiche',
'siret' => $this->identite->SiretSiege
), 'default', true);
$lib.= '<br/><a title="Voir la fiche d\'identité du siège de l\'entreprise" href="'.$href.'">Acc&egrave;s à la fiche du si&egrave;ge</a>';
}
return $lib;
@ -264,9 +272,10 @@ class IdentiteEntreprise
if ($i!=7) { $adresse.= ', '; }
}
}
$href = '<a href="'.$this->view->url(array('module'=>'legal',
'controller'=>'identite', 'action'=>'fiche',
'siret'=>$pre->siren.$pre->nic), 'default', true).'">'.
$href = '<a href="'.$this->view->url(array(
'controller' => 'identite',
'action' => 'fiche',
'siret' => $pre->siren.$pre->nic), 'default', true).'">'.
substr($pre->siren,0,3).' '.substr($pre->siren,3,3).' '.
substr($pre->siren,6,3).' '.$pre->nic.'</a>';
$title.= " la précédente adresse de cet établissement était ".$adresse."(".$href.")";
@ -288,9 +297,10 @@ class IdentiteEntreprise
if ($i!=7) { $adresse.= ', '; }
}
}
$href = '<a href="'.$this->view->url(array('module'=>'legal',
'controller'=>'identite','action'=>'fiche',
'siret'=>$suc->siren.$suc->nic), 'default', true).'">'.
$href = '<a href="'.$this->view->url(array(
'controller' => 'identite',
'action' => 'fiche',
'siret' => $suc->siren.$suc->nic), 'default', true).'">'.
substr($suc->siren,0,3).' '.substr($suc->siren,3,3).' '.
substr($suc->siren,6,3).' '.$suc->nic.'</a>';
$title.= " à l'adresse ".$adresse."(".$href.")";
@ -387,49 +397,97 @@ class IdentiteEntreprise
public function getSituationJuridiqueTexte()
{
$data = false;
if ( in_array($this->identite->SituationJuridique, array('P', 'PL', 'R', 'RR', 'RP', 'CL')) ) {
if (in_array($this->identite->SituationJuridique, array(
'P', 'PL', 'R', 'RR', 'RP', 'CL', 'A', 'D'))) {
$dateRad = '';
if($this->identite->DateRadiation!='' && $this->identite->DateRadiation!='0000-00-00'){
if($this->identite->DateRadiation!='' && $this->identite->DateRadiation!='0000-00-00') {
$date = new Zend_Date(str_replace('-','',$this->identite->DateRadiation),'yyyyMMdd');
$dateRad = $date->toString('dd/MM/yyyy');
}
//Procédure collective
if ($this->identite->SituationJuridique=='PL') {
$data = '<a href="'.$this->view->url(array('module'=>'legal', 'controller'=>'juridique',
'action'=>'annonces', 'siret'=>$this->identite->Siret,
// Procédure collective
if ($this->identite->SituationJuridique == 'PL') {
$data = '<a href="'.$this->view->url(array(
'controller'=>'juridique',
'action'=>'annonces',
'siret'=>$this->identite->Siret,
'id'=>$this->identite->id), 'default', true).'">'.
'<font color="blue"><b>Plan en cours</b></font>'.
'</a>';
} elseif ($this->identite->SituationJuridique=='P') {
$data = '<a href="'.$this->view->url(array('module'=>'legal',
'controller'=>'juridique',' action'=>'annonces',
}
elseif ($this->identite->SituationJuridique == 'P') {
$data = '<a href="'.$this->view->url(array(
'controller'=>'juridique',
'action'=>'annonces',
'siret'=>$this->identite->Siret,
'id'=>$this->identite->id), 'default', true).'">'.
'<font color="red"><b>En procédure collective</b></font>'.
'</a>';
if($dateRad!=''){ $data.= '<br/>Radié du RCS le '.$dateRad; }
} elseif ($this->identite->SituationJuridique=='CL') {
$data = '<a href="'.$this->view->url(array('module'=>'legal',
'controller'=>'juridique', 'action'=>'annonces',
if($dateRad != '') {
$data.= '<br/>Radié du RCS le '.$dateRad;
}
}
elseif ($this->identite->SituationJuridique == 'CL') {
$data = '<a href="'.$this->view->url(array(
'controller'=>'juridique',
'action'=>'annonces',
'siret'=>$this->identite->Siret,
'id'=>$this->identite->id), 'default', true).'">'.
'<font color="red">Clôture de la procédure</font>'.
'</a>';
if($dateRad!=''){ $data.= '<br/>Radié du RCS le '.$dateRad; }
if($dateRad != '') {
$data.= '<br/>Radié du RCS le '.$dateRad;
}
}
//Radiation
if ($this->identite->SituationJuridique=='RR') {
elseif ($this->identite->SituationJuridique == 'A') {
$data = '<a href="'.$this->view->url(array(
'controller'=>'juridique',
'action'=>'annonces',
'siret'=>$this->identite->Siret,
'id'=>$this->identite->id), 'default', true).'">'.
'<font color="blue"><b>Absorption</b></font>'.
'</a>';
if($dateRad != '') {
$data.= '<br/>Radié du RCS le '.$dateRad;
}
}
elseif ($this->identite->SituationJuridique == 'D') {
$data = '<a href="'.$this->view->url(array(
'controller'=>'juridique',
'action'=>'annonces',
'siret'=>$this->identite->Siret,
'id'=>$this->identite->id), 'default', true).'">'.
'<font color="blue"><b>Dissolution</b></font>'.
'</a>';
if($dateRad != '') {
$data.= '<br/>Radié du RCS le '.$dateRad;
}
}
// Radiation
elseif ($this->identite->SituationJuridique == 'RR') {
$data.= 'Radié du RCS';
if($dateRad!=''){ $data.= ' le '.$dateRad; }
} elseif($this->identite->SituationJuridique=='RP') {
if($dateRad != '') {
$data.= ' le '.$dateRad;
}
} elseif($this->identite->SituationJuridique == 'RP') {
$data.= 'Radiation publiée';
if($dateRad!=''){ $data.= ' le '.$dateRad; }
if($dateRad != '') {
$data.= ' le '.$dateRad;
}
}
} elseif($this->identite->EntActiveRCS == 1) {
$data = 'Actif au RCS';
$data = 'Actif au RCS';
}
// Mode Edition
$user = new Scores_Utilisateur();
if ($user->checkModeEdition()) {
$href = $this->view->url(array(
'controller' => 'saisie',
'action' => 'fiche',
'siret' => $this->identite->Siret,
'id' => $this->identite->id,
), 'default', true);
$data.= ' <a href="'.$href.'">(Edition)</a>';
}
return $data;
}
@ -444,8 +502,7 @@ class IdentiteEntreprise
if( property_exists($this->identite->AutreSiren, 'item') && count($this->identite->AutreSiren->item)>0) {
foreach($this->identite->AutreSiren->item as $doublon) {
if(in_array($doublon->type, array_keys($typeLib))) {
$data.= '<a href="'.$this->view->url(array('module'=>'legal',
'controller'=>'identite', 'action'=>'fiche',
$data.= '<a href="'.$this->view->url(array('controller'=>'identite', 'action'=>'fiche',
'siret'=>$doublon->siren), 'default', true).'">' .
substr($doublon->siren,0,3).' '.substr($doublon->siren,3,3).' '.
substr($doublon->siren,6,3).'</a> ('.$typeLib[$doublon->type].')';
@ -551,9 +608,8 @@ class IdentiteEntreprise
{
$data = '';
if (!empty($this->identite->GroupeName)) {
$data.= '<a href="'.$this->view->url(array('module'=>'legal', 'controller'=>'identite',
'action'=>'fichebygroup', 'id'=>$this->identite->GroupeId), 'default', true)
.'">'.$this->identite->GroupeName.'</a>';
$data.= '<a href="'.$this->view->url(array('controller'=>'identite', 'action'=>'fichebygroup',
'id'=>$this->identite->GroupeId), 'default', true).'">'.$this->identite->GroupeName.'</a>';
if (!empty($this->identite->GroupeIsin)) {
$data.= " (".$this->identite->GroupeIsin.")";
}
@ -647,9 +703,15 @@ class IdentiteEntreprise
$data = '<div class="adresse">';
$url = $this->view->url(array('module'=>'search', 'controller'=>'entreprise',
'action'=>'list', 'siret'=>'', 'id'=>'', 'numero'=>$this->identite->AdresseNum,
'voie'=>$voie, 'cpVille'=>$this->identite->CP.' '.$this->identite->Ville,
$url = $this->view->url(array(
'controller' => 'recherche',
'action' => 'liste',
'siret' => '',
'id' => '',
'type' => 'ent',
'numero' => $this->identite->AdresseNum,
'voie' => $voie,
'cpVille' => $this->identite->CP.' '.$this->identite->Ville,
), 'default', true);
$data.= '<a href="'.$url.'" title="Rechercher à partir de cette adresse">';
@ -701,8 +763,11 @@ class IdentiteEntreprise
$data.= 'Domiciliataire : <br/>';
foreach ( $this->identite->AdresseDomEnt->item as $ent ) {
$href = $this->view->url(array('module'=>'legal', 'controller'=>'identite',
'action'=>'fiche', 'siret'=>$ent->siren), 'default', true);
$href = $this->view->url(array(
'controller' => 'identite',
'action' => 'fiche',
'siret' => $ent->siren,
), 'default', true);
$data.= $ent->nom.' (<a href="'.$href.'">'.$ent->siren.'</a>)';
$data.= '<br/>';
}
@ -724,14 +789,12 @@ class IdentiteEntreprise
if ( $this->identite->AdresseRnvpCode == 'OK' ) {
$data.= '<div class="fa-hover">';
$data.= '<a class="rnvp" title="Normalisation postale" data-href="'.
$this->view->url(array('module'=>'legal', 'controller'=>'identite', 'action'=>'rnvp',
$data.= '<a class="rnvp" title="Normalisation postale" data-href="'.$this->view->url(array('controller'=>'identite', 'action'=>'rnvp',
'siret'=>$this->identite->Siret), 'default', true).'" href="#" style="color: #000;"><i class="fa fa-2x fa-envelope-o"></i> Adresse normalisée</a>';
$data.= '</div>';
} elseif ( $this->identite->AdresseRnvpCode == 'KO' ) {
$data.= '<div class="fa-hover">';
$data.= '<a class="rnvp" title="Normalisation postale" data-href="'.
$this->view->url(array('module'=>'legal', 'controller'=>'identite', 'action'=>'rnvp',
$data.= '<a class="rnvp" title="Normalisation postale" data-href="'.$this->view->url(array('controller'=>'identite', 'action'=>'rnvp',
'siret'=>$this->identite->Siret), 'default', true).'" href="#" style="color: #F00;"><i class="fa fa-2x fa-envelope-o"></i> Adresse rejetée</a>';
$data.= '</div>';
} else {
@ -803,9 +866,12 @@ class IdentiteEntreprise
if ($i_adr>4) break;
}
$data.= '<br/><a href="'.$this->view->url(array('module'=>'legal', 'controller'=>'identite',
'action'=>'contacts', 'siret'=>$this->identite->Siret, 'id'=>$this->identite->id),
'default', true).'"/>Plus de contacts</a>';
$data.= '<br/><a href="'.$this->view->url(array(
'controller'=>'identite',
'action'=>'contacts',
'siret'=>$this->identite->Siret,
'id'=>$this->identite->id), 'default', true).
'"/>Plus de contacts</a>';
$data.= ' - <a title="Rechercher le num&eacute;ro de t&eacute;l&eacute;phone dans l\'annuaire" target="_blank" href="http://local.search.ke.voila.fr/S/searchproxi?act=&nom='.$libNom.
'&adr='.urlencode($this->identite->Adresse).
@ -888,12 +954,12 @@ class IdentiteEntreprise
{
if ($this->identite->Nafa!='') {
$data = $this->identite->NafaLib . ' ('.$this->identite->Nafa.')';
return $data;
return $data;
}
return false;
}
}
public function getNaf4Label()
{
return 'Anciens codes NAF';
@ -1017,16 +1083,21 @@ class IdentiteEntreprise
}
$data = '<a title="Voir la liste des &eacute;tablissements" href="'.
$this->view->url(array('module'=>'legal', 'controller'=>'identite',
'action'=>'etablissements', 'siret'=>$this->identite->Siret,
'id'=>$this->identite->id), 'default', true).'">'.
number_format(intval($this->identite->NbEtab), null, null,' ').'</a>';
$this->view->url(array(
'controller' => 'identite',
'action' => 'etablissements',
'siret' => $this->identite->Siret,
'id' => $this->identite->id,
), 'default', true).'">'.number_format(intval($this->identite->NbEtab),null,null,' ').'</a>';
if (intval($this->identite->NbEtab)>1) {
$data.= '&nbsp;<a title="Voir la liste des &eacute;tablissements" href="'.
$this->view->url(array('module'=>'legal', 'controller'=>'identite',
'action'=>'etablissements', 'siret'=>$this->identite->Siret,
'id'=>$this->identite->id), 'default', true).'">(Liste)</a>';
$this->view->url(array(
'controller' => 'identite',
'action' => 'etablissements',
'siret' => $this->identite->Siret,
'id' => $this->identite->id,
), 'default', true).'">(Liste)</a>';
}
return $data;
}

View File

@ -1,6 +1,7 @@
<?php
return array(
'0.1' => array(
<<<<<<< HEAD
'getAuthLog' => array(
'debug' => true,
),
@ -45,6 +46,65 @@ return array(
'ssoAuthenticate' => array(
'debug' => true,
'errorMsg' => array('SSO'),
=======
'getCategory' => array(
'log' => 'mail',
),
'getClient' => array(
'log' => 'mail',
),
'getClientServices' => array(
'log' => 'mail',
),
'getClients' => array(
'log' => 'mail',
),
'getService' => array(
'log' => 'mail',
),
'getServices' => array(
'log' => 'mail',
),
'getUser' => array(
'log' => 'mail',
),
'getUserEmail' => array(
'log' => 'mail',
),
'getUsers' => array(
'log' => 'mail',
),
'loginAuthenticate' => array(
'log' => 'mail',
),
'setCGU' => array(
'log' => 'mail',
),
'setService' => array(
'log' => 'mail',
),
'setServiceParam' => array(
'log' => 'mail',
),
'setUser' => array(
'log' => 'mail',
),
'setUserEmail' => array(
'log' => 'mail',
),
'setUserPassword' => array(
'log' => 'mail',
),
'setUserSSO' => array(
'debug' => true,
'errorMsg' => array('SSO'),
'log' => 'mail',
),
'ssoAuthenticate' => array(
'debug' => true,
'errorMsg' => array('SSO'),
'log' => 'mail',
>>>>>>> refs/heads/master
),
),
);

View File

@ -90,64 +90,4 @@ return array(
'log' => 'mail',
),
),
'0.4' => array(
'getCategory' => array(
'log' => 'mail',
),
'getClient' => array(
'log' => 'mail',
),
'getClientServices' => array(
'log' => 'mail',
),
'getClients' => array(
'log' => 'mail',
),
'getService' => array(
'log' => 'mail',
),
'getServices' => array(
'log' => 'mail',
),
'getUser' => array(
'log' => 'mail',
),
'getUserEmail' => array(
'log' => 'mail',
),
'getUsers' => array(
'log' => 'mail',
),
'loginAuthenticate' => array(
'log' => 'mail',
),
'setCGU' => array(
'log' => 'mail',
),
'setService' => array(
'log' => 'mail',
),
'setServiceParam' => array(
'log' => 'mail',
),
'setUser' => array(
'log' => 'mail',
),
'setUserEmail' => array(
'log' => 'mail',
),
'setUserPassword' => array(
'log' => 'mail',
),
'setUserSSO' => array(
'debug' => true,
'errorMsg' => array('SSO'),
'log' => 'mail',
),
'ssoAuthenticate' => array(
'debug' => true,
'errorMsg' => array('SSO'),
'log' => 'mail',
),
),
);

View File

@ -637,53 +637,6 @@ class WsScores
}
public function setClientTarif($idClient, $log, $service, $type, $priceUnit, $limit, $date, $duree, $doublon)
{
$params = new stdClass();
$params->idClient = $idClient;
$params->tarif->log = $log;
$params->tarif->service = $service;
$params->tarif->type = $type;
$params->tarif->priceUnit = $priceUnit;
$params->tarif->limit = $limit;
$params->tarif->date = $date;
$params->tarif->duree = $duree;
$params->tarif->doublon = $doublon;
$client = $this->loadClient('gestion');
try {
$reponse = $client->setClientTarif($params);
return $reponse->setClientTarifResult;
} catch (SoapFault $fault) {
Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring);
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
return $fault->faultstring;
} else {
$this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse());
return false;
}
}
}
public function getClientTarifs($idClient, $service = null)
{
$params = new stdClass();
$params->idClient = $idClient;
$params->service = $service;
$client = $this->loadClient('gestion');
try {
$reponse = $client->getClientTarifs($params);
return $reponse->getClientTarifsResult;
} catch (SoapFault $fault) {
Zend_Registry::get('firebug')->info($fault->faultcode.':'.$fault->faultstring);
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
return $fault->faultstring;
} else {
$this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse());
return false;
}
}
}
public function setService($idClient, $infos)
{
$params = new stdClass();
@ -2284,7 +2237,11 @@ class WsScores
public function getAnnoncesBoamp($siren, $idAnn=null, $filtre = null, $position=0, $nbRep=20)
{
$filename = 'annoncesboamp-'.$siren.'-'.$idAnn.'-'.$position.'-'.$nbRep;
$filename = 'annoncesboamp-'.$siren.'-'.$filtre.'-'.$position.'-'.$nbRep;
if ($idAnn !== null) {
$filename = 'annoncesboamp-'.$siren.'-'.$filtre.'-'.$idAnn.'-'.$position.'-'.$nbRep;
}
if ($this->cacheWrite) {
$cache = new Cache($filename);

View File

@ -1,18 +0,0 @@
--
-- Structure de la table `aide`
--
CREATE TABLE IF NOT EXISTS `aide` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`methode` varchar(20) NOT NULL,
`champ` varchar(20) NOT NULL,
`texte` text NOT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8;
--
-- Contenu de la table `aide`
--
INSERT INTO `aide` (`id`, `methode`, `champ`, `texte`) VALUES
(1, 'Identite', 'Nom', 'Raison sociale / Nom de l''entreprise (format court avec\r\nabréviations)');

View File

@ -1,19 +0,0 @@
--
-- Structure de la table `bilaninput`
--
CREATE TABLE IF NOT EXISTS `bilaninput` (
`file` varchar(255) NOT NULL COMMENT 'Nom du fichier',
`sent` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1 si fichier envoyé',
`dateUpdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Liste des bilans à transférer pour la saisie';
--
-- Index pour les tables exportées
--
--
-- Index pour la table `bilaninput`
--
ALTER TABLE `bilaninput`
ADD PRIMARY KEY (`file`), ADD KEY `sent` (`sent`);

View File

@ -1,22 +0,0 @@
--
-- Structure de la table `bilansaisie`
--
CREATE TABLE IF NOT EXISTS `bilansaisie` (
`ref` int(11) NOT NULL AUTO_INCREMENT,
`clientId` int(11) NOT NULL,
`utilisateurId` int(11) NOT NULL,
`utilisateurLogin` varchar(50) NOT NULL,
`utilisateurEmail` varchar(100) NOT NULL,
`method` varchar(20) NOT NULL,
`confidentiel` int(1) NOT NULL,
`siren` varchar(9) NOT NULL,
`bilanCloture` varchar(10) NOT NULL,
`format` varchar(1) NOT NULL,
`bilanDuree` int(2) NOT NULL,
`fichier` varchar(50) NOT NULL,
`env` varchar(20) NOT NULL,
`dateInsert` datetime NOT NULL,
`dateEnvoi` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`ref`)
) DEFAULT CHARSET=utf8;

View File

@ -1,12 +0,0 @@
CREATE TABLE IF NOT EXISTS `client_stat` (
`idStat` int(11) NOT NULL AUTO_INCREMENT,
`idClient` char(5) NOT NULL,
`login` varchar(20) NOT NULL,
`platform` varchar(20) NOT NULL,
`browserName` varchar(22) NOT NULL,
`browserVersion` varchar(15) NOT NULL,
`isMobile` varchar(1) NOT NULL,
`screenSize` varchar(9) NOT NULL,
`dateInsert` datetime NOT NULL,
PRIMARY KEY (`idStat`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='statistique des navigateurs des clients' ;

View File

@ -1,15 +0,0 @@
--
-- Structure de la table `commandes_erreur`
--
CREATE TABLE IF NOT EXISTS `commandes_erreur` (
`siren` varchar(9) NOT NULL,
`type` varchar(10) NOT NULL,
`ref` varchar(50) NOT NULL,
`dateCommande` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`dateReception` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`url` text NOT NULL,
`erreur` text NOT NULL,
`status` varchar(100) NOT NULL,
KEY `siren` (`siren`)
) DEFAULT CHARSET=utf8;

View File

@ -1,10 +0,0 @@
CREATE TABLE IF NOT EXISTS `commandes_giants` (
`id` int(8) NOT NULL AUTO_INCREMENT,
`rapportId` int(8) NOT NULL,
`login` varchar(255) NOT NULL,
`date` date NOT NULL,
`typeReport` enum('FU','CO','CR','FL','NO','UR','FA') NOT NULL,
`price` float NOT NULL,
`pays` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

View File

@ -1,11 +0,0 @@
--
-- Structure de la table `commandes_statut`
--
CREATE TABLE IF NOT EXISTS `commandes_statut` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`libStatut` varchar(200) NOT NULL,
`typeCommande` char(1) NOT NULL,
`ordre` int(11) NOT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8 ;

View File

@ -1,61 +0,0 @@
--
-- Structure de la table `commandes_tarifs`
--
CREATE TABLE IF NOT EXISTS `commandes_tarifs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` varchar(20) NOT NULL,
`codeTribunal` varchar(255) NOT NULL,
`prix` float NOT NULL,
`enveloppe` tinyint(1) NOT NULL,
`ordre` varchar(255) NOT NULL,
`annee` int(4) NOT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8;
--
-- Contenu de la table `commandes_tarifs`
--
INSERT INTO `commandes_tarifs` (`id`, `type`, `codeTribunal`, `prix`, `enveloppe`, `ordre`, `annee`) VALUES
(1, 'actes', 'CHARTC', 10.94, 0, '', 2010),
(2, 'bilans', 'CHARTC', 10.94, 0, '', 2010),
(3, 'actes', 'METZG', 10.94, 0, '', 2010),
(4, 'bilans', 'METZG', 10.94, 0, '', 2010),
(5, 'kbis', 'METZG', 3.11, 0, '', 2010),
(6, 'actes', 'COLMAG', 10.94, 0, '', 2010),
(7, 'bilans', 'COLMAG', 10.94, 0, '', 2010),
(8, 'kbis', 'COLMAG', 3.11, 0, '', 2010),
(9, 'privSecu', 'COLMAG', 3.11, 0, '', 2010),
(10, 'privTres', 'COLMAG', 3.11, 0, '', 2010),
(11, 'bilans', 'STRASG', 9.33, 1, 'Trésor Public', 2010),
(12, 'bilans', 'MULHOG', 9.33, 1, 'Trésor Public', 2010),
(13, 'bilans', 'COLMAG', 9.33, 1, 'Trésor Public', 2010),
(14, 'bilans', 'CAYENM', 7.8, 0, 'Régisseur TGI Cayenne', 2010),
(15, 'bilans', 'SARREI', 9.33, 1, 'Trésor Public', 2010),
(16, 'kbis', 'STRASG', 3.11, 1, 'Trésor Public', 2010),
(17, 'kbis', 'THIONG', 3.11, 1, 'Trésor Public', 2010),
(18, 'kbis', 'SAVERG', 3.11, 1, 'Trésor Public', 2010),
(19, 'kbis', 'SARREG', 3.11, 1, 'Trésor Public', 2010),
(20, 'actes', 'CHARTC', 10.94, 0, '', 2011),
(21, 'bilans', 'CHARTC', 10.94, 0, '', 2011),
(22, 'actes', 'METZG', 10.94, 0, '', 2011),
(23, 'bilans', 'METZG', 10.94, 0, '', 2011),
(24, 'kbis', 'METZG', 3.11, 0, '', 2011),
(25, 'actes', 'COLMAG', 10.94, 0, '', 2011),
(26, 'bilans', 'COLMAG', 10.94, 0, '', 2011),
(27, 'kbis', 'COLMAG', 3.11, 0, '', 2011),
(28, 'privSecu', 'COLMAG', 3.11, 0, '', 2011),
(29, 'privTres', 'COLMAG', 3.11, 0, '', 2011),
(30, 'bilans', 'STRASG', 9.33, 1, 'Trésor Public', 2011),
(31, 'bilans', 'MULHOG', 9.33, 1, 'Trésor Public', 2011),
(32, 'bilans', 'COLMAG', 9.33, 1, 'Trésor Public', 2011),
(33, 'bilans', 'CAYENM', 7.8, 0, 'Régisseur TGI Cayenne', 2011),
(34, 'bilans', 'SARREI', 9.33, 1, 'Trésor Public', 2011),
(35, 'kbis', 'STRASG', 3.11, 1, 'Trésor Public', 2011),
(36, 'kbis', 'THIONG', 3.11, 1, 'Trésor Public', 2011),
(37, 'kbis', 'SAVERG', 3.11, 1, 'Trésor Public', 2011),
(38, 'kbis', 'SARREG', 3.11, 1, 'Trésor Public', 2011),
(39, 'kbis', 'MULHOG', 3.11, 1, 'Trésor Public', 2011),
(40, 'kbis', 'FORTFM', 3.11, 0, 'Trésor Public', 2011),
(41, 'kbis', 'STDENM', 2.82, 1, 'TMX ST DENIS DE LA REUNION', 2011);

View File

@ -1,8 +0,0 @@
CREATE TABLE IF NOT EXISTS `nouveautes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`categorie` varchar(100) NOT NULL,
`intitule` varchar(100) NOT NULL,
`date` date NOT NULL DEFAULT '0000-00-00',
`fichier` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8;

View File

@ -1,14 +0,0 @@
--
-- Structure de la table `rapports_giants`
--
CREATE TABLE IF NOT EXISTS `rapports_giants` (
`id` int(8) NOT NULL AUTO_INCREMENT,
`companyId` varchar(255) NOT NULL,
`date` date NOT NULL,
`pays` enum('FR','ES','BE','NL','UK','DE') NOT NULL,
`type` enum('FU','CO','CR','FL') DEFAULT NULL,
`lang` varchar(2) CHARACTER SET utf8 NOT NULL,
`report` longtext NOT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8;

View File

@ -1,6 +0,0 @@
CREATE TABLE IF NOT EXISTS `tabDepartements` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`numdep` char(3) NOT NULL,
`libdep` char(45) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Departements';

View File

@ -1,12 +0,0 @@
CREATE TABLE IF NOT EXISTS `tabDevises` (
`devIso` char(3) DEFAULT NULL COMMENT 'Code devise selon la ISO 4217 (3 lettres)',
`devChiffres` smallint(3) unsigned zerofill NOT NULL COMMENT 'Code devise selon la ISO 4217 numérique (3 chiffres)',
`devInpi` smallint(3) unsigned zerofill DEFAULT NULL COMMENT 'Code devise utilisé par l''INPI',
`devNom` char(50) DEFAULT NULL COMMENT 'Nom de la devise',
`devPaysIso` char(255) DEFAULT NULL,
`devNewIso` char(3) DEFAULT NULL COMMENT 'Si ancienne devise, nouvelle devise utilisée',
`dateInsert` datetime NOT NULL,
`dateUpdate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
KEY `devIso` (`devIso`),
KEY `devInpi` (`devInpi`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Liste des devises';

View File

@ -1,7 +0,0 @@
CREATE TABLE IF NOT EXISTS `tabEvenements` (
`codEven` smallint(4) unsigned zerofill NOT NULL DEFAULT '0000' COMMENT 'Code évènement du mouvement Bodacc',
`libEven` varchar(101) DEFAULT NULL COMMENT 'Libellé de l''évènement',
`libEvenEn` varchar(200) DEFAULT NULL COMMENT 'Libellé en Anglais',
PRIMARY KEY (`codEven`),
UNIQUE KEY `libEven` (`libEven`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Liste des évènements Scores & Décisions';

View File

@ -1,7 +0,0 @@
CREATE TABLE IF NOT EXISTS `tabFJur` (
`code` int(4) NOT NULL DEFAULT '0',
`libelle` varchar(100) DEFAULT NULL COMMENT 'Libellé de la forme juridique',
`libelleEn` varchar(100) NOT NULL COMMENT 'Traduction Anglaise',
PRIMARY KEY (`code`),
FULLTEXT KEY `libelle` (`libelle`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Référentiel des Formes Juridiques';

View File

@ -1,5 +0,0 @@
CREATE TABLE IF NOT EXISTS `tabFctDir` (
`codeFct` smallint(4) unsigned zerofill NOT NULL DEFAULT '0000',
`libelle` varchar(255) DEFAULT NULL,
PRIMARY KEY (`codeFct`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Liste des fonctions de direction';

View File

@ -1,10 +0,0 @@
CREATE TABLE IF NOT EXISTS `tabNaf5tmp` (
`codNaf5` char(5) NOT NULL DEFAULT '',
`libNaf5` varchar(255) DEFAULT NULL,
`libNaf5en` varchar(255) DEFAULT NULL,
`codNaf4` char(4) DEFAULT NULL,
`codNaf3` char(3) DEFAULT NULL,
`codNaf2` char(2) DEFAULT NULL,
`codNaf1` char(1) DEFAULT NULL,
PRIMARY KEY (`codNaf5`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Code NAF rév 3 de 2013 (5 positions)';

View File

@ -1,30 +0,0 @@
CREATE TABLE IF NOT EXISTS `tabPays` (
`codPays` char(2) NOT NULL COMMENT 'Code Pays ISO 3166-1 alpha-2 sur 2 lettres',
`numPays` smallint(3) unsigned zerofill DEFAULT NULL COMMENT 'Code Pays ISO 3166-1 numeric sur 3 chiffres',
`codPays3` char(3) DEFAULT NULL COMMENT 'Code Pays ISO 3166-1 alpha-3 sur 3 lettres',
`codePaysInpi` smallint(3) unsigned zerofill DEFAULT NULL COMMENT 'Code pays numérique INPI',
`codePaysInsee` smallint(3) unsigned zerofill NOT NULL DEFAULT '000' COMMENT 'COG Insee du pays 3 chiffres',
`codeFips` char(2) DEFAULT NULL COMMENT 'Code standard des USA - FIPS PUB 10-4',
`codeTld` char(4) DEFAULT NULL COMMENT 'National Tol-Level Domain Names (Internet)',
`codeIoc` char(3) DEFAULT NULL COMMENT 'Code Pays du CIO (Comité Inter. Olympique)',
`codeITU` char(3) DEFAULT NULL COMMENT 'Code géré par l''International Telecommunications Union',
`codeDS` char(3) DEFAULT NULL COMMENT 'Distinguishing Signs of vehicles in international traffic (oval bumper sticker codes)',
`codeWMO` char(2) DEFAULT NULL COMMENT 'Code pays dans les rapports météo (World Meteorological Organization)',
`codeGAUL` char(6) DEFAULT NULL COMMENT 'Code Global Administrative Unit Layers (Food and Agriculture Organization)',
`codeMARC` char(5) DEFAULT NULL COMMENT 'Code MAchine-Readable Cataloging (Library of Congress)',
`dependance` char(3) DEFAULT NULL COMMENT 'Souvereneté exercée par ISO3166 trigraph',
`libPaysEN` varchar(50) NOT NULL COMMENT 'Libellé Anglais du pays',
`libPays` varchar(50) NOT NULL COMMENT 'Libellé Français du pays',
`libPaysMajAuto` varchar(50) NOT NULL COMMENT 'Libellé Français du pays en MAJ automatique',
`zone` enum('Afrique','Amérique du Nord','Amérique du Sud et centrale','Antarctique','Antilles, caraïbes','Asie','Europe de l''est','Europe occidentale','Moyen orient','Pacifique') DEFAULT NULL COMMENT 'Zone du monde (Continents ou océans)',
`drapeau` varchar(20) NOT NULL COMMENT 'Fichier drapeau',
`devise` char(3) NOT NULL COMMENT 'Code devise selon la ISO 4217 (3 lettres)',
`indTel` char(20) DEFAULT NULL COMMENT 'Indicatif téléphonique du pays selon ITU-T recommandation E.164 (international dialing code), suivi parfois d''un code géographique. Plusieurs indicatifs possibles (séparateur virgule)',
`remarques` varchar(255) NOT NULL,
`dateInsert` datetime NOT NULL COMMENT 'Date Insertion en base S&D',
`dateUpdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`codPays`),
UNIQUE KEY `codePays3` (`codPays3`),
UNIQUE KEY `numPays` (`numPays`),
UNIQUE KEY `codePaysInpi` (`codePaysInpi`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Liste des pays et correspondances des codes pays';

View File

@ -1,6 +0,0 @@
CREATE TABLE IF NOT EXISTS `tabVilles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` mediumint(5) UNSIGNED ZEROFILL DEFAULT NULL,
`libelle` char(45) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Codes Postales';

View File

@ -1,12 +0,0 @@
CREATE TABLE IF NOT EXISTS `worldcheck` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`idClient` char(5) NOT NULL,
`login` char(25) NOT NULL,
`nameIdentifier` varchar(23) NOT NULL,
`name` varchar(50) NOT NULL,
`siren` varchar(9) DEFAULT NULL,
`nameType` enum('INDIVIDUAL', 'ORGANISATION') NOT NULL,
`matchCount` int(4) DEFAULT NULL,
`dateInsert` date NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='worldcheck v2 2013-09-16';

View File

@ -1,10 +0,0 @@
CREATE TABLE IF NOT EXISTS `worldcheck_a` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`entityIdP` varchar(23) NOT NULL,
`entityId` varchar(23) NOT NULL,
`nameType` varchar(30) DEFAULT NULL,
`fullName` varchar(30) DEFAULT NULL,
`givenName` varchar(30) DEFAULT NULL,
`lastName` varchar(30) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='worldcheck associates v1 2014-01-20';

View File

@ -1,9 +0,0 @@
CREATE TABLE IF NOT EXISTS `worldcheck_list` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`entityId` varchar(23) NOT NULL,
`nameType` varchar(30) DEFAULT NULL,
`fullName` varchar(30) DEFAULT NULL,
`givenName` varchar(30) DEFAULT NULL,
`lastName` varchar(30) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='worldcheck list of PP, PM v1 2014-01-20';

View File

@ -1,149 +0,0 @@
<?php
// --- Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(__DIR__ . '/../../application'));
// --- Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
// --- Composer autoload
require_once realpath(__DIR__ . '/../../vendor/autoload.php');
try {
$opts = new Zend_Console_Getopt(
//Options
array(
'help|?' => "Affiche les informations d'utilisation",
'install=s' => "Installe et configure",
'incron' => "Create incron file",
'cron' => "Create cron file",
)
);
$opts->parse();
} catch (Zend_Console_Getopt_Exception $e) {
echo $e->getUsageMessage();
exit;
}
//Usage
if(isset($opts->help))
{
echo $opts->getUsageMessage();
exit;
}
if(isset($opts->install))
{
echo date('Y-m-d H:i:s')." - Démarrage de la configuration.\n";
// --- Copy configuration
$configDir = realpath(dirname(__FILE__)).'/profil';
$appconfigDir = APPLICATION_PATH.'/configs';
$profil = $opts->install;
if ($profil == 'local') {
echo date('Y-m-d H:i:s')." - Local dev, copie scripts/build/profil/local/application.ini to application/configs/.\n";
} else {
$result = copy($configDir.'/'.$profil.'/application.ini', $appconfigDir.'/application.ini');
if ($result !== true) {
echo date('Y-m-d H:i:s')." - Impossible de copier la configuration.\n";
exit(1);
}
}
// --- Create application, bootstrap, and run
$application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');
$c = new Zend_Config($application->getOptions());
// --- Create data directory and all his children
$path = $c->profil->path->shared;
$dirToCreate = array(
$path.'/temp/cache',
$path.'/temp/files',
$path.'/temp/pages/file/image/logo/q',
$path.'/temp/pages/file/streetview/img/q',
$path.'/temp/pages/imgcache',
$path.'/temp/sessions',
$path.'/temp/wsdl',
);
foreach ($dirToCreate as $dir) {
if ( ! file_exists($dir) ) {
mkdir($dir, 0777, true);
// --- Modification des permissions
passthru('chown -Rv www-data: '.$dir);
}
}
if ( substr(strtoupper(PHP_OS),0,3) == 'WIN' ) {
echo "Windows OS : Créer les liens symboliques pour l'impression. Voir script.";
echo "\n";
} else {
// Préparation et vérification
$dirToCheck = array(
$path.'/persist/association',
$path.'/persist/bilanclient',
$path.'/persist/bodacc',
$path.'/persist/groupes',
$path.'/persist/iris',
$path.'/persist/log',
$path.'/persist/logos',
$path.'/persist/marques',
$path.'/persist/nouveautes',
$path.'/persist/streetview',
);
foreach ($dirToCheck as $dir) {
if ( ! file_exists($dir) ) {
echo "Lien data manquant : ".$dir."\n";
}
}
// Création des liens symboliques pour l'impression
passthru('ln -vsf '.APPLICATION_PATH.'/../public/themes '.$c->profil->path->shared.'/temp/pages/themes');
passthru('ln -vsf '.$c->profil->path->shared.'/persist/streetview '.$c->profil->path->shared.'/temp/pages/file/streetview/img/q');
passthru('ln -vsf '.$c->profil->path->shared.'/persist/logos '.$c->profil->path->shared.'/temp/pages/file/image/logo/q');
// Modification des permissions
passthru('chown -R www-data: '.APPLICATION_PATH.'/../');
}
echo date('Y-m-d H:i:s')." - End.\n";
}
if ( $opts->incron ) {
echo "Création configuration incron.\n";
if ( !file_exist('/etc/incron.d') ) {
echo "incron is not install !\n";
exit;
}
//Send bilanclient
file_put_contents('/etc/incron.d/bilanclient', "/home/vhosts/data/bilanclient IN_CLOSE_WRITE php /home/vhosts/extranet/scripts/jobs/sendBilanClient.php --file $#");
echo "Don't forget to restart incron. sudo service incron restart.\n";
echo "Fin de la configuration.\n";
}
if ( $opts->cron ) {
echo "Création configuration cron.\n";
if ( !file_exist('/etc/cron.d') ) {
echo "cron is not install !\n";
exit;
}
//AltiScore
file_put_contents('/etc/cron.d/altiscore', "# AltiScore");
file_put_contents('/etc/cron.d/altiscore', "00 04 * * 1-5 www-data php /home/vhosts/extranet/scripts/jobs/getAltiScore.php --cron >> /home/vhosts/data/log/altiscore.log", FILE_APPEND);
echo "Don't forget to restart cron. sudo service cron restart.";
echo "End.\n";
}

View File

@ -1,18 +0,0 @@
Server Configuration
====================
Copier tout les fichiers de configuration du serveur.
cp -vRi scripts/build/config/etc/* /etc/
PHP5
----
/etc/php5
crontab
-------
/etc/cron.d
incron
------
/etc/incron.d

View File

@ -1,11 +0,0 @@
# Bilan : envoi commande
0 * * * * root php /home/vhosts/extranet/current/scripts/jobs/bilaninput.php --send >> /home/vhosts/data/log/bilaninput.log 2>&1
# Bilan : suppression fichier
0 10 1 * * root php /home/vhosts/extranet/current/scripts/jobs/bilaninput.php --delete >> /home/vhosts/data/log/bilaninput.log 2>&1
# Fichier temporaire : suppression
01 15 06 * * root php /home/vhosts/extranet/current/scripts/jobs/removeTempFile.php --options all >> /home/vhosts/data/log/remove.log 2>&1
# AltiScore
00 4 * * 1-5 www-data php /home/vhosts/extranet/current/scripts/jobs/getAltiScore.php --cron >> /home/vhosts/data/log/altiscore.log

View File

@ -1 +0,0 @@
/home/vhosts/data/bilanclient IN_CLOSE_WRITE php /home/vhosts/extranet/scripts/jobs/bilaninput.php --save $# >> /home/vhosts/data/log/bilaninput.log 2>&1

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,58 +0,0 @@
[production]
phpSettings.date.timezone = "Europe/Paris"
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
phpSettings.soap.wsdl_cache_dir = "/home/vhosts/data/extranet/temp/wsdl"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.session.save_path = "/home/vhosts/data/extranet/temp/sessions"
resources.useragent.mobile.features.path = APPLICATION_PATH "/../library/Zend/Http/UserAgent/Features/Adapter/Browscap.php"
resources.useragent.mobile.features.classname = "Zend_Http_UserAgent_Features_Adapter_Browscap"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.plugins.Auth = "Application_Controller_Plugin_Auth"
resources.frontController.plugins.Theme = "Application_Controller_Plugin_Theme"
resources.frontController.plugins.Lang = "Application_Controller_Plugin_Lang"
resources.frontController.plugins.Menu = "Application_Controller_Plugin_Menu"
resources.frontController.plugins.Pdf = "Application_Controller_Plugin_Pdf"
resources.frontController.plugins.Xml = "Application_Controller_Plugin_Xml"
resources.frontController.plugins.Cgu = "Application_Controller_Plugin_Cgu"
resources.frontController.params.displayExceptions = 0
resources.layout.layout = "layout"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/default"
resources.view.helperPath = APPLICATION_PATH "/layouts/helpers"
resources.view.basePath = APPLICATION_PATH "/views/default"
; Scores configuration
profil.server.name = sdsrvdev01
profil.webservice.url = "http://webservice.sd.lan";
profil.mail.method = smtp
profil.mail.smtp_host = smtp.free.fr
profil.mail.username = yourusername
profil.mail.password = yourpassword
profil.mail.email.support = supportdev@scores-decisions.com
profil.mail.email.supportdev = supportdev@scores-decisions.com
profil.mail.email.contact = supportdev@scores-decisions.com
profil.mail.email.production = supportdev@scores-decisions.com
profil.path.shared = "/home/vhosts/data/extranet"
profil.wkhtmltopdf.path = "/usr/local/bin/wkhtmltopdf"
profil.db.sdv1.adapter=mysqli
profil.db.sdv1.params.host=localhost
profil.db.sdv1.params.username=extranet
profil.db.sdv1.params.password=dMJNQwHER2A8jZFY
profil.db.sdv1.params.dbname=extranet
profil.db.sdv1.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
[staging : production]
resources.frontController.params.displayExceptions = 0
phpSettings.soap.wsdl_cache_enabled = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 0
phpSettings.soap.wsdl_cache_enabled = 0
resources.frontController.params.displayExceptions = 1
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1

View File

@ -1,56 +0,0 @@
[production]
phpSettings.date.timezone = "Europe/Paris"
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
phpSettings.soap.wsdl_cache_dir = "/your/persistent/path/temp/wsdl"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.session.save_path = "/your/persistent/path/temp/sessions"
resources.useragent.mobile.features.path = APPLICATION_PATH "/../library/Zend/Http/UserAgent/Features/Adapter/Browscap.php"
resources.useragent.mobile.features.classname = "Zend_Http_UserAgent_Features_Adapter_Browscap"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.plugins.Auth = "Application_Controller_Plugin_Auth"
resources.frontController.plugins.Theme = "Application_Controller_Plugin_Theme"
resources.frontController.plugins.Lang = "Application_Controller_Plugin_Lang"
resources.frontController.plugins.Menu = "Application_Controller_Plugin_Menu"
resources.frontController.plugins.Pdf = "Application_Controller_Plugin_Pdf"
resources.frontController.plugins.Xml = "Application_Controller_Plugin_Xml"
resources.frontController.plugins.Cgu = "Application_Controller_Plugin_Cgu"
resources.frontController.params.displayExceptions = 0
resources.layout.layout = "layout"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/default"
resources.view.helperPath = APPLICATION_PATH "/layouts/helpers"
resources.view.basePath = APPLICATION_PATH "/views/default"
; Scores configuration
profil.server.name = development
profil.webservice.url = "http://webservice-2.8.sd.dev"
profil.mail.method = smtp
profil.mail.host = smtp.free.fr
profil.mail.email.support = supportdev@scores-decisions.com
profil.mail.email.supportdev = supportdev@scores-decisions.com
profil.mail.email.contact = supportdev@scores-decisions.com
profil.mail.email.production = supportdev@scores-decisions.com
profil.path.shared = "/your/persistent/path/"
profil.wkhtmltopdf.path = "/usr/local/bin/wkhtmltopdf"
profil.db.sdv1.adapter=mysqli
profil.db.sdv1.params.host=127.0.0.1
profil.db.sdv1.params.username=root
profil.db.sdv1.params.password=password
profil.db.sdv1.params.dbname=extranet
profil.db.sdv1.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
[staging : production]
resources.frontController.params.displayExceptions = 0
phpSettings.soap.wsdl_cache_enabled = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
phpSettings.soap.wsdl_cache_enabled = 0
resources.frontController.params.displayExceptions = 1
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1

View File

@ -1,56 +0,0 @@
[production]
phpSettings.date.timezone = "Europe/Paris"
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
phpSettings.soap.wsdl_cache_dir = "/home/vhosts/extranet/shared/temp/wsdl"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.session.save_path = "/home/vhosts/extranet/shared/temp/sessions"
resources.useragent.mobile.features.path = APPLICATION_PATH "/../library/Zend/Http/UserAgent/Features/Adapter/Browscap.php"
resources.useragent.mobile.features.classname = "Zend_Http_UserAgent_Features_Adapter_Browscap"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.plugins.Auth = "Application_Controller_Plugin_Auth"
resources.frontController.plugins.Theme = "Application_Controller_Plugin_Theme"
resources.frontController.plugins.Lang = "Application_Controller_Plugin_Lang"
resources.frontController.plugins.Menu = "Application_Controller_Plugin_Menu"
resources.frontController.plugins.Pdf = "Application_Controller_Plugin_Pdf"
resources.frontController.plugins.Xml = "Application_Controller_Plugin_Xml"
resources.frontController.plugins.Cgu = "Application_Controller_Plugin_Cgu"
resources.frontController.params.displayExceptions = 0
resources.layout.layout = "layout"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/default"
resources.view.helperPath = APPLICATION_PATH "/layouts/helpers"
resources.view.basePath = APPLICATION_PATH "/views/default"
; Scores configuration
profil.server.name = sd-46528
profil.webservice.url = "http://wse.scores-decisions.com:8081";
profil.mail.method = sendmail
profil.mail.email.support = support@scores-decisions.com
profil.mail.email.supportdev = supportdev@scores-decisions.com
profil.mail.email.contact = contact@scores-decisions.com
profil.mail.email.production = production@scores-decisions.com
profil.path.shared = "/home/vhosts/extranet/shared"
profil.wkhtmltopdf.path = "/usr/local/bin/wkhtmltopdf"
profil.db.sdv1.adapter=mysqli
profil.db.sdv1.params.host=localhost
profil.db.sdv1.params.username=extranet
profil.db.sdv1.params.password=bGPZ9qYZQFHMYCnJ
profil.db.sdv1.params.dbname=extranet
profil.db.sdv1.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
[staging : production]
resources.frontController.params.displayExceptions = 0
phpSettings.soap.wsdl_cache_enabled = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
phpSettings.soap.wsdl_cache_enabled = 0
resources.frontController.params.displayExceptions = 1
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1

View File

@ -1,56 +0,0 @@
[production]
phpSettings.date.timezone = "Europe/Paris"
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
phpSettings.soap.wsdl_cache_dir = "/home/vhosts/extranet/shared/temp/wsdl"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.session.save_path = "/home/vhosts/extranet/shared/temp/sessions"
resources.useragent.mobile.features.path = APPLICATION_PATH "/../library/Zend/Http/UserAgent/Features/Adapter/Browscap.php"
resources.useragent.mobile.features.classname = "Zend_Http_UserAgent_Features_Adapter_Browscap"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.plugins.Auth = "Application_Controller_Plugin_Auth"
resources.frontController.plugins.Theme = "Application_Controller_Plugin_Theme"
resources.frontController.plugins.Lang = "Application_Controller_Plugin_Lang"
resources.frontController.plugins.Menu = "Application_Controller_Plugin_Menu"
resources.frontController.plugins.Pdf = "Application_Controller_Plugin_Pdf"
resources.frontController.plugins.Xml = "Application_Controller_Plugin_Xml"
resources.frontController.plugins.Cgu = "Application_Controller_Plugin_Cgu"
resources.frontController.params.displayExceptions = 0
resources.layout.layout = "layout"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/default"
resources.view.helperPath = APPLICATION_PATH "/layouts/helpers"
resources.view.basePath = APPLICATION_PATH "/views/default"
; Scores configuration
profil.server.name = ns359466
profil.webservice.url = "http://wse.scores-decisions.com:8081";
profil.mail.method = sendmail
profil.mail.email.support = support@scores-decisions.com
profil.mail.email.supportdev = supportdev@scores-decisions.com
profil.mail.email.contact = contact@scores-decisions.com
profil.mail.email.production = production@scores-decisions.com
profil.path.shared = "/home/vhosts/extranet/shared"
profil.wkhtmltopdf.path = "/usr/local/bin/wkhtmltopdf"
profil.db.sdv1.adapter=mysqli
profil.db.sdv1.params.host=127.0.0.1
profil.db.sdv1.params.username=extranet
profil.db.sdv1.params.password=dMJNQwHER2A8jZFY
profil.db.sdv1.params.dbname=sdv1
profil.db.sdv1.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
[staging : production]
resources.frontController.params.displayExceptions = 0
phpSettings.soap.wsdl_cache_enabled = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
phpSettings.soap.wsdl_cache_enabled = 0
resources.frontController.params.displayExceptions = 1
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1

View File

@ -1,56 +0,0 @@
[production]
phpSettings.date.timezone = "Europe/Paris"
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
phpSettings.soap.wsdl_cache_dir = "/home/vhosts/extranet-ng/shared/temp/wsdl"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.session.save_path = "/home/vhosts/extranet-ng/shared/temp/sessions"
resources.useragent.mobile.features.path = APPLICATION_PATH "/../library/Zend/Http/UserAgent/Features/Adapter/Browscap.php"
resources.useragent.mobile.features.classname = "Zend_Http_UserAgent_Features_Adapter_Browscap"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.plugins.Auth = "Application_Controller_Plugin_Auth"
resources.frontController.plugins.Theme = "Application_Controller_Plugin_Theme"
resources.frontController.plugins.Lang = "Application_Controller_Plugin_Lang"
resources.frontController.plugins.Menu = "Application_Controller_Plugin_Menu"
resources.frontController.plugins.Pdf = "Application_Controller_Plugin_Pdf"
resources.frontController.plugins.Xml = "Application_Controller_Plugin_Xml"
resources.frontController.plugins.Cgu = "Application_Controller_Plugin_Cgu"
resources.frontController.params.displayExceptions = 0
resources.layout.layout = "layout"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/default"
resources.view.helperPath = APPLICATION_PATH "/layouts/helpers"
resources.view.basePath = APPLICATION_PATH "/views/default"
; Scores configuration
profil.server.name = sd-46528
profil.webservice.url = "http://wsrec.scores-decisions.com:8000";
profil.mail.method = sendmail
profil.mail.email.support = support@scores-decisions.com
profil.mail.email.supportdev = supportdev@scores-decisions.com
profil.mail.email.contact = contact@scores-decisions.com
profil.mail.email.production = production@scores-decisions.com
profil.path.shared = "/home/vhosts/extranet-ng/shared"
profil.wkhtmltopdf.path = "/usr/local/bin/wkhtmltopdf"
profil.db.sdv1.adapter=mysqli
profil.db.sdv1.params.host=localhost
profil.db.sdv1.params.username=extranet
profil.db.sdv1.params.password=bGPZ9qYZQFHMYCnJ
profil.db.sdv1.params.dbname=extranet
profil.db.sdv1.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
[staging : production]
resources.frontController.params.displayExceptions = 0
phpSettings.soap.wsdl_cache_enabled = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
phpSettings.soap.wsdl_cache_enabled = 0
resources.frontController.params.displayExceptions = 1
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1