Remplacement informations de connection MySQL
This commit is contained in:
parent
11b88ccf99
commit
51661da74b
@ -71,7 +71,7 @@ try {
|
|||||||
if (count($annonces)==0) {
|
if (count($annonces)==0) {
|
||||||
$id=0;
|
$id=0;
|
||||||
$O = $client->getAnnonces($siren, $filtre,$id);
|
$O = $client->getAnnonces($siren, $filtre,$id);
|
||||||
$annonces=$O['result'];
|
$annonces=$O['result'];
|
||||||
}
|
}
|
||||||
} catch (SoapFault $fault) {
|
} catch (SoapFault $fault) {
|
||||||
echo '<pre>'.$client->__getLastResponse().'</pre>';
|
echo '<pre>'.$client->__getLastResponse().'</pre>';
|
||||||
@ -79,11 +79,16 @@ try {
|
|||||||
print_r($fault);
|
print_r($fault);
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
print "<pre>";
|
||||||
|
print_r($annonces);
|
||||||
|
print "</pre>";
|
||||||
|
exit;
|
||||||
|
*/
|
||||||
/** Récupération du site WEB et tel/fax entreprise **/
|
/** Récupération du site WEB et tel/fax entreprise **/
|
||||||
$conid = mysql_pconnect('localhost', 'root', 'catsysyo92');
|
$conid = mysql_pconnect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS);
|
||||||
if (!($conid === false)) {
|
if (!($conid === false)) {
|
||||||
if (mysql_select_db('sdv1', $conid) === false) {
|
if (mysql_select_db(MYSQL_DB, $conid) === false) {
|
||||||
die('Base de données indisponible');
|
die('Base de données indisponible');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -140,7 +145,7 @@ try {
|
|||||||
</tr>
|
</tr>
|
||||||
<?
|
<?
|
||||||
if ($id && ($vue=='bodacc' || $vue=='abod' || $vue=='balo' || $vue=='asso')) {
|
if ($id && ($vue=='bodacc' || $vue=='abod' || $vue=='balo' || $vue=='asso')) {
|
||||||
echo '<tr><td colspan="4"> </td></tr>';
|
echo '<tr><td colspan="4"> </td></tr>';
|
||||||
$ann=$annonces[0];
|
$ann=$annonces[0];
|
||||||
/**
|
/**
|
||||||
** AFFICHAGE D'UNE ANNONCE BODACC / BALO / ASSO
|
** AFFICHAGE D'UNE ANNONCE BODACC / BALO / ASSO
|
||||||
@ -175,7 +180,8 @@ try {
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td width="30"> </td>
|
<td width="30"> </td>
|
||||||
<td width="550" colspan="3" class="StyleInfoData"><?
|
<td width="550" colspan="3" class="StyleInfoData">
|
||||||
|
<?
|
||||||
$tabSource=explode('-', $ann['BodaccCode']);
|
$tabSource=explode('-', $ann['BodaccCode']);
|
||||||
$source=$tabSource[0];
|
$source=$tabSource[0];
|
||||||
$idSource=@$tabSource[1];
|
$idSource=@$tabSource[1];
|
||||||
@ -189,8 +195,10 @@ try {
|
|||||||
echo '<img src="./img/logo_jo.png"/> Source BODACC '.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']);
|
echo '<img src="./img/logo_jo.png"/> Source BODACC '.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']);
|
||||||
else
|
else
|
||||||
echo '<img src="./img/logo_jo.png"/> Source BODACC n°'.$ann['BodaccNum'].' '.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']);?>. Département n°<?=$ann['Departement']?>. <!--<a href="/?page=identite&siret=<?=$ann['TribunalSiret']?>">--><a href="/?page=competences&siret=<?=$siret?>&type=tri"><?=$ann['Tribunal']?></a>.<?
|
echo '<img src="./img/logo_jo.png"/> Source BODACC n°'.$ann['BodaccNum'].' '.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']);?>. Département n°<?=$ann['Departement']?>. <!--<a href="/?page=identite&siret=<?=$ann['TribunalSiret']?>">--><a href="/?page=competences&siret=<?=$siret?>&type=tri"><?=$ann['Tribunal']?></a>.<?
|
||||||
if ($ann['dateInsertionSD']<>'') echo 'Entrée en base : '. WDate::dateT('Y-m-d','d/m/Y',$ann['dateInsertionSD']);
|
|
||||||
?></td>
|
if ($ann['dateInsertionSD']<>'') echo 'Entrée en base : '. WDate::dateT('Y-m-d','d/m/Y',$ann['dateInsertionSD']);
|
||||||
|
?>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?
|
<?
|
||||||
}/*<?=WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution'])?>*/
|
}/*<?=WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution'])?>*/
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
$idCommande=0;
|
$idCommande=0;
|
||||||
|
|
||||||
//include_once(realpath(dirname(__FILE__). '/../../framework/default/_includes/mysql.php'));
|
//include_once(realpath(dirname(__FILE__). '/../../framework/default/_includes/mysql.php'));
|
||||||
$con = mysql_pconnect('localhost', 'root', 'catsysyo92');
|
$con = mysql_pconnect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS);
|
||||||
if (!($con === false)) {
|
if (!($con === false)) {
|
||||||
if (mysql_select_db('sdv1', $con) === false)
|
if (mysql_select_db(MYSQL_DB, $con) === false)
|
||||||
echo ('<!--Could not select database: ' . mysql_error() .'-->');
|
echo ('<!--Could not select database: ' . mysql_error() .'-->');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user