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

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.3.class.php :.

Codulle - L'explorateur de code sources

Accueil>> Panier de fichiers

Informations fichier

Nom du fichier : panierdefichiers0.3.class.php
Taille du fichier : 7 Ko (275 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 16/05/2005
  53. * @version 0.3
  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( !empty( $sCheminFichier ) &&
  106. ( array_search( $sCheminFichier, $_SESSION[NOM_PANIER_SESSION] ) === false ) &&
  107. !$this->PanierPlein() )
  108. {
  109. $_SESSION[NOM_PANIER_SESSION][] = $sCheminFichier;
  110. return true;
  111. }
  112. return false;
  113. }
  114. /**
  115. * Supprime le fichier spécifié du panier.
  116. *
  117. * @param [STRING] $sCheminFichier Chemin du fichier à supprimer. (Idem méthode d'ajout)
  118. * @return [BOOLEAN] TRUE si le fichier a été supprimé, FALSE sinon.
  119. */
  120. function Supprimer( $sCheminFichier )
  121. {
  122. // si l'image se trouve bien dans le panier on la supprime
  123. if( !empty( $sCheminFichier ) &&
  124. ( $iPosition = array_search( $sCheminFichier, $_SESSION[NOM_PANIER_SESSION] ) ) !== false )
  125. {
  126. unset( $_SESSION[NOM_PANIER_SESSION][$iPosition] );
  127. return true;
  128. }
  129. return false;
  130. }
  131. /**
  132. * Vide le panier.
  133. *
  134. * @param [VOID]
  135. * @return [VOID]
  136. */
  137. function ViderPanier()
  138. {
  139. $_SESSION[NOM_PANIER_SESSION] = array();
  140. }
  141. /**
  142. * Création de l'archive qui contient les fichiers du panier.
  143. * Par défaut, l'archive est écrite sur le disque puis chargée en mémoire et enfin supprimée.
  144. * L'archive chargée en mémoire est alors envoyée au navigateur client pour le télechargement.
  145. *
  146. * @param [STRING] $sNomFichier Nom à donner à l'archive.
  147. * @param [BOOLEAN] $bEcrireSeulement Si TRUE, l'archive n'est pas effacée du disque et n'est pas envoyée au navigateur.
  148. * @return [VOID]
  149. */
  150. function CreerArchive( $sNomFichier, $bEcrireSeulement = false )
  151. {
  152.  
  153. $sFichierZip = $sNomFichier.'.zip';
  154. // inclusion de la librairie de compression zip
  155. require_once( COMPRESS_LIB );
  156. // creation de l'objet du fichier zip
  157. $oZip = new PclZip( $sFichierZip );
  158. // ajout des fichiers au zip et ecriture sur le disque
  159. if( $oZip->create( $_SESSION[NOM_PANIER_SESSION] ) == 0 )
  160. die( "Erreur : ".$oZip->errorInfo(true) );
  161. // destruction objet zip
  162. unset( $oZip );
  163. if( $bEcrireSeulement === false )
  164. {
  165. // lecture binaire de l'archive
  166. $fpHandle = fopen( $sFichierZip, 'rb' );
  167. $sArchive = fread( $fpHandle, filesize( $sFichierZip ) );
  168. fclose( $fpHandle );
  169. // suppression de l'archive
  170. unlink( $sFichierZip );
  171. // chargement des entetes HTTP pour l'envoi de l'archive
  172. header("Content-type: application/octet-stream");
  173. header("Content-disposition: attachment; filename=$sNomFichier.zip");
  174. // envoi au navigateur
  175. echo $sArchive;
  176. }
  177. }
  178. /**
  179. * Compte le nombre de fichiers dans le panier.
  180. *
  181. * @param [VOID]
  182. * @return [INTEGER] Retourne le nombre de fichiers dans le panier.
  183. */
  184. function CompterFichiers()
  185. {
  186. return sizeof( $_SESSION[NOM_PANIER_SESSION] );
  187. }
  188. /**
  189. * Vérifie l'existence d'un fichier dans le panier.
  190. *
  191. * @param [STRING] $sCheminFichier Chemin du fichier à vérifier.
  192. * @return [BOOLEAN] TRUE si le fichier est dans le panier, FALSE sinon.
  193. */
  194. function EstDansLePanier( $sCheminFichier )
  195. {
  196. if( !empty( $sCheminFichier ) &&
  197. array_search( $sCheminFichier, $_SESSION[NOM_PANIER_SESSION] ) !== false )
  198. return true;
  199. else
  200. return false;
  201. }
  202. /**
  203. * Permet de savoir si le panier est plein.
  204. *
  205. * @param [VOID]
  206. * @return [BOOLEAN] TRUE si le panier est plein, FALSE sinon.
  207. */
  208. function PanierPlein()
  209. {
  210. // si un nombre max de fichiers a été défini et que le panier est plein
  211. if( ($this->_iNbFichiersMax > 0 ) && ( $this->CompterFichiers() >= $this->_iNbFichiersMax ) )
  212. return true;
  213. return false;
  214. }
  215. /**
  216. * Affiche le contenu du panier.
  217. * Fonction utile uniquement pour du déboguage.
  218. *
  219. * @param [VOID]
  220. * @return [VOID]
  221. */
  222. function EtatPanier()
  223. {
  224. echo '<pre>';
  225. print_r( $_SESSION[NOM_PANIER_SESSION] );
  226. echo '</pre>';
  227. }
  228. }
  229.  
  230. ?>

Liste des projets

Téléchargez Codulle

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