Correction chemin
This commit is contained in:
parent
2652a543d8
commit
4e18b0e3ca
@ -886,9 +886,10 @@ class EvaluationController extends Zend_Controller_Action
|
||||
'</body>'.
|
||||
'</xmlrequest>';
|
||||
|
||||
$date = date('Ymd');
|
||||
$url = 'https://www.creditsafe.fr/getdata/service/CSFRServices.asmx/GetData?RequestXmlStr='.$req;
|
||||
$file = APPLICATION_PATH.'/../../data/creditsafe/'.$this->siret.'.xml';
|
||||
$date = date('Ymd');
|
||||
$url = 'https://www.creditsafe.fr/getdata/service/CSFRServices.asmx/GetData?RequestXmlStr='.$req;
|
||||
$c = Zend_Registry::get('config');
|
||||
$file = $c->profil->path->shared.'/temp/creditsafe/'.$this->siret.'.xml';
|
||||
|
||||
try {
|
||||
$client = new Zend_Http_Client($url);
|
||||
|
@ -30,7 +30,7 @@ if ( empty($this->source) ){
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h2>Liste des surveillances</h2>
|
||||
@ -49,7 +49,7 @@ if ( empty($this->source) ){
|
||||
<th width="75">Count</th>
|
||||
<th width="150">Event Type</th>
|
||||
<th width="110">Last Change</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><pre><? //print_r($this->val_siren);?></pre>
|
||||
@ -66,7 +66,7 @@ if ( empty($this->source) ){
|
||||
}
|
||||
endforeach;
|
||||
?>
|
||||
|
||||
|
||||
<? foreach ($merged as $MonitoringEv):
|
||||
//STORE BY type
|
||||
$merged_type = Array();
|
||||
@ -80,7 +80,7 @@ if ( empty($this->source) ){
|
||||
?>
|
||||
<?$resultDB=unserialize($this->action('ret', 'giant',null,array('date_st'=>current($merged_type)[0]->ProviderOrderId)));?>
|
||||
<? $frontendOptions = array('lifetime' => $this->configVal->cache->lifetime,'automatic_serialization' => true);
|
||||
$backendOptions = array('cache_dir' => '../data/cache/giant/');
|
||||
$backendOptions = array('cache_dir' => $c->profil->path->shared . '/giant/');
|
||||
$cache = Zend_Cache::factory('Output','File',$frontendOptions,$backendOptions);
|
||||
if(($lang = $cache->load('Pays_'.$resultDB['Pays'])) === false) {
|
||||
$lang = 'en';
|
||||
@ -112,10 +112,10 @@ if ( empty($this->source) ){
|
||||
</td>
|
||||
<td>
|
||||
<?php
|
||||
|
||||
|
||||
foreach ($merged_type as $monitor_type) {
|
||||
echo "<p>".count($monitor_type).'</p>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td style='text-align: left'>
|
||||
@ -125,7 +125,7 @@ if ( empty($this->source) ){
|
||||
echo "<a class='ev_code' title='".$monitor_type[0]->Company->Event[0]->EventCode."' href='/giant/retevents/Type/".$monitor_type[0]->Company->Event[0]->EventCode."/Id/".$monitor_type[0]->ProviderOrderId."'><p>".$name[1]."</p></a>";
|
||||
} //Fin foreach?>
|
||||
</td>
|
||||
|
||||
|
||||
<td>
|
||||
<?php
|
||||
foreach ($merged_type as $monitor_type) {
|
||||
|
@ -24,7 +24,7 @@ Class GiantControllerLib
|
||||
|
||||
public function getCache($pays){
|
||||
$frontendOptions = array('lifetime' => $this->configVal->cache->lifetime,'automatic_serialization' => true);
|
||||
$backendOptions = array('cache_dir' => '../data/cache/giant/');
|
||||
$backendOptions = array('cache_dir' => $c->profil->path->shared . '/giant/');
|
||||
$cache = Zend_Cache::factory('Output','File',$frontendOptions,$backendOptions);
|
||||
$result = $cache->load('Pays_'.$pays);
|
||||
return ($result);
|
||||
@ -89,11 +89,11 @@ Class GiantControllerLib
|
||||
'lifetime' => $this->configVal->cache->lifetime,
|
||||
'automatic_serialization' => true
|
||||
);
|
||||
$path = '../data/cache/giant/';
|
||||
$path = $c->profil->path->shared .'/giant/';
|
||||
if (!is_dir($path)) mkdir($path, 0777, true)
|
||||
;
|
||||
//No, create it
|
||||
$backendOptions = array('cache_dir' => '../data/cache/giant/');
|
||||
$backendOptions = array('cache_dir' => $c->profil->path->shared . '/giant/');
|
||||
$cache = Zend_Cache::factory('Output','File',$frontendOptions,$backendOptions);
|
||||
if(($result = $cache->load('Pays_'.$Pays)) === false) {
|
||||
$rapport = new GiantRechercheController($Pays, $TestIndication);
|
||||
|
@ -126,7 +126,7 @@ class Scores_Ws_Client extends Zend_Soap_Client
|
||||
'automatic_seralization' => true
|
||||
);
|
||||
$backend = array(
|
||||
'cache_dir' => APPLICATION_PATH . '/../data/cache',
|
||||
'cache_dir' => $c->profil->path->shared . '/temp/cache',
|
||||
);
|
||||
$this->cache = Zend_Cache::factory('Core', 'File', $frontend, $backend);
|
||||
}
|
||||
|
@ -8,6 +8,6 @@ wsworldcheck.assigneeIdentifier = cnu_so_77
|
||||
wsworldcheck.response.limit = 200
|
||||
wsworldcheck.response.start = 0
|
||||
worldcheck.page.items = 15
|
||||
worldcheck.cachedir.path = ../data/cache/
|
||||
worldcheck.cachedir.path = "/home/vhosts/data/extranet/temp/cache/"
|
||||
worldcheck.cachedir.name = worldcheck
|
||||
worldcheck.cachedir.lifetime = 86400
|
@ -61,7 +61,8 @@ if(isset($opts->install))
|
||||
$dirToCreate = array(
|
||||
$path.'/temp/cache',
|
||||
$path.'/temp/files',
|
||||
$path.'/temp/pages/file',
|
||||
$path.'/temp/pages/file/image/logo/q',
|
||||
$path.'/temp/pages/file/streetview/img/q',
|
||||
$path.'/temp/pages/imgcache',
|
||||
$path.'/temp/sessions',
|
||||
$path.'/temp/wsdl',
|
||||
@ -102,8 +103,8 @@ if(isset($opts->install))
|
||||
|
||||
// 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');
|
||||
passthru('ln -vsf '.$c->profil->path->shared.'/persist/logos '.$c->profil->path->shared.'/temp/pages/file/logos');
|
||||
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.'/../');
|
||||
|
@ -30,9 +30,6 @@ 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.cache = APPLICATION_PATH "/../data/cache"
|
||||
profil.path.files = APPLICATION_PATH "/../data/files"
|
||||
profil.path.pages = APPLICATION_PATH "/../data/pages"
|
||||
profil.path.shared = "/home/vhosts/extranet/shared"
|
||||
profil.wkhtmltopdf.path = "/usr/local/bin/wkhtmltopdf"
|
||||
profil.db.sdv1.adapter=mysqli
|
||||
|
@ -30,9 +30,6 @@ 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.cache = APPLICATION_PATH "/../data/cache"
|
||||
profil.path.files = APPLICATION_PATH "/../data/files"
|
||||
profil.path.pages = APPLICATION_PATH "/../data/pages"
|
||||
profil.path.shared = "/home/vhosts/extranet-ng/shared"
|
||||
profil.wkhtmltopdf.path = "/usr/local/bin/wkhtmltopdf"
|
||||
profil.db.sdv1.adapter=mysqli
|
||||
|
Loading…
Reference in New Issue
Block a user