@@ -48,7 +48,7 @@ |
||
| 48 | 48 | 'cache' => PATH_GLIDECACHE, |
| 49 | 49 | 'max_image_size' => HelperConfig::$core['glide_max_imagesize'], |
| 50 | 50 | ]); |
| 51 | - $glideserver->setBaseUrl('/' . HelperConfig::$core['directory_images'] . '/'); |
|
| 51 | + $glideserver->setBaseUrl('/'.HelperConfig::$core['directory_images'].'/'); |
|
| 52 | 52 | // Generate a URL |
| 53 | 53 | |
| 54 | 54 | try { |
@@ -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 | ]; |
@@ -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, |
@@ -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( |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | * @param $purifier |
| 161 | 161 | * @return string |
| 162 | 162 | */ |
| 163 | - private function admin_updateGroup( $purifier) |
|
| 163 | + private function admin_updateGroup($purifier) |
|
| 164 | 164 | { |
| 165 | 165 | $sql = 'SELECT * FROM itemgroups_base WHERE itmg_id != :id AND itmg_no = :gno'; |
| 166 | 166 | $hResult = $this->db->prepare($sql); |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | $sql = DBTools::buildPSUpdateQuery($aData, 'itemgroups_base', 'itmg_id'); |
| 186 | 186 | $hResult = $this->db->prepare($sql); |
| 187 | 187 | foreach ($aData as $sKey => $sValue) { |
| 188 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 188 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 189 | 189 | } |
| 190 | 190 | $hResult->execute(); |
| 191 | 191 | |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | $sql = DBTools::buildPSUpdateQuery($aData, 'itemgroups_text', 'itmgt_id'); |
| 208 | 208 | $hResult = $this->db->prepare($sql); |
| 209 | 209 | foreach ($aData as $sKey => $sValue) { |
| 210 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
| 210 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
| 211 | 211 | } |
| 212 | 212 | $hResult->execute(); |
| 213 | 213 | } |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | $aPath = explode('/', $this->sPath); |
| 88 | 88 | if (!empty($map[$this->sPath])) { |
| 89 | - $class = '\\HaaseIT\\HCSF\\Controller\\' . $map[$this->sPath]; |
|
| 89 | + $class = '\\HaaseIT\\HCSF\\Controller\\'.$map[$this->sPath]; |
|
| 90 | 90 | } else { |
| 91 | 91 | if ($aPath[1] == HelperConfig::$core['directory_images']) { |
| 92 | 92 | $class = Controller\Glide::class; |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | } else { // if it is found, go on |
| 133 | 133 | // Support for shorturls |
| 134 | 134 | if ($this->P->cb_pagetype === 'shorturl') { |
| 135 | - header('Location: ' . $this->P->cb_pageconfig, true, 302); |
|
| 135 | + header('Location: '.$this->P->cb_pageconfig, true, 302); |
|
| 136 | 136 | exit(); |
| 137 | 137 | } |
| 138 | 138 | |
@@ -149,14 +149,14 @@ discard block |
||
| 149 | 149 | $this->P->iStatus = 404; |
| 150 | 150 | |
| 151 | 151 | $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_page_not_found'); |
| 152 | - header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found'); |
|
| 152 | + header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found'); |
|
| 153 | 153 | } elseif (!is_object($this->P) && $this->P == 500) { |
| 154 | 154 | $this->P = new CorePage($this->serviceManager); |
| 155 | 155 | $this->P->cb_pagetype = 'error'; |
| 156 | 156 | $this->P->iStatus = 500; |
| 157 | 157 | |
| 158 | 158 | $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_server_error'); |
| 159 | - header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error'); |
|
| 159 | + header($_SERVER['SERVER_PROTOCOL'].' 500 Internal Server Error'); |
|
| 160 | 160 | } elseif (is_object($this->P) && $this->P->oPayload == NULL) {// elseif the page has been found but contains no payload... |
| 161 | 161 | if ( |
| 162 | 162 | !( |
@@ -166,10 +166,10 @@ discard block |
||
| 166 | 166 | ) |
| 167 | 167 | ) { // no payload is fine if page is one of these |
| 168 | 168 | $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_content_not_found'); |
| 169 | - header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found'); |
|
| 169 | + header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found'); |
|
| 170 | 170 | } |
| 171 | 171 | } elseif ($this->P->oPayload->cl_lang != NULL && $this->P->oPayload->cl_lang != HelperConfig::$lang) { // if the page is available but not in the current language, display info |
| 172 | - $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_page_not_available_lang') . '<br><br>' . $this->P->oPayload->cl_html; |
|
| 172 | + $this->P->oPayload->cl_html = $this->serviceManager->get('textcats')->T('misc_page_not_available_lang').'<br><br>'.$this->P->oPayload->cl_html; |
|
| 173 | 173 | } |
| 174 | 174 | } |
| 175 | 175 | return $this->P; |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | // to allow dots in the filename, we have to iterate through all parts of the filename |
| 192 | 192 | $aRoutingoverride['itemno'] = ''; |
| 193 | 193 | for ($i = 0; $i < count($aTMP['exploded_request_file']) - 1; $i++) { |
| 194 | - $aRoutingoverride['itemno'] .= $aTMP['exploded_request_file'][$i] . '.'; |
|
| 194 | + $aRoutingoverride['itemno'] .= $aTMP['exploded_request_file'][$i].'.'; |
|
| 195 | 195 | } |
| 196 | 196 | // remove the trailing dot |
| 197 | 197 | $aRoutingoverride['itemno'] = \HaaseIT\Toolbox\Tools::cutStringend($aRoutingoverride['itemno'], 1); |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | // rebuild the path string without the trailing '/item/itemno.html' |
| 202 | 202 | $this->sPath = ''; |
| 203 | 203 | for ($i = 0; $i < $aTMP['parts_in_path'] - 2; $i++) { |
| 204 | - $this->sPath .= $aPath[$i] . '/'; |
|
| 204 | + $this->sPath .= $aPath[$i].'/'; |
|
| 205 | 205 | } |
| 206 | 206 | } |
| 207 | 207 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | $this->setupHardcodedTextcats(); |
| 39 | 39 | |
| 40 | - $this->serviceManager->setFactory('db', function () { |
|
| 40 | + $this->serviceManager->setFactory('db', function() { |
|
| 41 | 41 | return null; |
| 42 | 42 | }); |
| 43 | 43 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | $this->setupTwig(); |
| 51 | 51 | |
| 52 | 52 | if (HelperConfig::$core['enable_module_shop']) { |
| 53 | - $this->serviceManager->setFactory('oItem', function (ServiceManager $serviceManager) { |
|
| 53 | + $this->serviceManager->setFactory('oItem', function(ServiceManager $serviceManager) { |
|
| 54 | 54 | return new \HaaseIT\HCSF\Shop\Items($serviceManager); |
| 55 | 55 | }); |
| 56 | 56 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | { |
| 64 | 64 | // PSR-7 Stuff |
| 65 | 65 | // Init request object |
| 66 | - $this->serviceManager->setFactory('request', function () { |
|
| 66 | + $this->serviceManager->setFactory('request', function() { |
|
| 67 | 67 | $request = \Zend\Diactoros\ServerRequestFactory::fromGlobals(); |
| 68 | 68 | |
| 69 | 69 | // cleanup request |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | // session.use_trans_sid wenn nötig aktivieren |
| 84 | 84 | ini_set('session.use_only_cookies', 0); |
| 85 | 85 | session_name('sid'); |
| 86 | - if(ini_get('session.use_trans_sid') == 1) { |
|
| 86 | + if (ini_get('session.use_trans_sid') == 1) { |
|
| 87 | 87 | ini_set('session.use_trans_sid', 0); |
| 88 | 88 | } |
| 89 | 89 | // Session wenn nötig starten |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | |
| 128 | 128 | protected function setupDB() |
| 129 | 129 | { |
| 130 | - $this->serviceManager->setFactory('dbal', function () { |
|
| 130 | + $this->serviceManager->setFactory('dbal', function() { |
|
| 131 | 131 | $config = new \Doctrine\DBAL\Configuration(); |
| 132 | 132 | |
| 133 | 133 | $connectionParams = [ |
@@ -148,14 +148,14 @@ discard block |
||
| 148 | 148 | return \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config); |
| 149 | 149 | }); |
| 150 | 150 | |
| 151 | - $this->serviceManager->setFactory('db', function (ServiceManager $serviceManager) { |
|
| 151 | + $this->serviceManager->setFactory('db', function(ServiceManager $serviceManager) { |
|
| 152 | 152 | return $serviceManager->get('dbal')->getWrappedConnection(); |
| 153 | 153 | }); |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | protected function setupTextcats() |
| 157 | 157 | { |
| 158 | - $this->serviceManager->setFactory('textcats', function (ServiceManager $serviceManager) { |
|
| 158 | + $this->serviceManager->setFactory('textcats', function(ServiceManager $serviceManager) { |
|
| 159 | 159 | $langavailable = HelperConfig::$core['lang_available']; |
| 160 | 160 | $textcats = new \HaaseIT\Toolbox\Textcat( |
| 161 | 161 | HelperConfig::$lang, |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | |
| 173 | 173 | protected function setupTwig() |
| 174 | 174 | { |
| 175 | - $this->serviceManager->setFactory('twig', function (ServiceManager $serviceManager) { |
|
| 175 | + $this->serviceManager->setFactory('twig', function(ServiceManager $serviceManager) { |
|
| 176 | 176 | $loader = new \Twig_Loader_Filesystem([PATH_BASEDIR.'customviews', HCSF_BASEDIR.'src/views/']); |
| 177 | 177 | |
| 178 | 178 | $twig_options = [ |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | unset($sTMP); |
| 95 | 95 | |
| 96 | 96 | if (isset($_REQUEST[$sValue]) && in_array($_REQUEST[$sValue], $aOptions)) { |
| 97 | - $sCartKey .= '|' . $sValue . ':' . $_REQUEST[$sValue]; |
|
| 97 | + $sCartKey .= '|'.$sValue.':'.$_REQUEST[$sValue]; |
|
| 98 | 98 | } else { |
| 99 | 99 | $this->replyToCartUpdate('requiredfieldmissing'); |
| 100 | 100 | } |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | } |
| 164 | 164 | echo $this->serviceManager->get('twig')->render('shop/update-cart.twig', $aAR); |
| 165 | 165 | } else { |
| 166 | - $aMSG['msg'] = $sReply; |
|
| 166 | + $aMSG['msg'] = $sReply; |
|
| 167 | 167 | if (count($aMore)) { |
| 168 | 168 | $aMSG = array_merge($aMSG, $aMore); |
| 169 | 169 | } |
@@ -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 | } |