@@ -213,7 +213,7 @@ |
||
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | /** |
| 216 | - * @return mixed |
|
| 216 | + * @return ServiceManager |
|
| 217 | 217 | */ |
| 218 | 218 | public function getServiceManager() |
| 219 | 219 | { |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | $this->setupHardcodedTextcats(); |
| 43 | 43 | |
| 44 | - $this->serviceManager->setFactory('db', function () { |
|
| 44 | + $this->serviceManager->setFactory('db', function() { |
|
| 45 | 45 | return null; |
| 46 | 46 | }); |
| 47 | 47 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $this->setupTwig(); |
| 55 | 55 | |
| 56 | 56 | if (HelperConfig::$core['enable_module_shop']) { |
| 57 | - $this->serviceManager->setFactory('oItem', function (ServiceManager $serviceManager) { |
|
| 57 | + $this->serviceManager->setFactory('oItem', function(ServiceManager $serviceManager) { |
|
| 58 | 58 | return new \HaaseIT\HCSF\Shop\Items($serviceManager); |
| 59 | 59 | }); |
| 60 | 60 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | { |
| 68 | 68 | // PSR-7 Stuff |
| 69 | 69 | // Init request object |
| 70 | - $this->serviceManager->setFactory('request', function () { |
|
| 70 | + $this->serviceManager->setFactory('request', function() { |
|
| 71 | 71 | $request = \Zend\Diactoros\ServerRequestFactory::fromGlobals(); |
| 72 | 72 | |
| 73 | 73 | // cleanup request |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | // session.use_trans_sid wenn nötig aktivieren |
| 88 | 88 | ini_set('session.use_only_cookies', 0); |
| 89 | 89 | session_name('sid'); |
| 90 | - if(ini_get('session.use_trans_sid') == 1) { |
|
| 90 | + if (ini_get('session.use_trans_sid') == 1) { |
|
| 91 | 91 | ini_set('session.use_trans_sid', 0); |
| 92 | 92 | } |
| 93 | 93 | // Session wenn nötig starten |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | |
| 132 | 132 | protected function setupDB() |
| 133 | 133 | { |
| 134 | - $this->serviceManager->setFactory('dbal', function () { |
|
| 134 | + $this->serviceManager->setFactory('dbal', function() { |
|
| 135 | 135 | $config = new \Doctrine\DBAL\Configuration(); |
| 136 | 136 | |
| 137 | 137 | $connectionParams = [ |
@@ -152,14 +152,14 @@ discard block |
||
| 152 | 152 | return \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config); |
| 153 | 153 | }); |
| 154 | 154 | |
| 155 | - $this->serviceManager->setFactory('db', function (ServiceManager $serviceManager) { |
|
| 155 | + $this->serviceManager->setFactory('db', function(ServiceManager $serviceManager) { |
|
| 156 | 156 | return $serviceManager->get('dbal')->getWrappedConnection(); |
| 157 | 157 | }); |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | protected function setupTextcats() |
| 161 | 161 | { |
| 162 | - $this->serviceManager->setFactory('textcats', function (ServiceManager $serviceManager) { |
|
| 162 | + $this->serviceManager->setFactory('textcats', function(ServiceManager $serviceManager) { |
|
| 163 | 163 | $langavailable = HelperConfig::$core['lang_available']; |
| 164 | 164 | $textcats = new \HaaseIT\Toolbox\Textcat( |
| 165 | 165 | HelperConfig::$lang, |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | |
| 177 | 177 | protected function setupTwig() |
| 178 | 178 | { |
| 179 | - $this->serviceManager->setFactory('twig', function (ServiceManager $serviceManager) { |
|
| 179 | + $this->serviceManager->setFactory('twig', function(ServiceManager $serviceManager) { |
|
| 180 | 180 | $loader = new \Twig_Loader_Filesystem([PATH_BASEDIR.'customviews', HCSF_BASEDIR.'src/views/']); |
| 181 | 181 | |
| 182 | 182 | $twig_options = [ |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | } |
| 302 | 302 | |
| 303 | 303 | $aP['countrylist'][] = ' | '; |
| 304 | - foreach (HelperConfig::$countries['countries_' .HelperConfig::$lang] as $sKey => $sValue) { |
|
| 304 | + foreach (HelperConfig::$countries['countries_'.HelperConfig::$lang] as $sKey => $sValue) { |
|
| 305 | 305 | $aP['countrylist'][] = $sKey.'|'.$sValue; |
| 306 | 306 | } |
| 307 | 307 | |
@@ -57,11 +57,11 @@ discard block |
||
| 57 | 57 | $this->P->cb_subnav = 'admin'; |
| 58 | 58 | |
| 59 | 59 | $CUA = [ |
| 60 | - ['title' => HardcodedText::get('customeradmin_list_no'), 'key' => 'cust_no', 'width' => '16%', 'linked' => false,'stylehead' => 'text-align: left;',], |
|
| 61 | - ['title' => HardcodedText::get('customeradmin_list_company'), 'key' => 'cust_corp', 'width' => '16%', 'linked' => false,'stylehead' => 'text-align: left;',], |
|
| 62 | - ['title' => HardcodedText::get('customeradmin_list_name'), 'key' => 'cust_name', 'width' => '16%', 'linked' => false,'stylehead' => 'text-align: left;',], |
|
| 63 | - ['title' => HardcodedText::get('customeradmin_list_town'), 'key' => 'cust_town', 'width' => '16%', 'linked' => false,'stylehead' => 'text-align: left;',], |
|
| 64 | - ['title' => HardcodedText::get('customeradmin_list_active'), 'key' => 'cust_active', 'width' => '16%', 'linked' => false,'stylehead' => 'text-align: left;',], |
|
| 60 | + ['title' => HardcodedText::get('customeradmin_list_no'), 'key' => 'cust_no', 'width' => '16%', 'linked' => false, 'stylehead' => 'text-align: left;', ], |
|
| 61 | + ['title' => HardcodedText::get('customeradmin_list_company'), 'key' => 'cust_corp', 'width' => '16%', 'linked' => false, 'stylehead' => 'text-align: left;', ], |
|
| 62 | + ['title' => HardcodedText::get('customeradmin_list_name'), 'key' => 'cust_name', 'width' => '16%', 'linked' => false, 'stylehead' => 'text-align: left;', ], |
|
| 63 | + ['title' => HardcodedText::get('customeradmin_list_town'), 'key' => 'cust_town', 'width' => '16%', 'linked' => false, 'stylehead' => 'text-align: left;', ], |
|
| 64 | + ['title' => HardcodedText::get('customeradmin_list_active'), 'key' => 'cust_active', 'width' => '16%', 'linked' => false, 'stylehead' => 'text-align: left;', ], |
|
| 65 | 65 | [ |
| 66 | 66 | 'title' => HardcodedText::get('customeradmin_list_edit'), |
| 67 | 67 | 'key' => 'cust_id', |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | 'linked' => true, |
| 70 | 70 | 'ltarget' => '/_admin/customeradmin.html', |
| 71 | 71 | 'lkeyname' => 'id', |
| 72 | - 'lgetvars' => ['action' => 'edit',], |
|
| 72 | + 'lgetvars' => ['action' => 'edit', ], |
|
| 73 | 73 | ], |
| 74 | 74 | ]; |
| 75 | 75 | $aPData = $this->handleCustomerAdmin($CUA, $this->serviceManager->get('twig')); |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | } |
| 327 | 327 | |
| 328 | 328 | /** |
| 329 | - * @param $iInsertID |
|
| 329 | + * @param string $iInsertID |
|
| 330 | 330 | * @param $sMailbody_us |
| 331 | 331 | * @param $sMailbody_they |
| 332 | 332 | * @param $aImagesToSend |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | } |
| 376 | 376 | |
| 377 | 377 | /** |
| 378 | - * @param $field |
|
| 378 | + * @param string $field |
|
| 379 | 379 | * @return string |
| 380 | 380 | */ |
| 381 | 381 | private function getPostValue($field) |
@@ -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 | } |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | $sql = DBTools::buildPSInsertQuery($aDataOrder, 'orders'); |
| 240 | 240 | $hResult = $db->prepare($sql); |
| 241 | 241 | foreach ($aDataOrder as $sKey => $sValue) { |
| 242 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 242 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 243 | 243 | } |
| 244 | 244 | $hResult->execute(); |
| 245 | 245 | $iInsertID = $db->lastInsertId(); |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | $sql = DBTools::buildPSInsertQuery($aV, 'orders_items'); |
| 275 | 275 | $hResult = $db->prepare($sql); |
| 276 | 276 | foreach ($aV as $sKey => $sValue) { |
| 277 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 277 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 278 | 278 | } |
| 279 | 279 | $hResult->execute(); |
| 280 | 280 | } |
@@ -312,15 +312,15 @@ discard block |
||
| 312 | 312 | && array_search('paypal', HelperConfig::$shop['paymentmethods']) !== false |
| 313 | 313 | && HelperConfig::$shop['paypal_interactive'] |
| 314 | 314 | ) { |
| 315 | - $redirectto = '/_misc/paypal.html?id=' . $iInsertID; |
|
| 315 | + $redirectto = '/_misc/paypal.html?id='.$iInsertID; |
|
| 316 | 316 | } elseif ( |
| 317 | 317 | isset($this->post['paymentmethod']) |
| 318 | 318 | && $this->post['paymentmethod'] === 'sofortueberweisung' |
| 319 | 319 | && array_search('sofortueberweisung', HelperConfig::$shop['paymentmethods']) !== false |
| 320 | 320 | ) { |
| 321 | - $redirectto = '/_misc/sofortueberweisung.html?id=' . $iInsertID; |
|
| 321 | + $redirectto = '/_misc/sofortueberweisung.html?id='.$iInsertID; |
|
| 322 | 322 | } else { |
| 323 | - $redirectto = '/_misc/checkedout.html?id=' . $iInsertID; |
|
| 323 | + $redirectto = '/_misc/checkedout.html?id='.$iInsertID; |
|
| 324 | 324 | } |
| 325 | 325 | \HaaseIT\HCSF\Helper::redirectToPage($redirectto); |
| 326 | 326 | } |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | private function sendCheckoutMails($iInsertID, $sMailbody_us, $sMailbody_they, $aImagesToSend) |
| 335 | 335 | { |
| 336 | 336 | if ( |
| 337 | - isset(HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' .HelperConfig::$lang]) |
|
| 337 | + isset(HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_'.HelperConfig::$lang]) |
|
| 338 | 338 | && file_exists( |
| 339 | 339 | PATH_DOCROOT.HelperConfig::$core['directory_emailattachments'] |
| 340 | 340 | .'/'.HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' |
@@ -343,21 +343,21 @@ discard block |
||
| 343 | 343 | ) { |
| 344 | 344 | $aFilesToSend[] = |
| 345 | 345 | PATH_DOCROOT.HelperConfig::$core['directory_emailattachments'].'/' |
| 346 | - .HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_' .HelperConfig::$lang]; |
|
| 346 | + .HelperConfig::$shop['email_orderconfirmation_attachment_cancellationform_'.HelperConfig::$lang]; |
|
| 347 | 347 | } else { |
| 348 | 348 | $aFilesToSend = []; |
| 349 | 349 | } |
| 350 | 350 | |
| 351 | 351 | Helper::mailWrapper( |
| 352 | 352 | $this->post['email'], |
| 353 | - $this->textcats->T('shoppingcart_mail_subject') . ' ' . $iInsertID, |
|
| 353 | + $this->textcats->T('shoppingcart_mail_subject').' '.$iInsertID, |
|
| 354 | 354 | $sMailbody_they, |
| 355 | 355 | $aImagesToSend, |
| 356 | 356 | $aFilesToSend |
| 357 | 357 | ); |
| 358 | 358 | Helper::mailWrapper( |
| 359 | 359 | HelperConfig::$core['email_sender'], |
| 360 | - 'Bestellung im Webshop Nr: ' . $iInsertID, |
|
| 360 | + 'Bestellung im Webshop Nr: '.$iInsertID, |
|
| 361 | 361 | $sMailbody_us, |
| 362 | 362 | $aImagesToSend |
| 363 | 363 | ); |
@@ -368,9 +368,9 @@ discard block |
||
| 368 | 368 | */ |
| 369 | 369 | private function writeCheckoutToFile($sMailbody_us) |
| 370 | 370 | { |
| 371 | - $fp = fopen(PATH_LOGS . 'shoplog_' . date('Y-m-d') . '.html', 'a'); |
|
| 371 | + $fp = fopen(PATH_LOGS.'shoplog_'.date('Y-m-d').'.html', 'a'); |
|
| 372 | 372 | // Write $somecontent to our opened file. |
| 373 | - fwrite($fp, $sMailbody_us . "\n\n-------------------------------------------------------------------------\n\n"); |
|
| 373 | + fwrite($fp, $sMailbody_us."\n\n-------------------------------------------------------------------------\n\n"); |
|
| 374 | 374 | fclose($fp); |
| 375 | 375 | } |
| 376 | 376 | |
@@ -412,9 +412,9 @@ discard block |
||
| 412 | 412 | 'country' => isset($this->post['country']) && trim($this->post['country']) != '' ? |
| 413 | 413 | ( |
| 414 | 414 | isset( |
| 415 | - HelperConfig::$countries['countries_' .HelperConfig::$lang][$this->post['country']] |
|
| 415 | + HelperConfig::$countries['countries_'.HelperConfig::$lang][$this->post['country']] |
|
| 416 | 416 | ) |
| 417 | - ? HelperConfig::$countries['countries_' .HelperConfig::$lang][$this->post['country']] |
|
| 417 | + ? HelperConfig::$countries['countries_'.HelperConfig::$lang][$this->post['country']] |
|
| 418 | 418 | : $this->post['country']) |
| 419 | 419 | : '', |
| 420 | 420 | 'remarks' => $this->getPostValue('remarks'), |
@@ -422,8 +422,8 @@ discard block |
||
| 422 | 422 | 'cancellationdisclaimer' => $this->getPostValue('cancellationdisclaimer'), |
| 423 | 423 | 'paymentmethod' => $this->getPostValue('paymentmethod'), |
| 424 | 424 | 'shippingcost' => !isset($_SESSION['shippingcost']) || $_SESSION['shippingcost'] == 0 ? false : $_SESSION['shippingcost'], |
| 425 | - 'paypallink' => isset($this->post['paymentmethod']) && $this->post['paymentmethod'] == 'paypal' ? $_SERVER['SERVER_NAME'].'/_misc/paypal.html?id='.$iId : '', |
|
| 426 | - 'sofortueberweisunglink' => isset($this->post['paymentmethod']) && $this->post['paymentmethod'] == 'sofortueberweisung' ? $_SERVER['SERVER_NAME'].'/_misc/sofortueberweisung.html?id='.$iId : '', |
|
| 425 | + 'paypallink' => isset($this->post['paymentmethod']) && $this->post['paymentmethod'] == 'paypal' ? $_SERVER['SERVER_NAME'].'/_misc/paypal.html?id='.$iId : '', |
|
| 426 | + 'sofortueberweisunglink' => isset($this->post['paymentmethod']) && $this->post['paymentmethod'] == 'sofortueberweisung' ? $_SERVER['SERVER_NAME'].'/_misc/sofortueberweisung.html?id='.$iId : '', |
|
| 427 | 427 | 'SESSION' => !$bCust ? Tools::debug($_SESSION, '$_SESSION', true, true) : '', |
| 428 | 428 | 'POST' => !$bCust ? Tools::debug($this->post, '$this->post', true, true) : '', |
| 429 | 429 | 'orderid' => $iId, |
@@ -451,15 +451,15 @@ discard block |
||
| 451 | 451 | ($this->get['msg'] === 'updated' && isset($this->get['cartkey'], $this->get['amount'])) |
| 452 | 452 | || ($this->get['msg'] === 'removed' && isset($this->get['cartkey'])) |
| 453 | 453 | ) { |
| 454 | - $return .= $this->textcats->T('shoppingcart_msg_' . $this->get['msg'] . '_1') . ' '; |
|
| 454 | + $return .= $this->textcats->T('shoppingcart_msg_'.$this->get['msg'].'_1').' '; |
|
| 455 | 455 | if (isset(HelperConfig::$shop['custom_order_fields']) && mb_strpos($this->get['cartkey'], '|') !== false) { |
| 456 | 456 | $mCartkeys = explode('|', $this->get['cartkey']); |
| 457 | 457 | foreach ($mCartkeys as $sKey => $sValue) { |
| 458 | 458 | if ($sKey == 0) { |
| 459 | - $return .= $sValue . ', '; |
|
| 459 | + $return .= $sValue.', '; |
|
| 460 | 460 | } else { |
| 461 | 461 | $TMP = explode(':', $sValue); |
| 462 | - $return .= $this->textcats->T('shoppingcart_item_' . $TMP[0]) . ' ' . $TMP[1] . ', '; |
|
| 462 | + $return .= $this->textcats->T('shoppingcart_item_'.$TMP[0]).' '.$TMP[1].', '; |
|
| 463 | 463 | unset($TMP); |
| 464 | 464 | } |
| 465 | 465 | } |
@@ -467,9 +467,9 @@ discard block |
||
| 467 | 467 | } else { |
| 468 | 468 | $return .= $this->get['cartkey']; |
| 469 | 469 | } |
| 470 | - $return.= ' ' . $this->textcats->T('shoppingcart_msg_' . $this->get['msg'] . '_2'); |
|
| 470 | + $return .= ' '.$this->textcats->T('shoppingcart_msg_'.$this->get['msg'].'_2'); |
|
| 471 | 471 | if ($this->get['msg'] == 'updated') { |
| 472 | - $return .= ' ' . $this->get['amount']; |
|
| 472 | + $return .= ' '.$this->get['amount']; |
|
| 473 | 473 | } |
| 474 | 474 | $return .= '<br><br>'; |
| 475 | 475 | } |
@@ -72,13 +72,13 @@ |
||
| 72 | 72 | .'&project_id='.HelperConfig::$shop['sofortueberweisung']['project_id'].'&amount=' |
| 73 | 73 | .number_format($fGesamtbrutto, 2, '.', '') |
| 74 | 74 | .'&currency_id='.HelperConfig::$shop['sofortueberweisung']['currency_id'].'&reason_1=' |
| 75 | - .urlencode($this->textcats->T('misc_paysofortueberweisung_ueberweisungsbetreff') . ' ').$iId; |
|
| 75 | + .urlencode($this->textcats->T('misc_paysofortueberweisung_ueberweisungsbetreff').' ').$iId; |
|
| 76 | 76 | if (HelperConfig::$shop['interactive_paymentmethods_redirect_immediately']) { |
| 77 | 77 | \HaaseIT\HCSF\Helper::redirectToPage($sPURL); |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - $this->P->oPayload->cl_html = $this->textcats->T('misc_paysofortueberweisung_greeting') . '<br><br>'; |
|
| 81 | - $this->P->oPayload->cl_html .= '<a href="' . $sPURL . '">' . $this->textcats->T('misc_paysofortueberweisung') . '</a>'; |
|
| 80 | + $this->P->oPayload->cl_html = $this->textcats->T('misc_paysofortueberweisung_greeting').'<br><br>'; |
|
| 81 | + $this->P->oPayload->cl_html .= '<a href="'.$sPURL.'">'.$this->textcats->T('misc_paysofortueberweisung').'</a>'; |
|
| 82 | 82 | } else { |
| 83 | 83 | $this->P->oPayload->cl_html = $this->textcats->T('misc_paysofortueberweisung_paymentnotavailable'); |
| 84 | 84 | } |
@@ -69,16 +69,16 @@ |
||
| 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 | 77 | \HaaseIT\HCSF\Helper::redirectToPage($sPaypalURL); |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - $this->P->oPayload->cl_html = $this->textcats->T('misc_paypaypal_greeting') . '<br><br>'; |
|
| 81 | - $this->P->oPayload->cl_html .= '<a href="' . $sPaypalURL . '">' . $this->textcats->T('misc_paypaypal') . '</a>'; |
|
| 80 | + $this->P->oPayload->cl_html = $this->textcats->T('misc_paypaypal_greeting').'<br><br>'; |
|
| 81 | + $this->P->oPayload->cl_html .= '<a href="'.$sPaypalURL.'">'.$this->textcats->T('misc_paypaypal').'</a>'; |
|
| 82 | 82 | } else { |
| 83 | 83 | $this->P->oPayload->cl_html = $this->textcats->T('misc_paypaypal_paymentnotavailable'); |
| 84 | 84 | } |
@@ -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($_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 | } |
@@ -258,10 +258,10 @@ discard block |
||
| 258 | 258 | private function admin_prepareItemlist($aItemlist) |
| 259 | 259 | { |
| 260 | 260 | $aList = [ |
| 261 | - ['title' => HardcodedText::get('itemadmin_list_active'), 'key' => 'itemindex', 'width' => 30, 'linked' => false, 'callback' => 'renderItemStatusIcon',], |
|
| 262 | - ['title' => HardcodedText::get('itemadmin_list_itemno'), 'key' => 'itemno', 'width' => 100, 'linked' => false,], |
|
| 263 | - ['title' => HardcodedText::get('itemadmin_list_name'), 'key' => 'name', 'width' => 350, 'linked' => false,], |
|
| 264 | - ['title' => HardcodedText::get('itemadmin_list_edit'), 'key' => 'itemno', 'width' => 30, 'linked' => true, 'ltarget' => '/_admin/itemadmin.html', 'lkeyname' => 'itemno', 'lgetvars' => ['action' => 'showitem'],], |
|
| 261 | + ['title' => HardcodedText::get('itemadmin_list_active'), 'key' => 'itemindex', 'width' => 30, 'linked' => false, 'callback' => 'renderItemStatusIcon', ], |
|
| 262 | + ['title' => HardcodedText::get('itemadmin_list_itemno'), 'key' => 'itemno', 'width' => 100, 'linked' => false, ], |
|
| 263 | + ['title' => HardcodedText::get('itemadmin_list_name'), 'key' => 'name', 'width' => 350, 'linked' => false, ], |
|
| 264 | + ['title' => HardcodedText::get('itemadmin_list_edit'), 'key' => 'itemno', 'width' => 30, 'linked' => true, 'ltarget' => '/_admin/itemadmin.html', 'lkeyname' => 'itemno', 'lgetvars' => ['action' => 'showitem'], ], |
|
| 265 | 265 | ]; |
| 266 | 266 | $aData = []; |
| 267 | 267 | foreach ($aItemlist['data'] as $aValue) { |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | private function admin_prepareItem($aItemdata) |
| 327 | 327 | { |
| 328 | 328 | $aData = [ |
| 329 | - 'form' => ['action' => Tools::makeLinkHRefWithAddedGetVars('/_admin/itemadmin.html', ['action' => 'showitem', 'itemno' => $aItemdata['base']['itm_no']]),], |
|
| 329 | + 'form' => ['action' => Tools::makeLinkHRefWithAddedGetVars('/_admin/itemadmin.html', ['action' => 'showitem', 'itemno' => $aItemdata['base']['itm_no']]), ], |
|
| 330 | 330 | 'id' => $aItemdata['base']['itm_id'], |
| 331 | 331 | 'itemno' => $aItemdata['base']['itm_no'], |
| 332 | 332 | 'name' => $aItemdata['base']['itm_name'], |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | $aGroups = $this->admin_getItemgroups(''); |
| 358 | 358 | $aData['groupoptions'][] = ''; |
| 359 | 359 | foreach ($aGroups as $aValue) { |
| 360 | - $aData['groupoptions'][] = $aValue['itmg_id'] . '|' . $aValue['itmg_no'] . ' - ' . $aValue['itmg_name']; |
|
| 360 | + $aData['groupoptions'][] = $aValue['itmg_id'].'|'.$aValue['itmg_no'].' - '.$aValue['itmg_name']; |
|
| 361 | 361 | } |
| 362 | 362 | unset($aGroups); |
| 363 | 363 | |