@@ -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( |
@@ -27,6 +27,9 @@ discard block |
||
27 | 27 | |
28 | 28 | class Helper |
29 | 29 | { |
30 | + /** |
|
31 | + * @param string $sLang |
|
32 | + */ |
|
30 | 33 | public static function validateCustomerForm($sLang, $aErr = [], $bEdit = false) |
31 | 34 | { |
32 | 35 | if (!isset($_POST["email"]) || !\filter_var($_POST["email"], FILTER_VALIDATE_EMAIL)) { |
@@ -92,6 +95,11 @@ discard block |
||
92 | 95 | return ''; |
93 | 96 | } |
94 | 97 | |
98 | + /** |
|
99 | + * @param string $sKeyConfig |
|
100 | + * @param string $sKeyForm |
|
101 | + * @param boolean $aUserData |
|
102 | + */ |
|
95 | 103 | public static function getCustomerFormDefaultValue($sKeyConfig, $sKeyForm, $aUserData) { |
96 | 104 | $sDefaultValue = self::getUserData($sKeyConfig, $aUserData); |
97 | 105 | if (!$sDefaultValue && isset($_SESSION["formsave_addrform"][$sKeyForm])) { |
@@ -101,6 +109,9 @@ discard block |
||
101 | 109 | return $sDefaultValue; |
102 | 110 | } |
103 | 111 | |
112 | + /** |
|
113 | + * @param string $sLang |
|
114 | + */ |
|
104 | 115 | public static function buildCustomerForm($sLang, $sPurpose = 'none', $sErr = '', $aUserData = false) |
105 | 116 | { |
106 | 117 | $sDefaultCountry = self::getCustomerFormDefaultValue('cust_country', "country", $aUserData); |
@@ -62,7 +62,7 @@ |
||
62 | 62 | if (!$bEdit && (!isset($_POST["tos"]) || $_POST["tos"] != 'y')) { |
63 | 63 | $aErr["tos"] = true; |
64 | 64 | } |
65 | - if (!$bEdit && (!isset( $_POST["cancellationdisclaimer"] ) || $_POST["cancellationdisclaimer"] != 'y')) { |
|
65 | + if (!$bEdit && (!isset($_POST["cancellationdisclaimer"]) || $_POST["cancellationdisclaimer"] != 'y')) { |
|
66 | 66 | $aErr["cancellationdisclaimer"] = true; |
67 | 67 | } |
68 | 68 |
@@ -56,14 +56,14 @@ discard block |
||
56 | 56 | if (!CHelper::getUserData()) { |
57 | 57 | $this->P->oPayload->cl_html = $this->textcats->T("denied_notloggedin"); |
58 | 58 | } else { |
59 | - require_once PATH_BASEDIR . 'src/shop/functions.shoppingcart.php'; |
|
59 | + require_once PATH_BASEDIR.'src/shop/functions.shoppingcart.php'; |
|
60 | 60 | |
61 | 61 | $this->P->cb_customcontenttemplate = 'shop/myorders'; |
62 | 62 | |
63 | 63 | if (isset($_GET["action"], $_GET["id"]) && $_GET["action"] === 'show') { |
64 | 64 | $iId = \filter_input(INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT); |
65 | 65 | |
66 | - $sql = "SELECT * FROM " . 'orders WHERE o_id = :id AND o_custno = \'' . $_SESSION['user']['cust_no'] . '\' AND o_ordercompleted != \'d\''; |
|
66 | + $sql = "SELECT * FROM ".'orders WHERE o_id = :id AND o_custno = \''.$_SESSION['user']['cust_no'].'\' AND o_ordercompleted != \'d\''; |
|
67 | 67 | $hResult = $this->db->prepare($sql); |
68 | 68 | $hResult->bindValue(':id', $iId); |
69 | 69 | $hResult->execute(); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $aOrder["o_ordertimestamp"] |
77 | 77 | ); |
78 | 78 | $this->P->cb_customdata['orderdata']['orderremarks'] = $aOrder["o_remarks"]; |
79 | - $this->P->cb_customdata['orderdata']['paymentmethod'] = $this->textcats->T("order_paymentmethod_" . $aOrder["o_paymentmethod"]); |
|
79 | + $this->P->cb_customdata['orderdata']['paymentmethod'] = $this->textcats->T("order_paymentmethod_".$aOrder["o_paymentmethod"]); |
|
80 | 80 | $this->P->cb_customdata['orderdata']['paymentcompleted'] = (($aOrder["o_paymentcompleted"] == 'y') ? $this->textcats->T("myorders_paymentstatus_completed") : $this->textcats->T("myorders_paymentstatus_open")); |
81 | 81 | $this->P->cb_customdata['orderdata']['orderstatus'] = SHelper::showOrderStatusText($this->textcats, $aOrder["o_ordercompleted"]); |
82 | 82 | $this->P->cb_customdata['orderdata']['shippingservice'] = $aOrder["o_shipping_service"]; |
@@ -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 |
@@ -160,14 +160,11 @@ |
||
160 | 160 | |
161 | 161 | if ($aRow["o_paymentmethod"] === 'prepay') { |
162 | 162 | $sPaymentmethod = $this->textcats->T("order_paymentmethod_prepay"); |
163 | - } |
|
164 | - elseif ($aRow["o_paymentmethod"] === 'paypal') { |
|
163 | + } elseif ($aRow["o_paymentmethod"] === 'paypal') { |
|
165 | 164 | $sPaymentmethod = $this->textcats->T("order_paymentmethod_paypal"); |
166 | - } |
|
167 | - elseif ($aRow["o_paymentmethod"] === 'debit') { |
|
165 | + } elseif ($aRow["o_paymentmethod"] === 'debit') { |
|
168 | 166 | $sPaymentmethod = $this->textcats->T("order_paymentmethod_debit"); |
169 | - } |
|
170 | - elseif ($aRow["o_paymentmethod"] === 'invoice') { |
|
167 | + } elseif ($aRow["o_paymentmethod"] === 'invoice') { |
|
171 | 168 | $sPaymentmethod = $this->textcats->T("order_paymentmethod_invoice"); |
172 | 169 | } else { |
173 | 170 | $sPaymentmethod = ucwords($aRow["o_paymentmethod"]); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $hResult->execute(); |
84 | 84 | $iRows = $hResult->rowCount(); |
85 | 85 | if ($iRows == 1) { |
86 | - $sErr .= $this->textcats->T("userprofile_emailalreadyinuse") . '<br>'; |
|
86 | + $sErr .= $this->textcats->T("userprofile_emailalreadyinuse").'<br>'; |
|
87 | 87 | } |
88 | 88 | $sErr = CHelper::validateCustomerForm(HelperConfig::$lang, $sErr, true); |
89 | 89 | |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $sql = \HaaseIT\Toolbox\DBTools::buildPSUpdateQuery($aData, 'customer', 'cust_id'); |
113 | 113 | $hResult = $this->db->prepare($sql); |
114 | 114 | foreach ($aData as $sKey => $sValue) { |
115 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
115 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
116 | 116 | } |
117 | 117 | $hResult->execute(); |
118 | 118 | $aPData["infochangessaved"] = true; |
@@ -45,19 +45,19 @@ 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 | header('Location: /_misc/userhome.html?login=true'); |
50 | 50 | die(); |
51 | 51 | } elseif (isset($mLogin["status"]) && $mLogin["status"] === 'tosnotaccepted') { |
52 | - $this->P->oPayload->cl_html = $textcats->T("login_fail_tosnotaccepted") . '<br>'; |
|
52 | + $this->P->oPayload->cl_html = $textcats->T("login_fail_tosnotaccepted").'<br>'; |
|
53 | 53 | $this->P->cb_customcontenttemplate = 'customer/login'; |
54 | 54 | } elseif (isset($mLogin["status"]) && $mLogin["status"] === 'emailnotverified') { |
55 | - $this->P->oPayload->cl_html = $textcats->T("login_fail_emailnotverified") . '<br><br>'; |
|
55 | + $this->P->oPayload->cl_html = $textcats->T("login_fail_emailnotverified").'<br><br>'; |
|
56 | 56 | $this->P->oPayload->cl_html .= '<a href="/_misc/resendverificationmail.html?email=' |
57 | - . $mLogin["data"]['cust_email'] . '">' . $textcats->T("login_fail_emailnotverifiedresend") . '</a>'; |
|
57 | + . $mLogin["data"]['cust_email'].'">'.$textcats->T("login_fail_emailnotverifiedresend").'</a>'; |
|
58 | 58 | $this->P->cb_customcontenttemplate = 'customer/login'; |
59 | 59 | } elseif (isset($mLogin["status"]) && $mLogin["status"] === 'accountinactive') { |
60 | - $this->P->oPayload->cl_html = $textcats->T("login_fail_accountinactive") . '<br>'; |
|
60 | + $this->P->oPayload->cl_html = $textcats->T("login_fail_accountinactive").'<br>'; |
|
61 | 61 | $this->P->cb_customcontenttemplate = 'customer/login'; |
62 | 62 | } else { |
63 | 63 | $this->P->oPayload->cl_html = $textcats->T("login_fail"); |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | $hResult->execute(); |
112 | 112 | |
113 | 113 | $iRows = $hResult->rowCount(); |
114 | - if($iRows == 1) { |
|
114 | + if ($iRows == 1) { |
|
115 | 115 | $aRow = $hResult->fetch(); |
116 | 116 | |
117 | 117 | if (password_verify($_POST["password"], $aRow['cust_password'])) { |
@@ -121,9 +121,9 @@ discard block |
||
121 | 121 | } elseif ($aRow['cust_tosaccepted'] === 'n') { |
122 | 122 | return ['status' => 'tosnotaccepted']; |
123 | 123 | } elseif ($aRow['cust_emailverified'] === 'n') { |
124 | - return ['status' => 'emailnotverified', 'data' => $aRow,]; |
|
124 | + return ['status' => 'emailnotverified', 'data' => $aRow, ]; |
|
125 | 125 | } elseif ($aRow['cust_active'] === 'n') { |
126 | - return ['status' => 'accountinactive',]; |
|
126 | + return ['status' => 'accountinactive', ]; |
|
127 | 127 | } |
128 | 128 | } |
129 | 129 | } |
@@ -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')); |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | $sql = \HaaseIT\Toolbox\DBTools::buildPSUpdateQuery($aData, 'customer', 'cust_id'); |
162 | 162 | $hResult = $this->db->prepare($sql); |
163 | 163 | foreach ($aData as $sKey => $sValue) { |
164 | - $hResult->bindValue(':' . $sKey, $sValue); |
|
164 | + $hResult->bindValue(':'.$sKey, $sValue); |
|
165 | 165 | } |
166 | 166 | $hResult->execute(); |
167 | 167 | $aInfo["changeswritten"] = true; |
@@ -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 | ) |