@@ -431,12 +431,12 @@ |
||
431 | 431 | public function update(Array $newConfigs): bool |
432 | 432 | { |
433 | 433 | $runtimeConfigs = [ |
434 | - 'core.database', // phpMyFAQ\Db_Driver |
|
435 | - 'core.instance', // Instance |
|
436 | - 'core.language', // Language |
|
437 | - 'core.ldapServer', // Ldap |
|
438 | - 'core.ldapConfig', // $LDAP |
|
439 | - 'core.elasticsearch', // Elasticsearch\Client |
|
434 | + 'core.database', // phpMyFAQ\Db_Driver |
|
435 | + 'core.instance', // Instance |
|
436 | + 'core.language', // Language |
|
437 | + 'core.ldapServer', // Ldap |
|
438 | + 'core.ldapConfig', // $LDAP |
|
439 | + 'core.elasticsearch', // Elasticsearch\Client |
|
440 | 440 | 'core.elasticsearchConfig' // $ES |
441 | 441 | ]; |
442 | 442 |
@@ -204,7 +204,7 @@ |
||
204 | 204 | { |
205 | 205 | global $languageCodes; |
206 | 206 | |
207 | - $search = array('language_' , '.php'); |
|
207 | + $search = array('language_', '.php'); |
|
208 | 208 | $languages = $languageFiles = []; |
209 | 209 | |
210 | 210 | $dir = new \DirectoryIterator(LANGUAGE_DIR); |
@@ -134,7 +134,7 @@ |
||
134 | 134 | public function error(): string |
135 | 135 | { |
136 | 136 | if (!is_array($this->errors)) { |
137 | - $this->errors = array((string) $this->errors); |
|
137 | + $this->errors = array((string)$this->errors); |
|
138 | 138 | } |
139 | 139 | $message = ''; |
140 | 140 | foreach ($this->errors as $error) { |
@@ -775,9 +775,9 @@ discard block |
||
775 | 775 | $ldapSetup['ldapPassword'] = Filter::filterInput(INPUT_POST, 'ldap_password', FILTER_SANITIZE_STRING, ''); |
776 | 776 | |
777 | 777 | // set LDAP Config to prevent DB query |
778 | - foreach($this->_mainConfig as $configKey => $configValue){ |
|
778 | + foreach ($this->_mainConfig as $configKey => $configValue) { |
|
779 | 779 | if (strpos($configKey, 'ldap.') !== false) { |
780 | - $configuration->config[$configKey] = $configValue; |
|
780 | + $configuration->config[$configKey] = $configValue; |
|
781 | 781 | } |
782 | 782 | } |
783 | 783 | |
@@ -969,7 +969,7 @@ discard block |
||
969 | 969 | } |
970 | 970 | usleep(1000); |
971 | 971 | ++$count; |
972 | - if (!($count % 10)) { |
|
972 | + if (!($count%10)) { |
|
973 | 973 | echo '| '; |
974 | 974 | } |
975 | 975 | } |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | // We always need a valid session! |
152 | 152 | // |
153 | 153 | ini_set('session.use_only_cookies', 1); // Avoid any PHP version to move sessions on URLs |
154 | -ini_set('session.auto_start', 0); // Prevent error to use session_start() if it's active in php.ini |
|
154 | +ini_set('session.auto_start', 0); // Prevent error to use session_start() if it's active in php.ini |
|
155 | 155 | ini_set('session.use_trans_sid', 0); |
156 | 156 | ini_set('url_rewriter.tags', ''); |
157 | 157 | |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | $tmp = dirname(__DIR__).DIRECTORY_SEPARATOR.$confAttachmentsPath; |
185 | 185 | |
186 | 186 | // Check that nobody is traversing |
187 | - if (0 === strpos((string) $tmp, dirname(__DIR__))) { |
|
187 | + if (0 === strpos((string)$tmp, dirname(__DIR__))) { |
|
188 | 188 | define('PMF_ATTACHMENTS_DIR', $tmp); |
189 | 189 | } else { |
190 | 190 | define('PMF_ATTACHMENTS_DIR', false); |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | $result[] = $data; |
150 | 150 | } |
151 | 151 | } catch (Search\Exception $e) { |
152 | - $result = [ 'error' => $e->getMessage() ]; |
|
152 | + $result = ['error' => $e->getMessage()]; |
|
153 | 153 | } |
154 | 154 | break; |
155 | 155 | |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | try { |
212 | 212 | $attachments = Factory::fetchByRecordId($faqConfig, $recordId); |
213 | 213 | } catch (\phpMyFAQ\Attachment\Exception $e) { |
214 | - $result = [ 'error' => $e->getMessage() ]; |
|
214 | + $result = ['error' => $e->getMessage()]; |
|
215 | 215 | } |
216 | 216 | foreach ($attachments as $attachment) { |
217 | 217 | $result[] = [ |
@@ -64,7 +64,7 @@ |
||
64 | 64 | 'writeNumberOfArticles' => $plr->getMsg('plmsgHomeArticlesOnline', $faq->getNumberOfRecords($LANGCODE)), |
65 | 65 | 'writeSendAdress' => '?'.$sids.'action=search', |
66 | 66 | 'searchBox' => $PMF_LANG['msgSearch'], |
67 | - 'categoryId' => ($cat === 0) ? '%' : (int) $cat, |
|
67 | + 'categoryId' => ($cat === 0) ? '%' : (int)$cat, |
|
68 | 68 | 'msgSearch' => sprintf( |
69 | 69 | '<a class="help" href="%sindex.php?action=search">%s</a>', |
70 | 70 | $faqSystem->getSystemUri($faqConfig), |
@@ -670,14 +670,14 @@ discard block |
||
670 | 670 | $PMF_LANG['ad_entry_visibility'] = 'Publikuoti'; |
671 | 671 | |
672 | 672 | // added v2.0.0 - 2006-01-02 by Lars |
673 | -$PMF_LANG['ad_user_error_password'] = "Prašome įvesti slaptažodį. "; |
|
674 | -$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Slaptažodžiai nesutampa. "; |
|
675 | -$PMF_LANG['ad_user_error_loginInvalid'] = "Nurodytas naudotojo vardas neteisingas."; |
|
676 | -$PMF_LANG['ad_user_error_noEmail'] = "Įveskite teisingą el. pašto adresą. "; |
|
677 | -$PMF_LANG['ad_user_error_noRealName'] = "Prašome įvesti savo tikrą vardą. "; |
|
678 | -$PMF_LANG['ad_user_error_delete'] = "Naudotojų paskyros nepašalintos. "; |
|
679 | -$PMF_LANG['ad_user_error_noId'] = "Nenurodytas identifikatorius. "; |
|
680 | -$PMF_LANG['ad_user_error_protectedAccount'] = "Naudotojo paskyra apsaugota. "; |
|
673 | +$PMF_LANG['ad_user_error_password'] = "Prašome įvesti slaptažodį. "; |
|
674 | +$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Slaptažodžiai nesutampa. "; |
|
675 | +$PMF_LANG['ad_user_error_loginInvalid'] = "Nurodytas naudotojo vardas neteisingas."; |
|
676 | +$PMF_LANG['ad_user_error_noEmail'] = "Įveskite teisingą el. pašto adresą. "; |
|
677 | +$PMF_LANG['ad_user_error_noRealName'] = "Prašome įvesti savo tikrą vardą. "; |
|
678 | +$PMF_LANG['ad_user_error_delete'] = "Naudotojų paskyros nepašalintos. "; |
|
679 | +$PMF_LANG['ad_user_error_noId'] = "Nenurodytas identifikatorius. "; |
|
680 | +$PMF_LANG['ad_user_error_protectedAccount'] = "Naudotojo paskyra apsaugota. "; |
|
681 | 681 | $PMF_LANG['ad_user_deleteUser'] = "Šalinti naudotoją"; |
682 | 682 | $PMF_LANG['ad_user_status'] = "Būsena"; |
683 | 683 | $PMF_LANG['ad_user_lastModified'] = "paskutinių keitimų data"; |
@@ -1017,7 +1017,7 @@ discard block |
||
1017 | 1017 | $PMF_LANG['msgSecureSwitch'] = "Jei norite prisijungti, persijunkite į saugujį režimą!"; |
1018 | 1018 | |
1019 | 1019 | // added 2.6.0-alpha - 2009-10-03 by Anatoliy Belsky |
1020 | -$PMF_LANG['msgTransToolNoteFileSaving'] = 'Pastebėkite, kad jokie failai nebus įrašyti kol nepaspausite mygtuko išsaugoti'; |
|
1020 | +$PMF_LANG['msgTransToolNoteFileSaving'] = 'Pastebėkite, kad jokie failai nebus įrašyti kol nepaspausite mygtuko išsaugoti'; |
|
1021 | 1021 | $PMF_LANG['msgTransToolPageBufferRecorded'] = 'Puslapio %d buferis sėkmingai įrašytas'; |
1022 | 1022 | $PMF_LANG['msgTransToolErrorRecordingPageBuffer'] = 'Klaida įrašant puslapio %d buferį'; |
1023 | 1023 | $PMF_LANG['msgTransToolRecordingPageBuffer'] = 'Įrašomas puslapio %d buferis'; |
@@ -1029,9 +1029,9 @@ discard block |
||
1029 | 1029 | $PMF_LANG['msgAttachmentInvalid'] = 'Priedas yra blogas, informuokite administratorių'; |
1030 | 1030 | |
1031 | 1031 | // added 2.6.0-alpha - 2009-11-02 by max |
1032 | -$LANG_CONF['search.numberSearchTerms'] = array(0 => 'input', 1 => 'Rodomų paieškos raktažodžių skaičius'); |
|
1032 | +$LANG_CONF['search.numberSearchTerms'] = array(0 => 'input', 1 => 'Rodomų paieškos raktažodžių skaičius'); |
|
1033 | 1033 | $LANG_CONF['records.orderingPopularFaqs'] = array(0 => "select", 1 => "Populiariausių DUK rikiavimas"); |
1034 | -$PMF_LANG['list_all_users'] = 'Rodyti visus naudotojus'; |
|
1034 | +$PMF_LANG['list_all_users'] = 'Rodyti visus naudotojus'; |
|
1035 | 1035 | |
1036 | 1036 | $PMF_LANG['records.orderingPopularFaqs.visits'] = "rodyti dažniausiai peržiūrėtus įrašus"; |
1037 | 1037 | $PMF_LANG['records.orderingPopularFaqs.voting'] = "rodyti geriausiai įvertintus įrašus"; |
@@ -671,14 +671,14 @@ |
||
671 | 671 | $PMF_LANG['ad_entry_visibility'] = 'छापे?'; |
672 | 672 | |
673 | 673 | // added v2.0.0 - 2006-01-02 by Lars |
674 | -$PMF_LANG['ad_user_error_password'] = "कृपया संकेतक शब्द भरे. "; |
|
675 | -$PMF_LANG['ad_user_error_passwordsDontMatch'] = "संकेतक शब्द सामान नहीं हैं. "; |
|
676 | -$PMF_LANG['ad_user_error_loginInvalid'] = "दिया गया प्रयोगकर्ता नाम अवैध है."; |
|
677 | -$PMF_LANG['ad_user_error_noEmail'] = "कृपया सही पता डालें. "; |
|
678 | -$PMF_LANG['ad_user_error_noRealName'] = "कृपया अपना वास्तविक नाम डालें. "; |
|
679 | -$PMF_LANG['ad_user_error_delete'] = "प्रयोगकर्ता खाता नहीं मिट सका. "; |
|
680 | -$PMF_LANG['ad_user_error_noId'] = "कोई भी ID नहीं दी गयी है. "; |
|
681 | -$PMF_LANG['ad_user_error_protectedAccount'] = "प्रयोगकर्ता खाता सुरक्षित है. "; |
|
674 | +$PMF_LANG['ad_user_error_password'] = "कृपया संकेतक शब्द भरे. "; |
|
675 | +$PMF_LANG['ad_user_error_passwordsDontMatch'] = "संकेतक शब्द सामान नहीं हैं. "; |
|
676 | +$PMF_LANG['ad_user_error_loginInvalid'] = "दिया गया प्रयोगकर्ता नाम अवैध है."; |
|
677 | +$PMF_LANG['ad_user_error_noEmail'] = "कृपया सही पता डालें. "; |
|
678 | +$PMF_LANG['ad_user_error_noRealName'] = "कृपया अपना वास्तविक नाम डालें. "; |
|
679 | +$PMF_LANG['ad_user_error_delete'] = "प्रयोगकर्ता खाता नहीं मिट सका. "; |
|
680 | +$PMF_LANG['ad_user_error_noId'] = "कोई भी ID नहीं दी गयी है. "; |
|
681 | +$PMF_LANG['ad_user_error_protectedAccount'] = "प्रयोगकर्ता खाता सुरक्षित है. "; |
|
682 | 682 | $PMF_LANG['ad_user_deleteUser'] = "प्रयोगकर्ता के खाते को मिटा दें"; |
683 | 683 | $PMF_LANG['ad_user_status'] = "स्तिथि"; |
684 | 684 | $PMF_LANG['ad_user_lastModified'] = "आखिरी बार बदला गया"; |