@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | |
124 | 124 | if (HelperConfig::$shop['email_orderconfirmation_embed_itemimages_method'] === 'glide') { |
125 | 125 | $sPathToImage = '/'.HelperConfig::$core['directory_images'].'/'.HelperConfig::$shop['directory_images_items'].'/'; |
126 | - $sImageroot = PATH_BASEDIR . HelperConfig::$core['directory_glide_master']; |
|
126 | + $sImageroot = PATH_BASEDIR.HelperConfig::$core['directory_glide_master']; |
|
127 | 127 | |
128 | 128 | if ( |
129 | 129 | is_file($sImageroot.substr($sPathToImage.$aV['img'], strlen(HelperConfig::$core['directory_images']) + 1)) |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | 'cache' => PATH_GLIDECACHE, |
135 | 135 | 'max_image_size' => HelperConfig::$core['glide_max_imagesize'], |
136 | 136 | ]); |
137 | - $glideserver->setBaseUrl('/' . HelperConfig::$core['directory_images'] . '/'); |
|
137 | + $glideserver->setBaseUrl('/'.HelperConfig::$core['directory_images'].'/'); |
|
138 | 138 | $base64Img = $glideserver->getImageAsBase64($sPathToImage.$aV['img'], HelperConfig::$shop['email_orderconfirmation_embed_itemimages_glideparams']); |
139 | 139 | $TMP = explode(',', $base64Img); |
140 | 140 | $binImg = base64_decode($TMP[1]); |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | .HelperConfig::$shop['directory_images_items_email'].'/'; |
148 | 148 | if ($aImgInfo = getimagesize($sPathToImage.$aV['img'])) { |
149 | 149 | $binImg = file_get_contents($sPathToImage.$aV['img']); |
150 | - $base64Img = 'data:' . $aImgInfo['mime'] . ';base64,'; |
|
150 | + $base64Img = 'data:'.$aImgInfo['mime'].';base64,'; |
|
151 | 151 | $base64Img .= base64_encode($binImg); |
152 | 152 | } |
153 | 153 | } |
@@ -289,13 +289,13 @@ discard block |
||
289 | 289 | && isset(HelperConfig::$shop['paypal_interactive']) |
290 | 290 | && HelperConfig::$shop['paypal_interactive'] |
291 | 291 | ) { |
292 | - return '/_misc/paypal.html?id=' . $iInsertID; |
|
292 | + return '/_misc/paypal.html?id='.$iInsertID; |
|
293 | 293 | } elseif ($postpaymentmethod === 'sofortueberweisung') { |
294 | - return '/_misc/sofortueberweisung.html?id=' . $iInsertID; |
|
294 | + return '/_misc/sofortueberweisung.html?id='.$iInsertID; |
|
295 | 295 | } |
296 | 296 | } |
297 | 297 | |
298 | - return '/_misc/checkedout.html?id=' . $iInsertID; |
|
298 | + return '/_misc/checkedout.html?id='.$iInsertID; |
|
299 | 299 | } |
300 | 300 | |
301 | 301 | /** |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | private function sendCheckoutMails($iInsertID, $sMailbody_us, $sMailbody_they) |
307 | 307 | { |
308 | 308 | if ( |
309 | - isset(HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' .HelperConfig::$lang]) |
|
309 | + isset(HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_'.HelperConfig::$lang]) |
|
310 | 310 | && file_exists( |
311 | 311 | PATH_DOCROOT.HelperConfig::$core['directory_emailattachments'] |
312 | 312 | .'/'.HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' |
@@ -315,21 +315,21 @@ discard block |
||
315 | 315 | ) { |
316 | 316 | $aFilesToSend[] = |
317 | 317 | PATH_DOCROOT.HelperConfig::$core['directory_emailattachments'].'/' |
318 | - .HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' .HelperConfig::$lang]; |
|
318 | + .HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_'.HelperConfig::$lang]; |
|
319 | 319 | } else { |
320 | 320 | $aFilesToSend = []; |
321 | 321 | } |
322 | 322 | |
323 | 323 | Helper::mailWrapper( |
324 | 324 | filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL), |
325 | - $this->textcats->T('shoppingcart_mail_subject') . ' ' . $iInsertID, |
|
325 | + $this->textcats->T('shoppingcart_mail_subject').' '.$iInsertID, |
|
326 | 326 | $sMailbody_they, |
327 | 327 | $this->imagestosend, |
328 | 328 | $aFilesToSend |
329 | 329 | ); |
330 | 330 | Helper::mailWrapper( |
331 | 331 | HelperConfig::$core['email_sender'], |
332 | - 'Bestellung im Webshop Nr: ' . $iInsertID, |
|
332 | + 'Bestellung im Webshop Nr: '.$iInsertID, |
|
333 | 333 | $sMailbody_us, |
334 | 334 | $this->imagestosend |
335 | 335 | ); |
@@ -340,9 +340,9 @@ discard block |
||
340 | 340 | */ |
341 | 341 | private function writeCheckoutToFile($sMailbody_us) |
342 | 342 | { |
343 | - $fp = fopen(PATH_LOGS . 'shoplog_' . date('Y-m-d') . '.html', 'a'); |
|
343 | + $fp = fopen(PATH_LOGS.'shoplog_'.date('Y-m-d').'.html', 'a'); |
|
344 | 344 | // Write $somecontent to our opened file. |
345 | - fwrite($fp, $sMailbody_us . "\n\n-------------------------------------------------------------------------\n\n"); |
|
345 | + fwrite($fp, $sMailbody_us."\n\n-------------------------------------------------------------------------\n\n"); |
|
346 | 346 | fclose($fp); |
347 | 347 | } |
348 | 348 | |
@@ -392,9 +392,9 @@ discard block |
||
392 | 392 | 'country' => !empty($postcountry) ? |
393 | 393 | ( |
394 | 394 | isset( |
395 | - HelperConfig::$countries['countries_' .HelperConfig::$lang][$postcountry] |
|
395 | + HelperConfig::$countries['countries_'.HelperConfig::$lang][$postcountry] |
|
396 | 396 | ) |
397 | - ? HelperConfig::$countries['countries_' .HelperConfig::$lang][$postcountry] |
|
397 | + ? HelperConfig::$countries['countries_'.HelperConfig::$lang][$postcountry] |
|
398 | 398 | : $postcountry) |
399 | 399 | : '', |
400 | 400 | 'remarks' => $this->getPostValue('remarks'), |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | 'paymentmethod' => $this->getPostValue('paymentmethod'), |
404 | 404 | 'shippingcost' => empty($_SESSION['shippingcost']) ? false : $_SESSION['shippingcost'], |
405 | 405 | 'paypallink' => $postpaymentmethod === 'paypal' ? $serverservername.'/_misc/paypal.html?id='.$iId : '', |
406 | - 'sofortueberweisunglink' => $postpaymentmethod === 'sofortueberweisung' ? $serverservername.'/_misc/sofortueberweisung.html?id='.$iId : '', |
|
406 | + 'sofortueberweisunglink' => $postpaymentmethod === 'sofortueberweisung' ? $serverservername.'/_misc/sofortueberweisung.html?id='.$iId : '', |
|
407 | 407 | 'SESSION' => !$bCust ? Tools::debug($_SESSION, '$_SESSION', true, true) : '', |
408 | 408 | 'POST' => !$bCust ? Tools::debug($_POST, '$_POST', true, true) : '', |
409 | 409 | 'orderid' => $iId, |
@@ -428,15 +428,15 @@ discard block |
||
428 | 428 | ($getmsg === 'updated' && !empty($getcartkey) && !empty($getamount)) |
429 | 429 | || ($getmsg === 'removed' && !empty($getcartkey)) |
430 | 430 | ) { |
431 | - $return .= $this->textcats->T('shoppingcart_msg_' . $getmsg . '_1') . ' '; |
|
431 | + $return .= $this->textcats->T('shoppingcart_msg_'.$getmsg.'_1').' '; |
|
432 | 432 | if (isset(HelperConfig::$shop['custom_order_fields']) && mb_strpos($getcartkey, '|') !== false) { |
433 | 433 | $mCartkeys = explode('|', $getcartkey); |
434 | 434 | foreach ($mCartkeys as $sKey => $sValue) { |
435 | 435 | if ($sKey == 0) { |
436 | - $return .= $sValue . ', '; |
|
436 | + $return .= $sValue.', '; |
|
437 | 437 | } else { |
438 | 438 | $TMP = explode(':', $sValue); |
439 | - $return .= $this->textcats->T('shoppingcart_item_' . $TMP[0]) . ' ' . $TMP[1] . ', '; |
|
439 | + $return .= $this->textcats->T('shoppingcart_item_'.$TMP[0]).' '.$TMP[1].', '; |
|
440 | 440 | unset($TMP); |
441 | 441 | } |
442 | 442 | } |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | } else { |
445 | 445 | $return .= $getcartkey; |
446 | 446 | } |
447 | - $return.= ' ' . $this->textcats->T('shoppingcart_msg_'.$getmsg.'_2'); |
|
447 | + $return .= ' '.$this->textcats->T('shoppingcart_msg_'.$getmsg.'_2'); |
|
448 | 448 | if ($getmsg === 'updated') { |
449 | 449 | $return .= ' '.$getamount; |
450 | 450 | } |