From e27aa651bbe18d1d7647f6b72ffdaf6dd73fe245 Mon Sep 17 00:00:00 2001 From: nicolaasuni Date: Tue, 4 Jun 2013 20:55:07 +0100 Subject: [PATCH] 6.0.019 (2013-06-04) - The magic constant __DIR__ was replaced with dirname(__FILE__) for php 5.2 compatibility. - The exceptions raised by file_exists() function were suppressed. --- CHANGELOG.TXT | 4 ++ README.TXT | 4 +- composer.json | 2 +- examples/barcodes/example_1d_html.php | 2 +- examples/barcodes/example_1d_png.php | 2 +- examples/barcodes/example_1d_svg.php | 2 +- examples/barcodes/example_1d_svgi.php | 2 +- .../barcodes/example_2d_datamatrix_html.php | 2 +- .../barcodes/example_2d_datamatrix_png.php | 2 +- .../barcodes/example_2d_datamatrix_svg.php | 2 +- .../barcodes/example_2d_datamatrix_svgi.php | 2 +- examples/barcodes/example_2d_pdf417_html.php | 2 +- examples/barcodes/example_2d_pdf417_png.php | 2 +- examples/barcodes/example_2d_pdf417_svg.php | 2 +- examples/barcodes/example_2d_pdf417_svgi.php | 2 +- examples/barcodes/example_2d_qrcode_html.php | 2 +- examples/barcodes/example_2d_qrcode_png.php | 2 +- examples/barcodes/example_2d_qrcode_svg.php | 2 +- examples/barcodes/example_2d_qrcode_svgi.php | 2 +- .../barcodes/tcpdf_barcodes_1d_include.php | 2 +- .../barcodes/tcpdf_barcodes_2d_include.php | 2 +- examples/config/tcpdf_config_alt.php | 2 +- examples/example_001.php | 2 +- examples/example_002.php | 2 +- examples/example_003.php | 2 +- examples/example_004.php | 2 +- examples/example_005.php | 2 +- examples/example_006.php | 2 +- examples/example_007.php | 2 +- examples/example_008.php | 2 +- examples/example_009.php | 2 +- examples/example_010.php | 2 +- examples/example_011.php | 2 +- examples/example_012.php | 2 +- examples/example_013.php | 2 +- examples/example_014.php | 2 +- examples/example_015.php | 2 +- examples/example_016.php | 2 +- examples/example_017.php | 2 +- examples/example_020.php | 2 +- examples/example_021.php | 2 +- examples/example_022.php | 2 +- examples/example_023.php | 2 +- examples/example_024.php | 2 +- examples/example_025.php | 2 +- examples/example_026.php | 2 +- examples/example_027.php | 2 +- examples/example_028.php | 2 +- examples/example_029.php | 2 +- examples/example_030.php | 2 +- examples/example_031.php | 2 +- examples/example_032.php | 2 +- examples/example_033.php | 2 +- examples/example_034.php | 2 +- examples/example_035.php | 2 +- examples/example_036.php | 2 +- examples/example_037.php | 2 +- examples/example_038.php | 2 +- examples/example_039.php | 2 +- examples/example_040.php | 2 +- examples/example_041.php | 2 +- examples/example_042.php | 2 +- examples/example_043.php | 2 +- examples/example_044.php | 2 +- examples/example_045.php | 2 +- examples/example_046.php | 2 +- examples/example_047.php | 2 +- examples/example_048.php | 2 +- examples/example_049.php | 2 +- examples/example_050.php | 2 +- examples/example_051.php | 2 +- examples/example_052.php | 2 +- examples/example_053.php | 2 +- examples/example_054.php | 2 +- examples/example_055.php | 2 +- examples/example_056.php | 2 +- examples/example_057.php | 2 +- examples/example_058.php | 2 +- examples/example_059.php | 2 +- examples/example_060.php | 2 +- examples/example_061.php | 2 +- examples/example_062.php | 2 +- examples/example_063.php | 2 +- examples/example_064.php | 2 +- examples/example_065.php | 2 +- examples/tcpdf_include.php | 2 +- include/tcpdf_fonts.php | 2 +- include/tcpdf_static.php | 2 +- tcpdf.php | 62 +++++++++---------- tcpdf_autoconfig.php | 10 +-- tools/tcpdf_addfont.php | 4 +- 91 files changed, 130 insertions(+), 126 deletions(-) diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index d23f0ed..2ec0bb0 100644 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,7 @@ +6.0.019 (2013-06-04) + - The magic constant __DIR__ was replaced with dirname(__FILE__) for php 5.2 compatibility. + - The exceptions raised by file_exists() function were suppressed. + 6.0.018 (2013-05-19) - The barcode examples were changed to automatically search for the barcode class path (in case the examples directory is not installed under the TCPDF root). diff --git a/README.TXT b/README.TXT index 614a68c..3a6bd27 100644 --- a/README.TXT +++ b/README.TXT @@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076 ------------------------------------------------------------ Name: TCPDF -Version: 6.0.018 -Release date: 2013-05-19 +Version: 6.0.019 +Release date: 2013-06-04 Author: Nicola Asuni Copyright (c) 2002-2013: diff --git a/composer.json b/composer.json index e827cb2..28d6ea4 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "tecnick.com/tcpdf", - "version": "6.0.018", + "version": "6.0.019", "homepage": "http://www.tcpdf.org/", "type": "library", "description": "TCPDF is a PHP class for generating PDF documents.", diff --git a/examples/barcodes/example_1d_html.php b/examples/barcodes/example_1d_html.php index 2a3bbb0..67d22e7 100644 --- a/examples/barcodes/example_1d_html.php +++ b/examples/barcodes/example_1d_html.php @@ -40,7 +40,7 @@ */ // include 1D barcode class (search for installation path) -require_once(__DIR__.'/tcpdf_barcodes_1d_include.php'); +require_once(dirname(__FILE__).'/tcpdf_barcodes_1d_include.php'); // set the barcode content and type $barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128'); diff --git a/examples/barcodes/example_1d_png.php b/examples/barcodes/example_1d_png.php index a82433e..9e44909 100644 --- a/examples/barcodes/example_1d_png.php +++ b/examples/barcodes/example_1d_png.php @@ -40,7 +40,7 @@ */ // include 1D barcode class (search for installation path) -require_once(__DIR__.'/tcpdf_barcodes_1d_include.php'); +require_once(dirname(__FILE__).'/tcpdf_barcodes_1d_include.php'); // set the barcode content and type $barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128'); diff --git a/examples/barcodes/example_1d_svg.php b/examples/barcodes/example_1d_svg.php index fa6de4f..f7b585a 100644 --- a/examples/barcodes/example_1d_svg.php +++ b/examples/barcodes/example_1d_svg.php @@ -40,7 +40,7 @@ */ // include 1D barcode class (search for installation path) -require_once(__DIR__.'/tcpdf_barcodes_1d_include.php'); +require_once(dirname(__FILE__).'/tcpdf_barcodes_1d_include.php'); // set the barcode content and type $barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128'); diff --git a/examples/barcodes/example_1d_svgi.php b/examples/barcodes/example_1d_svgi.php index 3c7471b..a74a304 100644 --- a/examples/barcodes/example_1d_svgi.php +++ b/examples/barcodes/example_1d_svgi.php @@ -40,7 +40,7 @@ */ // include 1D barcode class (search for installation path) -require_once(__DIR__.'/tcpdf_barcodes_1d_include.php'); +require_once(dirname(__FILE__).'/tcpdf_barcodes_1d_include.php'); // set the barcode content and type $barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128'); diff --git a/examples/barcodes/example_2d_datamatrix_html.php b/examples/barcodes/example_2d_datamatrix_html.php index d6bfba2..dc7bab3 100644 --- a/examples/barcodes/example_2d_datamatrix_html.php +++ b/examples/barcodes/example_2d_datamatrix_html.php @@ -40,7 +40,7 @@ */ // include 2D barcode class (search for installation path) -require_once(__DIR__.'/tcpdf_barcodes_2d_include.php'); +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); // set the barcode content and type $barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX'); diff --git a/examples/barcodes/example_2d_datamatrix_png.php b/examples/barcodes/example_2d_datamatrix_png.php index 0eeea73..87b7a33 100644 --- a/examples/barcodes/example_2d_datamatrix_png.php +++ b/examples/barcodes/example_2d_datamatrix_png.php @@ -40,7 +40,7 @@ */ // include 2D barcode class (search for installation path) -require_once(__DIR__.'/tcpdf_barcodes_2d_include.php'); +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); // set the barcode content and type $barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX'); diff --git a/examples/barcodes/example_2d_datamatrix_svg.php b/examples/barcodes/example_2d_datamatrix_svg.php index 2032075..523ebfa 100644 --- a/examples/barcodes/example_2d_datamatrix_svg.php +++ b/examples/barcodes/example_2d_datamatrix_svg.php @@ -40,7 +40,7 @@ */ // include 2D barcode class (search for installation path) -require_once(__DIR__.'/tcpdf_barcodes_2d_include.php'); +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); // set the barcode content and type $barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX'); diff --git a/examples/barcodes/example_2d_datamatrix_svgi.php b/examples/barcodes/example_2d_datamatrix_svgi.php index 3003bba..4470981 100644 --- a/examples/barcodes/example_2d_datamatrix_svgi.php +++ b/examples/barcodes/example_2d_datamatrix_svgi.php @@ -40,7 +40,7 @@ */ // include 2D barcode class (search for installation path) -require_once(__DIR__.'/tcpdf_barcodes_2d_include.php'); +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); // set the barcode content and type $barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX'); diff --git a/examples/barcodes/example_2d_pdf417_html.php b/examples/barcodes/example_2d_pdf417_html.php index f51bea9..4c4e9ee 100644 --- a/examples/barcodes/example_2d_pdf417_html.php +++ b/examples/barcodes/example_2d_pdf417_html.php @@ -40,7 +40,7 @@ */ // include 2D barcode class (search for installation path) -require_once(__DIR__.'/tcpdf_barcodes_2d_include.php'); +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); // set the barcode content and type $barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'PDF417'); diff --git a/examples/barcodes/example_2d_pdf417_png.php b/examples/barcodes/example_2d_pdf417_png.php index 3d260af..df939bb 100644 --- a/examples/barcodes/example_2d_pdf417_png.php +++ b/examples/barcodes/example_2d_pdf417_png.php @@ -40,7 +40,7 @@ */ // include 2D barcode class (search for installation path) -require_once(__DIR__.'/tcpdf_barcodes_2d_include.php'); +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); // set the barcode content and type $barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'PDF417'); diff --git a/examples/barcodes/example_2d_pdf417_svg.php b/examples/barcodes/example_2d_pdf417_svg.php index c449f20..fb29ea2 100644 --- a/examples/barcodes/example_2d_pdf417_svg.php +++ b/examples/barcodes/example_2d_pdf417_svg.php @@ -40,7 +40,7 @@ */ // include 2D barcode class (search for installation path) -require_once(__DIR__.'/tcpdf_barcodes_2d_include.php'); +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); // set the barcode content and type $barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'PDF417'); diff --git a/examples/barcodes/example_2d_pdf417_svgi.php b/examples/barcodes/example_2d_pdf417_svgi.php index 103b90b..94e1c71 100644 --- a/examples/barcodes/example_2d_pdf417_svgi.php +++ b/examples/barcodes/example_2d_pdf417_svgi.php @@ -40,7 +40,7 @@ */ // include 2D barcode class (search for installation path) -require_once(__DIR__.'/tcpdf_barcodes_2d_include.php'); +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); // set the barcode content and type $barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'PDF417'); diff --git a/examples/barcodes/example_2d_qrcode_html.php b/examples/barcodes/example_2d_qrcode_html.php index 7455fe8..ac828f7 100644 --- a/examples/barcodes/example_2d_qrcode_html.php +++ b/examples/barcodes/example_2d_qrcode_html.php @@ -40,7 +40,7 @@ */ // include 2D barcode class (search for installation path) -require_once(__DIR__.'/tcpdf_barcodes_2d_include.php'); +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); // set the barcode content and type $barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,H'); diff --git a/examples/barcodes/example_2d_qrcode_png.php b/examples/barcodes/example_2d_qrcode_png.php index 570adf2..71f8710 100644 --- a/examples/barcodes/example_2d_qrcode_png.php +++ b/examples/barcodes/example_2d_qrcode_png.php @@ -40,7 +40,7 @@ */ // include 2D barcode class (search for installation path) -require_once(__DIR__.'/tcpdf_barcodes_2d_include.php'); +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); // set the barcode content and type $barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,H'); diff --git a/examples/barcodes/example_2d_qrcode_svg.php b/examples/barcodes/example_2d_qrcode_svg.php index be02b77..1baa43d 100644 --- a/examples/barcodes/example_2d_qrcode_svg.php +++ b/examples/barcodes/example_2d_qrcode_svg.php @@ -40,7 +40,7 @@ */ // include 2D barcode class (search for installation path) -require_once(__DIR__.'/tcpdf_barcodes_2d_include.php'); +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); // set the barcode content and type $barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,H'); diff --git a/examples/barcodes/example_2d_qrcode_svgi.php b/examples/barcodes/example_2d_qrcode_svgi.php index 67032f5..99d6590 100644 --- a/examples/barcodes/example_2d_qrcode_svgi.php +++ b/examples/barcodes/example_2d_qrcode_svgi.php @@ -40,7 +40,7 @@ */ // include 2D barcode class (search for installation path) -require_once(__DIR__.'/tcpdf_barcodes_2d_include.php'); +require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php'); // set the barcode content and type $barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,H'); diff --git a/examples/barcodes/tcpdf_barcodes_1d_include.php b/examples/barcodes/tcpdf_barcodes_1d_include.php index 5e8b7fb..a0bde57 100644 --- a/examples/barcodes/tcpdf_barcodes_1d_include.php +++ b/examples/barcodes/tcpdf_barcodes_1d_include.php @@ -26,7 +26,7 @@ // Include the TCPDF 1D barcode class (search the class on the following directories). $tcpdf_barcodes_1d_include_dirs = array(realpath('../../tcpdf_barcodes_1d.php'), '/usr/share/php/tcpdf/tcpdf_barcodes_1d.php', '/usr/share/tcpdf/tcpdf_barcodes_1d.php', '/usr/share/php-tcpdf/tcpdf_barcodes_1d.php', '/var/www/tcpdf/tcpdf_barcodes_1d.php', '/var/www/html/tcpdf/tcpdf_barcodes_1d.php', '/usr/local/apache2/htdocs/tcpdf/tcpdf_barcodes_1d.php'); foreach ($tcpdf_barcodes_1d_include_dirs as $tcpdf_barcodes_1d_include_path) { - if (file_exists($tcpdf_barcodes_1d_include_path)) { + if (@file_exists($tcpdf_barcodes_1d_include_path)) { require_once($tcpdf_barcodes_1d_include_path); break; } diff --git a/examples/barcodes/tcpdf_barcodes_2d_include.php b/examples/barcodes/tcpdf_barcodes_2d_include.php index 4ad45d8..61c4a8b 100644 --- a/examples/barcodes/tcpdf_barcodes_2d_include.php +++ b/examples/barcodes/tcpdf_barcodes_2d_include.php @@ -26,7 +26,7 @@ // Include the TCPDF 2D barcode class (search the class on the following directories). $tcpdf_barcodes_2d_include_dirs = array(realpath('../../tcpdf_barcodes_2d.php'), '/usr/share/php/tcpdf/tcpdf_barcodes_2d.php', '/usr/share/tcpdf/tcpdf_barcodes_2d.php', '/usr/share/php-tcpdf/tcpdf_barcodes_2d.php', '/var/www/tcpdf/tcpdf_barcodes_2d.php', '/var/www/html/tcpdf/tcpdf_barcodes_2d.php', '/usr/local/apache2/htdocs/tcpdf/tcpdf_barcodes_2d.php'); foreach ($tcpdf_barcodes_2d_include_dirs as $tcpdf_barcodes_2d_include_path) { - if (file_exists($tcpdf_barcodes_2d_include_path)) { + if (@file_exists($tcpdf_barcodes_2d_include_path)) { require_once($tcpdf_barcodes_2d_include_path); break; } diff --git a/examples/config/tcpdf_config_alt.php b/examples/config/tcpdf_config_alt.php index 5450bef..62f3dfa 100644 --- a/examples/config/tcpdf_config_alt.php +++ b/examples/config/tcpdf_config_alt.php @@ -63,7 +63,7 @@ define ('K_TCPDF_EXTERNAL_CONFIG', true); * Default images directory. * By default it is automatically set but you can also set it as a fixed string to improve performances. */ -define ('K_PATH_IMAGES', __DIR__.'/../images/'); +define ('K_PATH_IMAGES', dirname(__FILE__).'/../images/'); /** * Deafult image logo used be the default Header() method. diff --git a/examples/example_001.php b/examples/example_001.php index f2890fc..055c66a 100644 --- a/examples/example_001.php +++ b/examples/example_001.php @@ -60,7 +60,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_002.php b/examples/example_002.php index 162ee8e..020dd29 100644 --- a/examples/example_002.php +++ b/examples/example_002.php @@ -54,7 +54,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_003.php b/examples/example_003.php index 7dc82e4..73a0e8c 100644 --- a/examples/example_003.php +++ b/examples/example_003.php @@ -85,7 +85,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_004.php b/examples/example_004.php index 7346252..88e08c1 100644 --- a/examples/example_004.php +++ b/examples/example_004.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_005.php b/examples/example_005.php index 9ebfd45..5a592d1 100644 --- a/examples/example_005.php +++ b/examples/example_005.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_006.php b/examples/example_006.php index bb653b3..c1557a4 100644 --- a/examples/example_006.php +++ b/examples/example_006.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_007.php b/examples/example_007.php index afaa3e4..97ebecb 100644 --- a/examples/example_007.php +++ b/examples/example_007.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_008.php b/examples/example_008.php index 17e463d..4349c38 100644 --- a/examples/example_008.php +++ b/examples/example_008.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_009.php b/examples/example_009.php index 903a87a..bb72d8b 100644 --- a/examples/example_009.php +++ b/examples/example_009.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_010.php b/examples/example_010.php index b2bdf56..5b980b0 100644 --- a/examples/example_010.php +++ b/examples/example_010.php @@ -127,7 +127,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_011.php b/examples/example_011.php index c5ff4ef..623ba3b 100644 --- a/examples/example_011.php +++ b/examples/example_011.php @@ -106,7 +106,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_012.php b/examples/example_012.php index 383add3..aaa196b 100644 --- a/examples/example_012.php +++ b/examples/example_012.php @@ -54,7 +54,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_013.php b/examples/example_013.php index e6cdadb..a472760 100644 --- a/examples/example_013.php +++ b/examples/example_013.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_014.php b/examples/example_014.php index 239cc81..4941dd0 100644 --- a/examples/example_014.php +++ b/examples/example_014.php @@ -60,7 +60,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_015.php b/examples/example_015.php index b24966f..4cc03ca 100644 --- a/examples/example_015.php +++ b/examples/example_015.php @@ -60,7 +60,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_016.php b/examples/example_016.php index 243ba71..34284f2 100644 --- a/examples/example_016.php +++ b/examples/example_016.php @@ -100,7 +100,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_017.php b/examples/example_017.php index 63d3cc8..1324091 100644 --- a/examples/example_017.php +++ b/examples/example_017.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_020.php b/examples/example_020.php index 7866975..6204f74 100644 --- a/examples/example_020.php +++ b/examples/example_020.php @@ -100,7 +100,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_021.php b/examples/example_021.php index cbb57da..65e39fb 100644 --- a/examples/example_021.php +++ b/examples/example_021.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_022.php b/examples/example_022.php index 532221d..ca35d68 100644 --- a/examples/example_022.php +++ b/examples/example_022.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_023.php b/examples/example_023.php index 72aa187..dbb8b98 100644 --- a/examples/example_023.php +++ b/examples/example_023.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_024.php b/examples/example_024.php index cd2f3d8..b60d12d 100644 --- a/examples/example_024.php +++ b/examples/example_024.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_025.php b/examples/example_025.php index 12ede5a..1260d62 100644 --- a/examples/example_025.php +++ b/examples/example_025.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_026.php b/examples/example_026.php index 8c0f65d..5646e91 100644 --- a/examples/example_026.php +++ b/examples/example_026.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_027.php b/examples/example_027.php index e12b151..c05da5a 100644 --- a/examples/example_027.php +++ b/examples/example_027.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_028.php b/examples/example_028.php index 59c82d4..f250ac5 100644 --- a/examples/example_028.php +++ b/examples/example_028.php @@ -54,7 +54,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_029.php b/examples/example_029.php index 228210b..33be97e 100644 --- a/examples/example_029.php +++ b/examples/example_029.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_030.php b/examples/example_030.php index 2544fcf..ed4e799 100644 --- a/examples/example_030.php +++ b/examples/example_030.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_031.php b/examples/example_031.php index 93239e0..160d162 100644 --- a/examples/example_031.php +++ b/examples/example_031.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_032.php b/examples/example_032.php index 2fb3758..8f042d7 100644 --- a/examples/example_032.php +++ b/examples/example_032.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_033.php b/examples/example_033.php index f39db00..4f95e40 100644 --- a/examples/example_033.php +++ b/examples/example_033.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_034.php b/examples/example_034.php index d6396e4..bb15902 100644 --- a/examples/example_034.php +++ b/examples/example_034.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_035.php b/examples/example_035.php index 8afe5c6..0e5280c 100644 --- a/examples/example_035.php +++ b/examples/example_035.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_036.php b/examples/example_036.php index 5906218..2625497 100644 --- a/examples/example_036.php +++ b/examples/example_036.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_037.php b/examples/example_037.php index 0e4d011..a2abf8f 100644 --- a/examples/example_037.php +++ b/examples/example_037.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_038.php b/examples/example_038.php index 635cb23..a1e57e2 100644 --- a/examples/example_038.php +++ b/examples/example_038.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_039.php b/examples/example_039.php index b8bbdc2..5d5ad3b 100644 --- a/examples/example_039.php +++ b/examples/example_039.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_040.php b/examples/example_040.php index f06bd8d..c1d9091 100644 --- a/examples/example_040.php +++ b/examples/example_040.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_041.php b/examples/example_041.php index 2dcfd45..973bdf9 100644 --- a/examples/example_041.php +++ b/examples/example_041.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_042.php b/examples/example_042.php index 806a5a9..14c9fd0 100644 --- a/examples/example_042.php +++ b/examples/example_042.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_043.php b/examples/example_043.php index a65525b..116827e 100644 --- a/examples/example_043.php +++ b/examples/example_043.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_044.php b/examples/example_044.php index e2a77ec..949270c 100644 --- a/examples/example_044.php +++ b/examples/example_044.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_045.php b/examples/example_045.php index 6b8586b..523cb8b 100644 --- a/examples/example_045.php +++ b/examples/example_045.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_046.php b/examples/example_046.php index 673b62c..188b808 100644 --- a/examples/example_046.php +++ b/examples/example_046.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_047.php b/examples/example_047.php index 1176b0f..a26ae5d 100644 --- a/examples/example_047.php +++ b/examples/example_047.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_048.php b/examples/example_048.php index f81a449..ca88a14 100644 --- a/examples/example_048.php +++ b/examples/example_048.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_049.php b/examples/example_049.php index 7fca5ce..755c049 100644 --- a/examples/example_049.php +++ b/examples/example_049.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_050.php b/examples/example_050.php index a71c2a4..5ccae31 100644 --- a/examples/example_050.php +++ b/examples/example_050.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_051.php b/examples/example_051.php index 5a4fde0..dc2d94e 100644 --- a/examples/example_051.php +++ b/examples/example_051.php @@ -79,7 +79,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_052.php b/examples/example_052.php index 95c991a..2af27f0 100644 --- a/examples/example_052.php +++ b/examples/example_052.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_053.php b/examples/example_053.php index 0c02b2a..8c784d5 100644 --- a/examples/example_053.php +++ b/examples/example_053.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_054.php b/examples/example_054.php index ab04dd5..af4545d 100644 --- a/examples/example_054.php +++ b/examples/example_054.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_055.php b/examples/example_055.php index 3bd0843..1dfff3c 100644 --- a/examples/example_055.php +++ b/examples/example_055.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_056.php b/examples/example_056.php index 4011767..8dad531 100644 --- a/examples/example_056.php +++ b/examples/example_056.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_057.php b/examples/example_057.php index 57a280c..9714b40 100644 --- a/examples/example_057.php +++ b/examples/example_057.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_058.php b/examples/example_058.php index 0fe4ffe..1e472fb 100644 --- a/examples/example_058.php +++ b/examples/example_058.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_059.php b/examples/example_059.php index 0fd7608..9396784 100644 --- a/examples/example_059.php +++ b/examples/example_059.php @@ -94,7 +94,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_060.php b/examples/example_060.php index e5eca24..03bad28 100644 --- a/examples/example_060.php +++ b/examples/example_060.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_061.php b/examples/example_061.php index 5d2d317..11e7e28 100644 --- a/examples/example_061.php +++ b/examples/example_061.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_062.php b/examples/example_062.php index c4f5566..45fc25d 100644 --- a/examples/example_062.php +++ b/examples/example_062.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_063.php b/examples/example_063.php index 2450d27..de13515 100644 --- a/examples/example_063.php +++ b/examples/example_063.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_064.php b/examples/example_064.php index be9c61f..85ae9ae 100644 --- a/examples/example_064.php +++ b/examples/example_064.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/example_065.php b/examples/example_065.php index 5f279fe..f1bbcbe 100644 --- a/examples/example_065.php +++ b/examples/example_065.php @@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // set some language-dependent strings (optional) -if (file_exists(dirname(__FILE__).'/lang/eng.php')) { +if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } diff --git a/examples/tcpdf_include.php b/examples/tcpdf_include.php index 1ed5341..694a644 100644 --- a/examples/tcpdf_include.php +++ b/examples/tcpdf_include.php @@ -29,7 +29,7 @@ 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)) { + if (@file_exists($tcpdf_include_path)) { require_once($tcpdf_include_path); break; } diff --git a/include/tcpdf_fonts.php b/include/tcpdf_fonts.php index 48be5f8..86a64f1 100644 --- a/include/tcpdf_fonts.php +++ b/include/tcpdf_fonts.php @@ -89,7 +89,7 @@ class TCPDF_FONTS { $outpath = self::_getfontpath(); } // check if this font already exist - if (file_exists($outpath.$font_name.'.php')) { + if (@file_exists($outpath.$font_name.'.php')) { // this font already exist (delete it from fonts folder to rebuild it) return $font_name; } diff --git a/include/tcpdf_static.php b/include/tcpdf_static.php index b6c4e92..0c860c4 100644 --- a/include/tcpdf_static.php +++ b/include/tcpdf_static.php @@ -55,7 +55,7 @@ class TCPDF_STATIC { * Current TCPDF version. * @private static */ - private static $tcpdf_version = '6.0.017'; + private static $tcpdf_version = '6.0.019'; /** * String alias for total number of pages. diff --git a/tcpdf.php b/tcpdf.php index 0db4223..eaefbb6 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -1,9 +1,9 @@ * @package com.tecnick.tcpdf * @author Nicola Asuni - * @version 6.0.018 + * @version 6.0.019 */ // TCPDF configuration -require_once(__DIR__.'/tcpdf_autoconfig.php'); +require_once(dirname(__FILE__).'/tcpdf_autoconfig.php'); // TCPDF static font methods and data -require_once(__DIR__.'/include/tcpdf_font_data.php'); +require_once(dirname(__FILE__).'/include/tcpdf_font_data.php'); // TCPDF static font methods and data -require_once(__DIR__.'/include/tcpdf_fonts.php'); +require_once(dirname(__FILE__).'/include/tcpdf_fonts.php'); // TCPDF static color methods and data -require_once(__DIR__.'/include/tcpdf_colors.php'); +require_once(dirname(__FILE__).'/include/tcpdf_colors.php'); // TCPDF static image methods and data -require_once(__DIR__.'/include/tcpdf_images.php'); +require_once(dirname(__FILE__).'/include/tcpdf_images.php'); // TCPDF static methods and data -require_once(__DIR__.'/include/tcpdf_static.php'); +require_once(dirname(__FILE__).'/include/tcpdf_static.php'); // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -163,7 +163,7 @@ require_once(__DIR__.'/include/tcpdf_static.php'); * TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.
* @package com.tecnick.tcpdf * @brief PHP class for generating PDF documents without requiring external extensions. - * @version 6.0.018 + * @version 6.0.019 * @author Nicola Asuni - info@tecnick.com */ class TCPDF { @@ -4275,23 +4275,23 @@ class TCPDF { } $missing_style = false; // true when the font style variation is missing // search and include font file - if (TCPDF_STATIC::empty_string($fontfile) OR (!file_exists($fontfile))) { + if (TCPDF_STATIC::empty_string($fontfile) OR (!@file_exists($fontfile))) { // build a standard filenames for specified font $tmp_fontfile = str_replace(' ', '', $family).strtolower($style).'.php'; // search files on various directories - if (($fontdir !== false) AND file_exists($fontdir.$tmp_fontfile)) { + if (($fontdir !== false) AND @file_exists($fontdir.$tmp_fontfile)) { $fontfile = $fontdir.$tmp_fontfile; - } elseif (file_exists(TCPDF_FONTS::_getfontpath().$tmp_fontfile)) { + } elseif (@file_exists(TCPDF_FONTS::_getfontpath().$tmp_fontfile)) { $fontfile = TCPDF_FONTS::_getfontpath().$tmp_fontfile; - } elseif (file_exists($tmp_fontfile)) { + } elseif (@file_exists($tmp_fontfile)) { $fontfile = $tmp_fontfile; } elseif (!TCPDF_STATIC::empty_string($style)) { $missing_style = true; // try to remove the style part $tmp_fontfile = str_replace(' ', '', $family).'.php'; - if (($fontdir !== false) AND file_exists($fontdir.$tmp_fontfile)) { + if (($fontdir !== false) AND @file_exists($fontdir.$tmp_fontfile)) { $fontfile = $fontdir.$tmp_fontfile; - } elseif (file_exists(TCPDF_FONTS::_getfontpath().$tmp_fontfile)) { + } elseif (@file_exists(TCPDF_FONTS::_getfontpath().$tmp_fontfile)) { $fontfile = TCPDF_FONTS::_getfontpath().$tmp_fontfile; } else { $fontfile = $tmp_fontfile; @@ -4299,7 +4299,7 @@ class TCPDF { } } // include font file - if (file_exists($fontfile)) { + if (@file_exists($fontfile)) { include($fontfile); } else { $this->Error('Could not include font definition file: '.$family.''); @@ -4827,19 +4827,19 @@ class TCPDF { $this->PageAnnots[$page][] = array('n' => ++$this->n, 'x' => $x, 'y' => $y, 'w' => $w, 'h' => $h, 'txt' => $text, 'opt' => $opt, 'numspaces' => $spaces); if (!$this->pdfa_mode) { if ((($opt['Subtype'] == 'FileAttachment') OR ($opt['Subtype'] == 'Sound')) AND (!TCPDF_STATIC::empty_string($opt['FS'])) - AND (file_exists($opt['FS']) OR TCPDF_STATIC::isValidURL($opt['FS'])) + AND (@file_exists($opt['FS']) OR TCPDF_STATIC::isValidURL($opt['FS'])) AND (!isset($this->embeddedfiles[basename($opt['FS'])]))) { $this->embeddedfiles[basename($opt['FS'])] = array('f' => ++$this->n, 'n' => ++$this->n, 'file' => $opt['FS']); } } // Add widgets annotation's icons - if (isset($opt['mk']['i']) AND file_exists($opt['mk']['i'])) { + if (isset($opt['mk']['i']) AND @file_exists($opt['mk']['i'])) { $this->Image($opt['mk']['i'], '', '', 10, 10, '', '', '', false, 300, '', false, false, 0, false, true); } - if (isset($opt['mk']['ri']) AND file_exists($opt['mk']['ri'])) { + if (isset($opt['mk']['ri']) AND @file_exists($opt['mk']['ri'])) { $this->Image($opt['mk']['ri'], '', '', 0, 0, '', '', '', false, 300, '', false, false, 0, false, true); } - if (isset($opt['mk']['ix']) AND file_exists($opt['mk']['ix'])) { + if (isset($opt['mk']['ix']) AND @file_exists($opt['mk']['ix'])) { $this->Image($opt['mk']['ix'], '', '', 0, 0, '', '', '', false, 300, '', false, false, 0, false, true); } } @@ -4859,7 +4859,7 @@ class TCPDF { foreach ($this->embeddedfiles as $filename => $filedata) { // update name tree $this->efnames[$filename] = $filedata['f'].' 0 R'; - // embedded file specification object + // embedded file specification object $out = $this->_getobj($filedata['f'])."\n"; $out .= '<_datastring($filename, $filedata['f']).' /EF <> >>'; $out .= "\n".'endobj'; @@ -8748,11 +8748,11 @@ class TCPDF { $file = strtolower($file); $fontfile = ''; // search files on various directories - if (($fontdir !== false) AND file_exists($fontdir.$file)) { + if (($fontdir !== false) AND @file_exists($fontdir.$file)) { $fontfile = $fontdir.$file; - } elseif (file_exists(TCPDF_FONTS::_getfontpath().$file)) { + } elseif (@file_exists(TCPDF_FONTS::_getfontpath().$file)) { $fontfile = TCPDF_FONTS::_getfontpath().$file; - } elseif (file_exists($file)) { + } elseif (@file_exists($file)) { $fontfile = $file; } if (!TCPDF_STATIC::empty_string($fontfile)) { @@ -8974,11 +8974,11 @@ class TCPDF { // search and get ctg font file to embedd $fontfile = ''; // search files on various directories - if (($fontdir !== false) AND file_exists($fontdir.$ctgfile)) { + if (($fontdir !== false) AND @file_exists($fontdir.$ctgfile)) { $fontfile = $fontdir.$ctgfile; - } elseif (file_exists(TCPDF_FONTS::_getfontpath().$ctgfile)) { + } elseif (@file_exists(TCPDF_FONTS::_getfontpath().$ctgfile)) { $fontfile = TCPDF_FONTS::_getfontpath().$ctgfile; - } elseif (file_exists($ctgfile)) { + } elseif (@file_exists($ctgfile)) { $fontfile = $ctgfile; } if (TCPDF_STATIC::empty_string($fontfile)) { @@ -9613,7 +9613,7 @@ class TCPDF { // if required, add standard sRGB_IEC61966-2.1 blackscaled ICC colour profile if ($this->pdfa_mode OR $this->force_srgb) { $iccobj = $this->_newobj(); - $icc = file_get_contents(__DIR__.'/include/sRGB.icc'); + $icc = file_get_contents(dirname(__FILE__).'/include/sRGB.icc'); $filter = ''; if ($this->compress) { $filter = ' /Filter /FlateDecode'; @@ -15051,7 +15051,7 @@ class TCPDF { if (TCPDF_STATIC::empty_string(trim($code))) { return; } - require_once(__DIR__.'/tcpdf_barcodes_1d.php'); + require_once(dirname(__FILE__).'/tcpdf_barcodes_1d.php'); // save current graphic settings $gvars = $this->getGraphicVars(); // create new barcode object @@ -15367,7 +15367,7 @@ class TCPDF { if (TCPDF_STATIC::empty_string(trim($code))) { return; } - require_once(__DIR__.'/tcpdf_barcodes_2d.php'); + require_once(dirname(__FILE__).'/tcpdf_barcodes_2d.php'); // save current graphic settings $gvars = $this->getGraphicVars(); // create new barcode object diff --git a/tcpdf_autoconfig.php b/tcpdf_autoconfig.php index c5e5ab7..2fc1da6 100644 --- a/tcpdf_autoconfig.php +++ b/tcpdf_autoconfig.php @@ -59,9 +59,9 @@ if (substr($_SERVER['DOCUMENT_ROOT'], -1) != '/') { // Load main configuration file only if the K_TCPDF_EXTERNAL_CONFIG constant is set to false. if (!defined('K_TCPDF_EXTERNAL_CONFIG') OR !K_TCPDF_EXTERNAL_CONFIG) { // define a list of default config files in order of priority - $tcpdf_config_files = array(__DIR__.'/config/tcpdf_config.php', '/etc/php-tcpdf/tcpdf_config.php', '/etc/tcpdf/tcpdf_config.php', '/etc/tcpdf_config.php'); + $tcpdf_config_files = array(dirname(__FILE__).'/config/tcpdf_config.php', '/etc/php-tcpdf/tcpdf_config.php', '/etc/tcpdf/tcpdf_config.php', '/etc/tcpdf_config.php'); foreach ($tcpdf_config_files as $tcpdf_config) { - if (file_exists($tcpdf_config) AND is_readable($tcpdf_config)) { + if (@file_exists($tcpdf_config) AND is_readable($tcpdf_config)) { require_once($tcpdf_config); break; } @@ -69,7 +69,7 @@ if (!defined('K_TCPDF_EXTERNAL_CONFIG') OR !K_TCPDF_EXTERNAL_CONFIG) { } if (!defined('K_PATH_MAIN')) { - define ('K_PATH_MAIN', __DIR__.'/'); + define ('K_PATH_MAIN', dirname(__FILE__).'/'); } if (!defined('K_PATH_FONTS')) { @@ -93,7 +93,7 @@ if (!defined('K_PATH_URL')) { if (!defined('K_PATH_IMAGES')) { $tcpdf_images_dirs = array(K_PATH_MAIN.'examples/images/', K_PATH_MAIN.'images/', '/usr/share/doc/php-tcpdf/examples/images/', '/usr/share/doc/tcpdf/examples/images/', '/usr/share/doc/php/tcpdf/examples/images/', '/var/www/tcpdf/images/', '/var/www/html/tcpdf/images/', '/usr/local/apache2/htdocs/tcpdf/images/', K_PATH_MAIN); foreach ($tcpdf_images_dirs as $tcpdf_images_path) { - if (file_exists($tcpdf_images_path)) { + if (@file_exists($tcpdf_images_path)) { break; } } @@ -102,7 +102,7 @@ if (!defined('K_PATH_IMAGES')) { if (!defined('PDF_HEADER_LOGO')) { $tcpdf_header_logo = ''; - if (file_exists(K_PATH_IMAGES.'tcpdf_logo.jpg')) { + if (@file_exists(K_PATH_IMAGES.'tcpdf_logo.jpg')) { $tcpdf_header_logo = 'tcpdf_logo.jpg'; } define ('PDF_HEADER_LOGO', $tcpdf_header_logo); diff --git a/tools/tcpdf_addfont.php b/tools/tcpdf_addfont.php index 371ceb7..a69a455 100755 --- a/tools/tcpdf_addfont.php +++ b/tools/tcpdf_addfont.php @@ -46,9 +46,9 @@ if (php_sapi_name() != 'cli') { exit(1); } -$tcpdf_include_dirs = array(realpath(__DIR__.'/../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'); +$tcpdf_include_dirs = array(realpath(dirname(__FILE__).'/../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)) { + if (@file_exists($tcpdf_include_path)) { require_once($tcpdf_include_path); break; }