@@ -94,12 +94,12 @@ discard block |
||
94 | 94 | $CSA = [ |
95 | 95 | 'list_orders' => [ |
96 | 96 | ['title' => '', 'key' => 'o_id', 'width' => 30, 'linked' => false, 'callback' => 'shopadminMakeCheckbox'], |
97 | - ['title' => HardcodedText::get('shopadmin_list_orderid'), 'key' => 'o_id', 'width' => 30, 'linked' => false,], |
|
98 | - ['title' => HardcodedText::get('shopadmin_list_customer'), 'key' => 'o_cust', 'width' => 280, 'linked' => false,], |
|
99 | - ['title' => HardcodedText::get('shopadmin_list_sumnettoall'), 'key' => 'o_sumnettoall', 'width' => 75, 'linked' => false,], |
|
100 | - ['title' => HardcodedText::get('shopadmin_list_orderstatus'), 'key' => 'o_order_status', 'width' => 80, 'linked' => false,], |
|
101 | - ['title' => HardcodedText::get('shopadmin_list_ordertimenumber'), 'key' => 'o_ordertime_number', 'width' => 100, 'linked' => false,], |
|
102 | - ['title' => HardcodedText::get('shopadmin_list_hostpayment'), 'key' => 'o_order_host_payment', 'width' => 140, 'linked' => false,], |
|
97 | + ['title' => HardcodedText::get('shopadmin_list_orderid'), 'key' => 'o_id', 'width' => 30, 'linked' => false, ], |
|
98 | + ['title' => HardcodedText::get('shopadmin_list_customer'), 'key' => 'o_cust', 'width' => 280, 'linked' => false, ], |
|
99 | + ['title' => HardcodedText::get('shopadmin_list_sumnettoall'), 'key' => 'o_sumnettoall', 'width' => 75, 'linked' => false, ], |
|
100 | + ['title' => HardcodedText::get('shopadmin_list_orderstatus'), 'key' => 'o_order_status', 'width' => 80, 'linked' => false, ], |
|
101 | + ['title' => HardcodedText::get('shopadmin_list_ordertimenumber'), 'key' => 'o_ordertime_number', 'width' => 100, 'linked' => false, ], |
|
102 | + ['title' => HardcodedText::get('shopadmin_list_hostpayment'), 'key' => 'o_order_host_payment', 'width' => 140, 'linked' => false, ], |
|
103 | 103 | [ |
104 | 104 | 'title' => HardcodedText::get('shopadmin_list_edit'), |
105 | 105 | 'key' => 'o_id', |
@@ -113,11 +113,11 @@ discard block |
||
113 | 113 | ], |
114 | 114 | ], |
115 | 115 | 'list_orderitems' => [ |
116 | - ['title' => HardcodedText::get('shopadmin_list_itemno'), 'key' => 'oi_itemno', 'width' => 95, 'linked' => false,], |
|
117 | - ['title' => HardcodedText::get('shopadmin_list_itemname'), 'key' => 'oi_itemname', 'width' => 350, 'linked' => false,], |
|
118 | - ['title' => HardcodedText::get('shopadmin_list_itemamount'), 'key' => 'oi_amount', 'width' => 50, 'linked' => false, 'style-data' => 'text-align: center;',], |
|
119 | - ['title' => HardcodedText::get('shopadmin_list_itemnetto'), 'key' => 'oi_price_netto', 'width' => 70, 'linked' => false,], |
|
120 | - ['title' => HardcodedText::get('shopadmin_list_itemsumnetto'), 'key' => 'ges_netto', 'width' => 75, 'linked' => false,], |
|
116 | + ['title' => HardcodedText::get('shopadmin_list_itemno'), 'key' => 'oi_itemno', 'width' => 95, 'linked' => false, ], |
|
117 | + ['title' => HardcodedText::get('shopadmin_list_itemname'), 'key' => 'oi_itemname', 'width' => 350, 'linked' => false, ], |
|
118 | + ['title' => HardcodedText::get('shopadmin_list_itemamount'), 'key' => 'oi_amount', 'width' => 50, 'linked' => false, 'style-data' => 'text-align: center;', ], |
|
119 | + ['title' => HardcodedText::get('shopadmin_list_itemnetto'), 'key' => 'oi_price_netto', 'width' => 70, 'linked' => false, ], |
|
120 | + ['title' => HardcodedText::get('shopadmin_list_itemsumnetto'), 'key' => 'ges_netto', 'width' => 75, 'linked' => false, ], |
|
121 | 121 | ], |
122 | 122 | ]; |
123 | 123 | |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | $sZahlungsmethode = '<span style="color: red;">'; |
222 | 222 | } |
223 | 223 | $mZahlungsmethode = $this->serviceManager->get('textcats')->T("order_paymentmethod_".$aRow["o_paymentmethod"], true); |
224 | - if ($mZahlungsmethode ) { |
|
224 | + if ($mZahlungsmethode) { |
|
225 | 225 | $sZahlungsmethode .= $mZahlungsmethode; |
226 | 226 | } else { |
227 | 227 | $sZahlungsmethode .= ucwords($aRow["o_paymentmethod"]); |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | ]; |
266 | 266 | if (!($aRow["o_ordercompleted"] == 's' && $bIgnoreStorno)) { |
267 | 267 | $fGesamtnetto += $aRow["o_sumnettoall"]; |
268 | - $j ++; |
|
268 | + $j++; |
|
269 | 269 | } else { |
270 | 270 | $k++; |
271 | 271 | } |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | if ($iRows > 0) { |
129 | 129 | $aErr["itemnoalreadytaken"] = true; |
130 | 130 | } else { |
131 | - $aData = ['itm_no' => trim(\filter_input(INPUT_POST, 'itemno', FILTER_SANITIZE_SPECIAL_CHARS)),]; |
|
131 | + $aData = ['itm_no' => trim(\filter_input(INPUT_POST, 'itemno', FILTER_SANITIZE_SPECIAL_CHARS)), ]; |
|
132 | 132 | $sql = DBTools::buildInsertQuery($aData, 'item_base'); |
133 | 133 | $this->db->exec($sql); |
134 | 134 | $iInsertID = $this->db->lastInsertId(); |
@@ -229,10 +229,10 @@ discard block |
||
229 | 229 | private function admin_prepareItemlist($aItemlist) |
230 | 230 | { |
231 | 231 | $aList = [ |
232 | - ['title' => HardcodedText::get('itemadmin_list_active'), 'key' => 'itemindex', 'width' => 30, 'linked' => false, 'callback' => 'renderItemStatusIcon',], |
|
233 | - ['title' => HardcodedText::get('itemadmin_list_itemno'), 'key' => 'itemno', 'width' => 100, 'linked' => false,], |
|
234 | - ['title' => HardcodedText::get('itemadmin_list_name'), 'key' => 'name', 'width' => 350, 'linked' => false,], |
|
235 | - ['title' => HardcodedText::get('itemadmin_list_edit'), 'key' => 'itemno', 'width' => 30, 'linked' => true, 'ltarget' => '/_admin/itemadmin.html', 'lkeyname' => 'itemno', 'lgetvars' => ['action' => 'showitem'],], |
|
232 | + ['title' => HardcodedText::get('itemadmin_list_active'), 'key' => 'itemindex', 'width' => 30, 'linked' => false, 'callback' => 'renderItemStatusIcon', ], |
|
233 | + ['title' => HardcodedText::get('itemadmin_list_itemno'), 'key' => 'itemno', 'width' => 100, 'linked' => false, ], |
|
234 | + ['title' => HardcodedText::get('itemadmin_list_name'), 'key' => 'name', 'width' => 350, 'linked' => false, ], |
|
235 | + ['title' => HardcodedText::get('itemadmin_list_edit'), 'key' => 'itemno', 'width' => 30, 'linked' => true, 'ltarget' => '/_admin/itemadmin.html', 'lkeyname' => 'itemno', 'lgetvars' => ['action' => 'showitem'], ], |
|
236 | 236 | ]; |
237 | 237 | $aData = []; |
238 | 238 | foreach ($aItemlist["data"] as $aValue) { |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | private function admin_prepareItem($aItemdata) |
289 | 289 | { |
290 | 290 | $aData = [ |
291 | - 'form' => ['action' => Tools::makeLinkHRefWithAddedGetVars('/_admin/itemadmin.html', ['action' => 'showitem', 'itemno' => $aItemdata["base"]['itm_no']]),], |
|
291 | + 'form' => ['action' => Tools::makeLinkHRefWithAddedGetVars('/_admin/itemadmin.html', ['action' => 'showitem', 'itemno' => $aItemdata["base"]['itm_no']]), ], |
|
292 | 292 | 'id' => $aItemdata["base"]['itm_id'], |
293 | 293 | 'itemno' => $aItemdata["base"]['itm_no'], |
294 | 294 | 'name' => $aItemdata["base"]['itm_name'], |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | $aGroups = $this->admin_getItemgroups(''); |
320 | 320 | $aData["groupoptions"][] = ''; |
321 | 321 | foreach ($aGroups as $aValue) { |
322 | - $aData["groupoptions"][] = $aValue['itmg_id'] . '|' . $aValue['itmg_no'] . ' - ' . $aValue['itmg_name']; |
|
322 | + $aData["groupoptions"][] = $aValue['itmg_id'].'|'.$aValue['itmg_no'].' - '.$aValue['itmg_name']; |
|
323 | 323 | } |
324 | 324 | unset($aGroups); |
325 | 325 | |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | $sql = DBTools::buildPSUpdateQuery($aData, 'item_base', 'itm_id'); |
362 | 362 | $hResult = $this->db->prepare($sql); |
363 | 363 | foreach ($aData as $sKey => $sValue) { |
364 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
364 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
365 | 365 | } |
366 | 366 | $hResult->execute(); |
367 | 367 | if (isset($this->post["textid"])) { |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | $sql = DBTools::buildPSUpdateQuery($aData, 'item_lang', 'itml_id'); |
375 | 375 | $hResult = $this->db->prepare($sql); |
376 | 376 | foreach ($aData as $sKey => $sValue) { |
377 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
377 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
378 | 378 | } |
379 | 379 | $hResult->execute(); |
380 | 380 | } |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | $aData['itm_vatid'] = 'full'; |
208 | 208 | } |
209 | 209 | |
210 | - if(is_numeric($aData['itm_price']) && (float) $aData['itm_price'] > 0) { |
|
210 | + if (is_numeric($aData['itm_price']) && (float) $aData['itm_price'] > 0) { |
|
211 | 211 | $aPrice["netto_list"] = $aData['itm_price']; |
212 | 212 | $aPrice['brutto_list'] = $this->addVat($aPrice['netto_list'], HelperConfig::$shop['vat'][$aData['itm_vatid']]); |
213 | 213 | if ( |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | bcdiv( |
231 | 231 | bcsub( |
232 | 232 | '100', |
233 | - (string)HelperConfig::$shop["rebate_groups"][$aData['itm_rg']][CHelper::getUserData('cust_group')] |
|
233 | + (string) HelperConfig::$shop["rebate_groups"][$aData['itm_rg']][CHelper::getUserData('cust_group')] |
|
234 | 234 | ), |
235 | 235 | '100' |
236 | 236 | ) |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | bcdiv( |
263 | 263 | bcmul( |
264 | 264 | $price, |
265 | - (string)$vat |
|
265 | + (string) $vat |
|
266 | 266 | ), |
267 | 267 | '100' |
268 | 268 | ), |
@@ -102,11 +102,11 @@ discard block |
||
102 | 102 | } |
103 | 103 | |
104 | 104 | if ($aOrder["iMindergebuehr_id"] > 0) { |
105 | - $aOrder["fVoll"] += HelperConfig::$shop["reducedorderamountfee" . $aOrder["iMindergebuehr_id"]]; |
|
106 | - $aOrder["fGesamtnetto"] += HelperConfig::$shop["reducedorderamountfee" . $aOrder["iMindergebuehr_id"]]; |
|
105 | + $aOrder["fVoll"] += HelperConfig::$shop["reducedorderamountfee".$aOrder["iMindergebuehr_id"]]; |
|
106 | + $aOrder["fGesamtnetto"] += HelperConfig::$shop["reducedorderamountfee".$aOrder["iMindergebuehr_id"]]; |
|
107 | 107 | $aOrder["fSteuervoll"] = $aOrder["fVoll"] * $iVATfull / 100; |
108 | 108 | $aOrder["fGesamtbrutto"] = $aOrder["fGesamtnetto"] + $aOrder["fSteuervoll"] + $aOrder["fSteuererm"]; |
109 | - $aOrder["fMindergebuehr"] = HelperConfig::$shop["reducedorderamountfee" . $aOrder["iMindergebuehr_id"]]; |
|
109 | + $aOrder["fMindergebuehr"] = HelperConfig::$shop["reducedorderamountfee".$aOrder["iMindergebuehr_id"]]; |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | $aOrder["fVersandkosten"] = 0; |
@@ -408,12 +408,12 @@ discard block |
||
408 | 408 | } |
409 | 409 | // because array_rand will change numerical (string) values to integer, we have to do this awkward dance |
410 | 410 | foreach ($keysAddSuggsTMP as $key => $item) { |
411 | - $keysAddSuggs[] = (string)$item; |
|
411 | + $keysAddSuggs[] = (string) $item; |
|
412 | 412 | } |
413 | 413 | |
414 | 414 | // iterate suggestions and remove those that which will not be kept |
415 | 415 | foreach ($suggestions['additional'] as $addSuggsKey => $addSuggsVal) { |
416 | - if (!in_array((string)$addSuggsKey, $keysAddSuggs, true)) { |
|
416 | + if (!in_array((string) $addSuggsKey, $keysAddSuggs, true)) { |
|
417 | 417 | unset($suggestions['additional'][$addSuggsKey]); |
418 | 418 | } |
419 | 419 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | $this->setupHardcodedTextcats(); |
32 | 32 | |
33 | - $this->serviceManager->setFactory('db', function () { |
|
33 | + $this->serviceManager->setFactory('db', function() { |
|
34 | 34 | return null; |
35 | 35 | }); |
36 | 36 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $this->setupTwig(); |
44 | 44 | |
45 | 45 | if (HelperConfig::$core["enable_module_shop"]) { |
46 | - $this->serviceManager->setFactory('oItem', function (ServiceManager $serviceManager) { |
|
46 | + $this->serviceManager->setFactory('oItem', function(ServiceManager $serviceManager) { |
|
47 | 47 | return new \HaaseIT\HCSF\Shop\Items($serviceManager); |
48 | 48 | }); |
49 | 49 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | { |
57 | 57 | // PSR-7 Stuff |
58 | 58 | // Init request object |
59 | - $this->serviceManager->setFactory('request', function () { |
|
59 | + $this->serviceManager->setFactory('request', function() { |
|
60 | 60 | $request = \Zend\Diactoros\ServerRequestFactory::fromGlobals(); |
61 | 61 | |
62 | 62 | // cleanup request |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | // session.use_trans_sid wenn nötig aktivieren |
77 | 77 | ini_set('session.use_only_cookies', 0); |
78 | 78 | session_name('sid'); |
79 | - if(ini_get('session.use_trans_sid') == 1) { |
|
79 | + if (ini_get('session.use_trans_sid') == 1) { |
|
80 | 80 | ini_set('session.use_trans_sid', 0); |
81 | 81 | } |
82 | 82 | // Session wenn nötig starten |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | |
121 | 121 | protected function setupDB() |
122 | 122 | { |
123 | - $this->serviceManager->setFactory('dbal', function () { |
|
123 | + $this->serviceManager->setFactory('dbal', function() { |
|
124 | 124 | $config = new \Doctrine\DBAL\Configuration(); |
125 | 125 | |
126 | 126 | $connectionParams = [ |
@@ -141,14 +141,14 @@ discard block |
||
141 | 141 | return \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config); |
142 | 142 | }); |
143 | 143 | |
144 | - $this->serviceManager->setFactory('db', function (ServiceManager $serviceManager) { |
|
144 | + $this->serviceManager->setFactory('db', function(ServiceManager $serviceManager) { |
|
145 | 145 | return $serviceManager->get('dbal')->getWrappedConnection(); |
146 | 146 | }); |
147 | 147 | } |
148 | 148 | |
149 | 149 | protected function setupTextcats() |
150 | 150 | { |
151 | - $this->serviceManager->setFactory('textcats', function (ServiceManager $serviceManager) { |
|
151 | + $this->serviceManager->setFactory('textcats', function(ServiceManager $serviceManager) { |
|
152 | 152 | $langavailable = HelperConfig::$core["lang_available"]; |
153 | 153 | $textcats = new \HaaseIT\Toolbox\Textcat( |
154 | 154 | HelperConfig::$lang, |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | |
166 | 166 | protected function setupTwig() |
167 | 167 | { |
168 | - $this->serviceManager->setFactory('twig', function (ServiceManager $serviceManager) { |
|
168 | + $this->serviceManager->setFactory('twig', function(ServiceManager $serviceManager) { |
|
169 | 169 | $loader = new \Twig_Loader_Filesystem([PATH_BASEDIR.'customviews', HCSF_BASEDIR.'src/views/']); |
170 | 170 | |
171 | 171 | $twig_options = [ |
@@ -49,8 +49,8 @@ discard block |
||
49 | 49 | $aData = $this->textcats->getCompleteTextcatForCurrentLang(); |
50 | 50 | |
51 | 51 | $aListSetting = [ |
52 | - ['title' => HardcodedText::get('textcatadmin_list_title_key'), 'key' => 'tc_key', 'width' => '20%', 'linked' => false,], |
|
53 | - ['title' => HardcodedText::get('textcatadmin_list_title_text'), 'key' => 'tcl_text', 'width' => '80%', 'linked' => false, 'escapehtmlspecialchars' => true,], |
|
52 | + ['title' => HardcodedText::get('textcatadmin_list_title_key'), 'key' => 'tc_key', 'width' => '20%', 'linked' => false, ], |
|
53 | + ['title' => HardcodedText::get('textcatadmin_list_title_text'), 'key' => 'tcl_text', 'width' => '80%', 'linked' => false, 'escapehtmlspecialchars' => true, ], |
|
54 | 54 | [ |
55 | 55 | 'title' => HardcodedText::get('textcatadmin_list_title_edit'), |
56 | 56 | 'key' => 'tc_id', |
@@ -112,8 +112,8 @@ discard block |
||
112 | 112 | |
113 | 113 | if ($iArchivedRows > 0) { |
114 | 114 | $aListSetting = [ |
115 | - ['title' => 'tcla_timestamp', 'key' => 'tcla_timestamp', 'width' => '15%', 'linked' => false,], |
|
116 | - ['title' => 'tcl_text', 'key' => 'tcl_text', 'width' => '85%', 'linked' => false, 'escapehtmlspecialchars' => true,], |
|
115 | + ['title' => 'tcla_timestamp', 'key' => 'tcla_timestamp', 'width' => '15%', 'linked' => false, ], |
|
116 | + ['title' => 'tcl_text', 'key' => 'tcl_text', 'width' => '85%', 'linked' => false, 'escapehtmlspecialchars' => true, ], |
|
117 | 117 | ]; |
118 | 118 | $aData = $statement->fetchAll(); |
119 | 119 | $this->P->cb_customdata['archived_list'] = Tools::makeListtable($aListSetting, |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $postdata = ''; |
76 | 76 | |
77 | 77 | foreach ($_POST as $i => $v) { |
78 | - $postdata .= $i . '=' . urlencode($v) . '&'; |
|
78 | + $postdata .= $i.'='.urlencode($v).'&'; |
|
79 | 79 | } |
80 | 80 | $postdata .= 'cmd=_notify-validate'; |
81 | 81 | $web = parse_url(HelperConfig::$shop["paypal"]["url"]); |
@@ -87,15 +87,15 @@ discard block |
||
87 | 87 | $web['port'] = 80; |
88 | 88 | $ssl = ''; |
89 | 89 | } |
90 | - $fp = @fsockopen($ssl . $web['host'], $web['port'], $errnum, $errstr, 30); |
|
90 | + $fp = @fsockopen($ssl.$web['host'], $web['port'], $errnum, $errstr, 30); |
|
91 | 91 | |
92 | 92 | if ($fp) { |
93 | - fwrite($fp, "POST " . $web['path'] . " HTTP/1.1\r\n"); |
|
94 | - fwrite($fp, "Host: " . $web['host'] . "\r\n"); |
|
93 | + fwrite($fp, "POST ".$web['path']." HTTP/1.1\r\n"); |
|
94 | + fwrite($fp, "Host: ".$web['host']."\r\n"); |
|
95 | 95 | fwrite($fp, "Content-type: application/x-www-form-urlencoded\r\n"); |
96 | - fwrite($fp, "Content-length: " . strlen($postdata) . "\r\n"); |
|
96 | + fwrite($fp, "Content-length: ".strlen($postdata)."\r\n"); |
|
97 | 97 | fwrite($fp, "Connection: close\r\n\r\n"); |
98 | - fwrite($fp, $postdata . "\r\n\r\n"); |
|
98 | + fwrite($fp, $postdata."\r\n\r\n"); |
|
99 | 99 | |
100 | 100 | $info = []; |
101 | 101 | while (!feof($fp)) { |
@@ -105,9 +105,9 @@ discard block |
||
105 | 105 | $info = implode(',', $info); |
106 | 106 | if (!(strpos($info, 'VERIFIED') === false)) { |
107 | 107 | |
108 | - $sLogData .= "-- new entry - " . date(HelperConfig::$core['locale_format_date_time']) . " --\n\n"; |
|
108 | + $sLogData .= "-- new entry - ".date(HelperConfig::$core['locale_format_date_time'])." --\n\n"; |
|
109 | 109 | $sLogData .= "W00T!\n\n"; |
110 | - $sLogData .= \HaaseIT\Toolbox\Tools::debug($_REQUEST, '', true, true) . "\n\n"; |
|
110 | + $sLogData .= \HaaseIT\Toolbox\Tools::debug($_REQUEST, '', true, true)."\n\n"; |
|
111 | 111 | |
112 | 112 | // Check if the transaction id has been used before |
113 | 113 | $queryBuilder = $this->dbal->createQueryBuilder(); |
@@ -138,27 +138,27 @@ discard block |
||
138 | 138 | ; |
139 | 139 | $queryBuilder->execute(); |
140 | 140 | |
141 | - $sLogData .= "-- Alles ok. Zahlung erfolgreich. TXNID: " . $_REQUEST["txn_id"] . " --\n\n"; |
|
141 | + $sLogData .= "-- Alles ok. Zahlung erfolgreich. TXNID: ".$_REQUEST["txn_id"]." --\n\n"; |
|
142 | 142 | } else { |
143 | 143 | $sLogData .= "-- In my country we have problem; Problem is evaluation. Throw the data down the log!\n"; |
144 | - $sLogData .= "mc_gross: " . $_REQUEST["mc_gross"] . ' - number_format($fGesamtbrutto, 2, \'.\', \'\'): ' . number_format($fGesamtbrutto, |
|
145 | - 2, '.', '') . "\n"; |
|
146 | - $sLogData .= "custom: " . $_REQUEST["custom"] . ' - $aOrder[\'o_id\']: ' . $aOrder['o_id'] . "\n"; |
|
147 | - $sLogData .= "payment_status: " . $_REQUEST["payment_status"] . "\n"; |
|
148 | - $sLogData .= "mc_currency: " . $_REQUEST["mc_currency"] . ' - HelperConfig::$shop["paypal"]["currency_id"]: ' . HelperConfig::$shop["paypal"]["currency_id"] . "\n"; |
|
149 | - $sLogData .= "business: " . $_REQUEST["receiver_email"] . ' - HelperConfig::$shop["paypal"]["business"]: ' . HelperConfig::$shop["paypal"]["business"] . "\n\n"; |
|
144 | + $sLogData .= "mc_gross: ".$_REQUEST["mc_gross"].' - number_format($fGesamtbrutto, 2, \'.\', \'\'): '.number_format($fGesamtbrutto, |
|
145 | + 2, '.', '')."\n"; |
|
146 | + $sLogData .= "custom: ".$_REQUEST["custom"].' - $aOrder[\'o_id\']: '.$aOrder['o_id']."\n"; |
|
147 | + $sLogData .= "payment_status: ".$_REQUEST["payment_status"]."\n"; |
|
148 | + $sLogData .= "mc_currency: ".$_REQUEST["mc_currency"].' - HelperConfig::$shop["paypal"]["currency_id"]: '.HelperConfig::$shop["paypal"]["currency_id"]."\n"; |
|
149 | + $sLogData .= "business: ".$_REQUEST["receiver_email"].' - HelperConfig::$shop["paypal"]["business"]: '.HelperConfig::$shop["paypal"]["business"]."\n\n"; |
|
150 | 150 | } |
151 | 151 | } else { |
152 | 152 | // INVALID LOGGING ERROR |
153 | - $sLogData .= "-- new entry - " . date(HelperConfig::$core['locale_format_date_time']) . " --\n\nPHAIL\n\n"; |
|
154 | - $sLogData .= "!!! JEMAND HAT EINE ALTE TXN_ID BENUTZT: " . $_REQUEST["txn_id"] . " !!!\n\n"; |
|
153 | + $sLogData .= "-- new entry - ".date(HelperConfig::$core['locale_format_date_time'])." --\n\nPHAIL\n\n"; |
|
154 | + $sLogData .= "!!! JEMAND HAT EINE ALTE TXN_ID BENUTZT: ".$_REQUEST["txn_id"]." !!!\n\n"; |
|
155 | 155 | $sLogData .= "!!! INVALID !!!\n\n"; |
156 | 156 | } |
157 | 157 | } else { |
158 | - $sLogData .= "-- new entry - " . date(HelperConfig::$core['locale_format_date_time']) . " --\n\nPHAIL - Transaktion fehlgeschlagen. TXNID: " . $_REQUEST["txn_id"] . "\n" . $info . "\n\n"; |
|
158 | + $sLogData .= "-- new entry - ".date(HelperConfig::$core['locale_format_date_time'])." --\n\nPHAIL - Transaktion fehlgeschlagen. TXNID: ".$_REQUEST["txn_id"]."\n".$info."\n\n"; |
|
159 | 159 | } |
160 | 160 | |
161 | - file_put_contents(PATH_LOGS . FILE_PAYPALLOG, $sLogData, FILE_APPEND); |
|
161 | + file_put_contents(PATH_LOGS.FILE_PAYPALLOG, $sLogData, FILE_APPEND); |
|
162 | 162 | } |
163 | 163 | } |
164 | 164 |
@@ -223,11 +223,11 @@ |
||
223 | 223 | |
224 | 224 | if ($iArchivedRows > 0) { |
225 | 225 | $aListSetting = [ |
226 | - ['title' => 'cla_timestamp', 'key' => 'cla_timestamp', 'width' => '15%', 'linked' => false,], |
|
227 | - ['title' => 'cl_html', 'key' => 'cl_html', 'width' => '40%', 'linked' => false, 'escapehtmlspecialchars' => true,], |
|
228 | - ['title' => 'cl_keywords', 'key' => 'cl_keywords', 'width' => '15%', 'linked' => false, 'escapehtmlspecialchars' => true,], |
|
229 | - ['title' => 'cl_description', 'key' => 'cl_description', 'width' => '15%', 'linked' => false, 'escapehtmlspecialchars' => true,], |
|
230 | - ['title' => 'cl_title', 'key' => 'cl_title', 'width' => '15%', 'linked' => false, 'escapehtmlspecialchars' => true,], |
|
226 | + ['title' => 'cla_timestamp', 'key' => 'cla_timestamp', 'width' => '15%', 'linked' => false, ], |
|
227 | + ['title' => 'cl_html', 'key' => 'cl_html', 'width' => '40%', 'linked' => false, 'escapehtmlspecialchars' => true, ], |
|
228 | + ['title' => 'cl_keywords', 'key' => 'cl_keywords', 'width' => '15%', 'linked' => false, 'escapehtmlspecialchars' => true, ], |
|
229 | + ['title' => 'cl_description', 'key' => 'cl_description', 'width' => '15%', 'linked' => false, 'escapehtmlspecialchars' => true, ], |
|
230 | + ['title' => 'cl_title', 'key' => 'cl_title', 'width' => '15%', 'linked' => false, 'escapehtmlspecialchars' => true, ], |
|
231 | 231 | ]; |
232 | 232 | $aData = $statement->fetchAll(); |
233 | 233 | $this->P->cb_customdata['archived_list'] = \HaaseIT\Toolbox\Tools::makeListtable( |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | unset($sTMP); |
78 | 78 | |
79 | 79 | if (isset($_REQUEST[$sValue]) && in_array($_REQUEST[$sValue], $aOptions)) { |
80 | - $sCartKey .= '|' . $sValue . ':' . $_REQUEST[$sValue]; |
|
80 | + $sCartKey .= '|'.$sValue.':'.$_REQUEST[$sValue]; |
|
81 | 81 | } else { |
82 | 82 | $this->replyToCartUpdate('requiredfieldmissing'); |
83 | 83 | } |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | } |
138 | 138 | echo $this->serviceManager->get('twig')->render('shop/update-cart.twig', $aAR); |
139 | 139 | } else { |
140 | - $aMSG["msg"] = $sReply; |
|
140 | + $aMSG["msg"] = $sReply; |
|
141 | 141 | if (count($aMore)) { |
142 | 142 | $aMSG = array_merge($aMSG, $aMore); |
143 | 143 | } |