@@ -40,7 +40,7 @@ |
||
| 40 | 40 | if (HelperConfig::$customer["validate_fax"] && (!isset($_POST["fax"]) || strlen(trim($_POST["fax"]))) < 6) $aErr["fax"] = true; |
| 41 | 41 | if (HelperConfig::$customer["validate_country"] && (!isset($_POST["country"]) || !isset(HelperConfig::$countries["countries_".$sLang][$_POST["country"]]))) $aErr["country"] = true; |
| 42 | 42 | if (!$bEdit && (!isset($_POST["tos"]) || $_POST["tos"] != 'y')) $aErr["tos"] = true; |
| 43 | - if (!$bEdit && (!isset( $_POST["cancellationdisclaimer"] ) || $_POST["cancellationdisclaimer"] != 'y')) $aErr["cancellationdisclaimer"] = true; |
|
| 43 | + if (!$bEdit && (!isset($_POST["cancellationdisclaimer"]) || $_POST["cancellationdisclaimer"] != 'y')) $aErr["cancellationdisclaimer"] = true; |
|
| 44 | 44 | |
| 45 | 45 | if (!$bEdit || (isset($_POST["pwd"]) && trim($_POST["pwd"]) != '')) { |
| 46 | 46 | if ( |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $iRows = $hResult->rowCount(); |
| 52 | 52 | |
| 53 | 53 | if ($iRows == 0) { |
| 54 | - $sEmailVerificationcode = md5($_POST["email"] . time()); |
|
| 54 | + $sEmailVerificationcode = md5($_POST["email"].time()); |
|
| 55 | 55 | $aData = [ |
| 56 | 56 | 'cust_email' => $sEmail, |
| 57 | 57 | 'cust_corp' => filter_var(trim(Tools::getFormfield("corpname")), |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | $hResult = $this->serviceManager->get('db')->prepare($sql); |
| 86 | 86 | foreach ($aData as $sKey => $sValue) { |
| 87 | - $hResult->bindValue(':' . $sKey, $sValue, \PDO::PARAM_STR); |
|
| 87 | + $hResult->bindValue(':'.$sKey, $sValue, \PDO::PARAM_STR); |
|
| 88 | 88 | } |
| 89 | 89 | $hResult->execute(); |
| 90 | 90 | |
@@ -45,19 +45,19 @@ 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 | header('Location: /_misc/userhome.html?login=true'); |
| 50 | 50 | die(); |
| 51 | 51 | } elseif (isset($mLogin["status"]) && $mLogin["status"] == 'tosnotaccepted') { |
| 52 | - $this->P->oPayload->cl_html = $textcats->T("login_fail_tosnotaccepted") . '<br>'; |
|
| 52 | + $this->P->oPayload->cl_html = $textcats->T("login_fail_tosnotaccepted").'<br>'; |
|
| 53 | 53 | $this->P->cb_customcontenttemplate = 'customer/login'; |
| 54 | 54 | } elseif (isset($mLogin["status"]) && $mLogin["status"] == 'emailnotverified') { |
| 55 | - $this->P->oPayload->cl_html = $textcats->T("login_fail_emailnotverified") . '<br><br>'; |
|
| 55 | + $this->P->oPayload->cl_html = $textcats->T("login_fail_emailnotverified").'<br><br>'; |
|
| 56 | 56 | $this->P->oPayload->cl_html .= '<a href="/_misc/resendverificationmail.html?email=' |
| 57 | - . $mLogin["data"]['cust_email'] . '">' . $textcats->T("login_fail_emailnotverifiedresend") . '</a>'; |
|
| 57 | + . $mLogin["data"]['cust_email'].'">'.$textcats->T("login_fail_emailnotverifiedresend").'</a>'; |
|
| 58 | 58 | $this->P->cb_customcontenttemplate = 'customer/login'; |
| 59 | 59 | } elseif (isset($mLogin["status"]) && $mLogin["status"] == 'accountinactive') { |
| 60 | - $this->P->oPayload->cl_html = $textcats->T("login_fail_accountinactive") . '<br>'; |
|
| 60 | + $this->P->oPayload->cl_html = $textcats->T("login_fail_accountinactive").'<br>'; |
|
| 61 | 61 | $this->P->cb_customcontenttemplate = 'customer/login'; |
| 62 | 62 | } else { |
| 63 | 63 | $this->P->oPayload->cl_html = $textcats->T("login_fail"); |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $hResult->execute(); |
| 102 | 102 | |
| 103 | 103 | $iRows = $hResult->rowCount(); |
| 104 | - if($iRows == 1) { |
|
| 104 | + if ($iRows == 1) { |
|
| 105 | 105 | $aRow = $hResult->fetch(); |
| 106 | 106 | |
| 107 | 107 | if (password_verify($_POST["password"], $aRow['cust_password'])) { |
@@ -111,9 +111,9 @@ discard block |
||
| 111 | 111 | } elseif ($aRow['cust_tosaccepted'] == 'n') { |
| 112 | 112 | return ['status' => 'tosnotaccepted']; |
| 113 | 113 | } elseif ($aRow['cust_emailverified'] == 'n') { |
| 114 | - return ['status' => 'emailnotverified', 'data' => $aRow,]; |
|
| 114 | + return ['status' => 'emailnotverified', 'data' => $aRow, ]; |
|
| 115 | 115 | } elseif ($aRow['cust_active'] == 'n') { |
| 116 | - return ['status' => 'accountinactive',]; |
|
| 116 | + return ['status' => 'accountinactive', ]; |
|
| 117 | 117 | } |
| 118 | 118 | } |
| 119 | 119 | } |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | /** @var \PDOStatement $hResult */ |
| 76 | 76 | $hResult = $this->db->prepare($sql); |
| 77 | 77 | foreach ($aData as $sKey => $sValue) { |
| 78 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 78 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 79 | 79 | } |
| 80 | 80 | $hResult->execute(); |
| 81 | 81 | $this->P->oPayload->cl_html = $this->textcats->T("register_emailverificationsuccess"); |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | if (CHelper::getUserData()) { |
| 33 | 33 | $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T("denied_default"); |
| 34 | 34 | } else { |
| 35 | - $sql = 'SELECT ' . DB_ADDRESSFIELDS . ', cust_emailverificationcode FROM customer'; |
|
| 35 | + $sql = 'SELECT '.DB_ADDRESSFIELDS.', cust_emailverificationcode FROM customer'; |
|
| 36 | 36 | $sql .= ' WHERE cust_email = :email AND cust_emailverified = \'n\''; |
| 37 | 37 | |
| 38 | 38 | /** @var \PDOStatement $hResult */ |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $hResult->bindValue(':email', $sEmail, \PDO::PARAM_STR); |
| 83 | 83 | $hResult->execute(); |
| 84 | 84 | $iRows = $hResult->rowCount(); |
| 85 | - if ($iRows == 1) $sErr .= $this->textcats->T("userprofile_emailalreadyinuse") . '<br>'; |
|
| 85 | + if ($iRows == 1) $sErr .= $this->textcats->T("userprofile_emailalreadyinuse").'<br>'; |
|
| 86 | 86 | $sErr = CHelper::validateCustomerForm(HelperConfig::$lang, $sErr, true); |
| 87 | 87 | |
| 88 | 88 | if ($sErr == '') { |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | $sql = \HaaseIT\Toolbox\DBTools::buildPSUpdateQuery($aData, 'customer', 'cust_id'); |
| 111 | 111 | $hResult = $this->db->prepare($sql); |
| 112 | 112 | foreach ($aData as $sKey => $sValue) { |
| 113 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 113 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 114 | 114 | } |
| 115 | 115 | $hResult->execute(); |
| 116 | 116 | $aPData["infochangessaved"] = true; |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | $sLogData = ''; |
| 57 | 57 | |
| 58 | 58 | $iId = \filter_input(INPUT_POST, 'custom', FILTER_SANITIZE_NUMBER_INT); |
| 59 | - $sql = 'SELECT * FROM orders WHERE o_id = ' . $iId . ' AND o_paymentmethod' . " = 'paypal' AND o_paymentcompleted = 'n'"; |
|
| 59 | + $sql = 'SELECT * FROM orders WHERE o_id = '.$iId.' AND o_paymentmethod'." = 'paypal' AND o_paymentcompleted = 'n'"; |
|
| 60 | 60 | |
| 61 | 61 | $hResult = $this->db->query($sql); |
| 62 | 62 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | $postdata = ''; |
| 68 | 68 | |
| 69 | 69 | foreach ($_POST as $i => $v) { |
| 70 | - $postdata .= $i . '=' . urlencode($v) . '&'; |
|
| 70 | + $postdata .= $i.'='.urlencode($v).'&'; |
|
| 71 | 71 | } |
| 72 | 72 | $postdata .= 'cmd=_notify-validate'; |
| 73 | 73 | $web = parse_url(HelperConfig::$shop["paypal"]["url"]); |
@@ -79,15 +79,15 @@ discard block |
||
| 79 | 79 | $web['port'] = 80; |
| 80 | 80 | $ssl = ''; |
| 81 | 81 | } |
| 82 | - $fp = @fsockopen($ssl . $web['host'], $web['port'], $errnum, $errstr, 30); |
|
| 82 | + $fp = @fsockopen($ssl.$web['host'], $web['port'], $errnum, $errstr, 30); |
|
| 83 | 83 | |
| 84 | 84 | if ($fp) { |
| 85 | - fputs($fp, "POST " . $web['path'] . " HTTP/1.1\r\n"); |
|
| 86 | - fputs($fp, "Host: " . $web['host'] . "\r\n"); |
|
| 85 | + fputs($fp, "POST ".$web['path']." HTTP/1.1\r\n"); |
|
| 86 | + fputs($fp, "Host: ".$web['host']."\r\n"); |
|
| 87 | 87 | fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n"); |
| 88 | - fputs($fp, "Content-length: " . strlen($postdata) . "\r\n"); |
|
| 88 | + fputs($fp, "Content-length: ".strlen($postdata)."\r\n"); |
|
| 89 | 89 | fputs($fp, "Connection: close\r\n\r\n"); |
| 90 | - fputs($fp, $postdata . "\r\n\r\n"); |
|
| 90 | + fputs($fp, $postdata."\r\n\r\n"); |
|
| 91 | 91 | |
| 92 | 92 | $info = []; |
| 93 | 93 | while (!feof($fp)) { |
@@ -97,9 +97,9 @@ discard block |
||
| 97 | 97 | $info = implode(',', $info); |
| 98 | 98 | if (!(strpos($info, 'VERIFIED') === false)) { |
| 99 | 99 | |
| 100 | - $sLogData .= "-- new entry - " . date(HelperConfig::$core['locale_format_date_time']) . " --\n\n"; |
|
| 100 | + $sLogData .= "-- new entry - ".date(HelperConfig::$core['locale_format_date_time'])." --\n\n"; |
|
| 101 | 101 | $sLogData .= "W00T!\n\n"; |
| 102 | - $sLogData .= \HaaseIT\Toolbox\Tools::debug($_REQUEST, '', true, true) . "\n\n"; |
|
| 102 | + $sLogData .= \HaaseIT\Toolbox\Tools::debug($_REQUEST, '', true, true)."\n\n"; |
|
| 103 | 103 | |
| 104 | 104 | // Check if the transaction id has been used before |
| 105 | 105 | $sTxn_idQ = 'SELECT o_paypal_tx FROM orders WHERE o_paypal_tx = :txn_id'; |
@@ -123,31 +123,31 @@ discard block |
||
| 123 | 123 | $sql = \HaaseIT\Toolbox\DBTools::buildPSUpdateQuery($aTxnUpdateData, 'orders', 'o_id'); |
| 124 | 124 | $hResult = $this->db->prepare($sql); |
| 125 | 125 | foreach ($aTxnUpdateData as $sKey => $sValue) { |
| 126 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 126 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 127 | 127 | } |
| 128 | 128 | $hResult->execute(); |
| 129 | 129 | |
| 130 | - $sLogData .= "-- Alles ok. Zahlung erfolgreich. TXNID: " . $_REQUEST["txn_id"] . " --\n\n"; |
|
| 130 | + $sLogData .= "-- Alles ok. Zahlung erfolgreich. TXNID: ".$_REQUEST["txn_id"]." --\n\n"; |
|
| 131 | 131 | } else { |
| 132 | 132 | $sLogData .= "-- In my country we have problem; Problem is evaluation. Throw the data down the log!\n"; |
| 133 | - $sLogData .= "mc_gross: " . $_REQUEST["mc_gross"] . ' - number_format($fGesamtbrutto, 2, \'.\', \'\'): ' . number_format($fGesamtbrutto, |
|
| 134 | - 2, '.', '') . "\n"; |
|
| 135 | - $sLogData .= "custom: " . $_REQUEST["custom"] . ' - $aOrder[\'o_id\']: ' . $aOrder['o_id'] . "\n"; |
|
| 136 | - $sLogData .= "payment_status: " . $_REQUEST["payment_status"] . "\n"; |
|
| 137 | - $sLogData .= "mc_currency: " . $_REQUEST["mc_currency"] . ' - HelperConfig::$shop["paypal"]["currency_id"]: ' . HelperConfig::$shop["paypal"]["currency_id"] . "\n"; |
|
| 138 | - $sLogData .= "business: " . $_REQUEST["receiver_email"] . ' - HelperConfig::$shop["paypal"]["business"]: ' . HelperConfig::$shop["paypal"]["business"] . "\n\n"; |
|
| 133 | + $sLogData .= "mc_gross: ".$_REQUEST["mc_gross"].' - number_format($fGesamtbrutto, 2, \'.\', \'\'): '.number_format($fGesamtbrutto, |
|
| 134 | + 2, '.', '')."\n"; |
|
| 135 | + $sLogData .= "custom: ".$_REQUEST["custom"].' - $aOrder[\'o_id\']: '.$aOrder['o_id']."\n"; |
|
| 136 | + $sLogData .= "payment_status: ".$_REQUEST["payment_status"]."\n"; |
|
| 137 | + $sLogData .= "mc_currency: ".$_REQUEST["mc_currency"].' - HelperConfig::$shop["paypal"]["currency_id"]: '.HelperConfig::$shop["paypal"]["currency_id"]."\n"; |
|
| 138 | + $sLogData .= "business: ".$_REQUEST["receiver_email"].' - HelperConfig::$shop["paypal"]["business"]: '.HelperConfig::$shop["paypal"]["business"]."\n\n"; |
|
| 139 | 139 | } |
| 140 | 140 | } else { |
| 141 | 141 | // INVALID LOGGING ERROR |
| 142 | - $sLogData .= "-- new entry - " . date(HelperConfig::$core['locale_format_date_time']) . " --\n\nPHAIL\n\n"; |
|
| 143 | - $sLogData .= "!!! JEMAND HAT EINE ALTE TXN_ID BENUTZT: " . $_REQUEST["txn_id"] . " !!!\n\n"; |
|
| 142 | + $sLogData .= "-- new entry - ".date(HelperConfig::$core['locale_format_date_time'])." --\n\nPHAIL\n\n"; |
|
| 143 | + $sLogData .= "!!! JEMAND HAT EINE ALTE TXN_ID BENUTZT: ".$_REQUEST["txn_id"]." !!!\n\n"; |
|
| 144 | 144 | $sLogData .= "!!! INVALID !!!\n\n"; |
| 145 | 145 | } |
| 146 | 146 | } else { |
| 147 | - $sLogData .= "-- new entry - " . date(HelperConfig::$core['locale_format_date_time']) . " --\n\nPHAIL - Transaktion fehlgeschlagen. TXNID: " . $_REQUEST["txn_id"] . "\n" . $info . "\n\n"; |
|
| 147 | + $sLogData .= "-- new entry - ".date(HelperConfig::$core['locale_format_date_time'])." --\n\nPHAIL - Transaktion fehlgeschlagen. TXNID: ".$_REQUEST["txn_id"]."\n".$info."\n\n"; |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | - $fp = fopen(PATH_LOGS . FILE_PAYPALLOG, 'a'); |
|
| 150 | + $fp = fopen(PATH_LOGS.FILE_PAYPALLOG, 'a'); |
|
| 151 | 151 | // Write $somecontent to our opened file. |
| 152 | 152 | fwrite($fp, $sLogData); |
| 153 | 153 | fclose($fp); |
@@ -69,17 +69,17 @@ |
||
| 69 | 69 | |
| 70 | 70 | $sPaypalURL = HelperConfig::$shop["paypal"]["url"] |
| 71 | 71 | .'?cmd=_xclick&rm=2&custom=' |
| 72 | - .$iId . '&business='.HelperConfig::$shop["paypal"]["business"]; |
|
| 73 | - $sPaypalURL .= '¬ify_url=http://' . $_SERVER["SERVER_NAME"] . '/_misc/paypal_notify.html&item_name=' . $this->textcats->T("misc_paypaypal_paypaltitle") . ' ' . $iId; |
|
| 74 | - $sPaypalURL .= '¤cy_code=' . HelperConfig::$shop["paypal"]["currency_id"] |
|
| 75 | - .'&amount=' . str_replace(',', '.', number_format($fGesamtbrutto, 2, '.', '')); |
|
| 72 | + .$iId.'&business='.HelperConfig::$shop["paypal"]["business"]; |
|
| 73 | + $sPaypalURL .= '¬ify_url=http://'.$_SERVER["SERVER_NAME"].'/_misc/paypal_notify.html&item_name='.$this->textcats->T("misc_paypaypal_paypaltitle").' '.$iId; |
|
| 74 | + $sPaypalURL .= '¤cy_code='.HelperConfig::$shop["paypal"]["currency_id"] |
|
| 75 | + .'&amount='.str_replace(',', '.', number_format($fGesamtbrutto, 2, '.', '')); |
|
| 76 | 76 | if (HelperConfig::$shop["interactive_paymentmethods_redirect_immediately"]) { |
| 77 | - header('Location: ' . $sPaypalURL); |
|
| 77 | + header('Location: '.$sPaypalURL); |
|
| 78 | 78 | die(); |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | - $this->P->oPayload->cl_html = $this->textcats->T("misc_paypaypal_greeting") . '<br><br>'; |
|
| 82 | - $this->P->oPayload->cl_html .= '<a href="' . $sPaypalURL . '">' . $this->textcats->T("misc_paypaypal") . '</a>'; |
|
| 81 | + $this->P->oPayload->cl_html = $this->textcats->T("misc_paypaypal_greeting").'<br><br>'; |
|
| 82 | + $this->P->oPayload->cl_html .= '<a href="'.$sPaypalURL.'">'.$this->textcats->T("misc_paypaypal").'</a>'; |
|
| 83 | 83 | } else { |
| 84 | 84 | $this->P->oPayload->cl_html = $this->textcats->T("misc_paypaypal_paymentnotavailable"); |
| 85 | 85 | } |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | |
| 143 | 143 | if (HelperConfig::$shop['email_orderconfirmation_embed_itemimages_method'] === 'glide') { |
| 144 | 144 | $sPathToImage = '/'.HelperConfig::$core['directory_images'].'/'.HelperConfig::$shop['directory_images_items'].'/'; |
| 145 | - $sImageroot = PATH_BASEDIR . HelperConfig::$core['directory_glide_master']; |
|
| 145 | + $sImageroot = PATH_BASEDIR.HelperConfig::$core['directory_glide_master']; |
|
| 146 | 146 | |
| 147 | 147 | if ( |
| 148 | 148 | is_file($sImageroot.substr($sPathToImage.$aV["img"], strlen(HelperConfig::$core['directory_images']) + 1)) |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | 'cache' => PATH_GLIDECACHE, |
| 154 | 154 | 'max_image_size' => HelperConfig::$core['glide_max_imagesize'], |
| 155 | 155 | ]); |
| 156 | - $glideserver->setBaseUrl('/' . HelperConfig::$core['directory_images'] . '/'); |
|
| 156 | + $glideserver->setBaseUrl('/'.HelperConfig::$core['directory_images'].'/'); |
|
| 157 | 157 | $base64Img = $glideserver->getImageAsBase64($sPathToImage.$aV["img"], HelperConfig::$shop['email_orderconfirmation_embed_itemimages_glideparams']); |
| 158 | 158 | $TMP = explode(',', $base64Img); |
| 159 | 159 | $binImg = base64_decode($TMP[1]); |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | .HelperConfig::$shop['directory_images_items_email'].'/'; |
| 167 | 167 | if ($aImgInfo = getimagesize($sPathToImage.$aV["img"])) { |
| 168 | 168 | $binImg = file_get_contents($sPathToImage.$aV["img"]); |
| 169 | - $base64Img = 'data:' . $aImgInfo["mime"] . ';base64,'; |
|
| 169 | + $base64Img = 'data:'.$aImgInfo["mime"].';base64,'; |
|
| 170 | 170 | $base64Img .= base64_encode($binImg); |
| 171 | 171 | } |
| 172 | 172 | } |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | $sql = DBTools::buildPSInsertQuery($aDataOrder, 'orders'); |
| 243 | 243 | $hResult = $db->prepare($sql); |
| 244 | 244 | foreach ($aDataOrder as $sKey => $sValue) { |
| 245 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 245 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 246 | 246 | } |
| 247 | 247 | $hResult->execute(); |
| 248 | 248 | $iInsertID = $db->lastInsertId(); |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | $sql = DBTools::buildPSInsertQuery($aV, 'orders_items'); |
| 278 | 278 | $hResult = $db->prepare($sql); |
| 279 | 279 | foreach ($aV as $sKey => $sValue) { |
| 280 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 280 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 281 | 281 | } |
| 282 | 282 | $hResult->execute(); |
| 283 | 283 | } |
@@ -315,15 +315,15 @@ discard block |
||
| 315 | 315 | && array_search('paypal', HelperConfig::$shop["paymentmethods"]) !== false |
| 316 | 316 | && isset(HelperConfig::$shop["paypal_interactive"]) && HelperConfig::$shop["paypal_interactive"] |
| 317 | 317 | ) { |
| 318 | - header('Location: /_misc/paypal.html?id=' . $iInsertID); |
|
| 318 | + header('Location: /_misc/paypal.html?id='.$iInsertID); |
|
| 319 | 319 | } elseif ( |
| 320 | 320 | isset($this->post["paymentmethod"]) |
| 321 | 321 | && $this->post["paymentmethod"] == 'sofortueberweisung' |
| 322 | 322 | && array_search('sofortueberweisung', HelperConfig::$shop["paymentmethods"]) !== false |
| 323 | 323 | ) { |
| 324 | - header('Location: /_misc/sofortueberweisung.html?id=' . $iInsertID); |
|
| 324 | + header('Location: /_misc/sofortueberweisung.html?id='.$iInsertID); |
|
| 325 | 325 | } else { |
| 326 | - header('Location: /_misc/checkedout.html?id=' . $iInsertID); |
|
| 326 | + header('Location: /_misc/checkedout.html?id='.$iInsertID); |
|
| 327 | 327 | } |
| 328 | 328 | die(); |
| 329 | 329 | } |
@@ -351,14 +351,14 @@ discard block |
||
| 351 | 351 | |
| 352 | 352 | Helper::mailWrapper( |
| 353 | 353 | $this->post["email"], |
| 354 | - $this->textcats->T("shoppingcart_mail_subject") . ' ' . $iInsertID, |
|
| 354 | + $this->textcats->T("shoppingcart_mail_subject").' '.$iInsertID, |
|
| 355 | 355 | $sMailbody_they, |
| 356 | 356 | $aImagesToSend, |
| 357 | 357 | $aFilesToSend |
| 358 | 358 | ); |
| 359 | 359 | Helper::mailWrapper( |
| 360 | 360 | HelperConfig::$core["email_sender"], |
| 361 | - 'Bestellung im Webshop Nr: ' . $iInsertID, |
|
| 361 | + 'Bestellung im Webshop Nr: '.$iInsertID, |
|
| 362 | 362 | $sMailbody_us, |
| 363 | 363 | $aImagesToSend |
| 364 | 364 | ); |
@@ -369,9 +369,9 @@ discard block |
||
| 369 | 369 | */ |
| 370 | 370 | private function writeCheckoutToFile($sMailbody_us) |
| 371 | 371 | { |
| 372 | - $fp = fopen(PATH_LOGS . 'shoplog_' . date("Y-m-d") . '.html', 'a'); |
|
| 372 | + $fp = fopen(PATH_LOGS.'shoplog_'.date("Y-m-d").'.html', 'a'); |
|
| 373 | 373 | // Write $somecontent to our opened file. |
| 374 | - fwrite($fp, $sMailbody_us . "\n\n-------------------------------------------------------------------------\n\n"); |
|
| 374 | + fwrite($fp, $sMailbody_us."\n\n-------------------------------------------------------------------------\n\n"); |
|
| 375 | 375 | fclose($fp); |
| 376 | 376 | } |
| 377 | 377 | |
@@ -427,8 +427,8 @@ discard block |
||
| 427 | 427 | 'cancellationdisclaimer' => $this->getPostValue('cancellationdisclaimer'), |
| 428 | 428 | 'paymentmethod' => $this->getPostValue('paymentmethod'), |
| 429 | 429 | 'shippingcost' => (!isset($_SESSION["shippingcost"]) || $_SESSION["shippingcost"] == 0 ? false : $_SESSION["shippingcost"]), |
| 430 | - 'paypallink' => (isset($this->post["paymentmethod"]) && $this->post["paymentmethod"] == 'paypal' ? $_SERVER["SERVER_NAME"].'/_misc/paypal.html?id='.$iId : ''), |
|
| 431 | - 'sofortueberweisunglink' => (isset($this->post["paymentmethod"]) && $this->post["paymentmethod"] == 'sofortueberweisung' ? $_SERVER["SERVER_NAME"].'/_misc/sofortueberweisung.html?id='.$iId : ''), |
|
| 430 | + 'paypallink' => (isset($this->post["paymentmethod"]) && $this->post["paymentmethod"] == 'paypal' ? $_SERVER["SERVER_NAME"].'/_misc/paypal.html?id='.$iId : ''), |
|
| 431 | + 'sofortueberweisunglink' => (isset($this->post["paymentmethod"]) && $this->post["paymentmethod"] == 'sofortueberweisung' ? $_SERVER["SERVER_NAME"].'/_misc/sofortueberweisung.html?id='.$iId : ''), |
|
| 432 | 432 | 'SESSION' => (!$bCust ? Tools::debug($_SESSION, '$_SESSION', true, true) : ''), |
| 433 | 433 | 'POST' => (!$bCust ? Tools::debug($this->post, '$this->post', true, true) : ''), |
| 434 | 434 | 'orderid' => $iId, |
@@ -457,15 +457,15 @@ discard block |
||
| 457 | 457 | || ($this->get["msg"] == 'removed') |
| 458 | 458 | && isset($this->get["cartkey"]) |
| 459 | 459 | ) { |
| 460 | - $return .= $this->textcats->T("shoppingcart_msg_" . $this->get["msg"] . "_1") . ' '; |
|
| 460 | + $return .= $this->textcats->T("shoppingcart_msg_".$this->get["msg"]."_1").' '; |
|
| 461 | 461 | if (isset(HelperConfig::$shop["custom_order_fields"]) && mb_strpos($this->get["cartkey"], '|') !== false) { |
| 462 | 462 | $mCartkeys = explode('|', $this->get["cartkey"]); |
| 463 | 463 | foreach ($mCartkeys as $sKey => $sValue) { |
| 464 | 464 | if ($sKey == 0) { |
| 465 | - $return .= $sValue . ', '; |
|
| 465 | + $return .= $sValue.', '; |
|
| 466 | 466 | } else { |
| 467 | 467 | $TMP = explode(':', $sValue); |
| 468 | - $return .= $this->textcats->T("shoppingcart_item_" . $TMP[0]) . ' ' . $TMP[1] . ', '; |
|
| 468 | + $return .= $this->textcats->T("shoppingcart_item_".$TMP[0]).' '.$TMP[1].', '; |
|
| 469 | 469 | unset($TMP); |
| 470 | 470 | } |
| 471 | 471 | } |
@@ -473,9 +473,9 @@ discard block |
||
| 473 | 473 | } else { |
| 474 | 474 | $return .= $this->get["cartkey"]; |
| 475 | 475 | } |
| 476 | - $return.= ' ' . $this->textcats->T("shoppingcart_msg_" . $this->get["msg"] . "_2"); |
|
| 476 | + $return .= ' '.$this->textcats->T("shoppingcart_msg_".$this->get["msg"]."_2"); |
|
| 477 | 477 | if ($this->get["msg"] == 'updated') { |
| 478 | - $return .= ' ' . $this->get["amount"]; |
|
| 478 | + $return .= ' '.$this->get["amount"]; |
|
| 479 | 479 | } |
| 480 | 480 | $return .= '<br><br>'; |
| 481 | 481 | } |