@@ -641,14 +641,14 @@ discard block |
||
641 | 641 | $PMF_LANG['ad_entry_visibility'] = "公開發佈? (Publish?)"; |
642 | 642 | |
643 | 643 | // added v2.0.0 - 2006-01-02 by Lars 開發者 |
644 | -$PMF_LANG['ad_user_error_password'] = "請輸入密碼。 "; |
|
645 | -$PMF_LANG['ad_user_error_passwordsDontMatch'] = "密碼不不符合。 (Passwords do not match.) "; |
|
646 | -$PMF_LANG['ad_user_error_loginInvalid'] = "使用者名稱是無效的。 (The specified user name is invalid.)"; |
|
647 | -$PMF_LANG['ad_user_error_noEmail'] = "請輸入一個有效的 email 地址。(Please enter a valid mail address.) "; |
|
648 | -$PMF_LANG['ad_user_error_noRealName'] = "請輸入您的真實姓名。(Please enter your real name. )"; |
|
649 | -$PMF_LANG['ad_user_error_delete'] = "使用者帳號不能被刪除。(User account could not be deleted. )"; |
|
650 | -$PMF_LANG['ad_user_error_noId'] = "沒有指定 ID。 (No ID specified.) "; |
|
651 | -$PMF_LANG['ad_user_error_protectedAccount'] = "使用者帳號受到保護。(User account is protected. )"; |
|
644 | +$PMF_LANG['ad_user_error_password'] = "請輸入密碼。 "; |
|
645 | +$PMF_LANG['ad_user_error_passwordsDontMatch'] = "密碼不不符合。 (Passwords do not match.) "; |
|
646 | +$PMF_LANG['ad_user_error_loginInvalid'] = "使用者名稱是無效的。 (The specified user name is invalid.)"; |
|
647 | +$PMF_LANG['ad_user_error_noEmail'] = "請輸入一個有效的 email 地址。(Please enter a valid mail address.) "; |
|
648 | +$PMF_LANG['ad_user_error_noRealName'] = "請輸入您的真實姓名。(Please enter your real name. )"; |
|
649 | +$PMF_LANG['ad_user_error_delete'] = "使用者帳號不能被刪除。(User account could not be deleted. )"; |
|
650 | +$PMF_LANG['ad_user_error_noId'] = "沒有指定 ID。 (No ID specified.) "; |
|
651 | +$PMF_LANG['ad_user_error_protectedAccount'] = "使用者帳號受到保護。(User account is protected. )"; |
|
652 | 652 | $PMF_LANG['ad_user_deleteUser'] = "刪除使用者 (Delete User)"; |
653 | 653 | $PMF_LANG['ad_user_status'] = "狀態: (Status:)"; |
654 | 654 | $PMF_LANG['ad_user_lastModified'] = "最後一次修改: (last modified:)"; |
@@ -986,7 +986,7 @@ discard block |
||
986 | 986 | $PMF_LANG['msgSecureSwitch'] = "切換到安全模式來登入! (Switch to secure mode to login!)"; |
987 | 987 | |
988 | 988 | // added 2.6.0-alpha - 2009-10-03 by Anatoliy Belsky 開發者 |
989 | -$PMF_LANG['msgTransToolNoteFileSaving'] = "請注意,請按儲存(save)按鈕才會儲存檔案。(Please note that no files will we written until you click save button)"; |
|
989 | +$PMF_LANG['msgTransToolNoteFileSaving'] = "請注意,請按儲存(save)按鈕才會儲存檔案。(Please note that no files will we written until you click save button)"; |
|
990 | 990 | $PMF_LANG['msgTransToolPageBufferRecorded'] = "頁面 %d 暫存 buffer 記錄成功 (Page %d buffer recorded successfully)"; |
991 | 991 | $PMF_LANG['msgTransToolErrorRecordingPageBuffer'] = "錯誤記錄頁面 %d 暫存 buffer (Error recording page %d buffer)"; |
992 | 992 | $PMF_LANG['msgTransToolRecordingPageBuffer'] = "記錄頁面 %d 暫存 buffer (Recording page %d buffer)"; |
@@ -998,9 +998,9 @@ discard block |
||
998 | 998 | $PMF_LANG['msgAttachmentInvalid'] = "附加檔案無效,請通報管理員。(The attachment is invalid, please inform admin.)"; |
999 | 999 | |
1000 | 1000 | // added 2.6.0-alpha - 2009-11-02 by max 開發者 |
1001 | -$LANG_CONF['search.numberSearchTerms'] = array(0 => "input", 1 => "Number of listed search terms"); |
|
1001 | +$LANG_CONF['search.numberSearchTerms'] = array(0 => "input", 1 => "Number of listed search terms"); |
|
1002 | 1002 | $LANG_CONF['records.orderingPopularFaqs'] = array(0 => "select", 1 => "排列熱門的 FAQ's<br> Sorting of the top FAQ's"); |
1003 | -$PMF_LANG['list_all_users'] = "列出所有使用者 (List all users)"; |
|
1003 | +$PMF_LANG['list_all_users'] = "列出所有使用者 (List all users)"; |
|
1004 | 1004 | |
1005 | 1005 | $PMF_LANG['records.orderingPopularFaqs.visits'] = "列出最多訪問的 entries (list most visited entries)"; |
1006 | 1006 | $PMF_LANG['records.orderingPopularFaqs.voting'] = "列出最多得票的 entries (list most voted entries)"; |
@@ -468,7 +468,7 @@ |
||
468 | 468 | $PMF_LANG["ad_start_comments"] = "Коментарів"; |
469 | 469 | |
470 | 470 | |
471 | - // Added v1.1 - 30.01.2002 - Bastian |
|
471 | + // Added v1.1 - 30.01.2002 - Bastian |
|
472 | 472 | |
473 | 473 | $PMF_LANG["ad_categ_paste"] = "вставити"; |
474 | 474 | $PMF_LANG["ad_categ_cut"] = "cut"; |
@@ -646,14 +646,14 @@ |
||
646 | 646 | $PMF_LANG["newsArchive"] = ". Архів новин"; |
647 | 647 | |
648 | 648 | // added v2.0.0 - 2006-01-02 by Lars |
649 | -$PMF_LANG['ad_user_error_password'] = "Please enter a password. "; |
|
650 | -$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Passwords do not match. "; |
|
651 | -$PMF_LANG['ad_user_error_loginInvalid'] = "The specified user name is invalid."; |
|
652 | -$PMF_LANG['ad_user_error_noEmail'] = "Please enter a valid mail adress. "; |
|
653 | -$PMF_LANG['ad_user_error_noRealName'] = "Please enter your real name. "; |
|
654 | -$PMF_LANG['ad_user_error_delete'] = "User account could not be deleted. "; |
|
655 | -$PMF_LANG['ad_user_error_noId'] = "No ID specified. "; |
|
656 | -$PMF_LANG['ad_user_error_protectedAccount'] = "User account is protected. "; |
|
649 | +$PMF_LANG['ad_user_error_password'] = "Please enter a password. "; |
|
650 | +$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Passwords do not match. "; |
|
651 | +$PMF_LANG['ad_user_error_loginInvalid'] = "The specified user name is invalid."; |
|
652 | +$PMF_LANG['ad_user_error_noEmail'] = "Please enter a valid mail adress. "; |
|
653 | +$PMF_LANG['ad_user_error_noRealName'] = "Please enter your real name. "; |
|
654 | +$PMF_LANG['ad_user_error_delete'] = "User account could not be deleted. "; |
|
655 | +$PMF_LANG['ad_user_error_noId'] = "No ID specified. "; |
|
656 | +$PMF_LANG['ad_user_error_protectedAccount'] = "User account is protected. "; |
|
657 | 657 | $PMF_LANG['ad_user_deleteUser'] = "Delete User"; |
658 | 658 | $PMF_LANG['ad_user_status'] = "Status"; |
659 | 659 | $PMF_LANG['ad_user_lastModified'] = "last modified"; |
@@ -50,7 +50,7 @@ |
||
50 | 50 | if (empty($ajaxData['categories'])) { |
51 | 51 | $categories = array(-1); // Access for all users and groups |
52 | 52 | } else { |
53 | - $categories = explode(',', (int) $ajaxData['categories']); |
|
53 | + $categories = explode(',', (int)$ajaxData['categories']); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | echo json_encode( |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | foreach ($userList as $single_user) { |
67 | 67 | $user->getUserById($single_user, true); |
68 | 68 | $users[] = array('user_id' => $user->getUserId(), |
69 | - 'login' => $user->getLogin(), ); |
|
69 | + 'login' => $user->getLogin(), ); |
|
70 | 70 | } |
71 | 71 | echo json_encode($users); |
72 | 72 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | foreach ($memberList as $single_member) { |
79 | 79 | $user->getUserById($single_member, true); |
80 | 80 | $members[] = array('user_id' => $user->getUserId(), |
81 | - 'login' => $user->getLogin(), ); |
|
81 | + 'login' => $user->getLogin(), ); |
|
82 | 82 | } |
83 | 83 | echo json_encode($members); |
84 | 84 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $groupList = ($user->perm instanceof MediumPermission) ? $user->perm->getAllGroups($user->getUserId()) : []; |
41 | 41 | $userList = $user->getAllUsers(true, false); |
42 | 42 | |
43 | - if (!$faqConfig->get('main.enableCategoryRestrictions')){ |
|
43 | + if (!$faqConfig->get('main.enableCategoryRestrictions')) { |
|
44 | 44 | $user = new User($faqConfig); |
45 | 45 | $groupList = ($user->perm instanceof MediumPermission) ? $user->perm->getAllGroups() : []; |
46 | 46 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | foreach ($userList as $single_user) { |
75 | 75 | $user->getUserById($single_user, true); |
76 | 76 | $users[] = array('user_id' => $user->getUserId(), |
77 | - 'login' => $user->getLogin(), ); |
|
77 | + 'login' => $user->getLogin(),); |
|
78 | 78 | } |
79 | 79 | echo json_encode($users); |
80 | 80 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | foreach ($memberList as $single_member) { |
87 | 87 | $user->getUserById($single_member, true); |
88 | 88 | $members[] = array('user_id' => $user->getUserId(), |
89 | - 'login' => $user->getLogin(), ); |
|
89 | + 'login' => $user->getLogin(),); |
|
90 | 90 | } |
91 | 91 | echo json_encode($members); |
92 | 92 | } |
@@ -510,7 +510,7 @@ discard block |
||
510 | 510 | 'active' => (is_null($active)) ? 'n' : 'y', |
511 | 511 | 'comment' => (is_null($comment)) ? 'n' : 'y', |
512 | 512 | 'dateStart' => (empty($dateStart)) ? '00000000000000' : str_replace('-', '', $dateStart).'000000', |
513 | - 'dateEnd' => (empty($dateEnd)) ? '99991231235959' : str_replace('-', '', $dateEnd).'235959', |
|
513 | + 'dateEnd' => (empty($dateEnd)) ? '99991231235959' : str_replace('-', '', $dateEnd).'235959', |
|
514 | 514 | 'link' => $link, |
515 | 515 | 'linkTitle' => $linktitle, |
516 | 516 | 'date' => date('YmdHis'), |
@@ -562,7 +562,7 @@ discard block |
||
562 | 562 | 'active' => (is_null($active)) ? 'n' : 'y', |
563 | 563 | 'comment' => (is_null($comment)) ? 'n' : 'y', |
564 | 564 | 'dateStart' => (empty($dateStart)) ? '00000000000000' : str_replace('-', '', $dateStart).'000000', |
565 | - 'dateEnd' => (empty($dateEnd)) ? '99991231235959' : str_replace('-', '', $dateEnd).'235959', |
|
565 | + 'dateEnd' => (empty($dateEnd)) ? '99991231235959' : str_replace('-', '', $dateEnd).'235959', |
|
566 | 566 | 'link' => $link, |
567 | 567 | 'linkTitle' => $linktitle, |
568 | 568 | 'date' => date('YmdHis'), |
@@ -55,18 +55,18 @@ |
||
55 | 55 | <thead> |
56 | 56 | <tr> |
57 | 57 | <?php |
58 | - ($useCategory) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_category']) : ''; |
|
59 | - ($useSubcategory) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_sub_category']) : ''; |
|
60 | - ($useTranslation) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_translations']) : ''; |
|
61 | - ($useLanguage) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_language']) : ''; |
|
62 | - ($useId) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_id']) : ''; |
|
63 | - ($useSticky) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_sticky']) : ''; |
|
64 | - ($useTitle) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_title']) : ''; |
|
58 | + ($useCategory) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_category']) : ''; |
|
59 | + ($useSubcategory) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_sub_category']) : ''; |
|
60 | + ($useTranslation) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_translations']) : ''; |
|
61 | + ($useLanguage) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_language']) : ''; |
|
62 | + ($useId) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_id']) : ''; |
|
63 | + ($useSticky) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_sticky']) : ''; |
|
64 | + ($useTitle) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_title']) : ''; |
|
65 | 65 | ($useCreationDate) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_creation_date']) : ''; |
66 | - ($useOwner) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_owner']) : ''; |
|
66 | + ($useOwner) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_owner']) : ''; |
|
67 | 67 | ($useLastModified) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_last_modified_person']) : ''; |
68 | - ($useUrl) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_url']) : ''; |
|
69 | - ($useVisits) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_visits']) : ''; |
|
68 | + ($useUrl) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_url']) : ''; |
|
69 | + ($useVisits) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_visits']) : ''; |
|
70 | 70 | ?> |
71 | 71 | </tr> |
72 | 72 | </thead> |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | if (0 < $numItems) { |
59 | 59 | $output = []; |
60 | - $visibleItems = array_slice($glossaryItems, ($page - 1) * $itemsPerPage, $itemsPerPage); |
|
60 | + $visibleItems = array_slice($glossaryItems, ($page - 1)*$itemsPerPage, $itemsPerPage); |
|
61 | 61 | |
62 | 62 | foreach ($visibleItems as $item) { |
63 | 63 | $output['item'][] = $item['item']; |
@@ -111,7 +111,7 @@ |
||
111 | 111 | } |
112 | 112 | } |
113 | 113 | |
114 | - uasort($relatedTags, function ($a, $b) { |
|
114 | + uasort($relatedTags, function($a, $b) { |
|
115 | 115 | return ($b - $a); |
116 | 116 | } |
117 | 117 | ); |
@@ -118,7 +118,7 @@ |
||
118 | 118 | foreach ($items as $item) { |
119 | 119 | $priority = PMF_SITEMAP_GOOGLE_PRIORITY_DEFAULT; |
120 | 120 | if (($visitsMax - $visitMin) > 0) { |
121 | - $priority = sprintf('%.1f', PMF_SITEMAP_GOOGLE_PRIORITY_DEFAULT * (1 + (($item['visits'] - $visitMin) / ($visitsMax - $visitMin)))); |
|
121 | + $priority = sprintf('%.1f', PMF_SITEMAP_GOOGLE_PRIORITY_DEFAULT*(1 + (($item['visits'] - $visitMin)/($visitsMax - $visitMin)))); |
|
122 | 122 | } |
123 | 123 | // a. We use plain PMF urls w/o any SEO schema |
124 | 124 | $link = str_replace($_SERVER['SCRIPT_NAME'], '/index.php', $item['url']); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $changeFreq = PMF_SITEMAP_GOOGLE_CHANGEFREQ_DAILY; |
79 | 79 | } |
80 | 80 | $node = |
81 | - '<url>' |
|
81 | + '<url>' |
|
82 | 82 | .'<loc>'.Strings::htmlspecialchars($location).'</loc>' |
83 | 83 | .'<lastmod>'.$lastModified.'</lastmod>' |
84 | 84 | .'<changefreq>'.$changeFreq.'</changefreq>' |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | |
110 | 110 | // Sitemap header |
111 | 111 | $siteMap = |
112 | - '<?xml version="1.0" encoding="UTF-8"?>' |
|
112 | + '<?xml version="1.0" encoding="UTF-8"?>' |
|
113 | 113 | .'<urlset xmlns="http://www.google.com/schemas/sitemap/0.9"' |
114 | 114 | .' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' |
115 | 115 | .' xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.9' |