Completed
Branch develop (404fac)
by
unknown
20:18
created
htdocs/includes/tecnickcom/tcpdf/tcpdf_autoconfig.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
  */
42 42
 
43 43
 // @CHANGE LDR DOCUMENT_ROOT fix for IIS Webserver
44
-if ((!isset($_SERVER['DOCUMENT_ROOT'])) OR (empty($_SERVER['DOCUMENT_ROOT']))) {
44
+if ((!isset($_SERVER['DOCUMENT_ROOT'])) or (empty($_SERVER['DOCUMENT_ROOT']))) {
45 45
 	if (isset($_SERVER['SCRIPT_FILENAME']) && isset($_SERVER['PHP_SELF'])) {
46 46
 		$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])));
47 47
 	} elseif (isset($_SERVER['PATH_TRANSLATED']) && isset($_SERVER['PHP_SELF'])) {
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
 }
58 58
 
59 59
 // Load main configuration file only if the K_TCPDF_EXTERNAL_CONFIG constant is set to false.
60
-if (!defined('K_TCPDF_EXTERNAL_CONFIG') OR !K_TCPDF_EXTERNAL_CONFIG) {
60
+if (!defined('K_TCPDF_EXTERNAL_CONFIG') or !K_TCPDF_EXTERNAL_CONFIG) {
61 61
 	// define a list of default config files in order of priority
62 62
 	$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');
63 63
 	foreach ($tcpdf_config_files as $tcpdf_config) {
64
-		if (@file_exists($tcpdf_config) AND is_readable($tcpdf_config)) {
64
+		if (@file_exists($tcpdf_config) and is_readable($tcpdf_config)) {
65 65
 			require_once($tcpdf_config);
66 66
 			break;
67 67
 		}
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
 
79 79
 if (!defined('K_PATH_URL')) {
80 80
 	$k_path_url = K_PATH_MAIN; // default value for console mode
81
-	if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) {
82
-		if(isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND (strtolower($_SERVER['HTTPS']) != 'off')) {
81
+	if (isset($_SERVER['HTTP_HOST']) and (!empty($_SERVER['HTTP_HOST']))) {
82
+		if(isset($_SERVER['HTTPS']) and (!empty($_SERVER['HTTPS'])) and (strtolower($_SERVER['HTTPS']) != 'off')) {
83 83
 			$k_path_url = 'https://';
84 84
 		} else {
85 85
 			$k_path_url = 'http://';
Please login to merge, or discard this patch.