19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: bazar.fonct.php,v 1.13 2005-10-21 16:15:04 florian Exp $ |
// CVS : $Id: bazar.fonct.php,v 1.14 2005-11-07 08:48:02 florian Exp $ |
/** |
* |
* Fonctions du module bazar |
30,7 → 30,7 |
*@author Florian Schmitt <florian@ecole-et-nature.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.13 $ $Date: 2005-10-21 16:15:04 $ |
*@version $Revision: 1.14 $ $Date: 2005-11-07 08:48:02 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
767,7 → 767,7 |
$val=$valeur[$tableau[$i]['nom_bdd']]['Y'].'-'.$valeur[$tableau[$i]['nom_bdd']]['m'].'-'.$valeur[$tableau[$i]['nom_bdd']]['d']; |
} |
else { |
$val=stripslashes($valeur[$tableau[$i]['nom_bdd']]); |
$val=addslashes(baz_unhtmlentities($valeur[$tableau[$i]['nom_bdd']])); |
} |
$requete.=$tableau[$i]['nom_bdd'].'="'.$val.'", '; |
} |
787,7 → 787,7 |
*/ |
function baz_insertion($valeur) { |
|
// Récupération de bn_appropriation |
// Recuperation de bn_appropriation |
|
$requete_app = 'select bn_appropriation from bazar_nature where bn_id_nature='.$GLOBALS['_BAZAR_']['id_typeannonce'] ; |
$resultat_app = $GLOBALS['_BAZAR_']['db']->query($requete_app) ; |
1330,42 → 1330,12 |
return $ligne->maxi + 1 ; |
} |
|
function encoderChaine($chaine) |
{ |
$entites = array( |
'?' => '‚', |
'?' => 'ƒ', |
'?' => '„', |
'?' => '…', |
'?' => '†', |
'?' => '‡', |
'?' => 'ˆ', |
'?' => '‰', |
'à' => 'Š', |
'?' => '‹', |
'à' => 'Œ', |
'?' => '‘', |
'?' => '’', |
'?' => '“', |
'?' => '”', |
'?' => '•', |
'?' => '–', |
'?' => '—', |
'?' => '˜', |
'?' => '™', |
'à' => 'š', |
'?' => '›', |
'à' => 'œ', |
'à' => 'Ÿ', |
'à' => '€'); |
return str_replace(array_keys($entites), |
array_values($entites), |
$chaine); |
} |
|
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.13 2005/10/21 16:15:04 florian |
* mise a jour appropriation |
* |
* Revision 1.11 2005/10/12 17:20:33 ddelon |
* Reorganisation calendrier + applette |
* |