tcpdf_barcodes_1d_include.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. //============================================================+
  3. // File name : tcpdf_barcodes_1d_include.php
  4. // Begin : 2013-05-19
  5. // Last Update : 2013-05-19
  6. //
  7. // Description : Search and include the TCPDF Barcode 1D class.
  8. //
  9. // Author: Nicola Asuni
  10. //
  11. // (c) Copyright:
  12. // Nicola Asuni
  13. // Tecnick.com LTD
  14. // www.tecnick.com
  15. // info@tecnick.com
  16. //============================================================+
  17. /**
  18. * Search and include the TCPDF Barcode 1D class.
  19. * @package com.tecnick.tcpdf
  20. * @abstract TCPDF - Include the main class.
  21. * @author Nicola Asuni
  22. * @since 2013-05-19
  23. */
  24. // Include the TCPDF 1D barcode class (search the class on the following directories).
  25. $tcpdf_barcodes_1d_include_dirs = array(
  26. realpath(dirname(__FILE__) . '/../../tcpdf_barcodes_1d.php'),// True source file
  27. realpath('../../tcpdf_barcodes_1d.php'),// Relative from $PWD
  28. '/usr/share/php/tcpdf/tcpdf_barcodes_1d.php',
  29. '/usr/share/tcpdf/tcpdf_barcodes_1d.php',
  30. '/usr/share/php-tcpdf/tcpdf_barcodes_1d.php',
  31. '/var/www/tcpdf/tcpdf_barcodes_1d.php',
  32. '/var/www/html/tcpdf/tcpdf_barcodes_1d.php',
  33. '/usr/local/apache2/htdocs/tcpdf/tcpdf_barcodes_1d.php'
  34. );
  35. foreach ($tcpdf_barcodes_1d_include_dirs as $tcpdf_barcodes_1d_include_path) {
  36. if (@file_exists($tcpdf_barcodes_1d_include_path)) {
  37. require_once($tcpdf_barcodes_1d_include_path);
  38. break;
  39. }
  40. }
  41. //============================================================+
  42. // END OF FILE
  43. //============================================================+