@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | |
120 | 120 | if (HelperConfig::$shop['email_orderconfirmation_embed_itemimages_method'] === 'glide') { |
121 | 121 | $sPathToImage = '/'.HelperConfig::$core['directory_images'].'/'.HelperConfig::$shop['directory_images_items'].'/'; |
122 | - $sImageroot = PATH_BASEDIR . HelperConfig::$core['directory_glide_master']; |
|
122 | + $sImageroot = PATH_BASEDIR.HelperConfig::$core['directory_glide_master']; |
|
123 | 123 | |
124 | 124 | if ( |
125 | 125 | is_file($sImageroot.substr($sPathToImage.$aV['img'], strlen(HelperConfig::$core['directory_images']) + 1)) |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | 'cache' => PATH_GLIDECACHE, |
131 | 131 | 'max_image_size' => HelperConfig::$core['glide_max_imagesize'], |
132 | 132 | ]); |
133 | - $glideserver->setBaseUrl('/' . HelperConfig::$core['directory_images'] . '/'); |
|
133 | + $glideserver->setBaseUrl('/'.HelperConfig::$core['directory_images'].'/'); |
|
134 | 134 | $base64Img = $glideserver->getImageAsBase64($sPathToImage.$aV['img'], HelperConfig::$shop['email_orderconfirmation_embed_itemimages_glideparams']); |
135 | 135 | $TMP = explode(',', $base64Img); |
136 | 136 | $binImg = base64_decode($TMP[1]); |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | .HelperConfig::$shop['directory_images_items_email'].'/'; |
144 | 144 | if ($aImgInfo = getimagesize($sPathToImage.$aV['img'])) { |
145 | 145 | $binImg = file_get_contents($sPathToImage.$aV['img']); |
146 | - $base64Img = 'data:' . $aImgInfo['mime'] . ';base64,'; |
|
146 | + $base64Img = 'data:'.$aImgInfo['mime'].';base64,'; |
|
147 | 147 | $base64Img .= base64_encode($binImg); |
148 | 148 | } |
149 | 149 | } |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | $sql = DBTools::buildPSInsertQuery($aDataOrder, 'orders'); |
244 | 244 | $hResult = $db->prepare($sql); |
245 | 245 | foreach ($aDataOrder as $sKey => $sValue) { |
246 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
246 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
247 | 247 | } |
248 | 248 | $hResult->execute(); |
249 | 249 | $iInsertID = $db->lastInsertId(); |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | $sql = DBTools::buildPSInsertQuery($aDataOrderItem, 'orders_items'); |
257 | 257 | $hResult = $db->prepare($sql); |
258 | 258 | foreach ($aDataOrderItem as $sKey => $sValue) { |
259 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
259 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
260 | 260 | } |
261 | 261 | $hResult->execute(); |
262 | 262 | } |
@@ -287,15 +287,15 @@ discard block |
||
287 | 287 | && in_array('paypal', HelperConfig::$shop['paymentmethods'], true) !== false |
288 | 288 | && HelperConfig::$shop['paypal_interactive'] |
289 | 289 | ) { |
290 | - $redirectto = '/_misc/paypal.html?id=' . $iInsertID; |
|
290 | + $redirectto = '/_misc/paypal.html?id='.$iInsertID; |
|
291 | 291 | } elseif ( |
292 | 292 | $postpaymentmethod !== null |
293 | 293 | && $postpaymentmethod === 'sofortueberweisung' |
294 | 294 | && in_array('sofortueberweisung', HelperConfig::$shop['paymentmethods'], true) !== false |
295 | 295 | ) { |
296 | - $redirectto = '/_misc/sofortueberweisung.html?id=' . $iInsertID; |
|
296 | + $redirectto = '/_misc/sofortueberweisung.html?id='.$iInsertID; |
|
297 | 297 | } else { |
298 | - $redirectto = '/_misc/checkedout.html?id=' . $iInsertID; |
|
298 | + $redirectto = '/_misc/checkedout.html?id='.$iInsertID; |
|
299 | 299 | } |
300 | 300 | \HaaseIT\HCSF\Helper::redirectToPage($redirectto); |
301 | 301 | } |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | private function sendCheckoutMails($iInsertID, $sMailbody_us, $sMailbody_they, $aImagesToSend) |
310 | 310 | { |
311 | 311 | if ( |
312 | - isset(HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' .HelperConfig::$lang]) |
|
312 | + isset(HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_'.HelperConfig::$lang]) |
|
313 | 313 | && file_exists( |
314 | 314 | PATH_DOCROOT.HelperConfig::$core['directory_emailattachments'] |
315 | 315 | .'/'.HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' |
@@ -318,21 +318,21 @@ discard block |
||
318 | 318 | ) { |
319 | 319 | $aFilesToSend[] = |
320 | 320 | PATH_DOCROOT.HelperConfig::$core['directory_emailattachments'].'/' |
321 | - .HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' .HelperConfig::$lang]; |
|
321 | + .HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_'.HelperConfig::$lang]; |
|
322 | 322 | } else { |
323 | 323 | $aFilesToSend = []; |
324 | 324 | } |
325 | 325 | |
326 | 326 | Helper::mailWrapper( |
327 | 327 | filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL), |
328 | - $this->textcats->T('shoppingcart_mail_subject') . ' ' . $iInsertID, |
|
328 | + $this->textcats->T('shoppingcart_mail_subject').' '.$iInsertID, |
|
329 | 329 | $sMailbody_they, |
330 | 330 | $aImagesToSend, |
331 | 331 | $aFilesToSend |
332 | 332 | ); |
333 | 333 | Helper::mailWrapper( |
334 | 334 | HelperConfig::$core['email_sender'], |
335 | - 'Bestellung im Webshop Nr: ' . $iInsertID, |
|
335 | + 'Bestellung im Webshop Nr: '.$iInsertID, |
|
336 | 336 | $sMailbody_us, |
337 | 337 | $aImagesToSend |
338 | 338 | ); |
@@ -343,9 +343,9 @@ discard block |
||
343 | 343 | */ |
344 | 344 | private function writeCheckoutToFile($sMailbody_us) |
345 | 345 | { |
346 | - $fp = fopen(PATH_LOGS . 'shoplog_' . date('Y-m-d') . '.html', 'a'); |
|
346 | + $fp = fopen(PATH_LOGS.'shoplog_'.date('Y-m-d').'.html', 'a'); |
|
347 | 347 | // Write $somecontent to our opened file. |
348 | - fwrite($fp, $sMailbody_us . "\n\n-------------------------------------------------------------------------\n\n"); |
|
348 | + fwrite($fp, $sMailbody_us."\n\n-------------------------------------------------------------------------\n\n"); |
|
349 | 349 | fclose($fp); |
350 | 350 | } |
351 | 351 | |
@@ -395,9 +395,9 @@ discard block |
||
395 | 395 | 'country' => !empty($postcountry) ? |
396 | 396 | ( |
397 | 397 | isset( |
398 | - HelperConfig::$countries['countries_' .HelperConfig::$lang][$postcountry] |
|
398 | + HelperConfig::$countries['countries_'.HelperConfig::$lang][$postcountry] |
|
399 | 399 | ) |
400 | - ? HelperConfig::$countries['countries_' .HelperConfig::$lang][$postcountry] |
|
400 | + ? HelperConfig::$countries['countries_'.HelperConfig::$lang][$postcountry] |
|
401 | 401 | : $postcountry) |
402 | 402 | : '', |
403 | 403 | 'remarks' => $this->getPostValue('remarks'), |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | 'paymentmethod' => $this->getPostValue('paymentmethod'), |
407 | 407 | 'shippingcost' => empty($_SESSION['shippingcost']) ? false : $_SESSION['shippingcost'], |
408 | 408 | 'paypallink' => $postpaymentmethod === 'paypal' ? $serverservername.'/_misc/paypal.html?id='.$iId : '', |
409 | - 'sofortueberweisunglink' => $postpaymentmethod === 'sofortueberweisung' ? $serverservername.'/_misc/sofortueberweisung.html?id='.$iId : '', |
|
409 | + 'sofortueberweisunglink' => $postpaymentmethod === 'sofortueberweisung' ? $serverservername.'/_misc/sofortueberweisung.html?id='.$iId : '', |
|
410 | 410 | 'SESSION' => !$bCust ? Tools::debug($_SESSION, '$_SESSION', true, true) : '', |
411 | 411 | 'POST' => !$bCust ? Tools::debug($_POST, '$_POST', true, true) : '', |
412 | 412 | 'orderid' => $iId, |
@@ -431,15 +431,15 @@ discard block |
||
431 | 431 | ($getmsg === 'updated' && !empty($getcartkey) && !empty($getamount)) |
432 | 432 | || ($getmsg === 'removed' && !empty($getcartkey)) |
433 | 433 | ) { |
434 | - $return .= $this->textcats->T('shoppingcart_msg_' . $getmsg . '_1') . ' '; |
|
434 | + $return .= $this->textcats->T('shoppingcart_msg_'.$getmsg.'_1').' '; |
|
435 | 435 | if (isset(HelperConfig::$shop['custom_order_fields']) && mb_strpos($getcartkey, '|') !== false) { |
436 | 436 | $mCartkeys = explode('|', $getcartkey); |
437 | 437 | foreach ($mCartkeys as $sKey => $sValue) { |
438 | 438 | if ($sKey == 0) { |
439 | - $return .= $sValue . ', '; |
|
439 | + $return .= $sValue.', '; |
|
440 | 440 | } else { |
441 | 441 | $TMP = explode(':', $sValue); |
442 | - $return .= $this->textcats->T('shoppingcart_item_' . $TMP[0]) . ' ' . $TMP[1] . ', '; |
|
442 | + $return .= $this->textcats->T('shoppingcart_item_'.$TMP[0]).' '.$TMP[1].', '; |
|
443 | 443 | unset($TMP); |
444 | 444 | } |
445 | 445 | } |
@@ -447,7 +447,7 @@ discard block |
||
447 | 447 | } else { |
448 | 448 | $return .= $getcartkey; |
449 | 449 | } |
450 | - $return.= ' ' . $this->textcats->T('shoppingcart_msg_'.$getmsg.'_2'); |
|
450 | + $return .= ' '.$this->textcats->T('shoppingcart_msg_'.$getmsg.'_2'); |
|
451 | 451 | if ($getmsg === 'updated') { |
452 | 452 | $return .= ' '.$getamount; |
453 | 453 | } |