You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.3 KiB

4 years ago
  1. <?php
  2. //============================================================+
  3. // File name : tcpdf_include.php
  4. // Begin : 2008-05-14
  5. // Last Update : 2014-12-10
  6. //
  7. // Description : Search and include the TCPDF library.
  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 library.
  19. * @package com.tecnick.tcpdf
  20. * @abstract TCPDF - Include the main class.
  21. * @author Nicola Asuni
  22. * @since 2013-05-14
  23. */
  24. // always load alternative config file for examples
  25. require_once('config/tcpdf_config_alt.php');
  26. // Include the main TCPDF library (search the library on the following directories).
  27. $tcpdf_include_dirs = array(
  28. realpath('../tcpdf.php'),
  29. '/usr/share/php/tcpdf/tcpdf.php',
  30. '/usr/share/tcpdf/tcpdf.php',
  31. '/usr/share/php-tcpdf/tcpdf.php',
  32. '/var/www/tcpdf/tcpdf.php',
  33. '/var/www/html/tcpdf/tcpdf.php',
  34. '/usr/local/apache2/htdocs/tcpdf/tcpdf.php'
  35. );
  36. foreach ($tcpdf_include_dirs as $tcpdf_include_path) {
  37. if (@file_exists($tcpdf_include_path)) {
  38. require_once($tcpdf_include_path);
  39. break;
  40. }
  41. }
  42. //============================================================+
  43. // END OF FILE
  44. //============================================================+