@@ -42,24 +42,24 @@ |
||
| 42 | 42 | |
| 43 | 43 | header('Content-Type: text/html; charset=UTF-8'); |
| 44 | 44 | $return = '<div>'; |
| 45 | - $return .= '<div id="shippingcostbrutto_new">' . number_format($_SESSION['cartpricesums']['fVersandkostenbrutto'], |
|
| 45 | + $return .= '<div id="shippingcostbrutto_new">'.number_format($_SESSION['cartpricesums']['fVersandkostenbrutto'], |
|
| 46 | 46 | HelperConfig::$core['numberformat_decimals'], HelperConfig::$core['numberformat_decimal_point'], |
| 47 | - HelperConfig::$core['numberformat_thousands_seperator']) . '</div>'; |
|
| 48 | - $return .= '<div id="vatfull_new">' . number_format(round($_SESSION['cartpricesums']['fSteuervoll'], 2), |
|
| 47 | + HelperConfig::$core['numberformat_thousands_seperator']).'</div>'; |
|
| 48 | + $return .= '<div id="vatfull_new">'.number_format(round($_SESSION['cartpricesums']['fSteuervoll'], 2), |
|
| 49 | 49 | HelperConfig::$core['numberformat_decimals'], HelperConfig::$core['numberformat_decimal_point'], |
| 50 | - HelperConfig::$core['numberformat_thousands_seperator']) . '</div>'; |
|
| 51 | - $return .= '<div id="totalbrutto_new">' . number_format(round($_SESSION['cartpricesums']['fGesamtbrutto'], 2), |
|
| 50 | + HelperConfig::$core['numberformat_thousands_seperator']).'</div>'; |
|
| 51 | + $return .= '<div id="totalbrutto_new">'.number_format(round($_SESSION['cartpricesums']['fGesamtbrutto'], 2), |
|
| 52 | 52 | HelperConfig::$core['numberformat_decimals'], HelperConfig::$core['numberformat_decimal_point'], |
| 53 | - HelperConfig::$core['numberformat_thousands_seperator']) . '</div>'; |
|
| 54 | - $return .= '<div id="shippingcostnetto_new">' . number_format($_SESSION['cartpricesums']['fVersandkostennetto'], |
|
| 53 | + HelperConfig::$core['numberformat_thousands_seperator']).'</div>'; |
|
| 54 | + $return .= '<div id="shippingcostnetto_new">'.number_format($_SESSION['cartpricesums']['fVersandkostennetto'], |
|
| 55 | 55 | HelperConfig::$core['numberformat_decimals'], HelperConfig::$core['numberformat_decimal_point'], |
| 56 | - HelperConfig::$core['numberformat_thousands_seperator']) . '</div>'; |
|
| 57 | - $return .= '<div id="vatreduced_new">' . number_format(round($_SESSION['cartpricesums']['fSteuererm'], 2), |
|
| 56 | + HelperConfig::$core['numberformat_thousands_seperator']).'</div>'; |
|
| 57 | + $return .= '<div id="vatreduced_new">'.number_format(round($_SESSION['cartpricesums']['fSteuererm'], 2), |
|
| 58 | 58 | HelperConfig::$core['numberformat_decimals'], HelperConfig::$core['numberformat_decimal_point'], |
| 59 | - HelperConfig::$core['numberformat_thousands_seperator']) . '</div>'; |
|
| 60 | - $return .= '<div id="totalnetto_new">' . number_format(round($_SESSION['cartpricesums']['fGesamtnetto'], 2), |
|
| 59 | + HelperConfig::$core['numberformat_thousands_seperator']).'</div>'; |
|
| 60 | + $return .= '<div id="totalnetto_new">'.number_format(round($_SESSION['cartpricesums']['fGesamtnetto'], 2), |
|
| 61 | 61 | HelperConfig::$core['numberformat_decimals'], HelperConfig::$core['numberformat_decimal_point'], |
| 62 | - HelperConfig::$core['numberformat_thousands_seperator']) . '</div>'; |
|
| 62 | + HelperConfig::$core['numberformat_thousands_seperator']).'</div>'; |
|
| 63 | 63 | $return .= '</div>'; |
| 64 | 64 | \HaaseIT\HCSF\Helper::terminateScript($return); |
| 65 | 65 | } |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | $aPath = explode('/', $this->sPath); |
| 88 | 88 | if (!empty($map[$this->sPath])) { |
| 89 | - $class = '\\HaaseIT\\HCSF\\Controller\\' . $map[$this->sPath]; |
|
| 89 | + $class = '\\HaaseIT\\HCSF\\Controller\\'.$map[$this->sPath]; |
|
| 90 | 90 | } else { |
| 91 | 91 | if ($aPath[1] == HelperConfig::$core['directory_images']) { |
| 92 | 92 | $class = Controller\Glide::class; |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | } else { // if it is found, go on |
| 133 | 133 | // Support for shorturls |
| 134 | 134 | if ($this->P->cb_pagetype === 'shorturl') { |
| 135 | - \HaaseIT\HCSF\Helper::redirectToPage('Location: ' . $this->P->cb_pageconfig, true); |
|
| 135 | + \HaaseIT\HCSF\Helper::redirectToPage('Location: '.$this->P->cb_pageconfig, true); |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | if (isset($this->P, $aRoutingoverride) && count($aRoutingoverride)) { |
@@ -148,14 +148,14 @@ discard block |
||
| 148 | 148 | $this->P->iStatus = 404; |
| 149 | 149 | |
| 150 | 150 | $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_page_not_found'); |
| 151 | - header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found'); |
|
| 151 | + header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found'); |
|
| 152 | 152 | } elseif (!is_object($this->P) && $this->P == 500) { |
| 153 | 153 | $this->P = new CorePage($this->serviceManager); |
| 154 | 154 | $this->P->cb_pagetype = 'error'; |
| 155 | 155 | $this->P->iStatus = 500; |
| 156 | 156 | |
| 157 | 157 | $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_server_error'); |
| 158 | - header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error'); |
|
| 158 | + header($_SERVER['SERVER_PROTOCOL'].' 500 Internal Server Error'); |
|
| 159 | 159 | } elseif (is_object($this->P) && $this->P->oPayload == NULL) {// elseif the page has been found but contains no payload... |
| 160 | 160 | if ( |
| 161 | 161 | !( |
@@ -165,10 +165,10 @@ discard block |
||
| 165 | 165 | ) |
| 166 | 166 | ) { // no payload is fine if page is one of these |
| 167 | 167 | $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_content_not_found'); |
| 168 | - header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found'); |
|
| 168 | + header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found'); |
|
| 169 | 169 | } |
| 170 | 170 | } elseif ($this->P->oPayload->cl_lang != NULL && $this->P->oPayload->cl_lang != HelperConfig::$lang) { // if the page is available but not in the current language, display info |
| 171 | - $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_page_not_available_lang') . '<br><br>' . $this->P->oPayload->cl_html; |
|
| 171 | + $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_page_not_available_lang').'<br><br>'.$this->P->oPayload->cl_html; |
|
| 172 | 172 | } |
| 173 | 173 | } |
| 174 | 174 | return $this->P; |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | // to allow dots in the filename, we have to iterate through all parts of the filename |
| 191 | 191 | $aRoutingoverride['itemno'] = ''; |
| 192 | 192 | for ($i = 0; $i < count($aTMP['exploded_request_file']) - 1; $i++) { |
| 193 | - $aRoutingoverride['itemno'] .= $aTMP['exploded_request_file'][$i] . '.'; |
|
| 193 | + $aRoutingoverride['itemno'] .= $aTMP['exploded_request_file'][$i].'.'; |
|
| 194 | 194 | } |
| 195 | 195 | // remove the trailing dot |
| 196 | 196 | $aRoutingoverride['itemno'] = \HaaseIT\Toolbox\Tools::cutStringend($aRoutingoverride['itemno'], 1); |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | // rebuild the path string without the trailing '/item/itemno.html' |
| 201 | 201 | $this->sPath = ''; |
| 202 | 202 | for ($i = 0; $i < $aTMP['parts_in_path'] - 2; $i++) { |
| 203 | - $this->sPath .= $aPath[$i] . '/'; |
|
| 203 | + $this->sPath .= $aPath[$i].'/'; |
|
| 204 | 204 | } |
| 205 | 205 | } |
| 206 | 206 | } |
@@ -252,10 +252,10 @@ discard block |
||
| 252 | 252 | private function prepareItemlist($aItemlist) |
| 253 | 253 | { |
| 254 | 254 | $aList = [ |
| 255 | - ['title' => HardcodedText::get('itemadmin_list_active'), 'key' => 'itemindex', 'width' => 30, 'linked' => false, 'callback' => 'renderItemStatusIcon',], |
|
| 256 | - ['title' => HardcodedText::get('itemadmin_list_itemno'), 'key' => 'itemno', 'width' => 100, 'linked' => false,], |
|
| 257 | - ['title' => HardcodedText::get('itemadmin_list_name'), 'key' => 'name', 'width' => 350, 'linked' => false,], |
|
| 258 | - ['title' => HardcodedText::get('itemadmin_list_edit'), 'key' => 'itemno', 'width' => 30, 'linked' => true, 'ltarget' => '/_admin/itemadmin.html', 'lkeyname' => 'itemno', 'lgetvars' => ['action' => 'showitem'],], |
|
| 255 | + ['title' => HardcodedText::get('itemadmin_list_active'), 'key' => 'itemindex', 'width' => 30, 'linked' => false, 'callback' => 'renderItemStatusIcon', ], |
|
| 256 | + ['title' => HardcodedText::get('itemadmin_list_itemno'), 'key' => 'itemno', 'width' => 100, 'linked' => false, ], |
|
| 257 | + ['title' => HardcodedText::get('itemadmin_list_name'), 'key' => 'name', 'width' => 350, 'linked' => false, ], |
|
| 258 | + ['title' => HardcodedText::get('itemadmin_list_edit'), 'key' => 'itemno', 'width' => 30, 'linked' => true, 'ltarget' => '/_admin/itemadmin.html', 'lkeyname' => 'itemno', 'lgetvars' => ['action' => 'showitem'], ], |
|
| 259 | 259 | ]; |
| 260 | 260 | $aData = []; |
| 261 | 261 | foreach ($aItemlist['data'] as $aValue) { |
@@ -320,7 +320,7 @@ discard block |
||
| 320 | 320 | private function prepareItem($aItemdata) |
| 321 | 321 | { |
| 322 | 322 | $aData = [ |
| 323 | - 'form' => ['action' => Tools::makeLinkHRefWithAddedGetVars('/_admin/itemadmin.html', ['action' => 'showitem', 'itemno' => $aItemdata['base']['itm_no']]),], |
|
| 323 | + 'form' => ['action' => Tools::makeLinkHRefWithAddedGetVars('/_admin/itemadmin.html', ['action' => 'showitem', 'itemno' => $aItemdata['base']['itm_no']]), ], |
|
| 324 | 324 | 'id' => $aItemdata['base']['itm_id'], |
| 325 | 325 | 'itemno' => $aItemdata['base']['itm_no'], |
| 326 | 326 | 'name' => $aItemdata['base']['itm_name'], |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | $aGroups = $this->getItemgroups(''); |
| 352 | 352 | $aData['groupoptions'][] = ''; |
| 353 | 353 | foreach ($aGroups as $aValue) { |
| 354 | - $aData['groupoptions'][] = $aValue['itmg_id'] . '|' . $aValue['itmg_no'] . ' - ' . $aValue['itmg_name']; |
|
| 354 | + $aData['groupoptions'][] = $aValue['itmg_id'].'|'.$aValue['itmg_no'].' - '.$aValue['itmg_name']; |
|
| 355 | 355 | } |
| 356 | 356 | unset($aGroups); |
| 357 | 357 | |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | $user = filter_input(INPUT_SERVER, 'PHP_AUTH_USER'); |
| 118 | 118 | $pass = filter_input(INPUT_SERVER, 'PHP_AUTH_PW'); |
| 119 | 119 | if (filter_input(INPUT_SERVER, 'REDIRECT_HTTP_AUTHORIZATION') !== null) { // fix for php cgi mode |
| 120 | - list($user, $pass) = explode(':' , base64_decode(substr(filter_input(INPUT_SERVER, 'REDIRECT_HTTP_AUTHORIZATION'), 6))); |
|
| 120 | + list($user, $pass) = explode(':', base64_decode(substr(filter_input(INPUT_SERVER, 'REDIRECT_HTTP_AUTHORIZATION'), 6))); |
|
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | if (!empty($user) && !empty($pass)) { |
@@ -130,12 +130,12 @@ discard block |
||
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | if (!$validated) { |
| 133 | - header('WWW-Authenticate: Basic realm="' . HelperConfig::$secrets['admin_authrealm'] . '"'); |
|
| 133 | + header('WWW-Authenticate: Basic realm="'.HelperConfig::$secrets['admin_authrealm'].'"'); |
|
| 134 | 134 | header('HTTP/1.0 401 Unauthorized'); |
| 135 | 135 | \HaaseIT\HCSF\Helper::terminateScript('Not authorized'); |
| 136 | 136 | } |
| 137 | 137 | } else { |
| 138 | - header('WWW-Authenticate: Basic realm="' . HelperConfig::$secrets['admin_authrealm'] . '"'); |
|
| 138 | + header('WWW-Authenticate: Basic realm="'.HelperConfig::$secrets['admin_authrealm'].'"'); |
|
| 139 | 139 | header('HTTP/1.0 401 Unauthorized'); |
| 140 | 140 | \HaaseIT\HCSF\Helper::terminateScript('Not authorized'); |
| 141 | 141 | } |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | $sTargetAddress = $aResult['cust_email']; |
| 119 | 119 | $sSubject = $this->textcats->T('forgotpw_mail_subject'); |
| 120 | 120 | $sMessage = $this->textcats->T('forgotpw_mail_text1'); |
| 121 | - $sMessage .= '<br><br>' .'<a href="http'.($serverhttps === 'on' ? 's' : '').'://'; |
|
| 121 | + $sMessage .= '<br><br>'.'<a href="http'.($serverhttps === 'on' ? 's' : '').'://'; |
|
| 122 | 122 | $sMessage .= $serverservername.'/_misc/rp.html?key='.$sResetCode.'&email='.$sTargetAddress.'">'; |
| 123 | 123 | $sMessage .= 'http'.($serverhttps === 'on' ? 's' : '').'://'; |
| 124 | 124 | $sMessage .= $serverservername.'/_misc/rp.html?key='.$sResetCode.'&email='.$sTargetAddress.'</a>'; |
@@ -45,18 +45,18 @@ discard block |
||
| 45 | 45 | } else { |
| 46 | 46 | $mLogin = $this->getLogin(); |
| 47 | 47 | if (isset($mLogin['status']) && $mLogin['status'] === 'success') { |
| 48 | - $this->P->oPayload->cl_html = $textcats->T('login_success') . '<br>'; |
|
| 48 | + $this->P->oPayload->cl_html = $textcats->T('login_success').'<br>'; |
|
| 49 | 49 | \HaaseIT\HCSF\Helper::redirectToPage('/_misc/userhome.html?login=true'); |
| 50 | 50 | } elseif (isset($mLogin['status']) && $mLogin['status'] === 'tosnotaccepted') { |
| 51 | - $this->P->oPayload->cl_html = $textcats->T('login_fail_tosnotaccepted') . '<br>'; |
|
| 51 | + $this->P->oPayload->cl_html = $textcats->T('login_fail_tosnotaccepted').'<br>'; |
|
| 52 | 52 | $this->P->cb_customcontenttemplate = 'customer/login'; |
| 53 | 53 | } elseif (isset($mLogin['status']) && $mLogin['status'] === 'emailnotverified') { |
| 54 | - $this->P->oPayload->cl_html = $textcats->T('login_fail_emailnotverified') . '<br><br>'; |
|
| 54 | + $this->P->oPayload->cl_html = $textcats->T('login_fail_emailnotverified').'<br><br>'; |
|
| 55 | 55 | $this->P->oPayload->cl_html .= '<a href="/_misc/resendverificationmail.html?email=' |
| 56 | - . $mLogin['data']['cust_email'] . '">' . $textcats->T('login_fail_emailnotverifiedresend') . '</a>'; |
|
| 56 | + . $mLogin['data']['cust_email'].'">'.$textcats->T('login_fail_emailnotverifiedresend').'</a>'; |
|
| 57 | 57 | $this->P->cb_customcontenttemplate = 'customer/login'; |
| 58 | 58 | } elseif (isset($mLogin['status']) && $mLogin['status'] === 'accountinactive') { |
| 59 | - $this->P->oPayload->cl_html = $textcats->T('login_fail_accountinactive') . '<br>'; |
|
| 59 | + $this->P->oPayload->cl_html = $textcats->T('login_fail_accountinactive').'<br>'; |
|
| 60 | 60 | $this->P->cb_customcontenttemplate = 'customer/login'; |
| 61 | 61 | } else { |
| 62 | 62 | $this->P->oPayload->cl_html = $textcats->T('login_fail'); |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | $hResult->execute(); |
| 111 | 111 | |
| 112 | 112 | $iRows = $hResult->rowCount(); |
| 113 | - if($iRows == 1) { |
|
| 113 | + if ($iRows == 1) { |
|
| 114 | 114 | $aRow = $hResult->fetch(); |
| 115 | 115 | |
| 116 | 116 | if (password_verify(filter_input(INPUT_POST, 'password'), $aRow['cust_password'])) { |
@@ -120,9 +120,9 @@ discard block |
||
| 120 | 120 | } elseif ($aRow['cust_tosaccepted'] === 'n') { |
| 121 | 121 | return ['status' => 'tosnotaccepted']; |
| 122 | 122 | } elseif ($aRow['cust_emailverified'] === 'n') { |
| 123 | - return ['status' => 'emailnotverified', 'data' => $aRow,]; |
|
| 123 | + return ['status' => 'emailnotverified', 'data' => $aRow, ]; |
|
| 124 | 124 | } elseif ($aRow['cust_active'] === 'n') { |
| 125 | - return ['status' => 'accountinactive',]; |
|
| 125 | + return ['status' => 'accountinactive', ]; |
|
| 126 | 126 | } |
| 127 | 127 | } |
| 128 | 128 | } |
@@ -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 | } |
@@ -297,15 +297,15 @@ discard block |
||
| 297 | 297 | && in_array('paypal', HelperConfig::$shop['paymentmethods'], true) !== false |
| 298 | 298 | && HelperConfig::$shop['paypal_interactive'] |
| 299 | 299 | ) { |
| 300 | - $redirectto = '/_misc/paypal.html?id=' . $iInsertID; |
|
| 300 | + $redirectto = '/_misc/paypal.html?id='.$iInsertID; |
|
| 301 | 301 | } elseif ( |
| 302 | 302 | $postpaymentmethod !== null |
| 303 | 303 | && $postpaymentmethod === 'sofortueberweisung' |
| 304 | 304 | && in_array('sofortueberweisung', HelperConfig::$shop['paymentmethods'], true) !== false |
| 305 | 305 | ) { |
| 306 | - $redirectto = '/_misc/sofortueberweisung.html?id=' . $iInsertID; |
|
| 306 | + $redirectto = '/_misc/sofortueberweisung.html?id='.$iInsertID; |
|
| 307 | 307 | } else { |
| 308 | - $redirectto = '/_misc/checkedout.html?id=' . $iInsertID; |
|
| 308 | + $redirectto = '/_misc/checkedout.html?id='.$iInsertID; |
|
| 309 | 309 | } |
| 310 | 310 | \HaaseIT\HCSF\Helper::redirectToPage($redirectto); |
| 311 | 311 | } |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | private function sendCheckoutMails($iInsertID, $sMailbody_us, $sMailbody_they, $aImagesToSend) |
| 320 | 320 | { |
| 321 | 321 | if ( |
| 322 | - isset(HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' .HelperConfig::$lang]) |
|
| 322 | + isset(HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_'.HelperConfig::$lang]) |
|
| 323 | 323 | && file_exists( |
| 324 | 324 | PATH_DOCROOT.HelperConfig::$core['directory_emailattachments'] |
| 325 | 325 | .'/'.HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' |
@@ -328,21 +328,21 @@ discard block |
||
| 328 | 328 | ) { |
| 329 | 329 | $aFilesToSend[] = |
| 330 | 330 | PATH_DOCROOT.HelperConfig::$core['directory_emailattachments'].'/' |
| 331 | - .HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' .HelperConfig::$lang]; |
|
| 331 | + .HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_'.HelperConfig::$lang]; |
|
| 332 | 332 | } else { |
| 333 | 333 | $aFilesToSend = []; |
| 334 | 334 | } |
| 335 | 335 | |
| 336 | 336 | Helper::mailWrapper( |
| 337 | 337 | filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL), |
| 338 | - $this->textcats->T('shoppingcart_mail_subject') . ' ' . $iInsertID, |
|
| 338 | + $this->textcats->T('shoppingcart_mail_subject').' '.$iInsertID, |
|
| 339 | 339 | $sMailbody_they, |
| 340 | 340 | $aImagesToSend, |
| 341 | 341 | $aFilesToSend |
| 342 | 342 | ); |
| 343 | 343 | Helper::mailWrapper( |
| 344 | 344 | HelperConfig::$core['email_sender'], |
| 345 | - 'Bestellung im Webshop Nr: ' . $iInsertID, |
|
| 345 | + 'Bestellung im Webshop Nr: '.$iInsertID, |
|
| 346 | 346 | $sMailbody_us, |
| 347 | 347 | $aImagesToSend |
| 348 | 348 | ); |
@@ -353,9 +353,9 @@ discard block |
||
| 353 | 353 | */ |
| 354 | 354 | private function writeCheckoutToFile($sMailbody_us) |
| 355 | 355 | { |
| 356 | - $fp = fopen(PATH_LOGS . 'shoplog_' . date('Y-m-d') . '.html', 'a'); |
|
| 356 | + $fp = fopen(PATH_LOGS.'shoplog_'.date('Y-m-d').'.html', 'a'); |
|
| 357 | 357 | // Write $somecontent to our opened file. |
| 358 | - fwrite($fp, $sMailbody_us . "\n\n-------------------------------------------------------------------------\n\n"); |
|
| 358 | + fwrite($fp, $sMailbody_us."\n\n-------------------------------------------------------------------------\n\n"); |
|
| 359 | 359 | fclose($fp); |
| 360 | 360 | } |
| 361 | 361 | |
@@ -405,9 +405,9 @@ discard block |
||
| 405 | 405 | 'country' => !empty($postcountry) ? |
| 406 | 406 | ( |
| 407 | 407 | isset( |
| 408 | - HelperConfig::$countries['countries_' .HelperConfig::$lang][$postcountry] |
|
| 408 | + HelperConfig::$countries['countries_'.HelperConfig::$lang][$postcountry] |
|
| 409 | 409 | ) |
| 410 | - ? HelperConfig::$countries['countries_' .HelperConfig::$lang][$postcountry] |
|
| 410 | + ? HelperConfig::$countries['countries_'.HelperConfig::$lang][$postcountry] |
|
| 411 | 411 | : $postcountry) |
| 412 | 412 | : '', |
| 413 | 413 | 'remarks' => $this->getPostValue('remarks'), |
@@ -416,7 +416,7 @@ discard block |
||
| 416 | 416 | 'paymentmethod' => $this->getPostValue('paymentmethod'), |
| 417 | 417 | 'shippingcost' => empty($_SESSION['shippingcost']) ? false : $_SESSION['shippingcost'], |
| 418 | 418 | 'paypallink' => $postpaymentmethod === 'paypal' ? $serverservername.'/_misc/paypal.html?id='.$iId : '', |
| 419 | - 'sofortueberweisunglink' => $postpaymentmethod === 'sofortueberweisung' ? $serverservername.'/_misc/sofortueberweisung.html?id='.$iId : '', |
|
| 419 | + 'sofortueberweisunglink' => $postpaymentmethod === 'sofortueberweisung' ? $serverservername.'/_misc/sofortueberweisung.html?id='.$iId : '', |
|
| 420 | 420 | 'SESSION' => !$bCust ? Tools::debug($_SESSION, '$_SESSION', true, true) : '', |
| 421 | 421 | 'POST' => !$bCust ? Tools::debug($_POST, '$_POST', true, true) : '', |
| 422 | 422 | 'orderid' => $iId, |
@@ -441,15 +441,15 @@ discard block |
||
| 441 | 441 | ($getmsg === 'updated' && !empty($getcartkey) && !empty($getamount)) |
| 442 | 442 | || ($getmsg === 'removed' && !empty($getcartkey)) |
| 443 | 443 | ) { |
| 444 | - $return .= $this->textcats->T('shoppingcart_msg_' . $getmsg . '_1') . ' '; |
|
| 444 | + $return .= $this->textcats->T('shoppingcart_msg_'.$getmsg.'_1').' '; |
|
| 445 | 445 | if (isset(HelperConfig::$shop['custom_order_fields']) && mb_strpos($getcartkey, '|') !== false) { |
| 446 | 446 | $mCartkeys = explode('|', $getcartkey); |
| 447 | 447 | foreach ($mCartkeys as $sKey => $sValue) { |
| 448 | 448 | if ($sKey == 0) { |
| 449 | - $return .= $sValue . ', '; |
|
| 449 | + $return .= $sValue.', '; |
|
| 450 | 450 | } else { |
| 451 | 451 | $TMP = explode(':', $sValue); |
| 452 | - $return .= $this->textcats->T('shoppingcart_item_' . $TMP[0]) . ' ' . $TMP[1] . ', '; |
|
| 452 | + $return .= $this->textcats->T('shoppingcart_item_'.$TMP[0]).' '.$TMP[1].', '; |
|
| 453 | 453 | unset($TMP); |
| 454 | 454 | } |
| 455 | 455 | } |
@@ -457,7 +457,7 @@ discard block |
||
| 457 | 457 | } else { |
| 458 | 458 | $return .= $getcartkey; |
| 459 | 459 | } |
| 460 | - $return.= ' ' . $this->textcats->T('shoppingcart_msg_'.$getmsg.'_2'); |
|
| 460 | + $return .= ' '.$this->textcats->T('shoppingcart_msg_'.$getmsg.'_2'); |
|
| 461 | 461 | if ($getmsg === 'updated') { |
| 462 | 462 | $return .= ' '.$getamount; |
| 463 | 463 | } |