Remplacement informations de connection MySQL

This commit is contained in:
Michael RICOIS 2009-02-20 13:57:51 +00:00
parent 11b88ccf99
commit 51661da74b
2 changed files with 18 additions and 10 deletions

View File

@ -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">&nbsp;</td></tr>'; echo '<tr><td colspan="4">&nbsp;</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">&nbsp;</td> <td width="30">&nbsp;</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"/>&nbsp;&nbsp;Source BODACC '.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']); echo '<img src="./img/logo_jo.png"/>&nbsp;&nbsp;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"/>&nbsp;&nbsp;&nbsp;Source BODACC n&deg;'.$ann['BodaccNum'].'&nbsp;'.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']);?>. D&eacute;partement n&deg;<?=$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"/>&nbsp;&nbsp;&nbsp;Source BODACC n&deg;'.$ann['BodaccNum'].'&nbsp;'.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']);?>. D&eacute;partement n&deg;<?=$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&eacute;e en base : '. WDate::dateT('Y-m-d','d/m/Y',$ann['dateInsertionSD']);
?></td> if ($ann['dateInsertionSD']<>'') echo 'Entr&eacute;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'])?>*/

View File

@ -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() .'-->');
} }