@@ -668,14 +668,14 @@ discard block |
||
668 | 668 | $PMF_LANG['ad_entry_visibility'] = 'Publish?'; |
669 | 669 | |
670 | 670 | // added v2.0.0 - 2006-01-02 by Lars |
671 | -$PMF_LANG['ad_user_error_password'] = "Please enter a password. "; |
|
672 | -$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Passwords do not match. "; |
|
673 | -$PMF_LANG['ad_user_error_loginInvalid'] = "The specified user name is invalid."; |
|
674 | -$PMF_LANG['ad_user_error_noEmail'] = "Please enter a valid mail address. "; |
|
675 | -$PMF_LANG['ad_user_error_noRealName'] = "Please enter your real name. "; |
|
676 | -$PMF_LANG['ad_user_error_delete'] = "User account could not be deleted. "; |
|
677 | -$PMF_LANG['ad_user_error_noId'] = "No ID specified. "; |
|
678 | -$PMF_LANG['ad_user_error_protectedAccount'] = "User account is protected. "; |
|
671 | +$PMF_LANG['ad_user_error_password'] = "Please enter a password. "; |
|
672 | +$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Passwords do not match. "; |
|
673 | +$PMF_LANG['ad_user_error_loginInvalid'] = "The specified user name is invalid."; |
|
674 | +$PMF_LANG['ad_user_error_noEmail'] = "Please enter a valid mail address. "; |
|
675 | +$PMF_LANG['ad_user_error_noRealName'] = "Please enter your real name. "; |
|
676 | +$PMF_LANG['ad_user_error_delete'] = "User account could not be deleted. "; |
|
677 | +$PMF_LANG['ad_user_error_noId'] = "No ID specified. "; |
|
678 | +$PMF_LANG['ad_user_error_protectedAccount'] = "User account is protected. "; |
|
679 | 679 | $PMF_LANG['ad_user_deleteUser'] = "Delete User"; |
680 | 680 | $PMF_LANG['ad_user_status'] = "Status:"; |
681 | 681 | $PMF_LANG['ad_user_lastModified'] = "last modified:"; |
@@ -1013,7 +1013,7 @@ discard block |
||
1013 | 1013 | $PMF_LANG['msgSecureSwitch'] = "Switch to secure mode to login!"; |
1014 | 1014 | |
1015 | 1015 | // added 2.6.0-alpha - 2009-10-03 by Anatoliy Belsky |
1016 | -$PMF_LANG['msgTransToolNoteFileSaving'] = 'Please note that no files will we written until you click save button'; |
|
1016 | +$PMF_LANG['msgTransToolNoteFileSaving'] = 'Please note that no files will we written until you click save button'; |
|
1017 | 1017 | $PMF_LANG['msgTransToolPageBufferRecorded'] = 'Page %d buffer recorded successfully'; |
1018 | 1018 | $PMF_LANG['msgTransToolErrorRecordingPageBuffer'] = 'Error recording page %d buffer'; |
1019 | 1019 | $PMF_LANG['msgTransToolRecordingPageBuffer'] = 'Recording page %d buffer'; |
@@ -1025,9 +1025,9 @@ discard block |
||
1025 | 1025 | $PMF_LANG['msgAttachmentInvalid'] = 'The attachment is invalid, please inform admin'; |
1026 | 1026 | |
1027 | 1027 | // added 2.6.0-alpha - 2009-11-02 by max |
1028 | -$LANG_CONF['search.numberSearchTerms'] = array(0 => 'input', 1 => 'Number of listed search terms'); |
|
1028 | +$LANG_CONF['search.numberSearchTerms'] = array(0 => 'input', 1 => 'Number of listed search terms'); |
|
1029 | 1029 | $LANG_CONF['records.orderingPopularFaqs'] = array(0 => "select", 1 => "Sorting of the top FAQ's"); |
1030 | -$PMF_LANG['list_all_users'] = 'List all users'; |
|
1030 | +$PMF_LANG['list_all_users'] = 'List all users'; |
|
1031 | 1031 | |
1032 | 1032 | $PMF_LANG['records.orderingPopularFaqs.visits'] = "list most visited entries"; |
1033 | 1033 | $PMF_LANG['records.orderingPopularFaqs.voting'] = "list most voted entries"; |
@@ -659,14 +659,14 @@ |
||
659 | 659 | $PMF_LANG['ad_entry_visibility'] = 'Publish?'; |
660 | 660 | |
661 | 661 | // added v2.0.0 - 2006-01-02 by Lars |
662 | -$PMF_LANG['ad_user_error_password'] = "Xin nhập mật khẩu. "; |
|
663 | -$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Mật khẩu không trùng khớp. "; |
|
664 | -$PMF_LANG['ad_user_error_loginInvalid'] = "Tên đăng nhập không hợp lệ."; |
|
665 | -$PMF_LANG['ad_user_error_noEmail'] = "Xin nhập email hợp lệ. "; |
|
666 | -$PMF_LANG['ad_user_error_noRealName'] = "Xin nhập tên thật của bạn. "; |
|
667 | -$PMF_LANG['ad_user_error_delete'] = "Tài khoản thành viên không thể xóa. "; |
|
668 | -$PMF_LANG['ad_user_error_noId'] = "Không tìm thấy ID. "; |
|
669 | -$PMF_LANG['ad_user_error_protectedAccount'] = "Tài khoản thành viên được khóa. "; |
|
662 | +$PMF_LANG['ad_user_error_password'] = "Xin nhập mật khẩu. "; |
|
663 | +$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Mật khẩu không trùng khớp. "; |
|
664 | +$PMF_LANG['ad_user_error_loginInvalid'] = "Tên đăng nhập không hợp lệ."; |
|
665 | +$PMF_LANG['ad_user_error_noEmail'] = "Xin nhập email hợp lệ. "; |
|
666 | +$PMF_LANG['ad_user_error_noRealName'] = "Xin nhập tên thật của bạn. "; |
|
667 | +$PMF_LANG['ad_user_error_delete'] = "Tài khoản thành viên không thể xóa. "; |
|
668 | +$PMF_LANG['ad_user_error_noId'] = "Không tìm thấy ID. "; |
|
669 | +$PMF_LANG['ad_user_error_protectedAccount'] = "Tài khoản thành viên được khóa. "; |
|
670 | 670 | $PMF_LANG['ad_user_deleteUser'] = "Xóa thành viên"; |
671 | 671 | $PMF_LANG['ad_user_status'] = "Tình trạng:"; |
672 | 672 | $PMF_LANG['ad_user_lastModified'] = "lần thay đổi mới nhất:"; |
@@ -666,14 +666,14 @@ discard block |
||
666 | 666 | $PMF_LANG['ad_entry_visibility'] = 'Publikuoti'; |
667 | 667 | |
668 | 668 | // added v2.0.0 - 2006-01-02 by Lars |
669 | -$PMF_LANG['ad_user_error_password'] = "Prašome įvesti slaptažodį. "; |
|
670 | -$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Slaptažodžiai nesutampa. "; |
|
671 | -$PMF_LANG['ad_user_error_loginInvalid'] = "Nurodytas naudotojo vardas neteisingas."; |
|
672 | -$PMF_LANG['ad_user_error_noEmail'] = "Įveskite teisingą el. pašto adresą. "; |
|
673 | -$PMF_LANG['ad_user_error_noRealName'] = "Prašome įvesti savo tikrą vardą. "; |
|
674 | -$PMF_LANG['ad_user_error_delete'] = "Naudotojų paskyros nepašalintos. "; |
|
675 | -$PMF_LANG['ad_user_error_noId'] = "Nenurodytas identifikatorius. "; |
|
676 | -$PMF_LANG['ad_user_error_protectedAccount'] = "Naudotojo paskyra apsaugota. "; |
|
669 | +$PMF_LANG['ad_user_error_password'] = "Prašome įvesti slaptažodį. "; |
|
670 | +$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Slaptažodžiai nesutampa. "; |
|
671 | +$PMF_LANG['ad_user_error_loginInvalid'] = "Nurodytas naudotojo vardas neteisingas."; |
|
672 | +$PMF_LANG['ad_user_error_noEmail'] = "Įveskite teisingą el. pašto adresą. "; |
|
673 | +$PMF_LANG['ad_user_error_noRealName'] = "Prašome įvesti savo tikrą vardą. "; |
|
674 | +$PMF_LANG['ad_user_error_delete'] = "Naudotojų paskyros nepašalintos. "; |
|
675 | +$PMF_LANG['ad_user_error_noId'] = "Nenurodytas identifikatorius. "; |
|
676 | +$PMF_LANG['ad_user_error_protectedAccount'] = "Naudotojo paskyra apsaugota. "; |
|
677 | 677 | $PMF_LANG['ad_user_deleteUser'] = "Šalinti naudotoją"; |
678 | 678 | $PMF_LANG['ad_user_status'] = "Būsena:"; |
679 | 679 | $PMF_LANG['ad_user_lastModified'] = "paskutinių keitimų data:"; |
@@ -1018,7 +1018,7 @@ discard block |
||
1018 | 1018 | $PMF_LANG['msgSecureSwitch'] = "Jei norite prisijungti, persijunkite į saugujį režimą!"; |
1019 | 1019 | |
1020 | 1020 | // added 2.6.0-alpha - 2009-10-03 by Anatoliy Belsky |
1021 | -$PMF_LANG['msgTransToolNoteFileSaving'] = 'Pastebėkite, kad jokie failai nebus įrašyti kol nepaspausite mygtuko išsaugoti'; |
|
1021 | +$PMF_LANG['msgTransToolNoteFileSaving'] = 'Pastebėkite, kad jokie failai nebus įrašyti kol nepaspausite mygtuko išsaugoti'; |
|
1022 | 1022 | $PMF_LANG['msgTransToolPageBufferRecorded'] = 'Puslapio %d buferis sėkmingai įrašytas'; |
1023 | 1023 | $PMF_LANG['msgTransToolErrorRecordingPageBuffer'] = 'Klaida įrašant puslapio %d buferį'; |
1024 | 1024 | $PMF_LANG['msgTransToolRecordingPageBuffer'] = 'Įrašomas puslapio %d buferis'; |
@@ -1030,9 +1030,9 @@ discard block |
||
1030 | 1030 | $PMF_LANG['msgAttachmentInvalid'] = 'Priedas yra blogas, informuokite administratorių'; |
1031 | 1031 | |
1032 | 1032 | // added 2.6.0-alpha - 2009-11-02 by max |
1033 | -$LANG_CONF['search.numberSearchTerms'] = array(0 => 'input', 1 => 'Rodomų paieškos raktažodžių skaičius'); |
|
1033 | +$LANG_CONF['search.numberSearchTerms'] = array(0 => 'input', 1 => 'Rodomų paieškos raktažodžių skaičius'); |
|
1034 | 1034 | $LANG_CONF['records.orderingPopularFaqs'] = array(0 => "select", 1 => "Populiariausių DUK rikiavimas"); |
1035 | -$PMF_LANG['list_all_users'] = 'Rodyti visus naudotojus'; |
|
1035 | +$PMF_LANG['list_all_users'] = 'Rodyti visus naudotojus'; |
|
1036 | 1036 | |
1037 | 1037 | $PMF_LANG['records.orderingPopularFaqs.visits'] = "rodyti dažniausiai peržiūrėtus įrašus"; |
1038 | 1038 | $PMF_LANG['records.orderingPopularFaqs.voting'] = "rodyti geriausiai įvertintus įrašus"; |
@@ -664,14 +664,14 @@ discard block |
||
664 | 664 | $PMF_LANG['ad_entry_visibility'] = 'Publikovať?'; |
665 | 665 | |
666 | 666 | // added v2.0.0 - 2006-01-02 by Lars |
667 | -$PMF_LANG['ad_user_error_password'] = "Prosím zadajte heslo. "; |
|
668 | -$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Heslá sa nezhodujú. "; |
|
669 | -$PMF_LANG['ad_user_error_loginInvalid'] = "Užívateľské meno je nesprávne."; |
|
670 | -$PMF_LANG['ad_user_error_noEmail'] = "Prosím vložte správnu e-mailovú adresu. "; |
|
671 | -$PMF_LANG['ad_user_error_noRealName'] = "Prosím vložte Vaše skutočné meno. "; |
|
672 | -$PMF_LANG['ad_user_error_delete'] = "Konto užívateľa nemôže byť vymazané. "; |
|
673 | -$PMF_LANG['ad_user_error_noId'] = "Žiadna ID. "; |
|
674 | -$PMF_LANG['ad_user_error_protectedAccount'] = "Konto užívateľa je chránené. "; |
|
667 | +$PMF_LANG['ad_user_error_password'] = "Prosím zadajte heslo. "; |
|
668 | +$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Heslá sa nezhodujú. "; |
|
669 | +$PMF_LANG['ad_user_error_loginInvalid'] = "Užívateľské meno je nesprávne."; |
|
670 | +$PMF_LANG['ad_user_error_noEmail'] = "Prosím vložte správnu e-mailovú adresu. "; |
|
671 | +$PMF_LANG['ad_user_error_noRealName'] = "Prosím vložte Vaše skutočné meno. "; |
|
672 | +$PMF_LANG['ad_user_error_delete'] = "Konto užívateľa nemôže byť vymazané. "; |
|
673 | +$PMF_LANG['ad_user_error_noId'] = "Žiadna ID. "; |
|
674 | +$PMF_LANG['ad_user_error_protectedAccount'] = "Konto užívateľa je chránené. "; |
|
675 | 675 | $PMF_LANG['ad_user_deleteUser'] = "Vymazať užívateľa"; |
676 | 676 | $PMF_LANG['ad_user_status'] = "Status:"; |
677 | 677 | $PMF_LANG['ad_user_lastModified'] = "naposledy upravované:"; |
@@ -1009,7 +1009,7 @@ discard block |
||
1009 | 1009 | $PMF_LANG['msgSecureSwitch'] = "Prepnúť na bezpečný mód pre prihlásenie!"; |
1010 | 1010 | |
1011 | 1011 | // added 2.6.0-alpha - 2009-10-03 by Anatoliy Belsky |
1012 | -$PMF_LANG['msgTransToolNoteFileSaving'] = 'Majte prosím na pamäti, že ak dokument neuložíte, žiadne nové údaje nebudú zapísané'; |
|
1012 | +$PMF_LANG['msgTransToolNoteFileSaving'] = 'Majte prosím na pamäti, že ak dokument neuložíte, žiadne nové údaje nebudú zapísané'; |
|
1013 | 1013 | $PMF_LANG['msgTransToolPageBufferRecorded'] = 'Strana %d nahrávanie úspešné'; |
1014 | 1014 | $PMF_LANG['msgTransToolErrorRecordingPageBuffer'] = 'Chyba pri nahrávaní strany %d '; |
1015 | 1015 | $PMF_LANG['msgTransToolRecordingPageBuffer'] = 'Nahrávanie strany %d '; |
@@ -1021,9 +1021,9 @@ discard block |
||
1021 | 1021 | $PMF_LANG['msgAttachmentInvalid'] = 'Príloha je chybná, prosím informujte administrátora'; |
1022 | 1022 | |
1023 | 1023 | // added 2.6.0-alpha - 2009-11-02 by max |
1024 | -$LANG_CONF['search.numberSearchTerms'] = array(0 => "input", 1 => 'Počet nájdených položiek'); |
|
1024 | +$LANG_CONF['search.numberSearchTerms'] = array(0 => "input", 1 => 'Počet nájdených položiek'); |
|
1025 | 1025 | $LANG_CONF['records.orderingPopularFaqs'] = array(0 => "select", 1 => "Triedenie top FAQ"); |
1026 | -$PMF_LANG['list_all_users'] = 'Zobraziť všetkých užívateľov'; |
|
1026 | +$PMF_LANG['list_all_users'] = 'Zobraziť všetkých užívateľov'; |
|
1027 | 1027 | |
1028 | 1028 | $PMF_LANG['records.orderingPopularFaqs.visits'] = "zobraziť najnavštevovanejšie položky"; |
1029 | 1029 | $PMF_LANG['records.orderingPopularFaqs.voting'] = "zobraziť najviac hodnotené položky"; |
@@ -679,14 +679,14 @@ |
||
679 | 679 | $PMF_LANG['ad_entry_visibility'] = 'Publish?'; |
680 | 680 | |
681 | 681 | // added v2.0.0 - 2006-01-02 by Lars |
682 | -$PMF_LANG['ad_user_error_password'] = "Please enter a password. "; |
|
683 | -$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Passwords do not match. "; |
|
684 | -$PMF_LANG['ad_user_error_loginInvalid'] = "The specified user name is invalid."; |
|
685 | -$PMF_LANG['ad_user_error_noEmail'] = "Please enter a valid mail adress. "; |
|
686 | -$PMF_LANG['ad_user_error_noRealName'] = "Please enter your real name. "; |
|
687 | -$PMF_LANG['ad_user_error_delete'] = "User account could not be deleted. "; |
|
688 | -$PMF_LANG['ad_user_error_noId'] = "No ID specified. "; |
|
689 | -$PMF_LANG['ad_user_error_protectedAccount'] = "User account is protected. "; |
|
682 | +$PMF_LANG['ad_user_error_password'] = "Please enter a password. "; |
|
683 | +$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Passwords do not match. "; |
|
684 | +$PMF_LANG['ad_user_error_loginInvalid'] = "The specified user name is invalid."; |
|
685 | +$PMF_LANG['ad_user_error_noEmail'] = "Please enter a valid mail adress. "; |
|
686 | +$PMF_LANG['ad_user_error_noRealName'] = "Please enter your real name. "; |
|
687 | +$PMF_LANG['ad_user_error_delete'] = "User account could not be deleted. "; |
|
688 | +$PMF_LANG['ad_user_error_noId'] = "No ID specified. "; |
|
689 | +$PMF_LANG['ad_user_error_protectedAccount'] = "User account is protected. "; |
|
690 | 690 | $PMF_LANG['ad_user_deleteUser'] = "Delete User"; |
691 | 691 | $PMF_LANG['ad_user_status'] = "Status:"; |
692 | 692 | $PMF_LANG['ad_user_lastModified'] = "last modified:"; |
@@ -664,14 +664,14 @@ |
||
664 | 664 | $PMF_LANG['ad_entry_visibility'] = 'Objavi?'; |
665 | 665 | |
666 | 666 | // added v2.0.0 - 2006-01-02 by Lars |
667 | -$PMF_LANG['ad_user_error_password'] = "Molimo unesite lozinku. "; |
|
668 | -$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Lozinke se ne poklapaju. "; |
|
669 | -$PMF_LANG['ad_user_error_loginInvalid'] = "Unešeno korisničko ime nije nađeno."; |
|
670 | -$PMF_LANG['ad_user_error_noEmail'] = "Unesite važeću email adresu. "; |
|
671 | -$PMF_LANG['ad_user_error_noRealName'] = "Unesite Vaše pravo ime. "; |
|
672 | -$PMF_LANG['ad_user_error_delete'] = "Korisnički nalog ne može biti izbrisan. "; |
|
673 | -$PMF_LANG['ad_user_error_noId'] = "Nije priložen ID. "; |
|
674 | -$PMF_LANG['ad_user_error_protectedAccount'] = "Korisnički nalog je zaštićen. "; |
|
667 | +$PMF_LANG['ad_user_error_password'] = "Molimo unesite lozinku. "; |
|
668 | +$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Lozinke se ne poklapaju. "; |
|
669 | +$PMF_LANG['ad_user_error_loginInvalid'] = "Unešeno korisničko ime nije nađeno."; |
|
670 | +$PMF_LANG['ad_user_error_noEmail'] = "Unesite važeću email adresu. "; |
|
671 | +$PMF_LANG['ad_user_error_noRealName'] = "Unesite Vaše pravo ime. "; |
|
672 | +$PMF_LANG['ad_user_error_delete'] = "Korisnički nalog ne može biti izbrisan. "; |
|
673 | +$PMF_LANG['ad_user_error_noId'] = "Nije priložen ID. "; |
|
674 | +$PMF_LANG['ad_user_error_protectedAccount'] = "Korisnički nalog je zaštićen. "; |
|
675 | 675 | $PMF_LANG['ad_user_deleteUser'] = "Obriši korisnika"; |
676 | 676 | $PMF_LANG['ad_user_status'] = "Status:"; |
677 | 677 | $PMF_LANG['ad_user_lastModified'] = "zadnji put menjano:"; |
@@ -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:"; |
@@ -980,9 +980,9 @@ discard block |
||
980 | 980 | $PMF_LANG["ad_record_active"] = "aktiviert"; |
981 | 981 | |
982 | 982 | // added 2.6.0-alpha - 2009-11-02 by max |
983 | -$LANG_CONF["search.numberSearchTerms"] = array(0 => "input", 1 => "Anzahl der beliebtesten Suchbegriffe"); |
|
983 | +$LANG_CONF["search.numberSearchTerms"] = array(0 => "input", 1 => "Anzahl der beliebtesten Suchbegriffe"); |
|
984 | 984 | $LANG_CONF["records.orderingPopularFaqs"] = array(0 => "select", 1 => "Sortierung der TOP-FAQ"); |
985 | -$PMF_LANG["list_all_users"] = "Alle Benutzer anzeigen"; |
|
985 | +$PMF_LANG["list_all_users"] = "Alle Benutzer anzeigen"; |
|
986 | 986 | |
987 | 987 | $PMF_LANG["records.orderingPopularFaqs.visits"] = "nach Anzahl der Besucher"; |
988 | 988 | $PMF_LANG["records.orderingPopularFaqs.voting"] = "nach Bewertung der Besucher"; |
@@ -19,10 +19,10 @@ discard block |
||
19 | 19 | |
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | $protocol = 'http'; |
22 | - if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){ |
|
22 | + if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') { |
|
23 | 23 | $protocol = 'https'; |
24 | 24 | } |
25 | - header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])); |
|
25 | + header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME'])); |
|
26 | 26 | exit(); |
27 | 27 | } |
28 | 28 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | // authenticate with session information |
38 | 38 | $user = PMF_User_CurrentUser::getFromCookie($faqConfig); |
39 | -if (! $user instanceof PMF_User_CurrentUser) { |
|
39 | +if (!$user instanceof PMF_User_CurrentUser) { |
|
40 | 40 | $user = PMF_User_CurrentUser::getFromSession($faqConfig); |
41 | 41 | } |
42 | 42 | if (!$user instanceof PMF_User_CurrentUser) { |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $attachment->rawOut(); |
89 | 89 | exit(0); |
90 | 90 | } catch (Exception $e) { |
91 | - $attachmentErrors[] = $PMF_LANG['msgAttachmentInvalid'] . ' (' . $e->getMessage() . ')'; |
|
91 | + $attachmentErrors[] = $PMF_LANG['msgAttachmentInvalid'].' ('.$e->getMessage().')'; |
|
92 | 92 | } |
93 | 93 | } else { |
94 | 94 | $attachmentErrors[] = $PMF_LANG['err_NotAuth']; |
@@ -75,8 +75,9 @@ |
||
75 | 75 | // check user rights, set them TRUE |
76 | 76 | $allUserRights = $user->perm->getAllUserRights($user->getUserId()); |
77 | 77 | foreach ($allRights as $right) { |
78 | - if (in_array($right['right_id'], $allUserRights)) |
|
79 | - $permission[$right['name']] = true; |
|
78 | + if (in_array($right['right_id'], $allUserRights)) { |
|
79 | + $permission[$right['name']] = true; |
|
80 | + } |
|
80 | 81 | } |
81 | 82 | } |
82 | 83 |
@@ -1,21 +1,21 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Handle attachment downloads |
|
4 | - * |
|
5 | - * PHP Version 5.3 |
|
6 | - * |
|
7 | - * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
8 | - * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
9 | - * obtain one at http://mozilla.org/MPL/2.0/. |
|
10 | - * |
|
11 | - * @category phpMyFAQ |
|
12 | - * @package Frontend |
|
13 | - * @author Anatoliy Belsky <[email protected]> |
|
14 | - * @copyright 2009-2016 phpMyFAQ Team |
|
15 | - * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
16 | - * @link http://www.phpmyfaq.de |
|
17 | - * @since 2009-06-23 |
|
18 | - */ |
|
3 | + * Handle attachment downloads |
|
4 | + * |
|
5 | + * PHP Version 5.3 |
|
6 | + * |
|
7 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
|
8 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
|
9 | + * obtain one at http://mozilla.org/MPL/2.0/. |
|
10 | + * |
|
11 | + * @category phpMyFAQ |
|
12 | + * @package Frontend |
|
13 | + * @author Anatoliy Belsky <[email protected]> |
|
14 | + * @copyright 2009-2016 phpMyFAQ Team |
|
15 | + * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 |
|
16 | + * @link http://www.phpmyfaq.de |
|
17 | + * @since 2009-06-23 |
|
18 | + */ |
|
19 | 19 | |
20 | 20 | if (!defined('IS_VALID_PHPMYFAQ')) { |
21 | 21 | $protocol = 'http'; |
@@ -436,8 +436,8 @@ discard block |
||
436 | 436 | $users = $faqsession->getUsersOnline(); |
437 | 437 | $totUsers = $users[0] + $users[1]; |
438 | 438 | $usersOnline = $plr->getMsg('plmsgUserOnline', $totUsers) . ' | ' . |
439 | - $plr->getMsg('plmsgGuestOnline', $users[0]) . |
|
440 | - $plr->getMsg('plmsgRegisteredOnline',$users[1]); |
|
439 | + $plr->getMsg('plmsgGuestOnline', $users[0]) . |
|
440 | + $plr->getMsg('plmsgRegisteredOnline',$users[1]); |
|
441 | 441 | } else { |
442 | 442 | $usersOnline = ''; |
443 | 443 | } |
@@ -488,7 +488,7 @@ discard block |
||
488 | 488 | 'switchLanguages' => PMF_Language::selectLanguages($LANGCODE, true), |
489 | 489 | 'userOnline' => $usersOnline, |
490 | 490 | 'copyright' => 'powered by <a href="http://www.phpmyfaq.de" target="_blank">phpMyFAQ</a> ' . |
491 | - $faqConfig->get('main.currentVersion'), |
|
491 | + $faqConfig->get('main.currentVersion'), |
|
492 | 492 | 'registerUser' => '<a href="?action=register">' . $PMF_LANG['msgRegistration'] . '</a>', |
493 | 493 | 'sendPassword' => '<a href="?action=password">' . $PMF_LANG['lostPassword'] . '</a>', |
494 | 494 | 'loginHeader' => $PMF_LANG['msgLoginUser'], |
@@ -517,7 +517,7 @@ discard block |
||
517 | 517 | '<a class="help" href="%sindex.php?action=search">%s</a>', |
518 | 518 | $faqSystem->getSystemUri($faqConfig), |
519 | 519 | $PMF_LANG["msgAdvancedSearch"] |
520 | - ) |
|
520 | + ) |
|
521 | 521 | ) |
522 | 522 | ); |
523 | 523 | } else { |
@@ -45,10 +45,10 @@ discard block |
||
45 | 45 | if (isset($LANGCODE) && PMF_Language::isASupportedLanguage($LANGCODE) && is_null($showCaptcha)) { |
46 | 46 | // Overwrite English strings with the ones we have in the current language, |
47 | 47 | // but don't include UTF-8 encoded files, these will break the captcha images |
48 | - if (! file_exists('lang/language_' . $LANGCODE . '.php')) { |
|
48 | + if (!file_exists('lang/language_'.$LANGCODE.'.php')) { |
|
49 | 49 | $LANGCODE = 'en'; |
50 | 50 | } |
51 | - require_once 'lang/language_' . $LANGCODE . '.php'; |
|
51 | + require_once 'lang/language_'.$LANGCODE.'.php'; |
|
52 | 52 | } else { |
53 | 53 | $LANGCODE = 'en'; |
54 | 54 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $action = $faqaction; // SSO logins don't have $faqaction |
114 | 114 | } |
115 | 115 | } else { |
116 | - $error = $PMF_LANG['ad_auth_fail'] . ' (' . $faqusername . ')'; |
|
116 | + $error = $PMF_LANG['ad_auth_fail'].' ('.$faqusername.')'; |
|
117 | 117 | $loginVisibility = ''; |
118 | 118 | $user = null; |
119 | 119 | $action = 'password' === $action ? 'password' : 'login'; |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | // Try to authenticate with cookie information |
131 | 131 | $user = PMF_User_CurrentUser::getFromCookie($faqConfig); |
132 | 132 | // authenticate with session information |
133 | - if (! $user instanceof PMF_User_CurrentUser) { |
|
133 | + if (!$user instanceof PMF_User_CurrentUser) { |
|
134 | 134 | $user = PMF_User_CurrentUser::getFromSession($faqConfig); |
135 | 135 | } |
136 | 136 | if ($user instanceof PMF_User_CurrentUser) { |
@@ -167,9 +167,9 @@ discard block |
||
167 | 167 | $action = 'main'; |
168 | 168 | $ssoLogout = $faqConfig->get('security.ssoLogoutRedirect'); |
169 | 169 | if ($faqConfig->get('security.ssoSupport') && !empty ($ssoLogout)) { |
170 | - header('Location: ' . $ssoLogout); |
|
170 | + header('Location: '.$ssoLogout); |
|
171 | 171 | } else { |
172 | - header('Location: ' . $faqConfig->get('main.referenceURL')); |
|
172 | + header('Location: '.$faqConfig->get('main.referenceURL')); |
|
173 | 173 | } |
174 | 174 | } |
175 | 175 | |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | // Get current user and group id - default: -1 |
178 | 178 | // |
179 | 179 | if (!is_null($user) && $user instanceof PMF_User_CurrentUser) { |
180 | - $current_user = $user->getUserId(); |
|
180 | + $current_user = $user->getUserId(); |
|
181 | 181 | if ($user->perm instanceof PMF_Perm_Medium) { |
182 | 182 | $current_groups = $user->perm->getUserGroups($current_user); |
183 | 183 | } else { |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | // Use mbstring extension if available and when possible |
196 | 196 | // |
197 | 197 | $validMbStrings = array('ja', 'en', 'uni'); |
198 | -$mbLanguage = ($PMF_LANG['metaLanguage'] != 'ja') ? 'uni' : $PMF_LANG['metaLanguage']; |
|
198 | +$mbLanguage = ($PMF_LANG['metaLanguage'] != 'ja') ? 'uni' : $PMF_LANG['metaLanguage']; |
|
199 | 199 | if (function_exists('mb_language') && in_array($mbLanguage, $validMbStrings)) { |
200 | 200 | mb_language($mbLanguage); |
201 | 201 | mb_internal_encoding('utf-8'); |
@@ -253,9 +253,9 @@ discard block |
||
253 | 253 | // Found a article language? |
254 | 254 | // |
255 | 255 | $lang = PMF_Filter::filterInput(INPUT_POST, 'artlang', FILTER_SANITIZE_STRING); |
256 | -if (is_null($lang) && !PMF_Language::isASupportedLanguage($lang) ) { |
|
256 | +if (is_null($lang) && !PMF_Language::isASupportedLanguage($lang)) { |
|
257 | 257 | $lang = PMF_Filter::filterInput(INPUT_GET, 'artlang', FILTER_SANITIZE_STRING); |
258 | - if (is_null($lang) && !PMF_Language::isASupportedLanguage($lang) ) { |
|
258 | + if (is_null($lang) && !PMF_Language::isASupportedLanguage($lang)) { |
|
259 | 259 | $lang = $LANGCODE; |
260 | 260 | } |
261 | 261 | } |
@@ -283,12 +283,12 @@ discard block |
||
283 | 283 | // |
284 | 284 | $id = PMF_Filter::filterInput(INPUT_GET, 'id', FILTER_VALIDATE_INT); |
285 | 285 | if (!is_null($id)) { |
286 | - $title = ' - ' . $faq->getRecordTitle($id); |
|
287 | - $keywords = ',' . $faq->getRecordKeywords($id); |
|
286 | + $title = ' - '.$faq->getRecordTitle($id); |
|
287 | + $keywords = ','.$faq->getRecordKeywords($id); |
|
288 | 288 | $metaDescription = str_replace('"', '', $faq->getRecordPreview($id)); |
289 | 289 | } else { |
290 | 290 | $id = ''; |
291 | - $title = ' - powered by phpMyFAQ ' . $faqConfig->get('main.currentVersion'); |
|
291 | + $title = ' - powered by phpMyFAQ '.$faqConfig->get('main.currentVersion'); |
|
292 | 292 | $keywords = ''; |
293 | 293 | $metaDescription = str_replace('"', '', $faqConfig->get('main.metaDescription')); |
294 | 294 | } |
@@ -297,15 +297,15 @@ discard block |
||
297 | 297 | // found a solution ID? |
298 | 298 | // |
299 | 299 | $solutionId = PMF_Filter::filterInput(INPUT_GET, 'solution_id', FILTER_VALIDATE_INT); |
300 | -if (! is_null($solutionId)) { |
|
301 | - $title = ' - powered by phpMyFAQ ' . $faqConfig->get('main.currentVersion'); |
|
300 | +if (!is_null($solutionId)) { |
|
301 | + $title = ' - powered by phpMyFAQ '.$faqConfig->get('main.currentVersion'); |
|
302 | 302 | $keywords = ''; |
303 | 303 | $faqData = $faq->getIdFromSolutionId($solutionId); |
304 | 304 | if (is_array($faqData)) { |
305 | 305 | $id = $faqData['id']; |
306 | 306 | $lang = $faqData['lang']; |
307 | - $title = ' - ' . $faq->getRecordTitle($id); |
|
308 | - $keywords = ',' . $faq->getRecordKeywords($id); |
|
307 | + $title = ' - '.$faq->getRecordTitle($id); |
|
308 | + $keywords = ','.$faq->getRecordKeywords($id); |
|
309 | 309 | $metaDescription = str_replace('"', '', PMF_Utils::makeShorterText(strip_tags($faqData['content']), 12)); |
310 | 310 | } |
311 | 311 | } |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | // |
316 | 316 | $tag_id = PMF_Filter::filterInput(INPUT_GET, 'tagging_id', FILTER_VALIDATE_INT); |
317 | 317 | if (!is_null($tag_id)) { |
318 | - $title = ' - ' . $oTag->getTagNameById($tag_id); |
|
318 | + $title = ' - '.$oTag->getTagNameById($tag_id); |
|
319 | 319 | $keywords = ''; |
320 | 320 | } |
321 | 321 | |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | // |
325 | 325 | $letter = PMF_Filter::filterInput(INPUT_GET, 'letter', FILTER_SANITIZE_STRIPPED); |
326 | 326 | if (!is_null($letter) && (1 == PMF_String::strlen($letter))) { |
327 | - $title = ' - ' . $letter . '...'; |
|
327 | + $title = ' - '.$letter.'...'; |
|
328 | 328 | $keywords = $letter; |
329 | 329 | } |
330 | 330 | |
@@ -359,9 +359,9 @@ discard block |
||
359 | 359 | // Select the template for the requested page |
360 | 360 | // |
361 | 361 | if ($action != 'main') { |
362 | - $includeTemplate = $action . '.tpl'; |
|
363 | - $includePhp = $action . '.php'; |
|
364 | - $writeLangAdress = '?sid=' . $sid; |
|
362 | + $includeTemplate = $action.'.tpl'; |
|
363 | + $includePhp = $action.'.php'; |
|
364 | + $writeLangAdress = '?sid='.$sid; |
|
365 | 365 | } else { |
366 | 366 | if (isset($solutionId) && is_numeric($solutionId)) { |
367 | 367 | // show the record with the solution ID |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | $includeTemplate = 'main.tpl'; |
372 | 372 | $includePhp = 'main.php'; |
373 | 373 | } |
374 | - $writeLangAdress = '?sid=' . $sid; |
|
374 | + $writeLangAdress = '?sid='.$sid; |
|
375 | 375 | } |
376 | 376 | |
377 | 377 | // |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | if ($auth) { |
395 | 395 | $indexSet = 'index.tpl'; |
396 | 396 | } else { |
397 | - switch($action) { |
|
397 | + switch ($action) { |
|
398 | 398 | case 'register': |
399 | 399 | case 'thankyou': |
400 | 400 | $indexSet = 'indexNewUser.tpl'; |
@@ -435,9 +435,9 @@ discard block |
||
435 | 435 | if ($faqConfig->get('main.enableUserTracking')) { |
436 | 436 | $users = $faqsession->getUsersOnline(); |
437 | 437 | $totUsers = $users[0] + $users[1]; |
438 | - $usersOnline = $plr->getMsg('plmsgUserOnline', $totUsers) . ' | ' . |
|
439 | - $plr->getMsg('plmsgGuestOnline', $users[0]) . |
|
440 | - $plr->getMsg('plmsgRegisteredOnline',$users[1]); |
|
438 | + $usersOnline = $plr->getMsg('plmsgUserOnline', $totUsers).' | '. |
|
439 | + $plr->getMsg('plmsgGuestOnline', $users[0]). |
|
440 | + $plr->getMsg('plmsgRegisteredOnline', $users[1]); |
|
441 | 441 | } else { |
442 | 442 | $usersOnline = ''; |
443 | 443 | } |
@@ -457,18 +457,18 @@ discard block |
||
457 | 457 | $currentPageUrl = $faqLink->getCurrentUrl(); |
458 | 458 | |
459 | 459 | if (is_null($error)) { |
460 | - $loginMessage = '<p>' . $PMF_LANG['ad_auth_insert'] . '</p>'; |
|
460 | + $loginMessage = '<p>'.$PMF_LANG['ad_auth_insert'].'</p>'; |
|
461 | 461 | } else { |
462 | - $loginMessage = '<p class="error">' . $error . '</p>'; |
|
462 | + $loginMessage = '<p class="error">'.$error.'</p>'; |
|
463 | 463 | } |
464 | 464 | |
465 | 465 | $tplMainPage = array( |
466 | 466 | 'msgLoginUser' => $PMF_LANG['msgLoginUser'], |
467 | - 'title' => $faqConfig->get('main.titleFAQ') . $title, |
|
467 | + 'title' => $faqConfig->get('main.titleFAQ').$title, |
|
468 | 468 | 'baseHref' => $faqSystem->getSystemUri($faqConfig), |
469 | 469 | 'version' => $faqConfig->get('main.currentVersion'), |
470 | 470 | 'header' => str_replace('"', '', $faqConfig->get('main.titleFAQ')), |
471 | - 'metaTitle' => str_replace('"', '', $faqConfig->get('main.titleFAQ') . $title), |
|
471 | + 'metaTitle' => str_replace('"', '', $faqConfig->get('main.titleFAQ').$title), |
|
472 | 472 | 'metaDescription' => $metaDescription, |
473 | 473 | 'metaKeywords' => $keywords, |
474 | 474 | 'metaPublisher' => $faqConfig->get('main.metaPublisher'), |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | 'metaCharset' => 'utf-8', // backwards compability |
477 | 477 | 'phpmyfaqversion' => $faqConfig->get('main.currentVersion'), |
478 | 478 | 'stylesheet' => $PMF_LANG['dir'] == 'rtl' ? 'style.rtl' : 'style', |
479 | - 'currentPageUrl' => preg_match( '/(\S+\/content\/\S+.html)\?\S*/', $currentPageUrl, $canonical ) === 1 ? $canonical[1] : $currentPageUrl, |
|
479 | + 'currentPageUrl' => preg_match('/(\S+\/content\/\S+.html)\?\S*/', $currentPageUrl, $canonical) === 1 ? $canonical[1] : $currentPageUrl, |
|
480 | 480 | 'action' => $action, |
481 | 481 | 'dir' => $PMF_LANG['dir'], |
482 | 482 | 'msgCategory' => $PMF_LANG['msgCategory'], |
@@ -487,13 +487,13 @@ discard block |
||
487 | 487 | 'writeLangAdress' => $writeLangAdress, |
488 | 488 | 'switchLanguages' => PMF_Language::selectLanguages($LANGCODE, true), |
489 | 489 | 'userOnline' => $usersOnline, |
490 | - 'copyright' => 'powered by <a href="http://www.phpmyfaq.de" target="_blank">phpMyFAQ</a> ' . |
|
490 | + 'copyright' => 'powered by <a href="http://www.phpmyfaq.de" target="_blank">phpMyFAQ</a> '. |
|
491 | 491 | $faqConfig->get('main.currentVersion'), |
492 | - 'registerUser' => '<a href="?action=register">' . $PMF_LANG['msgRegistration'] . '</a>', |
|
493 | - 'sendPassword' => '<a href="?action=password">' . $PMF_LANG['lostPassword'] . '</a>', |
|
492 | + 'registerUser' => '<a href="?action=register">'.$PMF_LANG['msgRegistration'].'</a>', |
|
493 | + 'sendPassword' => '<a href="?action=password">'.$PMF_LANG['lostPassword'].'</a>', |
|
494 | 494 | 'loginHeader' => $PMF_LANG['msgLoginUser'], |
495 | 495 | 'loginMessage' => $loginMessage, |
496 | - 'writeLoginPath' => $faqSystem->getSystemUri($faqConfig) . '?' . PMF_Filter::getFilteredQueryString(), |
|
496 | + 'writeLoginPath' => $faqSystem->getSystemUri($faqConfig).'?'.PMF_Filter::getFilteredQueryString(), |
|
497 | 497 | 'faqloginaction' => $action, |
498 | 498 | 'login' => $PMF_LANG['ad_auth_ok'], |
499 | 499 | 'username' => $PMF_LANG['ad_auth_user'], |
@@ -552,18 +552,18 @@ discard block |
||
552 | 552 | |
553 | 553 | if ($faqConfig->get('main.enableRewriteRules')) { |
554 | 554 | $tplNavigation = array( |
555 | - "msgSearch" => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'search.html">'.$PMF_LANG["msgAdvancedSearch"].'</a>', |
|
556 | - 'msgAddContent' => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'addcontent.html">'.$PMF_LANG["msgAddContent"].'</a>', |
|
557 | - "msgQuestion" => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'ask.html">'.$PMF_LANG["msgQuestion"].'</a>', |
|
558 | - "msgOpenQuestions" => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'open.html">'.$PMF_LANG["msgOpenQuestions"].'</a>', |
|
559 | - 'msgHelp' => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'help.html">'.$PMF_LANG["msgHelp"].'</a>', |
|
560 | - "msgContact" => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'contact.html">'.$PMF_LANG["msgContact"].'</a>', |
|
561 | - 'msgGlossary' => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'glossary.html">' . $PMF_LANG['ad_menu_glossary'] . '</a>', |
|
562 | - "backToHome" => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'index.html">'.$PMF_LANG["msgHome"].'</a>', |
|
563 | - "allCategories" => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'showcat.html">'.$PMF_LANG["msgShowAllCategories"].'</a>', |
|
564 | - 'showInstantResponse' => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'instantresponse.html">'.$PMF_LANG['msgInstantResponse'].'</a>', |
|
565 | - 'showSitemap' => '<a href="' . $faqSystem->getSystemUri($faqConfig) . 'sitemap/A/'.$LANGCODE.'.html">'.$PMF_LANG['msgSitemap'].'</a>', |
|
566 | - 'opensearch' => $faqSystem->getSystemUri($faqConfig) . 'opensearch.html'); |
|
555 | + "msgSearch" => '<a href="'.$faqSystem->getSystemUri($faqConfig).'search.html">'.$PMF_LANG["msgAdvancedSearch"].'</a>', |
|
556 | + 'msgAddContent' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'addcontent.html">'.$PMF_LANG["msgAddContent"].'</a>', |
|
557 | + "msgQuestion" => '<a href="'.$faqSystem->getSystemUri($faqConfig).'ask.html">'.$PMF_LANG["msgQuestion"].'</a>', |
|
558 | + "msgOpenQuestions" => '<a href="'.$faqSystem->getSystemUri($faqConfig).'open.html">'.$PMF_LANG["msgOpenQuestions"].'</a>', |
|
559 | + 'msgHelp' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'help.html">'.$PMF_LANG["msgHelp"].'</a>', |
|
560 | + "msgContact" => '<a href="'.$faqSystem->getSystemUri($faqConfig).'contact.html">'.$PMF_LANG["msgContact"].'</a>', |
|
561 | + 'msgGlossary' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'glossary.html">'.$PMF_LANG['ad_menu_glossary'].'</a>', |
|
562 | + "backToHome" => '<a href="'.$faqSystem->getSystemUri($faqConfig).'index.html">'.$PMF_LANG["msgHome"].'</a>', |
|
563 | + "allCategories" => '<a href="'.$faqSystem->getSystemUri($faqConfig).'showcat.html">'.$PMF_LANG["msgShowAllCategories"].'</a>', |
|
564 | + 'showInstantResponse' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'instantresponse.html">'.$PMF_LANG['msgInstantResponse'].'</a>', |
|
565 | + 'showSitemap' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'sitemap/A/'.$LANGCODE.'.html">'.$PMF_LANG['msgSitemap'].'</a>', |
|
566 | + 'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.html'); |
|
567 | 567 | } else { |
568 | 568 | $tplNavigation = array( |
569 | 569 | "msgSearch" => '<a href="index.php?'.$sids.'action=search">'.$PMF_LANG["msgAdvancedSearch"].'</a>', |
@@ -572,12 +572,12 @@ discard block |
||
572 | 572 | "msgOpenQuestions" => '<a href="index.php?'.$sids.'action=open">'.$PMF_LANG["msgOpenQuestions"].'</a>', |
573 | 573 | "msgHelp" => '<a href="index.php?'.$sids.'action=help">'.$PMF_LANG["msgHelp"].'</a>', |
574 | 574 | "msgContact" => '<a href="index.php?'.$sids.'action=contact">'.$PMF_LANG["msgContact"].'</a>', |
575 | - 'msgGlossary' => '<a href="index.php?'.$sids.'action=glossary">' . $PMF_LANG['ad_menu_glossary'] . '</a>', |
|
575 | + 'msgGlossary' => '<a href="index.php?'.$sids.'action=glossary">'.$PMF_LANG['ad_menu_glossary'].'</a>', |
|
576 | 576 | "allCategories" => '<a href="index.php?'.$sids.'action=show">'.$PMF_LANG["msgShowAllCategories"].'</a>', |
577 | 577 | "backToHome" => '<a href="index.php?'.$sids.'">'.$PMF_LANG["msgHome"].'</a>', |
578 | 578 | 'showInstantResponse' => '<a href="index.php?'.$sids.'action=instantresponse">'.$PMF_LANG['msgInstantResponse'].'</a>', |
579 | 579 | 'showSitemap' => '<a href="index.php?'.$sids.'action=sitemap&lang='.$LANGCODE.'">'.$PMF_LANG['msgSitemap'].'</a>', |
580 | - 'opensearch' => $faqSystem->getSystemUri($faqConfig) . 'opensearch.php'); |
|
580 | + 'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.php'); |
|
581 | 581 | } |
582 | 582 | |
583 | 583 | $tplNavigation['faqHome'] = $faqConfig->get('main.referenceURL'); |
@@ -591,7 +591,7 @@ discard block |
||
591 | 591 | // |
592 | 592 | if (DEBUG) { |
593 | 593 | $tplDebug = array( |
594 | - 'debugMessages' => '<div id="debug_main"><h2>DEBUG INFORMATION:</h2>' . $faqConfig->getDb()->log() . '</div>' |
|
594 | + 'debugMessages' => '<div id="debug_main"><h2>DEBUG INFORMATION:</h2>'.$faqConfig->getDb()->log().'</div>' |
|
595 | 595 | ); |
596 | 596 | } else { |
597 | 597 | $tplDebug = array( |
@@ -606,13 +606,13 @@ discard block |
||
606 | 606 | if (in_array(true, $permission)) { |
607 | 607 | $adminSection = sprintf( |
608 | 608 | '<a href="%s">%s</a>', |
609 | - $faqSystem->getSystemUri($faqConfig) . 'admin/index.php', |
|
609 | + $faqSystem->getSystemUri($faqConfig).'admin/index.php', |
|
610 | 610 | $PMF_LANG['adminSection'] |
611 | 611 | ); |
612 | 612 | } else { |
613 | 613 | $adminSection = sprintf( |
614 | 614 | '<a href="%s">%s</a>', |
615 | - $faqSystem->getSystemUri($faqConfig) . 'index.php?action=ucp', |
|
615 | + $faqSystem->getSystemUri($faqConfig).'index.php?action=ucp', |
|
616 | 616 | $PMF_LANG['headerUserControlPanel'] |
617 | 617 | ); |
618 | 618 | } |
@@ -622,10 +622,10 @@ discard block |
||
622 | 622 | 'userloggedIn', |
623 | 623 | array( |
624 | 624 | 'msgUserControl' => $adminSection, |
625 | - 'msgFullName' => $PMF_LANG['ad_user_loggedin'] . $user->getLogin(), |
|
625 | + 'msgFullName' => $PMF_LANG['ad_user_loggedin'].$user->getLogin(), |
|
626 | 626 | 'msgLoginName' => $user->getUserData('display_name'), |
627 | - 'msgUserControlDropDown' => '<a href="?action=ucp">' . $PMF_LANG['headerUserControlPanel'] . '</a>', |
|
628 | - 'msgLogoutUser' => '<a href="?action=logout">' . $PMF_LANG['ad_menu_logout'] . '</a>', |
|
627 | + 'msgUserControlDropDown' => '<a href="?action=ucp">'.$PMF_LANG['headerUserControlPanel'].'</a>', |
|
628 | + 'msgLogoutUser' => '<a href="?action=logout">'.$PMF_LANG['ad_menu_logout'].'</a>', |
|
629 | 629 | 'activeUserControl' => ('ucp' == $action) ? 'active' : '' |
630 | 630 | ) |
631 | 631 | ); |
@@ -641,7 +641,7 @@ discard block |
||
641 | 641 | 'index', |
642 | 642 | 'notLoggedIn', |
643 | 643 | array( |
644 | - 'msgRegisterUser' => '<a href="?action=register">' . $PMF_LANG['msgRegisterUser'] . '</a>', |
|
644 | + 'msgRegisterUser' => '<a href="?action=register">'.$PMF_LANG['msgRegisterUser'].'</a>', |
|
645 | 645 | 'msgLoginUser' => sprintf($msgLoginUser, $PMF_LANG['msgLoginUser']), |
646 | 646 | 'activeRegister' => ('register' == $action) ? 'active' : '', |
647 | 647 | 'activeLogin' => ('login' == $action) ? 'active' : '' |
@@ -75,8 +75,9 @@ |
||
75 | 75 | // check user rights, set them TRUE |
76 | 76 | $allUserRights = $user->perm->getAllUserRights($user->getUserId()); |
77 | 77 | foreach ($allRights as $right) { |
78 | - if (in_array($right['right_id'], $allUserRights)) |
|
79 | - $permission[$right['name']] = true; |
|
78 | + if (in_array($right['right_id'], $allUserRights)) { |
|
79 | + $permission[$right['name']] = true; |
|
80 | + } |
|
80 | 81 | } |
81 | 82 | } |
82 | 83 |