Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/clients/a38b86744e455b1f2e763fe46170a4c9/web/jebulle.net/sources/classes/geshi.php on line 2013
.: Codulle : Source de panierdefichiers0.4.class.php :.

Codulle - L'explorateur de code sources

Accueil>> Panier de fichiers

Informations fichier

Nom du fichier : panierdefichiers0.4.class.php
Taille du fichier : 7 Ko (272 lignes)
Language : PHP

  1. <?php
  2.  
  3. ///////////////////////////////
  4. // LICENCE
  5. ///////////////////////////////
  6. //
  7. // © DUCARRE Cedric, Bubulles Creations, (09/05/2005)
  8. //
  9. // webmaster@jebulle.net
  10. // http://jebulle.net
  11. //
  12. // Ce logiciel est un programme servant à gérer un panier de fichiers pour
  13. // sites internet.
  14. //
  15. // Ce logiciel est régi par la licence CeCILL soumise au droit français et
  16. // respectant les principes de diffusion des logiciels libres. Vous pouvez
  17. // utiliser, modifier et/ou redistribuer ce programme sous les conditions
  18. // de la licence CeCILL telle que diffusée par le CEA, le CNRS et l'INRIA
  19. // sur le site "http://www.cecill.info".
  20. //
  21. // En contrepartie de l'accessibilité au code source et des droits de copie,
  22. // de modification et de redistribution accordés par cette licence, il n'est
  23. // offert aux utilisateurs qu'une garantie limitée. Pour les mêmes raisons,
  24. // seule une responsabilité restreinte pèse sur l'auteur du programme, le
  25. // titulaire des droits patrimoniaux et les concédants successifs.
  26. //
  27. // A cet égard l'attention de l'utilisateur est attirée sur les risques
  28. // associés au chargement, à l'utilisation, à la modification et/ou au
  29. // développement et à la reproduction du logiciel par l'utilisateur étant
  30. // donné sa spécificité de logiciel libre, qui peut le rendre complexe à
  31. // manipuler et qui le réserve donc à des développeurs et des professionnels
  32. // avertis possédant des connaissances informatiques approfondies. Les
  33. // utilisateurs sont donc invités à charger et tester l'adéquation du
  34. // logiciel à leurs besoins dans des conditions permettant d'assurer la
  35. // sécurité de leurs systèmes et ou de leurs données et, plus généralement,
  36. // à l'utiliser et l'exploiter dans les mêmes conditions de sécurité.
  37. //
  38. // Le fait que vous puissiez accéder à cet en-tête signifie que vous avez
  39. // pris connaissance de la licence CeCILL, et que vous en avez accepté les
  40. // termes.
  41. //
  42. ///////////////////////////////
  43.  
  44. /**
  45. * Classe de gestion de panier de fichiers.
  46. *
  47. * Permet d'ajouter des fichiers à un panier virtuel et de créer une archive
  48. * télechargeable de ces fichiers.
  49. *
  50. * @author SamRay1024
  51. * @copyright Bubulles Creation - http://jebulle.net
  52. * @since 10/06/2005
  53. * @version 0.4
  54. *
  55. */
  56.  
  57. // nom de la variable du panier dans la session
  58. define( 'NOM_PANIER_SESSION', 'EX_PANIER_FICHIERS' );
  59.  
  60. // chemin d'accès à la librairie de compression
  61. define( 'COMPRESS_LIB', 'pclzip.lib.php' );
  62.  
  63. class PanierDeFichiers {
  64. /**
  65. * Nombre maximum de fichiers dans le panier.
  66. *
  67. * @var [INTEGER]
  68. * @access [PRIVATE]
  69. */
  70. private $_iNbFichiersMax = 0;
  71. /**
  72. * Constructeur de la classe.
  73. *
  74. * Peut recevoir un nombre maximum de fichiers pour limiter le contenu du panier.
  75. * Si aucun paramètre ou que le nombre passé vaut 0 ou est négatif le panier est illimité.
  76. *
  77. * @param [INTEGER] $iNbFichiersMax Nombre de fichiers que l'on peut mettre dans le panier.
  78. * @return [VOID]
  79. */
  80. function __construct( $iNbFichiersMax = 0 )
  81. {
  82. // verification que le module de compression est actif sur le serveur
  83. if( !extension_loaded( 'zlib' ) )
  84. die( '<strong>[ Erreur fatale ]</strong> L\'extension \'zlib\' n\'est pas charg&eacute;e. Impossible d\'utiliser le panier sans elle.');
  85. // s'il n'y a pas de session démarrée, il faut la créer
  86. if( session_id() === '' )
  87. // creation du panier s'il n'existe pas déjà
  88. if( !isset( $_SESSION[NOM_PANIER_SESSION] ) )
  89. $_SESSION[NOM_PANIER_SESSION] = array();
  90. // initialisation du nombre max de fichiers
  91. $this->_iNbFichiersMax = ( $iNbFichiersMax < 0 ) ? 0 : $iNbFichiersMax;
  92. }
  93. /**
  94. * Ajoute un fichier au panier que s'il n'y est pas déjà et si le panier n'est pas plein.
  95. * La recherche si le fichier se trouve déjà dans le panier s'effectue
  96. * avec le chemin complet du fichier (autorise alors deux noms de fichiers
  97. * identiques mais dans des dossiers différents).
  98. *
  99. * @param [STRING] $sCheminFichier Chemin du fichier.
  100. * @return [BOOLEAN] TRUE si le fichier a été ajouté, FALSE sinon.
  101. */
  102. function Ajouter( $sCheminFichier )
  103. {
  104. // ajout du fichier s'il n'y est pas déjà et si le panier n'est pas plein
  105. if( ( array_search( $sCheminFichier, $_SESSION[NOM_PANIER_SESSION] ) === false ) && !$this->PanierPlein() )
  106. {
  107. $_SESSION[NOM_PANIER_SESSION][] = $sCheminFichier;
  108. return true;
  109. }
  110. return false;
  111. }
  112. /**
  113. * Supprime le fichier spécifié du panier.
  114. *
  115. * @param [STRING] $sCheminFichier Chemin du fichier à supprimer. (Idem méthode d'ajout)
  116. * @return [BOOLEAN] TRUE si le fichier a été supprimé, FALSE sinon.
  117. */
  118. function Supprimer( $sCheminFichier )
  119. {
  120. // si l'image se trouve bien dans le panier on la supprime
  121. if( ( $iPosition = array_search( $sCheminFichier, $_SESSION[NOM_PANIER_SESSION] ) ) !== false )
  122. {
  123. unset( $_SESSION[NOM_PANIER_SESSION][$iPosition] );
  124. return true;
  125. }
  126. return false;
  127. }
  128. /**
  129. * Vide le panier.
  130. *
  131. * @param [VOID]
  132. * @return [VOID]
  133. */
  134. function ViderPanier()
  135. {
  136. $_SESSION[NOM_PANIER_SESSION] = array();
  137. }
  138. /**
  139. * Création de l'archive qui contient les fichiers du panier.
  140. * Par défaut, l'archive est écrite sur le disque puis chargée en mémoire et enfin supprimée.
  141. * L'archive chargée en mémoire est alors envoyée au navigateur client pour le télechargement.
  142. *
  143. * @param [STRING] $sNomFichier Nom à donner à l'archive.
  144. * @param [BOOLEAN] $bEcrireSeulement Si TRUE, l'archive n'est pas effacée du disque et n'est pas envoyée au navigateur.
  145. * @return [VOID]
  146. */
  147. function CreerArchive( $sNomFichier, $bEcrireSeulement = false )
  148. {
  149.  
  150. $sFichierZip = $sNomFichier.'.zip';
  151. // inclusion de la librairie de compression zip
  152. require_once( COMPRESS_LIB );
  153. // creation de l'objet du fichier zip
  154. $oZip = new PclZip( $sFichierZip );
  155. // ajout des fichiers au zip et ecriture sur le disque
  156. if( $oZip->create( $_SESSION[NOM_PANIER_SESSION] ) == 0 )
  157. die( "Erreur : ".$oZip->errorInfo(true) );
  158. // destruction objet zip
  159. unset( $oZip );
  160. if( $bEcrireSeulement === false )
  161. {
  162. // lecture binaire de l'archive
  163. $fpHandle = fopen( $sFichierZip, 'rb' );
  164. $sArchive = fread( $fpHandle, filesize( $sFichierZip ) );
  165. fclose( $fpHandle );
  166. // suppression de l'archive
  167. unlink( $sFichierZip );
  168. // chargement des entetes HTTP pour l'envoi de l'archive
  169. //header( 'Content-type: application/octet-stream');
  170. header( 'Content-type: application/zip');
  171. header( 'Content-disposition: attachment; filename="'.basename( $sNomFichier ).'.zip"');
  172. // envoi au navigateur
  173. echo $sArchive;
  174. }
  175. }
  176. /**
  177. * Compte le nombre de fichiers dans le panier.
  178. *
  179. * @param [VOID]
  180. * @return [INTEGER] Retourne le nombre de fichiers dans le panier.
  181. */
  182. function CompterFichiers()
  183. {
  184. return sizeof( $_SESSION[NOM_PANIER_SESSION] );
  185. }
  186. /**
  187. * Vérifie l'existence d'un fichier dans le panier.
  188. *
  189. * @param [STRING] $sCheminFichier Chemin du fichier à vérifier.
  190. * @return [BOOLEAN] TRUE si le fichier est dans le panier, FALSE sinon.
  191. */
  192. function EstDansLePanier( $sCheminFichier )
  193. {
  194. if( array_search( $sCheminFichier, $_SESSION[NOM_PANIER_SESSION] ) !== false )
  195. return true;
  196. else
  197. return false;
  198. }
  199. /**
  200. * Permet de savoir si le panier est plein.
  201. *
  202. * @param [VOID]
  203. * @return [BOOLEAN] TRUE si le panier est plein, FALSE sinon.
  204. */
  205. function PanierPlein()
  206. {
  207. // si un nombre max de fichiers a été défini et que le panier est plein
  208. if( ($this->_iNbFichiersMax > 0 ) && ( $this->CompterFichiers() >= $this->_iNbFichiersMax ) )
  209. return true;
  210. return false;
  211. }
  212. /**
  213. * Affiche le contenu du panier.
  214. * Fonction utile uniquement pour du déboguage.
  215. *
  216. * @param [VOID]
  217. * @return [VOID]
  218. */
  219. function EtatPanier()
  220. {
  221. echo '<pre>';
  222. print_r( $_SESSION[NOM_PANIER_SESSION] );
  223. echo '</pre>';
  224. }
  225. }
  226.  
  227. ?>

Liste des projets

Téléchargez Codulle

Publié par Codulle - v0.1.1 - © Bubulles Creations