@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | |
| 121 | 121 | if (HelperConfig::$shop['email_orderconfirmation_embed_itemimages_method'] === 'glide') { |
| 122 | 122 | $sPathToImage = '/'.HelperConfig::$core['directory_images'].'/'.HelperConfig::$shop['directory_images_items'].'/'; |
| 123 | - $sImageroot = PATH_BASEDIR . HelperConfig::$core['directory_glide_master']; |
|
| 123 | + $sImageroot = PATH_BASEDIR.HelperConfig::$core['directory_glide_master']; |
|
| 124 | 124 | |
| 125 | 125 | if ( |
| 126 | 126 | is_file($sImageroot.substr($sPathToImage.$aV['img'], strlen(HelperConfig::$core['directory_images']) + 1)) |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | 'cache' => PATH_GLIDECACHE, |
| 132 | 132 | 'max_image_size' => HelperConfig::$core['glide_max_imagesize'], |
| 133 | 133 | ]); |
| 134 | - $glideserver->setBaseUrl('/' . HelperConfig::$core['directory_images'] . '/'); |
|
| 134 | + $glideserver->setBaseUrl('/'.HelperConfig::$core['directory_images'].'/'); |
|
| 135 | 135 | $base64Img = $glideserver->getImageAsBase64($sPathToImage.$aV['img'], HelperConfig::$shop['email_orderconfirmation_embed_itemimages_glideparams']); |
| 136 | 136 | $TMP = explode(',', $base64Img); |
| 137 | 137 | $binImg = base64_decode($TMP[1]); |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | .HelperConfig::$shop['directory_images_items_email'].'/'; |
| 145 | 145 | if ($aImgInfo = getimagesize($sPathToImage.$aV['img'])) { |
| 146 | 146 | $binImg = file_get_contents($sPathToImage.$aV['img']); |
| 147 | - $base64Img = 'data:' . $aImgInfo['mime'] . ';base64,'; |
|
| 147 | + $base64Img = 'data:'.$aImgInfo['mime'].';base64,'; |
|
| 148 | 148 | $base64Img .= base64_encode($binImg); |
| 149 | 149 | } |
| 150 | 150 | } |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | $sql = DBTools::buildPSInsertQuery($aDataOrder, 'orders'); |
| 219 | 219 | $hResult = $db->prepare($sql); |
| 220 | 220 | foreach ($aDataOrder as $sKey => $sValue) { |
| 221 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 221 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 222 | 222 | } |
| 223 | 223 | $hResult->execute(); |
| 224 | 224 | $iInsertID = $db->lastInsertId(); |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | $sql = DBTools::buildPSInsertQuery($aV, 'orders_items'); |
| 254 | 254 | $hResult = $db->prepare($sql); |
| 255 | 255 | foreach ($aV as $sKey => $sValue) { |
| 256 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 256 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 257 | 257 | } |
| 258 | 258 | $hResult->execute(); |
| 259 | 259 | } |
@@ -284,15 +284,15 @@ discard block |
||
| 284 | 284 | && in_array('paypal', HelperConfig::$shop['paymentmethods'], true) !== false |
| 285 | 285 | && HelperConfig::$shop['paypal_interactive'] |
| 286 | 286 | ) { |
| 287 | - $redirectto = '/_misc/paypal.html?id=' . $iInsertID; |
|
| 287 | + $redirectto = '/_misc/paypal.html?id='.$iInsertID; |
|
| 288 | 288 | } elseif ( |
| 289 | 289 | $postpaymentmethod !== null |
| 290 | 290 | && $postpaymentmethod === 'sofortueberweisung' |
| 291 | 291 | && in_array('sofortueberweisung', HelperConfig::$shop['paymentmethods'], true) !== false |
| 292 | 292 | ) { |
| 293 | - $redirectto = '/_misc/sofortueberweisung.html?id=' . $iInsertID; |
|
| 293 | + $redirectto = '/_misc/sofortueberweisung.html?id='.$iInsertID; |
|
| 294 | 294 | } else { |
| 295 | - $redirectto = '/_misc/checkedout.html?id=' . $iInsertID; |
|
| 295 | + $redirectto = '/_misc/checkedout.html?id='.$iInsertID; |
|
| 296 | 296 | } |
| 297 | 297 | \HaaseIT\HCSF\Helper::redirectToPage($redirectto); |
| 298 | 298 | } |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | private function sendCheckoutMails($iInsertID, $sMailbody_us, $sMailbody_they, $aImagesToSend) |
| 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 | $aImagesToSend, |
| 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 | $aImagesToSend |
| 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 | |
@@ -386,9 +386,9 @@ discard block |
||
| 386 | 386 | 'country' => !empty($postcountry) ? |
| 387 | 387 | ( |
| 388 | 388 | isset( |
| 389 | - HelperConfig::$countries['countries_' .HelperConfig::$lang][$postcountry] |
|
| 389 | + HelperConfig::$countries['countries_'.HelperConfig::$lang][$postcountry] |
|
| 390 | 390 | ) |
| 391 | - ? HelperConfig::$countries['countries_' .HelperConfig::$lang][$postcountry] |
|
| 391 | + ? HelperConfig::$countries['countries_'.HelperConfig::$lang][$postcountry] |
|
| 392 | 392 | : $postcountry) |
| 393 | 393 | : '', |
| 394 | 394 | 'remarks' => $this->getPostValue('remarks'), |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | 'paymentmethod' => $this->getPostValue('paymentmethod'), |
| 398 | 398 | 'shippingcost' => empty($_SESSION['shippingcost']) ? false : $_SESSION['shippingcost'], |
| 399 | 399 | 'paypallink' => $postpaymentmethod === 'paypal' ? $serverservername.'/_misc/paypal.html?id='.$iId : '', |
| 400 | - 'sofortueberweisunglink' => $postpaymentmethod === 'sofortueberweisung' ? $serverservername.'/_misc/sofortueberweisung.html?id='.$iId : '', |
|
| 400 | + 'sofortueberweisunglink' => $postpaymentmethod === 'sofortueberweisung' ? $serverservername.'/_misc/sofortueberweisung.html?id='.$iId : '', |
|
| 401 | 401 | 'SESSION' => !$bCust ? Tools::debug($_SESSION, '$_SESSION', true, true) : '', |
| 402 | 402 | 'POST' => !$bCust ? Tools::debug($_POST, '$_POST', true, true) : '', |
| 403 | 403 | '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 | } |