root / drupal7 / sites / all / libraries / tcpdf-version / examples / tcpdf_include.php @ 9d13637e
1 | 85ad3d82 | Assos Assos | <?php
|
---|---|---|---|
2 | //============================================================+
|
||
3 | // File name : tcpdf_include.php
|
||
4 | // Begin : 2008-05-14
|
||
5 | // Last Update : 2013-05-14
|
||
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(realpath('../tcpdf.php'), '/usr/share/php/tcpdf/tcpdf.php', '/usr/share/tcpdf/tcpdf.php', '/usr/share/php-tcpdf/tcpdf.php', '/var/www/tcpdf/tcpdf.php', '/var/www/html/tcpdf/tcpdf.php', '/usr/local/apache2/htdocs/tcpdf/tcpdf.php'); |
||
31 | foreach ($tcpdf_include_dirs as $tcpdf_include_path) { |
||
32 | if (@file_exists($tcpdf_include_path)) { |
||
33 | require_once($tcpdf_include_path); |
||
34 | break;
|
||
35 | } |
||
36 | } |
||
37 | |||
38 | //============================================================+
|
||
39 | // END OF FILE
|
||
40 | //============================================================+ |