| @@ -88,10 +88,10 @@ discard block | ||
| 88 | 88 | $this->P->cb_customdata['rows_textcat_lang'] = $hResult->rowCount(); | 
| 89 | 89 |          if ($this->P->cb_customdata['rows_textcat_lang'] > 0) { | 
| 90 | 90 | $aListSetting = [ | 
| 91 | - ['title' => 'tcl_id', 'key' => 'tcl_id', 'width' => '6%', 'linked' => false,], | |
| 92 | - ['title' => 'tcl_tcid', 'key' => 'tcl_tcid', 'width' => '6%', 'linked' => false,], | |
| 93 | - ['title' => 'tcl_lang', 'key' => 'tcl_lang', 'width' => '6%', 'linked' => false,], | |
| 94 | - ['title' => 'tcl_text', 'key' => 'tcl_text', 'width' => '82%', 'linked' => false, 'escapehtmlspecialchars' => true,], | |
| 91 | + ['title' => 'tcl_id', 'key' => 'tcl_id', 'width' => '6%', 'linked' => false, ], | |
| 92 | + ['title' => 'tcl_tcid', 'key' => 'tcl_tcid', 'width' => '6%', 'linked' => false, ], | |
| 93 | + ['title' => 'tcl_lang', 'key' => 'tcl_lang', 'width' => '6%', 'linked' => false, ], | |
| 94 | + ['title' => 'tcl_text', 'key' => 'tcl_text', 'width' => '82%', 'linked' => false, 'escapehtmlspecialchars' => true, ], | |
| 95 | 95 | ]; | 
| 96 | 96 | $aData = $hResult->fetchAll(); | 
| 97 | 97 | $this->P->cb_customdata['rows_textcat_lang_list'] = Tools::makeListtable( | 
| @@ -115,12 +115,12 @@ discard block | ||
| 115 | 115 | $this->P->cb_customdata['rows_textcat_lang_archive'] = $hResult->rowCount(); | 
| 116 | 116 |          if ($this->P->cb_customdata['rows_textcat_lang_archive'] > 0) { | 
| 117 | 117 | $aListSetting = [ | 
| 118 | - ['title' => 'tcla_timestamp', 'key' => 'tcla_timestamp', 'width' => '15%', 'linked' => false,], | |
| 119 | - ['title' => 'tcla_id', 'key' => 'tcla_id', 'width' => '6%', 'linked' => false,], | |
| 120 | - ['title' => 'tcl_id', 'key' => 'tcl_id', 'width' => '6%', 'linked' => false,], | |
| 121 | - ['title' => 'tcl_tcid', 'key' => 'tcl_tcid', 'width' => '6%', 'linked' => false,], | |
| 122 | - ['title' => 'tcl_lang', 'key' => 'tcl_lang', 'width' => '6%', 'linked' => false,], | |
| 123 | - ['title' => 'tcl_text', 'key' => 'tcl_text', 'width' => '61%', 'linked' => false, 'escapehtmlspecialchars' => true,], | |
| 118 | + ['title' => 'tcla_timestamp', 'key' => 'tcla_timestamp', 'width' => '15%', 'linked' => false, ], | |
| 119 | + ['title' => 'tcla_id', 'key' => 'tcla_id', 'width' => '6%', 'linked' => false, ], | |
| 120 | + ['title' => 'tcl_id', 'key' => 'tcl_id', 'width' => '6%', 'linked' => false, ], | |
| 121 | + ['title' => 'tcl_tcid', 'key' => 'tcl_tcid', 'width' => '6%', 'linked' => false, ], | |
| 122 | + ['title' => 'tcl_lang', 'key' => 'tcl_lang', 'width' => '6%', 'linked' => false, ], | |
| 123 | + ['title' => 'tcl_text', 'key' => 'tcl_text', 'width' => '61%', 'linked' => false, 'escapehtmlspecialchars' => true, ], | |
| 124 | 124 | ]; | 
| 125 | 125 | $aData = $hResult->fetchAll(); | 
| 126 | 126 | $this->P->cb_customdata['rows_textcat_lang_archive_list'] = Tools::makeListtable($aListSetting, | 
| @@ -141,13 +141,13 @@ discard block | ||
| 141 | 141 | $this->P->cb_customdata['rows_content_lang'] = $hResult->rowCount(); | 
| 142 | 142 |          if ($this->P->cb_customdata['rows_content_lang'] > 0) { | 
| 143 | 143 | $aListSetting = [ | 
| 144 | - ['title' => 'cl_id', 'key' => 'cl_id', 'width' => '6%', 'linked' => false,], | |
| 145 | - ['title' => 'cl_cb', 'key' => 'cl_cb', 'width' => '6%', 'linked' => false,], | |
| 146 | - ['title' => 'cl_lang', 'key' => 'cl_lang', 'width' => '6%', 'linked' => false,], | |
| 147 | - ['title' => 'cl_html', 'key' => 'cl_html', 'width' => '43%', 'linked' => false, 'escapehtmlspecialchars' => true,], | |
| 148 | - ['title' => 'cl_keywords', 'key' => 'cl_keywords', 'width' => '13%', 'linked' => false, 'escapehtmlspecialchars' => true,], | |
| 149 | - ['title' => 'cl_description', 'key' => 'cl_description', 'width' => '13%', 'linked' => false, 'escapehtmlspecialchars' => true,], | |
| 150 | - ['title' => 'cl_title', 'key' => 'cl_title', 'width' => '13%', 'linked' => false, 'escapehtmlspecialchars' => true,], | |
| 144 | + ['title' => 'cl_id', 'key' => 'cl_id', 'width' => '6%', 'linked' => false, ], | |
| 145 | + ['title' => 'cl_cb', 'key' => 'cl_cb', 'width' => '6%', 'linked' => false, ], | |
| 146 | + ['title' => 'cl_lang', 'key' => 'cl_lang', 'width' => '6%', 'linked' => false, ], | |
| 147 | + ['title' => 'cl_html', 'key' => 'cl_html', 'width' => '43%', 'linked' => false, 'escapehtmlspecialchars' => true, ], | |
| 148 | + ['title' => 'cl_keywords', 'key' => 'cl_keywords', 'width' => '13%', 'linked' => false, 'escapehtmlspecialchars' => true, ], | |
| 149 | + ['title' => 'cl_description', 'key' => 'cl_description', 'width' => '13%', 'linked' => false, 'escapehtmlspecialchars' => true, ], | |
| 150 | + ['title' => 'cl_title', 'key' => 'cl_title', 'width' => '13%', 'linked' => false, 'escapehtmlspecialchars' => true, ], | |
| 151 | 151 | ]; | 
| 152 | 152 | $aData = $hResult->fetchAll(); | 
| 153 | 153 | $this->P->cb_customdata['rows_content_lang_list'] = Tools::makeListtable($aListSetting, | 
| @@ -168,15 +168,15 @@ discard block | ||
| 168 | 168 | $this->P->cb_customdata['rows_content_lang_archive'] = $hResult->rowCount(); | 
| 169 | 169 |          if ($this->P->cb_customdata['rows_content_lang_archive'] > 0) { | 
| 170 | 170 | $aListSetting = [ | 
| 171 | - ['title' => 'cla_timestamp', 'key' => 'cla_timestamp', 'width' => '15%', 'linked' => false,], | |
| 172 | - ['title' => 'cla_id', 'key' => 'cla_id', 'width' => '6%', 'linked' => false,], | |
| 173 | - ['title' => 'cl_id', 'key' => 'cl_id', 'width' => '6%', 'linked' => false,], | |
| 174 | - ['title' => 'cl_cb', 'key' => 'cl_cb', 'width' => '6%', 'linked' => false,], | |
| 175 | - ['title' => 'cl_lang', 'key' => 'cl_lang', 'width' => '6%', 'linked' => false,], | |
| 176 | - ['title' => 'cl_html', 'key' => 'cl_html', 'width' => '33%', 'linked' => false, 'escapehtmlspecialchars' => true,], | |
| 177 | - ['title' => 'cl_keywords', 'key' => 'cl_keywords', 'width' => '10%', 'linked' => false, 'escapehtmlspecialchars' => true,], | |
| 178 | - ['title' => 'cl_description', 'key' => 'cl_description', 'width' => '10%', 'linked' => false, 'escapehtmlspecialchars' => true,], | |
| 179 | - ['title' => 'cl_title', 'key' => 'cl_title', 'width' => '10%', 'linked' => false, 'escapehtmlspecialchars' => true,], | |
| 171 | + ['title' => 'cla_timestamp', 'key' => 'cla_timestamp', 'width' => '15%', 'linked' => false, ], | |
| 172 | + ['title' => 'cla_id', 'key' => 'cla_id', 'width' => '6%', 'linked' => false, ], | |
| 173 | + ['title' => 'cl_id', 'key' => 'cl_id', 'width' => '6%', 'linked' => false, ], | |
| 174 | + ['title' => 'cl_cb', 'key' => 'cl_cb', 'width' => '6%', 'linked' => false, ], | |
| 175 | + ['title' => 'cl_lang', 'key' => 'cl_lang', 'width' => '6%', 'linked' => false, ], | |
| 176 | + ['title' => 'cl_html', 'key' => 'cl_html', 'width' => '33%', 'linked' => false, 'escapehtmlspecialchars' => true, ], | |
| 177 | + ['title' => 'cl_keywords', 'key' => 'cl_keywords', 'width' => '10%', 'linked' => false, 'escapehtmlspecialchars' => true, ], | |
| 178 | + ['title' => 'cl_description', 'key' => 'cl_description', 'width' => '10%', 'linked' => false, 'escapehtmlspecialchars' => true, ], | |
| 179 | + ['title' => 'cl_title', 'key' => 'cl_title', 'width' => '10%', 'linked' => false, 'escapehtmlspecialchars' => true, ], | |
| 180 | 180 | ]; | 
| 181 | 181 | $aData = $hResult->fetchAll(); | 
| 182 | 182 | $this->P->cb_customdata['rows_content_lang_archive_list'] = Tools::makeListtable($aListSetting, | 
| @@ -197,9 +197,9 @@ discard block | ||
| 197 | 197 | $this->P->cb_customdata['rows_item_lang'] = $hResult->rowCount(); | 
| 198 | 198 |          if ($this->P->cb_customdata['rows_item_lang'] > 0) { | 
| 199 | 199 | $aListSetting = [ | 
| 200 | - ['title' => 'itml_id', 'key' => 'itml_id', 'width' => '6%', 'linked' => false,], | |
| 201 | - ['title' => 'itml_pid', 'key' => 'itml_pid', 'width' => '6%', 'linked' => false,], | |
| 202 | - ['title' => 'itml_lang', 'key' => 'itml_lang', 'width' => '6%', 'linked' => false,], | |
| 200 | + ['title' => 'itml_id', 'key' => 'itml_id', 'width' => '6%', 'linked' => false, ], | |
| 201 | + ['title' => 'itml_pid', 'key' => 'itml_pid', 'width' => '6%', 'linked' => false, ], | |
| 202 | + ['title' => 'itml_lang', 'key' => 'itml_lang', 'width' => '6%', 'linked' => false, ], | |
| 203 | 203 | [ | 
| 204 | 204 | 'title' => 'itml_name_override', | 
| 205 | 205 | 'key' => 'itml_name_override', | 
| @@ -241,9 +241,9 @@ discard block | ||
| 241 | 241 | $this->P->cb_customdata['rows_itemgroups_text'] = $hResult->rowCount(); | 
| 242 | 242 |          if ($this->P->cb_customdata['rows_itemgroups_text'] > 0) { | 
| 243 | 243 | $aListSetting = [ | 
| 244 | - ['title' => 'itmgt_id', 'key' => 'itmgt_id', 'width' => '6%', 'linked' => false,], | |
| 245 | - ['title' => 'itmgt_pid', 'key' => 'itmgt_pid', 'width' => '6%', 'linked' => false,], | |
| 246 | - ['title' => 'itmgt_lang', 'key' => 'itmgt_lang', 'width' => '6%', 'linked' => false,], | |
| 244 | + ['title' => 'itmgt_id', 'key' => 'itmgt_id', 'width' => '6%', 'linked' => false, ], | |
| 245 | + ['title' => 'itmgt_pid', 'key' => 'itmgt_pid', 'width' => '6%', 'linked' => false, ], | |
| 246 | + ['title' => 'itmgt_lang', 'key' => 'itmgt_lang', 'width' => '6%', 'linked' => false, ], | |
| 247 | 247 | [ | 
| 248 | 248 | 'title' => 'itmgt_shorttext', | 
| 249 | 249 | 'key' => 'itmgt_shorttext', | 
| @@ -278,17 +278,17 @@ discard block | ||
| 278 | 278 | $this->P->cb_customdata['rows_orders_items'] = $hResult->rowCount(); | 
| 279 | 279 |          if ($this->P->cb_customdata['rows_orders_items'] > 0) { | 
| 280 | 280 | $aListSetting = [ | 
| 281 | - ['title' => 'oi_id', 'key' => 'oi_id', 'width' => '8%', 'linked' => false,], | |
| 282 | - ['title' => 'oi_o_id', 'key' => 'oi_o_id', 'width' => '9%', 'linked' => false,], | |
| 283 | - ['title' => 'oi_cartkey', 'key' => 'oi_cartkey', 'width' => '13%', 'linked' => false,], | |
| 284 | - ['title' => 'oi_amount', 'key' => 'oi_amount', 'width' => '9%', 'linked' => false,], | |
| 285 | - ['title' => 'oi_vat', 'key' => 'oi_vat', 'width' => '8%', 'linked' => false,], | |
| 286 | - ['title' => 'oi_rg', 'key' => 'oi_rg', 'width' => '8%', 'linked' => false,], | |
| 287 | - ['title' => 'oi_rg_rebate', 'key' => 'oi_rg_rebate', 'width' => '9%', 'linked' => false,], | |
| 288 | - ['title' => 'oi_price_netto_list', 'key' => 'oi_price_netto_list', 'width' => '9%', 'linked' => false,], | |
| 289 | - ['title' => 'oi_price_netto_sale', 'key' => 'oi_price_netto_sale', 'width' => '9%', 'linked' => false,], | |
| 290 | - ['title' => 'oi_price_netto_rebated', 'key' => 'oi_price_netto_rebated', 'width' => '9%', 'linked' => false,], | |
| 291 | - ['title' => 'oi_price_brutto_use', 'key' => 'oi_price_brutto_use', 'width' => '9%', 'linked' => false,], | |
| 281 | + ['title' => 'oi_id', 'key' => 'oi_id', 'width' => '8%', 'linked' => false, ], | |
| 282 | + ['title' => 'oi_o_id', 'key' => 'oi_o_id', 'width' => '9%', 'linked' => false, ], | |
| 283 | + ['title' => 'oi_cartkey', 'key' => 'oi_cartkey', 'width' => '13%', 'linked' => false, ], | |
| 284 | + ['title' => 'oi_amount', 'key' => 'oi_amount', 'width' => '9%', 'linked' => false, ], | |
| 285 | + ['title' => 'oi_vat', 'key' => 'oi_vat', 'width' => '8%', 'linked' => false, ], | |
| 286 | + ['title' => 'oi_rg', 'key' => 'oi_rg', 'width' => '8%', 'linked' => false, ], | |
| 287 | + ['title' => 'oi_rg_rebate', 'key' => 'oi_rg_rebate', 'width' => '9%', 'linked' => false, ], | |
| 288 | + ['title' => 'oi_price_netto_list', 'key' => 'oi_price_netto_list', 'width' => '9%', 'linked' => false, ], | |
| 289 | + ['title' => 'oi_price_netto_sale', 'key' => 'oi_price_netto_sale', 'width' => '9%', 'linked' => false, ], | |
| 290 | + ['title' => 'oi_price_netto_rebated', 'key' => 'oi_price_netto_rebated', 'width' => '9%', 'linked' => false, ], | |
| 291 | + ['title' => 'oi_price_brutto_use', 'key' => 'oi_price_brutto_use', 'width' => '9%', 'linked' => false, ], | |
| 292 | 292 | //['title' => 'oi_img', 'key' => 'oi_img', 'width' => '41%', 'linked' => false, 'escapehtmlspecialchars' => true,], | 
| 293 | 293 | |
| 294 | 294 | ]; | 
| @@ -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( | 
| @@ -163,12 +163,12 @@ discard block | ||
| 163 | 163 |              if (!$bEnableItemGroups || \trim($aRow['itm_group']) == 0) { | 
| 164 | 164 | $aAssembly['item'][$aRow['itm_no']] = $aRow; | 
| 165 | 165 |              } else { | 
| 166 | -                if (isset($aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']])) { | |
| 167 | - $aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']][$aRow['itm_no']] = $aRow; | |
| 166 | +                if (isset($aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']])) { | |
| 167 | + $aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']][$aRow['itm_no']] = $aRow; | |
| 168 | 168 |                  } else { | 
| 169 | - $aAssembly['item']['ITEMGROUP-' .$aRow['itm_group']]['group'] = 'ITEMGROUP-' .$aRow['itm_group']; | |
| 170 | - $aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']]['ITEMGROUP-DATA'] = $this->getGroupdata($aRow['itm_group']); | |
| 171 | - $aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']][$aRow['itm_no']] = $aRow; | |
| 169 | + $aAssembly['item']['ITEMGROUP-'.$aRow['itm_group']]['group'] = 'ITEMGROUP-'.$aRow['itm_group']; | |
| 170 | + $aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']]['ITEMGROUP-DATA'] = $this->getGroupdata($aRow['itm_group']); | |
| 171 | + $aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']][$aRow['itm_no']] = $aRow; | |
| 172 | 172 | } | 
| 173 | 173 | } | 
| 174 | 174 | } | 
| @@ -209,7 +209,7 @@ discard block | ||
| 209 | 209 | $aData['itm_vatid'] = 'full'; | 
| 210 | 210 | } | 
| 211 | 211 | |
| 212 | -        if(is_numeric($aData['itm_price']) && (float) $aData['itm_price'] > 0) { | |
| 212 | +        if (is_numeric($aData['itm_price']) && (float) $aData['itm_price'] > 0) { | |
| 213 | 213 | $aPrice['netto_list'] = $aData['itm_price']; | 
| 214 | 214 | $aPrice['brutto_list'] = $this->addVat($aPrice['netto_list'], HelperConfig::$shop['vat'][$aData['itm_vatid']]); | 
| 215 | 215 | if ( | 
| @@ -231,7 +231,7 @@ discard block | ||
| 231 | 231 | bcdiv( | 
| 232 | 232 | bcsub( | 
| 233 | 233 | '100', | 
| 234 | -                                (string)HelperConfig::$shop['rebate_groups'][$aData['itm_rg']][CHelper::getUserData('cust_group')] | |
| 234 | +                                (string) HelperConfig::$shop['rebate_groups'][$aData['itm_rg']][CHelper::getUserData('cust_group')] | |
| 235 | 235 | ), | 
| 236 | 236 | '100' | 
| 237 | 237 | ) | 
| @@ -263,7 +263,7 @@ discard block | ||
| 263 | 263 | bcdiv( | 
| 264 | 264 | bcmul( | 
| 265 | 265 | $price, | 
| 266 | - (string)$vat | |
| 266 | + (string) $vat | |
| 267 | 267 | ), | 
| 268 | 268 | '100' | 
| 269 | 269 | ), | 
| @@ -188,9 +188,9 @@ | ||
| 188 | 188 | public function getGroupdata($sGroup) | 
| 189 | 189 |      { | 
| 190 | 190 | $sql = 'SELECT '.DB_ITEMGROUPFIELDS.' FROM itemgroups_base' | 
| 191 | - .' LEFT OUTER JOIN itemgroups_text ON itemgroups_base.itmg_id = itemgroups_text.itmgt_pid' | |
| 192 | - .' AND itmgt_lang = :lang' | |
| 193 | - .' WHERE itmg_id = :group'; | |
| 191 | + .' LEFT OUTER JOIN itemgroups_text ON itemgroups_base.itmg_id = itemgroups_text.itmgt_pid' | |
| 192 | + .' AND itmgt_lang = :lang' | |
| 193 | + .' WHERE itmg_id = :group'; | |
| 194 | 194 | |
| 195 | 195 | $hResult = $this->db->prepare($sql); | 
| 196 | 196 |          $hResult->bindValue(':lang', HelperConfig::$lang, \PDO::PARAM_STR); | 
| @@ -100,7 +100,7 @@ | ||
| 100 | 100 |                              ->setParameter(':cust_email', $sEmail) | 
| 101 | 101 |                              ->setParameter(':cust_corp', filter_var(trim(Tools::getFormfield('corpname')), FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW)) | 
| 102 | 102 |                              ->setParameter(':cust_name', filter_var(trim(Tools::getFormfield('name')), FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW)) | 
| 103 | -                            ->setParameter(':cust_street', filter_var(trim(Tools::getFormfield('street')),FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW)) | |
| 103 | +                            ->setParameter(':cust_street', filter_var(trim(Tools::getFormfield('street')), FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW)) | |
| 104 | 104 |                              ->setParameter(':cust_zip', filter_var(trim(Tools::getFormfield('zip')), FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW)) | 
| 105 | 105 |                              ->setParameter(':cust_town', filter_var(trim(Tools::getFormfield('town')), FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW)) | 
| 106 | 106 |                              ->setParameter(':cust_phone', filter_var(trim(Tools::getFormfield('phone')), FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW)) | 
| @@ -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>'; | 
| @@ -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); | 
| @@ -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); |