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