@@ -661,14 +661,14 @@ |
||
661 | 661 | $PMF_LANG['ad_entry_visibility'] = 'Objavi?'; |
662 | 662 | |
663 | 663 | // added v2.0.0 - 2006-01-02 by Lars |
664 | -$PMF_LANG['ad_user_error_password'] = "Molimo unesite lozinku. "; |
|
665 | -$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Lozinke se ne poklapaju. "; |
|
666 | -$PMF_LANG['ad_user_error_loginInvalid'] = "Unešeno korisničko ime nije nađeno."; |
|
667 | -$PMF_LANG['ad_user_error_noEmail'] = "Unesite važeću email adresu. "; |
|
668 | -$PMF_LANG['ad_user_error_noRealName'] = "Unesite Vaše pravo ime. "; |
|
669 | -$PMF_LANG['ad_user_error_delete'] = "Korisnički nalog ne može biti izbrisan. "; |
|
670 | -$PMF_LANG['ad_user_error_noId'] = "Nije priložen ID. "; |
|
671 | -$PMF_LANG['ad_user_error_protectedAccount'] = "Korisnički nalog je zaštićen. "; |
|
664 | +$PMF_LANG['ad_user_error_password'] = "Molimo unesite lozinku. "; |
|
665 | +$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Lozinke se ne poklapaju. "; |
|
666 | +$PMF_LANG['ad_user_error_loginInvalid'] = "Unešeno korisničko ime nije nađeno."; |
|
667 | +$PMF_LANG['ad_user_error_noEmail'] = "Unesite važeću email adresu. "; |
|
668 | +$PMF_LANG['ad_user_error_noRealName'] = "Unesite Vaše pravo ime. "; |
|
669 | +$PMF_LANG['ad_user_error_delete'] = "Korisnički nalog ne može biti izbrisan. "; |
|
670 | +$PMF_LANG['ad_user_error_noId'] = "Nije priložen ID. "; |
|
671 | +$PMF_LANG['ad_user_error_protectedAccount'] = "Korisnički nalog je zaštićen. "; |
|
672 | 672 | $PMF_LANG['ad_user_deleteUser'] = "Obriši korisnika"; |
673 | 673 | $PMF_LANG['ad_user_status'] = "Status:"; |
674 | 674 | $PMF_LANG['ad_user_lastModified'] = "zadnji put menjano:"; |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | /** |
105 | 105 | * Returns all available first letters. |
106 | 106 | * |
107 | - * @return array |
|
107 | + * @return string |
|
108 | 108 | * |
109 | 109 | * @since 2007-03-30 |
110 | 110 | * |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | * |
213 | 213 | * @param string $letter Letter |
214 | 214 | * |
215 | - * @return array |
|
215 | + * @return string |
|
216 | 216 | * |
217 | 217 | * @since 2007-03-30 |
218 | 218 | * |
@@ -18,9 +18,9 @@ |
||
18 | 18 | * @since 2012-04-11 |
19 | 19 | */ |
20 | 20 | |
21 | -define('PMF_ROOT_DIR', dirname(__DIR__) . '/phpmyfaq'); |
|
21 | +define('PMF_ROOT_DIR', dirname(__DIR__).'/phpmyfaq'); |
|
22 | 22 | |
23 | -require PMF_ROOT_DIR . '/inc/PMF/System.php'; |
|
23 | +require PMF_ROOT_DIR.'/inc/PMF/System.php'; |
|
24 | 24 | |
25 | 25 | $system = new PMF_System(); |
26 | 26 |
@@ -213,7 +213,7 @@ |
||
213 | 213 | $tagName = trim($tagName); |
214 | 214 | if (PMF_String::strlen($tagName) > 0) { |
215 | 215 | if (!in_array(PMF_String::strtolower($tagName), |
216 | - array_map(array('PMF_String', 'strtolower'), $currentTags))) { |
|
216 | + array_map(array('PMF_String', 'strtolower'), $currentTags))) { |
|
217 | 217 | // Create the new tag |
218 | 218 | $newTagId = $this->_config->getDb()->nextId(PMF_Db::getTablePrefix().'faqtags', 'tagging_id'); |
219 | 219 | $query = sprintf(" |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | */ |
85 | 85 | public function setCategoryId($categoryId) |
86 | 86 | { |
87 | - $this->categoryId = (int) $categoryId; |
|
87 | + $this->categoryId = (int)$categoryId; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
@@ -159,8 +159,8 @@ discard block |
||
159 | 159 | */ |
160 | 160 | public function searchDatabase($searchTerm, $allLanguages = true) |
161 | 161 | { |
162 | - $fdTable = PMF_Db::getTablePrefix() . 'faqdata AS fd'; |
|
163 | - $fcrTable = PMF_Db::getTablePrefix() . 'faqcategoryrelations'; |
|
162 | + $fdTable = PMF_Db::getTablePrefix().'faqdata AS fd'; |
|
163 | + $fcrTable = PMF_Db::getTablePrefix().'faqcategoryrelations'; |
|
164 | 164 | $condition = ['fd.active' => "'yes'"]; |
165 | 165 | $search = PMF_Search_Factory::create($this->_config, ['database' => PMF_Db::getType()]); |
166 | 166 | |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | if ($this->getCategory() instanceof PMF_Category) { |
169 | 169 | $children = $this->getCategory()->getChildNodes($this->getCategoryId()); |
170 | 170 | $selectedCategory = array( |
171 | - $fcrTable.'.category_id' => array_merge((array) $this->getCategoryId(), $children), |
|
171 | + $fcrTable.'.category_id' => array_merge((array)$this->getCategoryId(), $children), |
|
172 | 172 | ); |
173 | 173 | } else { |
174 | 174 | $selectedCategory = array( |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | } |
180 | 180 | |
181 | 181 | if ((!$allLanguages) && (!is_numeric($searchTerm))) { |
182 | - $selectedLanguage = array('fd.lang' => "'" . $this->_config->getLanguage()->getLanguage() . "'"); |
|
182 | + $selectedLanguage = array('fd.lang' => "'".$this->_config->getLanguage()->getLanguage()."'"); |
|
183 | 183 | $condition = array_merge($selectedLanguage, $condition); |
184 | 184 | } |
185 | 185 | |
@@ -188,13 +188,13 @@ discard block |
||
188 | 188 | 'fd.id AS id', |
189 | 189 | 'fd.lang AS lang', |
190 | 190 | 'fd.solution_id AS solution_id', |
191 | - $fcrTable . '.category_id AS category_id', |
|
191 | + $fcrTable.'.category_id AS category_id', |
|
192 | 192 | 'fd.thema AS question', |
193 | 193 | 'fd.content AS answer')) |
194 | 194 | ->setJoinedTable($fcrTable) |
195 | 195 | ->setJoinedColumns(array( |
196 | - 'fd.id = ' . $fcrTable . '.record_id', |
|
197 | - 'fd.lang = ' . $fcrTable . '.record_lang' |
|
196 | + 'fd.id = '.$fcrTable.'.record_id', |
|
197 | + 'fd.lang = '.$fcrTable.'.record_lang' |
|
198 | 198 | )) |
199 | 199 | ->setConditions($condition); |
200 | 200 | |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | $i = 0; |
340 | 340 | while ($row = $this->_config->getDb()->fetchObject($result)) { |
341 | 341 | if ($i < $numResults) { |
342 | - $searchResult[] = (array) $row; |
|
342 | + $searchResult[] = (array)$row; |
|
343 | 343 | } |
344 | 344 | ++$i; |
345 | 345 | } |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | |
363 | 363 | $result = $this->_config->getDb()->query($sql); |
364 | 364 | |
365 | - return (int) $this->_config->getDb()->fetchObject($result)->count; |
|
365 | + return (int)$this->_config->getDb()->fetchObject($result)->count; |
|
366 | 366 | } |
367 | 367 | |
368 | 368 | /** |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | public function createIndex() |
101 | 101 | { |
102 | 102 | $this->client->indices()->create($this->getParams()); |
103 | - return $this->putMapping();; |
|
103 | + return $this->putMapping(); ; |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | 'category_id' => $faq['category_id'] |
212 | 212 | ]; |
213 | 213 | |
214 | - if ($i % 1000 == 0) { |
|
214 | + if ($i%1000 == 0) { |
|
215 | 215 | $responses = $this->client->bulk($params); |
216 | 216 | $params = ['body' => []]; |
217 | 217 | unset($responses); |
@@ -500,7 +500,7 @@ discard block |
||
500 | 500 | 'dir' => $PMF_LANG['dir'], |
501 | 501 | 'writeSendAdress' => '?'.$sids.'action=search', |
502 | 502 | 'searchBox' => $PMF_LANG['msgSearch'], |
503 | - 'categoryId' => ($cat === 0) ? '%' : (int) $cat, |
|
503 | + 'categoryId' => ($cat === 0) ? '%' : (int)$cat, |
|
504 | 504 | 'showInstantResponse' => '', // @deprecated |
505 | 505 | 'headerCategories' => $PMF_LANG['msgFullCategories'], |
506 | 506 | 'msgCategory' => $PMF_LANG['msgCategory'], |
@@ -547,7 +547,7 @@ discard block |
||
547 | 547 | array( |
548 | 548 | 'writeSendAdress' => '?'.$sids.'action=search', |
549 | 549 | 'searchBox' => $PMF_LANG['msgSearch'], |
550 | - 'categoryId' => ($cat === 0) ? '%' : (int) $cat, |
|
550 | + 'categoryId' => ($cat === 0) ? '%' : (int)$cat, |
|
551 | 551 | 'msgSearch' => sprintf( |
552 | 552 | '<a class="help" href="%sindex.php?action=search">%s</a>', |
553 | 553 | $faqSystem->getSystemUri($faqConfig), |
@@ -582,7 +582,7 @@ discard block |
||
582 | 582 | 'allCategories' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'showcat.html">'.$PMF_LANG['msgShowAllCategories'].'</a>', |
583 | 583 | 'faqOverview' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'overview.html">'.$PMF_LANG['faqOverview'].'</a>', |
584 | 584 | 'showSitemap' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'sitemap/A/'.$LANGCODE.'.html">'.$PMF_LANG['msgSitemap'].'</a>', |
585 | - 'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.html', ); |
|
585 | + 'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.html',); |
|
586 | 586 | } else { |
587 | 587 | $tplNavigation = array( |
588 | 588 | 'msgSearch' => '<a href="index.php?'.$sids.'action=search">'.$PMF_LANG['msgAdvancedSearch'].'</a>', |
@@ -596,7 +596,7 @@ discard block |
||
596 | 596 | 'faqOverview' => '<a href="index.php?'.$sids.'action=overview">'.$PMF_LANG['faqOverview'].'</a>', |
597 | 597 | 'backToHome' => '<a href="index.php?'.$sids.'">'.$PMF_LANG['msgHome'].'</a>', |
598 | 598 | 'showSitemap' => '<a href="index.php?'.$sids.'action=sitemap&lang='.$LANGCODE.'">'.$PMF_LANG['msgSitemap'].'</a>', |
599 | - 'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.php', ); |
|
599 | + 'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.php',); |
|
600 | 600 | } |
601 | 601 | |
602 | 602 | $tplNavigation['faqHome'] = $faqConfig->getDefaultUrl(); |
@@ -695,7 +695,7 @@ discard block |
||
695 | 695 | ); |
696 | 696 | } else { |
697 | 697 | $tpl->parseBlock('rightBox', 'latestEntriesListError', array( |
698 | - 'errorMsgLatest' => $latestEntriesParams['error'], ) |
|
698 | + 'errorMsgLatest' => $latestEntriesParams['error'],) |
|
699 | 699 | ); |
700 | 700 | } |
701 | 701 |
@@ -454,8 +454,8 @@ discard block |
||
454 | 454 | $users = $faqsession->getUsersOnline(); |
455 | 455 | $totUsers = $users[0] + $users[1]; |
456 | 456 | $usersOnline = $plr->getMsg('plmsgUserOnline', $totUsers).' | '. |
457 | - $plr->getMsg('plmsgGuestOnline', $users[0]). |
|
458 | - $plr->getMsg('plmsgRegisteredOnline', $users[1]); |
|
457 | + $plr->getMsg('plmsgGuestOnline', $users[0]). |
|
458 | + $plr->getMsg('plmsgRegisteredOnline', $users[1]); |
|
459 | 459 | } else { |
460 | 460 | $usersOnline = ''; |
461 | 461 | } |
@@ -509,7 +509,7 @@ discard block |
||
509 | 509 | 'switchLanguages' => PMF_Language::selectLanguages($LANGCODE, true), |
510 | 510 | 'userOnline' => $usersOnline, |
511 | 511 | 'copyright' => 'powered by <a href="https://www.phpmyfaq.de" target="_blank">phpMyFAQ</a> '. |
512 | - $faqConfig->get('main.currentVersion'), |
|
512 | + $faqConfig->get('main.currentVersion'), |
|
513 | 513 | 'registerUser' => $faqConfig->get('security.enableRegistration') ? '<a href="?action=register">'.$PMF_LANG['msgRegistration'].'</a>' : '', |
514 | 514 | 'sendPassword' => '<a href="?action=password">'.$PMF_LANG['lostPassword'].'</a>', |
515 | 515 | 'msgFullName' => $PMF_LANG['ad_user_loggedin'].$user->getLogin(), |
@@ -95,14 +95,14 @@ discard block |
||
95 | 95 | |
96 | 96 | } |
97 | 97 | if (is_null($currentAction) && $auth && $user->perm->checkRight($user->getUserId(), 'addattachment')) { |
98 | - $recordId = filter_input(INPUT_GET, 'record_id', FILTER_VALIDATE_INT); |
|
98 | + $recordId = filter_input(INPUT_GET, 'record_id', FILTER_VALIDATE_INT); |
|
99 | 99 | $recordLang = filter_input(INPUT_GET, 'record_lang', FILTER_SANITIZE_STRING); |
100 | 100 | ?> |
101 | 101 | <form action="attachment.php?action=save" enctype="multipart/form-data" method="post" accept-charset="utf-8"> |
102 | 102 | <fieldset> |
103 | 103 | <legend> |
104 | 104 | <?php echo $PMF_LANG['ad_att_addto'].' '.$PMF_LANG['ad_att_addto_2'] ?> |
105 | - (max <?php echo round($faqConfig->get('records.maxAttachmentSize') / pow(1024, 2), 2) ?> MB) |
|
105 | + (max <?php echo round($faqConfig->get('records.maxAttachmentSize')/pow(1024, 2), 2) ?> MB) |
|
106 | 106 | </legend> |
107 | 107 | <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $faqConfig->get('records.maxAttachmentSize') ?>"> |
108 | 108 | <input type="hidden" name="record_id" value="<?php echo $recordId ?>"> |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | |
133 | 133 | if (!is_null($currentSave) && $currentSave == true && $auth && |
134 | 134 | $user->perm->checkRight($user->getUserId(), 'addattachment')) { |
135 | - $recordId = filter_input(INPUT_POST, 'record_id', FILTER_VALIDATE_INT); |
|
135 | + $recordId = filter_input(INPUT_POST, 'record_id', FILTER_VALIDATE_INT); |
|
136 | 136 | $recordLang = filter_input(INPUT_POST, 'record_lang', FILTER_SANITIZE_STRING); |
137 | 137 | ?> |
138 | 138 | <p> |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | '<p>%s</p>', |
175 | 175 | sprintf( |
176 | 176 | $PMF_LANG['ad_attach_4'], |
177 | - round($faqConfig->get('records.maxAttachmentSize') / pow(1024, 2), 2) |
|
177 | + round($faqConfig->get('records.maxAttachmentSize')/pow(1024, 2), 2) |
|
178 | 178 | ) |
179 | 179 | ); |
180 | 180 |
@@ -638,14 +638,14 @@ discard block |
||
638 | 638 | $PMF_LANG["ad_entry_visibility"] = "sichtbar"; |
639 | 639 | |
640 | 640 | // added v2.0.0 - 2006-01-02 by Lars |
641 | -$PMF_LANG["ad_user_error_password"] = "Bitte geben Sie ein Passwort ein. "; |
|
642 | -$PMF_LANG["ad_user_error_passwordsDontMatch"] = "Die Passwörter stimmen nicht überein. "; |
|
643 | -$PMF_LANG["ad_user_error_loginInvalid"] = "Der ausgewählte Benutzer ist ungültig."; |
|
644 | -$PMF_LANG["ad_user_error_noEmail"] = "Bitte geben Sie eine korrekte E-Mailadresse ein. "; |
|
645 | -$PMF_LANG["ad_user_error_noRealName"] = "Bitte geben Sie ihren Namen ein. "; |
|
646 | -$PMF_LANG["ad_user_error_delete"] = "Der Benutzeraccount kann nicht gelöscht werden. "; |
|
647 | -$PMF_LANG["ad_user_error_noId"] = "Keine ID ausgewählt. "; |
|
648 | -$PMF_LANG["ad_user_error_protectedAccount"] = "Der Benutzeraccount ist geschützt. "; |
|
641 | +$PMF_LANG["ad_user_error_password"] = "Bitte geben Sie ein Passwort ein. "; |
|
642 | +$PMF_LANG["ad_user_error_passwordsDontMatch"] = "Die Passwörter stimmen nicht überein. "; |
|
643 | +$PMF_LANG["ad_user_error_loginInvalid"] = "Der ausgewählte Benutzer ist ungültig."; |
|
644 | +$PMF_LANG["ad_user_error_noEmail"] = "Bitte geben Sie eine korrekte E-Mailadresse ein. "; |
|
645 | +$PMF_LANG["ad_user_error_noRealName"] = "Bitte geben Sie ihren Namen ein. "; |
|
646 | +$PMF_LANG["ad_user_error_delete"] = "Der Benutzeraccount kann nicht gelöscht werden. "; |
|
647 | +$PMF_LANG["ad_user_error_noId"] = "Keine ID ausgewählt. "; |
|
648 | +$PMF_LANG["ad_user_error_protectedAccount"] = "Der Benutzeraccount ist geschützt. "; |
|
649 | 649 | $PMF_LANG["ad_user_deleteUser"] = "Lösche Benutzer"; |
650 | 650 | $PMF_LANG["ad_user_status"] = "Status"; |
651 | 651 | $PMF_LANG["ad_user_lastModified"] = "Letzte Änderung:"; |
@@ -975,9 +975,9 @@ discard block |
||
975 | 975 | $PMF_LANG["ad_record_active"] = "aktiviert"; |
976 | 976 | |
977 | 977 | // added 2.6.0-alpha - 2009-11-02 by max |
978 | -$LANG_CONF["search.numberSearchTerms"] = array(0 => "input", 1 => "Anzahl der beliebtesten Suchbegriffe"); |
|
978 | +$LANG_CONF["search.numberSearchTerms"] = array(0 => "input", 1 => "Anzahl der beliebtesten Suchbegriffe"); |
|
979 | 979 | $LANG_CONF["records.orderingPopularFaqs"] = array(0 => "select", 1 => "Sortierung der TOP-FAQ"); |
980 | -$PMF_LANG["list_all_users"] = "Alle Benutzer anzeigen"; |
|
980 | +$PMF_LANG["list_all_users"] = "Alle Benutzer anzeigen"; |
|
981 | 981 | |
982 | 982 | $PMF_LANG["records.orderingPopularFaqs.visits"] = "nach Anzahl der Besucher"; |
983 | 983 | $PMF_LANG["records.orderingPopularFaqs.voting"] = "nach Bewertung der Besucher"; |