@@ -241,10 +241,10 @@ discard block |
||
241 | 241 | private function prepareItemlist($aItemlist) |
242 | 242 | { |
243 | 243 | $aList = [ |
244 | - ['title' => HardcodedText::get('itemadmin_list_active'), 'key' => 'itemindex', 'width' => 30, 'linked' => false, 'callback' => 'renderItemStatusIcon',], |
|
245 | - ['title' => HardcodedText::get('itemadmin_list_itemno'), 'key' => 'itemno', 'width' => 100, 'linked' => false,], |
|
246 | - ['title' => HardcodedText::get('itemadmin_list_name'), 'key' => 'name', 'width' => 350, 'linked' => false,], |
|
247 | - ['title' => HardcodedText::get('itemadmin_list_edit'), 'key' => 'itemno', 'width' => 30, 'linked' => true, 'ltarget' => '/_admin/itemadmin.html', 'lkeyname' => 'itemno', 'lgetvars' => ['action' => 'showitem'],], |
|
244 | + ['title' => HardcodedText::get('itemadmin_list_active'), 'key' => 'itemindex', 'width' => 30, 'linked' => false, 'callback' => 'renderItemStatusIcon', ], |
|
245 | + ['title' => HardcodedText::get('itemadmin_list_itemno'), 'key' => 'itemno', 'width' => 100, 'linked' => false, ], |
|
246 | + ['title' => HardcodedText::get('itemadmin_list_name'), 'key' => 'name', 'width' => 350, 'linked' => false, ], |
|
247 | + ['title' => HardcodedText::get('itemadmin_list_edit'), 'key' => 'itemno', 'width' => 30, 'linked' => true, 'ltarget' => '/_admin/itemadmin.html', 'lkeyname' => 'itemno', 'lgetvars' => ['action' => 'showitem'], ], |
|
248 | 248 | ]; |
249 | 249 | $aData = []; |
250 | 250 | foreach ($aItemlist['data'] as $aValue) { |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | private function prepareItem($aItemdata) |
310 | 310 | { |
311 | 311 | $aData = [ |
312 | - 'form' => ['action' => Tools::makeLinkHRefWithAddedGetVars('/_admin/itemadmin.html', ['action' => 'showitem', 'itemno' => $aItemdata['base']['itm_no']]),], |
|
312 | + 'form' => ['action' => Tools::makeLinkHRefWithAddedGetVars('/_admin/itemadmin.html', ['action' => 'showitem', 'itemno' => $aItemdata['base']['itm_no']]), ], |
|
313 | 313 | 'id' => $aItemdata['base']['itm_id'], |
314 | 314 | 'itemno' => $aItemdata['base']['itm_no'], |
315 | 315 | 'name' => $aItemdata['base']['itm_name'], |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $html .= implode("\n", |
44 | 44 | array_map( |
45 | 45 | function($i) { |
46 | - return '.phpinfodisplay '.preg_replace( '/,/', ',.phpinfodisplay ', $i ); |
|
46 | + return '.phpinfodisplay '.preg_replace('/,/', ',.phpinfodisplay ', $i); |
|
47 | 47 | }, |
48 | 48 | preg_split('/\n/', $matches[1]) |
49 | 49 | ) |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | } elseif (isset($mLogin['status']) && $mLogin['status'] === 'emailnotverified') { |
54 | 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 | 59 | $this->P->oPayload->cl_html = $textcats->T('login_fail_accountinactive').'<br>'; |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $sUser = filter_var(trim(Tools::getFormfield('user')), FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); |
84 | 84 | |
85 | 85 | $sql = 'SELECT cust_no, cust_email, cust_password, cust_active, cust_emailverified, cust_tosaccepted' |
86 | - .' FROM customer WHERE '; |
|
86 | + .' FROM customer WHERE '; |
|
87 | 87 | if ($bTryEmail) { |
88 | 88 | $sql .= '('; |
89 | 89 | } |
@@ -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 | } |
@@ -61,7 +61,7 @@ |
||
61 | 61 | $this->P->oPayload->cl_html = $this->textcats->T('denied_default'); |
62 | 62 | } else { |
63 | 63 | $sql = 'SELECT cust_email, cust_id FROM customer ' |
64 | - .'WHERE cust_emailverificationcode = :key AND cust_emailverified = \'n\''; |
|
64 | + .'WHERE cust_emailverificationcode = :key AND cust_emailverified = \'n\''; |
|
65 | 65 | /** @var \PDOStatement $hResult */ |
66 | 66 | $hResult = $this->db->prepare($sql); |
67 | 67 | $hResult->bindValue(':key', filter_input(INPUT_GET, 'key', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW), \PDO::PARAM_STR); |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | private function sendCheckoutMails($iInsertID, $sMailbody_us, $sMailbody_they) |
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,7 +315,7 @@ 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 | } |
@@ -392,9 +392,9 @@ discard block |
||
392 | 392 | 'country' => !empty($postcountry) ? |
393 | 393 | ( |
394 | 394 | isset( |
395 | - HelperConfig::$countries['countries_' .HelperConfig::$lang][$postcountry] |
|
395 | + HelperConfig::$countries['countries_'.HelperConfig::$lang][$postcountry] |
|
396 | 396 | ) |
397 | - ? HelperConfig::$countries['countries_' .HelperConfig::$lang][$postcountry] |
|
397 | + ? HelperConfig::$countries['countries_'.HelperConfig::$lang][$postcountry] |
|
398 | 398 | : $postcountry) |
399 | 399 | : '', |
400 | 400 | 'remarks' => $this->getPostValue('remarks'), |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | 'paymentmethod' => $this->getPostValue('paymentmethod'), |
404 | 404 | 'shippingcost' => empty($_SESSION['shippingcost']) ? false : $_SESSION['shippingcost'], |
405 | 405 | 'paypallink' => $postpaymentmethod === 'paypal' ? $serverservername.'/_misc/paypal.html?id='.$iId : '', |
406 | - 'sofortueberweisunglink' => $postpaymentmethod === 'sofortueberweisung' ? $serverservername.'/_misc/sofortueberweisung.html?id='.$iId : '', |
|
406 | + 'sofortueberweisunglink' => $postpaymentmethod === 'sofortueberweisung' ? $serverservername.'/_misc/sofortueberweisung.html?id='.$iId : '', |
|
407 | 407 | 'SESSION' => !$bCust ? Tools::debug($_SESSION, '$_SESSION', true, true) : '', |
408 | 408 | 'POST' => !$bCust ? Tools::debug($_POST, '$_POST', true, true) : '', |
409 | 409 | 'orderid' => $iId, |
@@ -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 | } |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | $iId = \filter_input(INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT); |
56 | 56 | $sql = 'SELECT * FROM orders ' |
57 | - ."WHERE o_id = :id AND o_paymentmethod = 'sofortueberweisung' AND o_paymentcompleted = 'n'"; |
|
57 | + ."WHERE o_id = :id AND o_paymentmethod = 'sofortueberweisung' AND o_paymentcompleted = 'n'"; |
|
58 | 58 | |
59 | 59 | /** @var \PDOStatement $hResult */ |
60 | 60 | $hResult = $this->serviceManager->get('db')->prepare($sql); |
@@ -118,12 +118,12 @@ discard block |
||
118 | 118 | } |
119 | 119 | } else { |
120 | 120 | $COList = [ |
121 | - ['title' => $this->textcats->T('order_head_orderdate'), 'key' => 'o_ordertime', 'width' => 110, 'linked' => false,], |
|
122 | - ['title' => $this->textcats->T('order_head_paymenthethod'), 'key' => 'o_paymentmethod', 'width' => 125, 'linked' => false,], |
|
123 | - ['title' => $this->textcats->T('order_head_paid'), 'key' => 'o_paymentcompleted', 'width' => 60, 'linked' => false,], |
|
124 | - ['title' => $this->textcats->T('order_head_status'), 'key' => 'o_order_status', 'width' => 80, 'linked' => false,], |
|
125 | - ['title' => $this->textcats->T('order_head_shipping_service'), 'key' => 'o_shipping_service', 'width' => 90, 'linked' => false,], |
|
126 | - ['title' => $this->textcats->T('order_head_shipping_trackingno'), 'key' => 'o_shipping_trackingno', 'width' => 130, 'linked' => false,], |
|
121 | + ['title' => $this->textcats->T('order_head_orderdate'), 'key' => 'o_ordertime', 'width' => 110, 'linked' => false, ], |
|
122 | + ['title' => $this->textcats->T('order_head_paymenthethod'), 'key' => 'o_paymentmethod', 'width' => 125, 'linked' => false, ], |
|
123 | + ['title' => $this->textcats->T('order_head_paid'), 'key' => 'o_paymentcompleted', 'width' => 60, 'linked' => false, ], |
|
124 | + ['title' => $this->textcats->T('order_head_status'), 'key' => 'o_order_status', 'width' => 80, 'linked' => false, ], |
|
125 | + ['title' => $this->textcats->T('order_head_shipping_service'), 'key' => 'o_shipping_service', 'width' => 90, 'linked' => false, ], |
|
126 | + ['title' => $this->textcats->T('order_head_shipping_trackingno'), 'key' => 'o_shipping_trackingno', 'width' => 130, 'linked' => false, ], |
|
127 | 127 | [ |
128 | 128 | 'title' => $this->textcats->T('order_show'), |
129 | 129 | 'key' => 'o_id', |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | 'linked' => true, |
132 | 132 | 'ltarget' => '/_misc/myorders.html', |
133 | 133 | 'lkeyname' => 'id', |
134 | - 'lgetvars' => ['action' => 'show',], |
|
134 | + 'lgetvars' => ['action' => 'show', ], |
|
135 | 135 | ], |
136 | 136 | ]; |
137 | 137 |
@@ -174,7 +174,7 @@ |
||
174 | 174 | } |
175 | 175 | echo $this->serviceManager->get('twig')->render('shop/update-cart.twig', $aAR); |
176 | 176 | } else { |
177 | - $aMSG['msg'] = $sReply; |
|
177 | + $aMSG['msg'] = $sReply; |
|
178 | 178 | if (count($aMore)) { |
179 | 179 | $aMSG = array_merge($aMSG, $aMore); |
180 | 180 | } |
@@ -117,7 +117,7 @@ |
||
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)) { |