ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
tcpdf_include.php
Go to the documentation of this file.
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 
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).
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 //============================================================+
$tcpdf_include_dirs
Create styles array
The data for the language used.