From eb4cd6b6b6e22b6ad650f51e72eb249fa26015f5 Mon Sep 17 00:00:00 2001 From: Xenomporio <> Date: Wed, 1 Jun 2022 21:14:27 +0200 Subject: [PATCH] Bugfix curly braces cronjobs --- cronjobs/amazon.php | 2 +- cronjobs/api_uebertragungen.php | 2 +- cronjobs/artikelcache.php | 2 +- cronjobs/cleaner.php | 2 +- cronjobs/coface_import.php | 2 +- cronjobs/ebay_bulkjobs.php | 2 +- cronjobs/etiketten.php | 2 +- cronjobs/event_api.php | 2 +- cronjobs/forceupdate_lagerzahlen.php | 2 +- cronjobs/pdfarchiv.php | 2 +- cronjobs/pdfarchiv_app.php | 2 +- cronjobs/pdfarchiv_move.php | 2 +- cronjobs/pdfmirror.php | 2 +- cronjobs/produktion_berechnen.php | 2 +- cronjobs/remoteaddfilesubjects.php | 2 +- cronjobs/remotesendfiles.php | 2 +- cronjobs/shop_rueckmeldungen.php | 2 +- cronjobs/shopexport.php | 2 +- cronjobs/shopexport_adressexport.php | 2 +- cronjobs/shopexport_voucher.php | 2 +- cronjobs/shopimport.php | 2 +- cronjobs/shopimport_auftragarchiv.php | 2 +- cronjobs/shopimporter_gruppenexport.php | 2 +- cronjobs/starter.php | 2 +- cronjobs/versandmailsundrueckmeldung.php | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/cronjobs/amazon.php b/cronjobs/amazon.php index ab1b5727..8da37c3a 100644 --- a/cronjobs/amazon.php +++ b/cronjobs/amazon.php @@ -11,7 +11,7 @@ include_once(dirname(__DIR__)."/www/lib/class.httpclient.php"); if(!class_exists('AES')){ $aes = ''; $phpversion = (String)phpversion(); - if($phpversion{0} == '7' && (int)$phpversion{2} > 0) $aes = '2'; + if($phpversion[0] == '7' && (int)$phpversion[2] > 0) $aes = '2'; if($aes == 2 && is_file(dirname(__DIR__) . "/www/lib/class.aes" . $aes . ".php")){ include_once(dirname(__DIR__) . "/www/lib/class.aes" . $aes . ".php"); }else diff --git a/cronjobs/api_uebertragungen.php b/cronjobs/api_uebertragungen.php index 178ec48c..5befc6c3 100644 --- a/cronjobs/api_uebertragungen.php +++ b/cronjobs/api_uebertragungen.php @@ -42,7 +42,7 @@ include_once(dirname(__DIR__) . '/www/lib/class.httpclient.php'); if(!class_exists('AES')){ $aes = ''; $phpversion = phpversion(); - if($phpversion{0} == '7' && (int)$phpversion{2} > 0) $aes = '2'; + if($phpversion[0] == '7' && (int)$phpversion[2] > 0) $aes = '2'; if($aes == 2 && is_file(dirname(__DIR__) . '/www/lib/class.aes' . $aes . '.php')){ include_once(dirname(__DIR__) . '/www/lib/class.aes' . $aes . '.php'); }else{ diff --git a/cronjobs/artikelcache.php b/cronjobs/artikelcache.php index 9a5c888d..d597beb1 100644 --- a/cronjobs/artikelcache.php +++ b/cronjobs/artikelcache.php @@ -51,7 +51,7 @@ if(!class_exists('HttpClient')){ if(!class_exists('AES')){ $aes = ''; $phpversion = phpversion(); - if($phpversion{0} == '7' && (int)$phpversion{2} > 0) $aes = '2'; + if($phpversion[0] == '7' && (int)$phpversion[2] > 0) $aes = '2'; if($aes == 2 && is_file(dirname(__DIR__) . '/www/lib/class.aes'.$aes.'.php')){ include_once(dirname(__DIR__) . '/www/lib/class.aes'.$aes.'.php'); }else{ diff --git a/cronjobs/cleaner.php b/cronjobs/cleaner.php index a5ead283..796a506d 100644 --- a/cronjobs/cleaner.php +++ b/cronjobs/cleaner.php @@ -15,7 +15,7 @@ include_once dirname(__DIR__).'/www/lib/class.httpclient.php'; if(!class_exists('AES')){ $aes = ''; $phpversion = PHP_VERSION; - if(strpos($phpversion,'7') ===0 && (int)$phpversion{2} > 0) { + if(strpos($phpversion,'7') ===0 && (int)$phpversion[2] > 0) { $aes = '2'; } if($aes === '2' && is_file(dirname(__DIR__) . '/www/lib/class.aes' . $aes . '.php')){ diff --git a/cronjobs/coface_import.php b/cronjobs/coface_import.php index 9278b132..b79c9397 100644 --- a/cronjobs/coface_import.php +++ b/cronjobs/coface_import.php @@ -15,7 +15,7 @@ if(is_file(dirname(__FILE__)."/../www/lib/class.erpapi_custom.php")) include_once(dirname(__FILE__)."/../www/lib/class.httpclient.php"); $aes = ''; $phpversion = (String)phpversion(); -if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2'; +if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2'; if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php")) { include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"); diff --git a/cronjobs/ebay_bulkjobs.php b/cronjobs/ebay_bulkjobs.php index 47fa2847..5fe5c955 100644 --- a/cronjobs/ebay_bulkjobs.php +++ b/cronjobs/ebay_bulkjobs.php @@ -20,7 +20,7 @@ if(is_file(dirname(__DIR__).'/www/lib/class.erpapi_custom.php')){ include_once dirname(__DIR__).'/www/lib/class.httpclient.php'; $aes = ''; $phpversion = PHP_VERSION; -if(strpos($phpversion,'7') === 0 && (int)$phpversion{2} > 0) +if(strpos($phpversion,'7') === 0 && (int)$phpversion[2] > 0) { $aes = '2'; } diff --git a/cronjobs/etiketten.php b/cronjobs/etiketten.php index 0767e655..7e8c4dae 100644 --- a/cronjobs/etiketten.php +++ b/cronjobs/etiketten.php @@ -37,7 +37,7 @@ include_once(dirname(__FILE__)."/../www/lib/class.remote.php"); include_once(dirname(__FILE__)."/../www/lib/class.httpclient.php"); $aes = ''; $phpversion = (String)phpversion(); -if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2'; +if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2'; if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php")) { include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"); diff --git a/cronjobs/event_api.php b/cronjobs/event_api.php index 1c412b45..8c9eb55a 100644 --- a/cronjobs/event_api.php +++ b/cronjobs/event_api.php @@ -7,7 +7,7 @@ include_once(dirname(__FILE__)."/../www/lib/class.remote.php"); include_once(dirname(__FILE__)."/../www/lib/class.httpclient.php"); $aes = ''; $phpversion = (String)phpversion(); -if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2'; +if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2'; if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php")) { include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"); diff --git a/cronjobs/forceupdate_lagerzahlen.php b/cronjobs/forceupdate_lagerzahlen.php index 55839d4f..564443c3 100644 --- a/cronjobs/forceupdate_lagerzahlen.php +++ b/cronjobs/forceupdate_lagerzahlen.php @@ -8,7 +8,7 @@ include(dirname(__FILE__)."/../www/lib/class.remote.php"); include(dirname(__FILE__)."/../www/lib/class.httpclient.php"); $aes = ''; $phpversion = (String)phpversion(); -if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2'; +if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2'; if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php")) { include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"); diff --git a/cronjobs/pdfarchiv.php b/cronjobs/pdfarchiv.php index 75791a79..98181cbb 100644 --- a/cronjobs/pdfarchiv.php +++ b/cronjobs/pdfarchiv.php @@ -36,7 +36,7 @@ include_once(dirname(__FILE__)."/../www/lib/class.remote.php"); include_once(dirname(__FILE__)."/../www/lib/class.httpclient.php"); $aes = ''; $phpversion = (String)phpversion(); -if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2'; +if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2'; if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php")) { include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"); diff --git a/cronjobs/pdfarchiv_app.php b/cronjobs/pdfarchiv_app.php index 09ddf764..9adfc9b6 100644 --- a/cronjobs/pdfarchiv_app.php +++ b/cronjobs/pdfarchiv_app.php @@ -66,7 +66,7 @@ if(!class_exists('HttpClient')){ if(!class_exists('AES')){ $aes = ''; $phpversion = (String)phpversion(); - if($phpversion{0} == '7' && (int)$phpversion{2} > 0) $aes = '2'; + if($phpversion[0] == '7' && (int)$phpversion[2] > 0) $aes = '2'; if($aes == 2 && is_file(dirname(__DIR__) . "/www/lib/class.aes" . $aes . ".php")){ include_once(dirname(__DIR__) . "/www/lib/class.aes" . $aes . ".php"); }else diff --git a/cronjobs/pdfarchiv_move.php b/cronjobs/pdfarchiv_move.php index cdcbfac7..062b03a9 100644 --- a/cronjobs/pdfarchiv_move.php +++ b/cronjobs/pdfarchiv_move.php @@ -63,7 +63,7 @@ if(!class_exists('HttpClient')){ if(!class_exists('AES')){ $aes = ''; $phpversion = PHP_VERSION; - if(strpos($phpversion,'7' === '0') && (int)$phpversion{2} > 0) { + if(strpos($phpversion,'7' === '0') && (int)$phpversion[2] > 0) { $aes = '2'; } if($aes === '2' && is_file(dirname(__DIR__) . '/www/lib/class.aes' . $aes . '.php')){ diff --git a/cronjobs/pdfmirror.php b/cronjobs/pdfmirror.php index 528508d5..fae282e6 100644 --- a/cronjobs/pdfmirror.php +++ b/cronjobs/pdfmirror.php @@ -14,7 +14,7 @@ include_once(dirname(__DIR__)."/www/lib/class.remote.php"); include_once(dirname(__DIR__)."/www/lib/class.httpclient.php"); $aes = ''; $phpversion = phpversion(); -if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2'; +if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2'; if($aes == 2 && is_file(dirname(__DIR__)."/www/lib/class.aes".$aes.".php")) { include_once(dirname(__DIR__)."/www/lib/class.aes".$aes.".php"); diff --git a/cronjobs/produktion_berechnen.php b/cronjobs/produktion_berechnen.php index af6836ea..d792a37c 100644 --- a/cronjobs/produktion_berechnen.php +++ b/cronjobs/produktion_berechnen.php @@ -21,7 +21,7 @@ if(is_file(dirname(__DIR__).'/www/lib/class.erpapi_custom.php')){ include_once dirname(__DIR__).'/www/lib/class.httpclient.php'; $aes = ''; $phpversion = PHP_VERSION; -if(strpos($phpversion,'7') === 0 && (int)$phpversion{2} > 0) +if(strpos($phpversion,'7') === 0 && (int)$phpversion[2] > 0) { $aes = '2'; } diff --git a/cronjobs/remoteaddfilesubjects.php b/cronjobs/remoteaddfilesubjects.php index 98df5e9c..4f9d3ad0 100644 --- a/cronjobs/remoteaddfilesubjects.php +++ b/cronjobs/remoteaddfilesubjects.php @@ -5,7 +5,7 @@ include("../lib/imap.inc.php"); include("../lib/class.remote.php"); $aes = ''; $phpversion = (String)phpversion(); -if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2'; +if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2'; if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php")) { include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"); diff --git a/cronjobs/remotesendfiles.php b/cronjobs/remotesendfiles.php index 6a58b5c3..643e64ea 100644 --- a/cronjobs/remotesendfiles.php +++ b/cronjobs/remotesendfiles.php @@ -6,7 +6,7 @@ include("../webroot/lib/class.erpapi.php"); include("../webroot/lib/class.remote.php"); $aes = ''; $phpversion = (String)phpversion(); -if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2'; +if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2'; if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php")) { include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"); diff --git a/cronjobs/shop_rueckmeldungen.php b/cronjobs/shop_rueckmeldungen.php index 8514df42..23fd0527 100644 --- a/cronjobs/shop_rueckmeldungen.php +++ b/cronjobs/shop_rueckmeldungen.php @@ -29,7 +29,7 @@ include_once dirname(__DIR__).'/www/lib/class.remote.php'; include_once dirname(__DIR__).'/www/lib/class.httpclient.php'; $aes = ''; $phpversion = (String)phpversion(); -if($phpversion{0} == '7' && (int)$phpversion{2} > 0) { +if($phpversion[0] == '7' && (int)$phpversion[2] > 0) { $aes = '2'; } if($aes == 2 && is_file(dirname(__DIR__).'/www/lib/class.aes2.php')) { diff --git a/cronjobs/shopexport.php b/cronjobs/shopexport.php index 398721bc..37b527b8 100644 --- a/cronjobs/shopexport.php +++ b/cronjobs/shopexport.php @@ -7,7 +7,7 @@ include(dirname(__FILE__)."/../www/lib/class.remote.php"); include(dirname(__FILE__)."/../www/lib/class.httpclient.php"); $aes = ''; $phpversion = (String)phpversion(); -if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2'; +if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2'; if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php")) { include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"); diff --git a/cronjobs/shopexport_adressexport.php b/cronjobs/shopexport_adressexport.php index 2bb3d9ee..f2a66c45 100644 --- a/cronjobs/shopexport_adressexport.php +++ b/cronjobs/shopexport_adressexport.php @@ -45,7 +45,7 @@ if(!class_exists('HttpClient')){ if(!class_exists('AES')){ $aes = ''; $phpversion = PHP_VERSION; - if(strpos($phpversion,'7') === 0 && (int)$phpversion{2} > 0) + if(strpos($phpversion,'7') === 0 && (int)$phpversion[2] > 0) { $aes = '2'; } diff --git a/cronjobs/shopexport_voucher.php b/cronjobs/shopexport_voucher.php index 613a6d36..41a813d5 100644 --- a/cronjobs/shopexport_voucher.php +++ b/cronjobs/shopexport_voucher.php @@ -20,7 +20,7 @@ if(is_file(dirname(__DIR__).'/www/lib/class.erpapi_custom.php')){ include_once dirname(__DIR__).'/www/lib/class.httpclient.php'; $aes = ''; $phpversion = PHP_VERSION; -if(strpos($phpversion,'7') === 0 && (int)$phpversion{2} > 0) +if(strpos($phpversion,'7') === 0 && (int)$phpversion[2] > 0) { $aes = '2'; } diff --git a/cronjobs/shopimport.php b/cronjobs/shopimport.php index cfe08066..083ab765 100644 --- a/cronjobs/shopimport.php +++ b/cronjobs/shopimport.php @@ -25,7 +25,7 @@ if(!class_exists('HttpClient')){ if(!class_exists('AES')){ $aes = ''; $phpversion = phpversion(); - if($phpversion{0} == '7' && (int)$phpversion{2} > 0) + if($phpversion[0] == 7 && (int)$phpversion[2] > 0) { $aes = '2'; } diff --git a/cronjobs/shopimport_auftragarchiv.php b/cronjobs/shopimport_auftragarchiv.php index a47961ed..2e22cc6b 100644 --- a/cronjobs/shopimport_auftragarchiv.php +++ b/cronjobs/shopimport_auftragarchiv.php @@ -45,7 +45,7 @@ if(!class_exists('HttpClient')){ if(!class_exists('AES')){ $aes = ''; $phpversion = PHP_VERSION; - if(strpos($phpversion,'7') === 0 && (int)$phpversion{2} > 0) + if(strpos($phpversion,'7') === 0 && (int)$phpversion[2] > 0) { $aes = '2'; } diff --git a/cronjobs/shopimporter_gruppenexport.php b/cronjobs/shopimporter_gruppenexport.php index 86d953e2..eddf73da 100644 --- a/cronjobs/shopimporter_gruppenexport.php +++ b/cronjobs/shopimporter_gruppenexport.php @@ -45,7 +45,7 @@ if(!class_exists('HttpClient')){ if(!class_exists('AES')){ $aes = ''; $phpversion = PHP_VERSION; - if(strpos($phpversion,'7') === 0 && (int)$phpversion{2} > 0) + if(strpos($phpversion,'7') === 0 && (int)$phpversion[2] > 0) { $aes = '2'; } diff --git a/cronjobs/starter.php b/cronjobs/starter.php index cae81437..81f71fc6 100644 --- a/cronjobs/starter.php +++ b/cronjobs/starter.php @@ -21,7 +21,7 @@ if(is_file(dirname(__DIR__).'/www/lib/class.erpapi_custom.php')){ include_once dirname(__DIR__).'/www/lib/class.httpclient.php'; $aes = ''; $phpversion = PHP_VERSION; -if(strpos($phpversion,'7') === 0 && (int)$phpversion{2} > 0) +if(strpos($phpversion,'7') === 0 && (int)$phpversion[2] > 0) { $aes = '2'; } diff --git a/cronjobs/versandmailsundrueckmeldung.php b/cronjobs/versandmailsundrueckmeldung.php index 83edfd1c..d97ac0ec 100644 --- a/cronjobs/versandmailsundrueckmeldung.php +++ b/cronjobs/versandmailsundrueckmeldung.php @@ -33,7 +33,7 @@ include_once(dirname(__FILE__)."/../www/lib/class.remote.php"); include_once(dirname(__FILE__)."/../www/lib/class.httpclient.php"); $aes = ''; $phpversion = (String)phpversion(); -if($phpversion{0} == '7' && (int)$phpversion{2} > 0)$aes = '2'; +if($phpversion[0] == '7' && (int)$phpversion[2] > 0)$aes = '2'; if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php")) { include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php");