summaryrefslogtreecommitdiff
path: root/tcpdf_include.php
diff options
context:
space:
mode:
authordiptighosalkar2016-10-04 22:07:23 +0530
committerdiptighosalkar2016-10-04 22:07:23 +0530
commitba9786f7d047bbd97eb9d92bebf508c34f80668a (patch)
tree3a1026d5867722aa6343abc4ec3a3f8d585fb7f4 /tcpdf_include.php
parente9ed6cf562bebc6e013af48d43674320124995d2 (diff)
downloadFOSSEE_Stats-master.tar.gz
FOSSEE_Stats-master.tar.bz2
FOSSEE_Stats-master.zip
Added lang folderHEADmaster
Diffstat (limited to 'tcpdf_include.php')
-rwxr-xr-xtcpdf_include.php48
1 files changed, 48 insertions, 0 deletions
diff --git a/tcpdf_include.php b/tcpdf_include.php
new file mode 100755
index 0000000..26e23a8
--- /dev/null
+++ b/tcpdf_include.php
@@ -0,0 +1,48 @@
+<?php
+//============================================================+
+// File name : tcpdf_include.php
+// Begin : 2008-05-14
+// Last Update : 2014-12-10
+//
+// 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
+ */
+
+// always load alternative config file for examples
+require_once('config/tcpdf_config_alt.php');
+
+// 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) {
+ if (@file_exists($tcpdf_include_path)) {
+ require_once($tcpdf_include_path);
+ break;
+ }
+}
+
+//============================================================+
+// END OF FILE
+//============================================================+