@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | |
119 | 119 | if (HelperConfig::$shop['email_orderconfirmation_embed_itemimages_method'] === 'glide') { |
120 | 120 | $sPathToImage = '/'.HelperConfig::$core['directory_images'].'/'.HelperConfig::$shop['directory_images_items'].'/'; |
121 | - $sImageroot = PATH_BASEDIR . HelperConfig::$core['directory_glide_master']; |
|
121 | + $sImageroot = PATH_BASEDIR.HelperConfig::$core['directory_glide_master']; |
|
122 | 122 | |
123 | 123 | if ( |
124 | 124 | is_file($sImageroot.substr($sPathToImage.$aV['img'], strlen(HelperConfig::$core['directory_images']) + 1)) |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | 'cache' => PATH_GLIDECACHE, |
130 | 130 | 'max_image_size' => HelperConfig::$core['glide_max_imagesize'], |
131 | 131 | ]); |
132 | - $glideserver->setBaseUrl('/' . HelperConfig::$core['directory_images'] . '/'); |
|
132 | + $glideserver->setBaseUrl('/'.HelperConfig::$core['directory_images'].'/'); |
|
133 | 133 | $base64Img = $glideserver->getImageAsBase64($sPathToImage.$aV['img'], HelperConfig::$shop['email_orderconfirmation_embed_itemimages_glideparams']); |
134 | 134 | $TMP = explode(',', $base64Img); |
135 | 135 | $binImg = base64_decode($TMP[1]); |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | .HelperConfig::$shop['directory_images_items_email'].'/'; |
143 | 143 | if ($aImgInfo = getimagesize($sPathToImage.$aV['img'])) { |
144 | 144 | $binImg = file_get_contents($sPathToImage.$aV['img']); |
145 | - $base64Img = 'data:' . $aImgInfo['mime'] . ';base64,'; |
|
145 | + $base64Img = 'data:'.$aImgInfo['mime'].';base64,'; |
|
146 | 146 | $base64Img .= base64_encode($binImg); |
147 | 147 | } |
148 | 148 | } |
@@ -295,15 +295,15 @@ discard block |
||
295 | 295 | && in_array('paypal', HelperConfig::$shop['paymentmethods'], true) !== false |
296 | 296 | && HelperConfig::$shop['paypal_interactive'] |
297 | 297 | ) { |
298 | - $redirectto = '/_misc/paypal.html?id=' . $iInsertID; |
|
298 | + $redirectto = '/_misc/paypal.html?id='.$iInsertID; |
|
299 | 299 | } elseif ( |
300 | 300 | $postpaymentmethod !== null |
301 | 301 | && $postpaymentmethod === 'sofortueberweisung' |
302 | 302 | && in_array('sofortueberweisung', HelperConfig::$shop['paymentmethods'], true) !== false |
303 | 303 | ) { |
304 | - $redirectto = '/_misc/sofortueberweisung.html?id=' . $iInsertID; |
|
304 | + $redirectto = '/_misc/sofortueberweisung.html?id='.$iInsertID; |
|
305 | 305 | } else { |
306 | - $redirectto = '/_misc/checkedout.html?id=' . $iInsertID; |
|
306 | + $redirectto = '/_misc/checkedout.html?id='.$iInsertID; |
|
307 | 307 | } |
308 | 308 | \HaaseIT\HCSF\Helper::redirectToPage($redirectto); |
309 | 309 | } |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | private function sendCheckoutMails($iInsertID, $sMailbody_us, $sMailbody_they) |
317 | 317 | { |
318 | 318 | if ( |
319 | - isset(HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' .HelperConfig::$lang]) |
|
319 | + isset(HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_'.HelperConfig::$lang]) |
|
320 | 320 | && file_exists( |
321 | 321 | PATH_DOCROOT.HelperConfig::$core['directory_emailattachments'] |
322 | 322 | .'/'.HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' |
@@ -325,21 +325,21 @@ discard block |
||
325 | 325 | ) { |
326 | 326 | $aFilesToSend[] = |
327 | 327 | PATH_DOCROOT.HelperConfig::$core['directory_emailattachments'].'/' |
328 | - .HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' .HelperConfig::$lang]; |
|
328 | + .HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_'.HelperConfig::$lang]; |
|
329 | 329 | } else { |
330 | 330 | $aFilesToSend = []; |
331 | 331 | } |
332 | 332 | |
333 | 333 | Helper::mailWrapper( |
334 | 334 | filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL), |
335 | - $this->textcats->T('shoppingcart_mail_subject') . ' ' . $iInsertID, |
|
335 | + $this->textcats->T('shoppingcart_mail_subject').' '.$iInsertID, |
|
336 | 336 | $sMailbody_they, |
337 | 337 | $this->imagestosend, |
338 | 338 | $aFilesToSend |
339 | 339 | ); |
340 | 340 | Helper::mailWrapper( |
341 | 341 | HelperConfig::$core['email_sender'], |
342 | - 'Bestellung im Webshop Nr: ' . $iInsertID, |
|
342 | + 'Bestellung im Webshop Nr: '.$iInsertID, |
|
343 | 343 | $sMailbody_us, |
344 | 344 | $this->imagestosend |
345 | 345 | ); |
@@ -350,9 +350,9 @@ discard block |
||
350 | 350 | */ |
351 | 351 | private function writeCheckoutToFile($sMailbody_us) |
352 | 352 | { |
353 | - $fp = fopen(PATH_LOGS . 'shoplog_' . date('Y-m-d') . '.html', 'a'); |
|
353 | + $fp = fopen(PATH_LOGS.'shoplog_'.date('Y-m-d').'.html', 'a'); |
|
354 | 354 | // Write $somecontent to our opened file. |
355 | - fwrite($fp, $sMailbody_us . "\n\n-------------------------------------------------------------------------\n\n"); |
|
355 | + fwrite($fp, $sMailbody_us."\n\n-------------------------------------------------------------------------\n\n"); |
|
356 | 356 | fclose($fp); |
357 | 357 | } |
358 | 358 | |
@@ -402,9 +402,9 @@ discard block |
||
402 | 402 | 'country' => !empty($postcountry) ? |
403 | 403 | ( |
404 | 404 | isset( |
405 | - HelperConfig::$countries['countries_' .HelperConfig::$lang][$postcountry] |
|
405 | + HelperConfig::$countries['countries_'.HelperConfig::$lang][$postcountry] |
|
406 | 406 | ) |
407 | - ? HelperConfig::$countries['countries_' .HelperConfig::$lang][$postcountry] |
|
407 | + ? HelperConfig::$countries['countries_'.HelperConfig::$lang][$postcountry] |
|
408 | 408 | : $postcountry) |
409 | 409 | : '', |
410 | 410 | 'remarks' => $this->getPostValue('remarks'), |
@@ -413,7 +413,7 @@ discard block |
||
413 | 413 | 'paymentmethod' => $this->getPostValue('paymentmethod'), |
414 | 414 | 'shippingcost' => empty($_SESSION['shippingcost']) ? false : $_SESSION['shippingcost'], |
415 | 415 | 'paypallink' => $postpaymentmethod === 'paypal' ? $serverservername.'/_misc/paypal.html?id='.$iId : '', |
416 | - 'sofortueberweisunglink' => $postpaymentmethod === 'sofortueberweisung' ? $serverservername.'/_misc/sofortueberweisung.html?id='.$iId : '', |
|
416 | + 'sofortueberweisunglink' => $postpaymentmethod === 'sofortueberweisung' ? $serverservername.'/_misc/sofortueberweisung.html?id='.$iId : '', |
|
417 | 417 | 'SESSION' => !$bCust ? Tools::debug($_SESSION, '$_SESSION', true, true) : '', |
418 | 418 | 'POST' => !$bCust ? Tools::debug($_POST, '$_POST', true, true) : '', |
419 | 419 | 'orderid' => $iId, |
@@ -438,15 +438,15 @@ discard block |
||
438 | 438 | ($getmsg === 'updated' && !empty($getcartkey) && !empty($getamount)) |
439 | 439 | || ($getmsg === 'removed' && !empty($getcartkey)) |
440 | 440 | ) { |
441 | - $return .= $this->textcats->T('shoppingcart_msg_' . $getmsg . '_1') . ' '; |
|
441 | + $return .= $this->textcats->T('shoppingcart_msg_'.$getmsg.'_1').' '; |
|
442 | 442 | if (isset(HelperConfig::$shop['custom_order_fields']) && mb_strpos($getcartkey, '|') !== false) { |
443 | 443 | $mCartkeys = explode('|', $getcartkey); |
444 | 444 | foreach ($mCartkeys as $sKey => $sValue) { |
445 | 445 | if ($sKey == 0) { |
446 | - $return .= $sValue . ', '; |
|
446 | + $return .= $sValue.', '; |
|
447 | 447 | } else { |
448 | 448 | $TMP = explode(':', $sValue); |
449 | - $return .= $this->textcats->T('shoppingcart_item_' . $TMP[0]) . ' ' . $TMP[1] . ', '; |
|
449 | + $return .= $this->textcats->T('shoppingcart_item_'.$TMP[0]).' '.$TMP[1].', '; |
|
450 | 450 | unset($TMP); |
451 | 451 | } |
452 | 452 | } |
@@ -454,7 +454,7 @@ discard block |
||
454 | 454 | } else { |
455 | 455 | $return .= $getcartkey; |
456 | 456 | } |
457 | - $return.= ' ' . $this->textcats->T('shoppingcart_msg_'.$getmsg.'_2'); |
|
457 | + $return .= ' '.$this->textcats->T('shoppingcart_msg_'.$getmsg.'_2'); |
|
458 | 458 | if ($getmsg === 'updated') { |
459 | 459 | $return .= ' '.$getamount; |
460 | 460 | } |