Mercurial > defr > DualBlog
annotate includes/class.domutils.php @ 65:434751e80c88
Utilisation de la classe Requete dans tb.php
Cela permet de gérer automatiquement l'ajout des quotes si on a pas de
magic_quotes notamment, empechant les injections SQL :-)
| author | Franck Deroche <webmaster@defr.org> |
|---|---|
| date | Tue, 11 Mar 2008 16:33:07 +0100 |
| parents | 629389204276 |
| children |
| rev | line source |
|---|---|
| webmaster@0 | 1 <?php |
| webmaster@0 | 2 class DOMUtils |
| webmaster@0 | 3 { |
| webmaster@0 | 4 public function createCDATAWrapper($doc, $wrapperName, $data) |
| webmaster@0 | 5 { |
| webmaster@0 | 6 $CDATA = $doc->createCDataSection($data); |
| webmaster@0 | 7 $wrapper = $doc->createElement($wrapperName); |
| webmaster@0 | 8 $wrapper->appendChild($CDATA); |
| webmaster@0 | 9 return $wrapper; |
| webmaster@0 | 10 } |
| webmaster@0 | 11 } |
| webmaster@0 | 12 ?> |
