PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.17.0
GiveWP – Donation Plugin and Fundraising Platform v4.17.0
4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 All 256 releases
← All changes | vendor/tecnickcom/tcpdf/tcpdf_autoconfig.php +20 -6 2.3.2 → 4.17.0 View file →
@@ -2,13 +2,13 @@
2 2 //============================================================+
3 3 // File name : tcpdf_autoconfig.php
4 4 // Version : 1.1.1
5 5 // Begin : 2013-05-16
6 -// Last Update : 2014-12-18
6 +// Last Update : 2025-04-18
7 7 // Authors : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - [email protected]
8 -// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
8 +// License : GNU-LGPL v3 (https://www.gnu.org/copyleft/lesser.html)
9 9 // -------------------------------------------------------------------
10 -// Copyright (C) 2011-2014 Nicola Asuni - Tecnick.com LTD
10 +// Copyright (C) 2011-2026 Nicola Asuni - Tecnick.com LTD
11 11 //
12 12 // This file is part of TCPDF software library.
13 13 //
14 14 // TCPDF is free software: you can redistribute it and/or modify it
@@ -36,11 +36,16 @@
36 36 /**
37 37 * @file
38 38 * Try to automatically configure some TCPDF constants if not defined.
39 39 * @package com.tecnick.tcpdf
40 - * @version 1.1.1
40 + * @version 1.2.1
41 41 */
42 42
43 +// Disable phar stream wrapper globally.
44 +// if (in_array('phar', stream_get_wrappers(), true)) {
45 +// stream_wrapper_unregister('phar');
46 +// }
47 +
43 48 // DOCUMENT_ROOT fix for IIS Webserver
44 49 if ((!isset($_SERVER['DOCUMENT_ROOT'])) OR (empty($_SERVER['DOCUMENT_ROOT']))) {
45 50 if(isset($_SERVER['SCRIPT_FILENAME'])) {
46 51 $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])));
@@ -148,9 +153,9 @@
148 153 define ('PDF_HEADER_TITLE', 'TCPDF Example');
149 154 }
150 155
151 156 if (!defined('PDF_HEADER_STRING')) {
152 - define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
157 + define ('PDF_HEADER_STRING', "by2026 Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
153 158 }
154 159
155 160 if (!defined('PDF_UNIT')) {
156 161 define ('PDF_UNIT', 'mm');
@@ -200,9 +205,9 @@
200 205 define ('PDF_FONT_MONOSPACED', 'courier');
201 206 }
202 207
203 208 if (!defined('PDF_IMAGE_SCALE_RATIO')) {
204 - define ('PDF_IMAGE_SCALE_RATIO', 1.25);
209 + define ('PDF_IMAGE_SCALE_RATIO', 96/72);
205 210 }
206 211
207 212 if (!defined('HEAD_MAGNIFICATION')) {
208 213 define('HEAD_MAGNIFICATION', 1.1);
@@ -227,8 +232,12 @@
227 232 if (!defined('K_TCPDF_CALLS_IN_HTML')) {
228 233 define('K_TCPDF_CALLS_IN_HTML', false);
229 234 }
230 235
236 +if (!defined('K_ALLOWED_TCPDF_TAGS')) {
237 + define('K_ALLOWED_TCPDF_TAGS', '');
238 +}
239 +
231 240 if (!defined('K_TCPDF_THROW_EXCEPTION_ERROR')) {
232 241 define('K_TCPDF_THROW_EXCEPTION_ERROR', false);
233 242 }
234 243
@@ -233,8 +242,13 @@
233 242 }
234 243
235 244 if (!defined('K_TIMEZONE')) {
236 245 define('K_TIMEZONE', @date_default_timezone_get());
246 +}
247 +
248 +// Custom cURL options for curl_setopt_array.
249 +if (!defined('K_CURLOPTS')) {
250 + define('K_CURLOPTS', array());
237 251 }
238 252
239 253 //============================================================+
240 254 // END OF FILE