2013-05-14 20:28:42 +00:00
|
|
|
<?php
|
|
|
|
//============================================================+
|
|
|
|
// File name : tcpdf_include.php
|
|
|
|
// Begin : 2008-05-14
|
|
|
|
// Last Update : 2013-05-14
|
|
|
|
//
|
|
|
|
// Description : Search and include the TCPDF library.
|
|
|
|
//
|
|
|
|
// Author: Nicola Asuni
|
|
|
|
//
|
|
|
|
// (c) Copyright:
|
|
|
|
// Nicola Asuni
|
|
|
|
// Tecnick.com LTD
|
|
|
|
// www.tecnick.com
|
|
|
|
// info@tecnick.com
|
|
|
|
//============================================================+
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Search and include the TCPDF library.
|
|
|
|
* @package com.tecnick.tcpdf
|
|
|
|
* @abstract TCPDF - Include the main class.
|
|
|
|
* @author Nicola Asuni
|
|
|
|
* @since 2013-05-14
|
|
|
|
*/
|
|
|
|
|
2013-05-16 16:46:06 +00:00
|
|
|
// always load alternative config file for examples
|
|
|
|
require_once('config/tcpdf_config_alt.php');
|
|
|
|
|
2013-05-14 20:28:42 +00:00
|
|
|
// Include the main TCPDF library (search the library on the following directories).
|
|
|
|
$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');
|
|
|
|
foreach ($tcpdf_include_dirs as $tcpdf_include_path) {
|
2013-06-04 19:55:07 +00:00
|
|
|
if (@file_exists($tcpdf_include_path)) {
|
2013-05-14 20:28:42 +00:00
|
|
|
require_once($tcpdf_include_path);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//============================================================+
|
|
|
|
// END OF FILE
|
|
|
|
//============================================================+
|