@@ -10,258 +10,258 @@ |
||
10 | 10 | * DO NOT CHANGE. |
11 | 11 | */ |
12 | 12 | if (!defined('IN_PHPBB')) { |
13 | - exit; |
|
13 | + exit; |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | if (empty($lang) || !is_array($lang)) { |
17 | - $lang = []; |
|
17 | + $lang = []; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | $lang = array_merge($lang, [ |
21 | - 'DIR_FLAG_CODE_AD' => 'Andorra', |
|
22 | - 'DIR_FLAG_CODE_AE' => 'United Arab Emirates', |
|
23 | - 'DIR_FLAG_CODE_AF' => 'Afghanistan', |
|
24 | - 'DIR_FLAG_CODE_AG' => 'Antigua and Barbuda', |
|
25 | - 'DIR_FLAG_CODE_AI' => 'Anguilla', |
|
26 | - 'DIR_FLAG_CODE_AL' => 'Albania', |
|
27 | - 'DIR_FLAG_CODE_AM' => 'Armenia', |
|
28 | - 'DIR_FLAG_CODE_AN' => 'Antilles', |
|
29 | - 'DIR_FLAG_CODE_AO' => 'Angola', |
|
30 | - 'DIR_FLAG_CODE_AQ' => 'Antarctica', |
|
31 | - 'DIR_FLAG_CODE_AR' => 'Argentina', |
|
32 | - 'DIR_FLAG_CODE_AS' => 'American Samoa', |
|
33 | - 'DIR_FLAG_CODE_AT' => 'Austria', |
|
34 | - 'DIR_FLAG_CODE_AU' => 'Australia', |
|
35 | - 'DIR_FLAG_CODE_AW' => 'Aruba', |
|
36 | - 'DIR_FLAG_CODE_AX' => 'Åland', |
|
37 | - 'DIR_FLAG_CODE_AZ' => 'Azerbaijan', |
|
38 | - 'DIR_FLAG_CODE_BA' => 'Bosnia-Herzegovina', |
|
39 | - 'DIR_FLAG_CODE_BB' => 'Barbados', |
|
40 | - 'DIR_FLAG_CODE_BD' => 'Bangladesh', |
|
41 | - 'DIR_FLAG_CODE_BE' => 'Belgium', |
|
42 | - 'DIR_FLAG_CODE_BF' => 'Burkina faso', |
|
43 | - 'DIR_FLAG_CODE_BG' => 'Bulgaria', |
|
44 | - 'DIR_FLAG_CODE_BH' => 'Bahrain', |
|
45 | - 'DIR_FLAG_CODE_BI' => 'Burundi', |
|
46 | - 'DIR_FLAG_CODE_BJ' => 'Benin', |
|
47 | - 'DIR_FLAG_CODE_BL' => 'St. Barthelemy', |
|
48 | - 'DIR_FLAG_CODE_BM' => 'Bermuda', |
|
49 | - 'DIR_FLAG_CODE_BN' => 'Brunei', |
|
50 | - 'DIR_FLAG_CODE_BO' => 'Bolivia', |
|
51 | - 'DIR_FLAG_CODE_BR' => 'Brazil', |
|
52 | - 'DIR_FLAG_CODE_BS' => 'Bahamas', |
|
53 | - 'DIR_FLAG_CODE_BT' => 'Bhutan', |
|
54 | - 'DIR_FLAG_CODE_BV' => 'Bouvet Isle', |
|
55 | - 'DIR_FLAG_CODE_BW' => 'Botswana', |
|
56 | - 'DIR_FLAG_CODE_BY' => 'Belarus', |
|
57 | - 'DIR_FLAG_CODE_BZ' => 'Belize', |
|
58 | - 'DIR_FLAG_CODE_CA' => 'Canada', |
|
59 | - 'DIR_FLAG_CODE_CC' => 'Cocos Isle', |
|
60 | - 'DIR_FLAG_CODE_CD' => 'Congo, the Democratic Republic of the', |
|
61 | - 'DIR_FLAG_CODE_CF' => 'Central African Republic', |
|
62 | - 'DIR_FLAG_CODE_CG' => 'Congo', |
|
63 | - 'DIR_FLAG_CODE_CH' => 'Switzerland', |
|
64 | - 'DIR_FLAG_CODE_CI' => 'Ivory Coast', |
|
65 | - 'DIR_FLAG_CODE_CK' => 'Cook Isle', |
|
66 | - 'DIR_FLAG_CODE_CL' => 'Chili', |
|
67 | - 'DIR_FLAG_CODE_CM' => 'Cameroon', |
|
68 | - 'DIR_FLAG_CODE_CN' => 'China', |
|
69 | - 'DIR_FLAG_CODE_CO' => 'Colombia', |
|
70 | - 'DIR_FLAG_CODE_CR' => 'Costa Rica', |
|
71 | - 'DIR_FLAG_CODE_CU' => 'Cuba', |
|
72 | - 'DIR_FLAG_CODE_CV' => 'Cape Verde', |
|
73 | - 'DIR_FLAG_CODE_CX' => 'Christmas Isle', |
|
74 | - 'DIR_FLAG_CODE_CY' => 'Cyprus', |
|
75 | - 'DIR_FLAG_CODE_CZ' => 'The Czech Republic', |
|
76 | - 'DIR_FLAG_CODE_DE' => 'Germany', |
|
77 | - 'DIR_FLAG_CODE_DJ' => 'Djibouti', |
|
78 | - 'DIR_FLAG_CODE_DK' => 'Denmark', |
|
79 | - 'DIR_FLAG_CODE_DM' => 'Dominica', |
|
80 | - 'DIR_FLAG_CODE_DO' => 'Dominican Republic', |
|
81 | - 'DIR_FLAG_CODE_DZ' => 'Algeria', |
|
82 | - 'DIR_FLAG_CODE_EC' => 'Ecuador', |
|
83 | - 'DIR_FLAG_CODE_EE' => 'Estonia', |
|
84 | - 'DIR_FLAG_CODE_EG' => 'Egypt', |
|
85 | - 'DIR_FLAG_CODE_EH' => 'Western Sahara', |
|
86 | - 'DIR_FLAG_CODE_ER' => 'Eritrea', |
|
87 | - 'DIR_FLAG_CODE_ES' => 'Spain', |
|
88 | - 'DIR_FLAG_CODE_ET' => 'Ethiopia', |
|
89 | - 'DIR_FLAG_CODE_FI' => 'Finland', |
|
90 | - 'DIR_FLAG_CODE_FJ' => 'Fiji', |
|
91 | - 'DIR_FLAG_CODE_FK' => 'Falklands', |
|
92 | - 'DIR_FLAG_CODE_FM' => 'Micronesia', |
|
93 | - 'DIR_FLAG_CODE_FO' => 'Faroe Islands', |
|
94 | - 'DIR_FLAG_CODE_FR' => 'France', |
|
95 | - 'DIR_FLAG_CODE_GA' => 'Gabon', |
|
96 | - 'DIR_FLAG_CODE_GB' => 'United Kingdom', |
|
97 | - 'DIR_FLAG_CODE_GD' => 'Grenade', |
|
98 | - 'DIR_FLAG_CODE_GE' => 'Georgia', |
|
99 | - 'DIR_FLAG_CODE_GF' => 'French Guiana', |
|
100 | - 'DIR_FLAG_CODE_GG' => 'Guernesey', |
|
101 | - 'DIR_FLAG_CODE_GH' => 'Ghana', |
|
102 | - 'DIR_FLAG_CODE_GI' => 'Gibraltar', |
|
103 | - 'DIR_FLAG_CODE_GL' => 'Groenland', |
|
104 | - 'DIR_FLAG_CODE_GM' => 'Gambia', |
|
105 | - 'DIR_FLAG_CODE_GN' => 'Guinea', |
|
106 | - 'DIR_FLAG_CODE_GP' => 'Guadeloupe', |
|
107 | - 'DIR_FLAG_CODE_GQ' => 'Equatorial Guinea', |
|
108 | - 'DIR_FLAG_CODE_GR' => 'Greece', |
|
109 | - 'DIR_FLAG_CODE_GS' => 'South Georgia and the South Sandwich Islands', |
|
110 | - 'DIR_FLAG_CODE_GT' => 'Guatemala', |
|
111 | - 'DIR_FLAG_CODE_GU' => 'Guam', |
|
112 | - 'DIR_FLAG_CODE_GW' => 'Guinea-Bissau', |
|
113 | - 'DIR_FLAG_CODE_GY' => 'Guyana', |
|
114 | - 'DIR_FLAG_CODE_HK' => 'Hong Kong', |
|
115 | - 'DIR_FLAG_CODE_HM' => 'Heard Island and McDonald Islands', |
|
116 | - 'DIR_FLAG_CODE_HN' => 'Honduras', |
|
117 | - 'DIR_FLAG_CODE_HR' => 'Croatie', |
|
118 | - 'DIR_FLAG_CODE_HT' => 'Haïti', |
|
119 | - 'DIR_FLAG_CODE_HU' => 'Hungary', |
|
120 | - 'DIR_FLAG_CODE_ID' => 'Indonesia', |
|
121 | - 'DIR_FLAG_CODE_IE' => 'Ireland', |
|
122 | - 'DIR_FLAG_CODE_IL' => 'Israel', |
|
123 | - 'DIR_FLAG_CODE_IM' => 'Isle of Man', |
|
124 | - 'DIR_FLAG_CODE_IN' => 'India', |
|
125 | - 'DIR_FLAG_CODE_IO' => 'British Territory Indian Ocean', |
|
126 | - 'DIR_FLAG_CODE_IQ' => 'Iraq', |
|
127 | - 'DIR_FLAG_CODE_IR' => 'Iran', |
|
128 | - 'DIR_FLAG_CODE_IS' => 'Iceland', |
|
129 | - 'DIR_FLAG_CODE_IT' => 'Italia', |
|
130 | - 'DIR_FLAG_CODE_JE' => 'Jersey', |
|
131 | - 'DIR_FLAG_CODE_JM' => 'Jamaica', |
|
132 | - 'DIR_FLAG_CODE_JO' => 'Jordanie', |
|
133 | - 'DIR_FLAG_CODE_JP' => 'Japan', |
|
134 | - 'DIR_FLAG_CODE_KE' => 'Kenya', |
|
135 | - 'DIR_FLAG_CODE_KG' => 'Kirghizistan', |
|
136 | - 'DIR_FLAG_CODE_KH' => 'Cambodge', |
|
137 | - 'DIR_FLAG_CODE_KI' => 'Kiribati', |
|
138 | - 'DIR_FLAG_CODE_KM' => 'Comores', |
|
139 | - 'DIR_FLAG_CODE_KN' => 'Saint Kitts and Nevis', |
|
140 | - 'DIR_FLAG_CODE_KP' => 'North Korea', |
|
141 | - 'DIR_FLAG_CODE_KR' => 'South Korea', |
|
142 | - 'DIR_FLAG_CODE_KW' => 'Kuwait', |
|
143 | - 'DIR_FLAG_CODE_KY' => 'Cayman Isle', |
|
144 | - 'DIR_FLAG_CODE_KZ' => 'Kazakhstan', |
|
145 | - 'DIR_FLAG_CODE_LA' => 'Laos', |
|
146 | - 'DIR_FLAG_CODE_LB' => 'Lebanon', |
|
147 | - 'DIR_FLAG_CODE_LC' => 'Saint Lucia', |
|
148 | - 'DIR_FLAG_CODE_LI' => 'Liechtenstein', |
|
149 | - 'DIR_FLAG_CODE_LK' => 'Sri Lanka', |
|
150 | - 'DIR_FLAG_CODE_LR' => 'Libéria', |
|
151 | - 'DIR_FLAG_CODE_LS' => 'Lesotho', |
|
152 | - 'DIR_FLAG_CODE_LT' => 'Lituanie', |
|
153 | - 'DIR_FLAG_CODE_LU' => 'Luxembourg', |
|
154 | - 'DIR_FLAG_CODE_LV' => 'Lettonie', |
|
155 | - 'DIR_FLAG_CODE_LY' => 'Liby', |
|
156 | - 'DIR_FLAG_CODE_MA' => 'Morroco', |
|
157 | - 'DIR_FLAG_CODE_MC' => 'Monaco', |
|
158 | - 'DIR_FLAG_CODE_MD' => 'Moldovie', |
|
159 | - 'DIR_FLAG_CODE_ME' => 'Montenegro', |
|
160 | - 'DIR_FLAG_CODE_MF' => 'St. Martin', |
|
161 | - 'DIR_FLAG_CODE_MG' => 'Madagascar', |
|
162 | - 'DIR_FLAG_CODE_MH' => 'Marshallese', |
|
163 | - 'DIR_FLAG_CODE_MK' => 'Macedonia, the former Yugoslav Republic of', |
|
164 | - 'DIR_FLAG_CODE_ML' => 'Mali', |
|
165 | - 'DIR_FLAG_CODE_MM' => 'Myanmar', |
|
166 | - 'DIR_FLAG_CODE_MN' => 'Mongolie', |
|
167 | - 'DIR_FLAG_CODE_MO' => 'Macao', |
|
168 | - 'DIR_FLAG_CODE_MP' => 'Northern Mariana Islands', |
|
169 | - 'DIR_FLAG_CODE_MQ' => 'Martinique', |
|
170 | - 'DIR_FLAG_CODE_MR' => 'Mauritanie', |
|
171 | - 'DIR_FLAG_CODE_MS' => 'Montserrat', |
|
172 | - 'DIR_FLAG_CODE_MT' => 'Malta', |
|
173 | - 'DIR_FLAG_CODE_MU' => 'Mauritius', |
|
174 | - 'DIR_FLAG_CODE_MV' => 'Maldives', |
|
175 | - 'DIR_FLAG_CODE_MW' => 'Malawi', |
|
176 | - 'DIR_FLAG_CODE_MX' => 'Mexico', |
|
177 | - 'DIR_FLAG_CODE_MY' => 'Malaysia', |
|
178 | - 'DIR_FLAG_CODE_MZ' => 'Mozambique', |
|
179 | - 'DIR_FLAG_CODE_NA' => 'Namibia', |
|
180 | - 'DIR_FLAG_CODE_NC' => 'New Caledonia', |
|
181 | - 'DIR_FLAG_CODE_NE' => 'Niger', |
|
182 | - 'DIR_FLAG_CODE_NF' => 'Norfolk Island', |
|
183 | - 'DIR_FLAG_CODE_NG' => 'Nigeria', |
|
184 | - 'DIR_FLAG_CODE_NI' => 'Nicaragua', |
|
185 | - 'DIR_FLAG_CODE_NL' => 'Holland', |
|
186 | - 'DIR_FLAG_CODE_NO' => 'Norway', |
|
187 | - 'DIR_FLAG_CODE_NP' => 'Nepal', |
|
188 | - 'DIR_FLAG_CODE_NR' => 'Nauru', |
|
189 | - 'DIR_FLAG_CODE_NU' => 'Niue', |
|
190 | - 'DIR_FLAG_CODE_NZ' => 'New Zealand', |
|
191 | - 'DIR_FLAG_CODE_OM' => 'Oman', |
|
192 | - 'DIR_FLAG_CODE_PA' => 'Panama', |
|
193 | - 'DIR_FLAG_CODE_PE' => 'Peru', |
|
194 | - 'DIR_FLAG_CODE_PF' => 'French Polynesia', |
|
195 | - 'DIR_FLAG_CODE_PG' => 'Papua New Guinea', |
|
196 | - 'DIR_FLAG_CODE_PH' => 'Philippines', |
|
197 | - 'DIR_FLAG_CODE_PK' => 'Pakistan', |
|
198 | - 'DIR_FLAG_CODE_PL' => 'Poland', |
|
199 | - 'DIR_FLAG_CODE_PM' => 'Saint Pierre and Miquelon', |
|
200 | - 'DIR_FLAG_CODE_PN' => 'Pitcairn', |
|
201 | - 'DIR_FLAG_CODE_PR' => 'Porto Rico', |
|
202 | - 'DIR_FLAG_CODE_PS' => 'Palestinian Territory, Occupied', |
|
203 | - 'DIR_FLAG_CODE_PT' => 'Portugal', |
|
204 | - 'DIR_FLAG_CODE_PW' => 'Palau', |
|
205 | - 'DIR_FLAG_CODE_PY' => 'Paraguay', |
|
206 | - 'DIR_FLAG_CODE_QA' => 'Qatar', |
|
207 | - 'DIR_FLAG_CODE_RE' => 'Reunion', |
|
208 | - 'DIR_FLAG_CODE_RO' => 'Romania', |
|
209 | - 'DIR_FLAG_CODE_RS' => 'Serbia', |
|
210 | - 'DIR_FLAG_CODE_RU' => 'Russia', |
|
211 | - 'DIR_FLAG_CODE_RW' => 'Rwanda', |
|
212 | - 'DIR_FLAG_CODE_SA' => 'Saudi Arabia', |
|
213 | - 'DIR_FLAG_CODE_SB' => 'Salomon', |
|
214 | - 'DIR_FLAG_CODE_SC' => 'Seychelles', |
|
215 | - 'DIR_FLAG_CODE_SD' => 'Sudan', |
|
216 | - 'DIR_FLAG_CODE_SE' => 'Sweden', |
|
217 | - 'DIR_FLAG_CODE_SG' => 'Singapore', |
|
218 | - 'DIR_FLAG_CODE_SH' => 'Saint Helena, Ascension and Tristan da Cunha', |
|
219 | - 'DIR_FLAG_CODE_SI' => 'Slovenia', |
|
220 | - 'DIR_FLAG_CODE_SJ' => 'Svalbard and Jan Mayen Isle', |
|
221 | - 'DIR_FLAG_CODE_SK' => 'Slovakia', |
|
222 | - 'DIR_FLAG_CODE_SL' => 'Sierra Leone', |
|
223 | - 'DIR_FLAG_CODE_SM' => 'San Marino', |
|
224 | - 'DIR_FLAG_CODE_SN' => 'Senegal', |
|
225 | - 'DIR_FLAG_CODE_SO' => 'Somalia', |
|
226 | - 'DIR_FLAG_CODE_SR' => 'Suriname', |
|
227 | - 'DIR_FLAG_CODE_ST' => 'Sao Tome and Principe', |
|
228 | - 'DIR_FLAG_CODE_SV' => 'Salvador', |
|
229 | - 'DIR_FLAG_CODE_SY' => 'Syria', |
|
230 | - 'DIR_FLAG_CODE_SZ' => 'Swaziland', |
|
231 | - 'DIR_FLAG_CODE_TC' => 'Turks and Caicos Islands', |
|
232 | - 'DIR_FLAG_CODE_TD' => 'Tchad', |
|
233 | - 'DIR_FLAG_CODE_TF' => 'French Southern and Antarctic Lands', |
|
234 | - 'DIR_FLAG_CODE_TG' => 'Togo', |
|
235 | - 'DIR_FLAG_CODE_TH' => 'Thailand', |
|
236 | - 'DIR_FLAG_CODE_TJ' => 'Tadjikistan', |
|
237 | - 'DIR_FLAG_CODE_TK' => 'Tokelau', |
|
238 | - 'DIR_FLAG_CODE_TL' => 'Timor oriental', |
|
239 | - 'DIR_FLAG_CODE_TM' => 'Turkmenistan', |
|
240 | - 'DIR_FLAG_CODE_TN' => 'Tunisia', |
|
241 | - 'DIR_FLAG_CODE_TO' => 'Tonga', |
|
242 | - 'DIR_FLAG_CODE_TR' => 'Turkey', |
|
243 | - 'DIR_FLAG_CODE_TT' => 'Trinidad and Tobago', |
|
244 | - 'DIR_FLAG_CODE_TV' => 'Tuvalu', |
|
245 | - 'DIR_FLAG_CODE_TW' => 'Taïwan', |
|
246 | - 'DIR_FLAG_CODE_TZ' => 'Tanzanie', |
|
247 | - 'DIR_FLAG_CODE_UA' => 'Ukraine', |
|
248 | - 'DIR_FLAG_CODE_UG' => 'Ouganda', |
|
249 | - 'DIR_FLAG_CODE_UM' => 'United States Minor Outlying Islands', |
|
250 | - 'DIR_FLAG_CODE_US' => 'USA', |
|
251 | - 'DIR_FLAG_CODE_UY' => 'Uruguay', |
|
252 | - 'DIR_FLAG_CODE_UZ' => 'Uzbekistan', |
|
253 | - 'DIR_FLAG_CODE_VA' => 'Vatican', |
|
254 | - 'DIR_FLAG_CODE_VC' => 'St. Vincent and the Grenadines', |
|
255 | - 'DIR_FLAG_CODE_VE' => 'Venezuela', |
|
256 | - 'DIR_FLAG_CODE_VG' => 'British Virgin Islands', |
|
257 | - 'DIR_FLAG_CODE_VI' => 'United States Virgin Islands', |
|
258 | - 'DIR_FLAG_CODE_VN' => 'Vietnam', |
|
259 | - 'DIR_FLAG_CODE_VU' => 'Vanuatu', |
|
260 | - 'DIR_FLAG_CODE_WF' => 'Wallis and Futuna', |
|
261 | - 'DIR_FLAG_CODE_WS' => 'Samoa', |
|
262 | - 'DIR_FLAG_CODE_YE' => 'Yemen', |
|
263 | - 'DIR_FLAG_CODE_YT' => 'Mayotte', |
|
264 | - 'DIR_FLAG_CODE_ZA' => 'South Africa', |
|
265 | - 'DIR_FLAG_CODE_ZM' => 'Zambia', |
|
266 | - 'DIR_FLAG_CODE_ZW' => 'Zimbabwe', |
|
21 | + 'DIR_FLAG_CODE_AD' => 'Andorra', |
|
22 | + 'DIR_FLAG_CODE_AE' => 'United Arab Emirates', |
|
23 | + 'DIR_FLAG_CODE_AF' => 'Afghanistan', |
|
24 | + 'DIR_FLAG_CODE_AG' => 'Antigua and Barbuda', |
|
25 | + 'DIR_FLAG_CODE_AI' => 'Anguilla', |
|
26 | + 'DIR_FLAG_CODE_AL' => 'Albania', |
|
27 | + 'DIR_FLAG_CODE_AM' => 'Armenia', |
|
28 | + 'DIR_FLAG_CODE_AN' => 'Antilles', |
|
29 | + 'DIR_FLAG_CODE_AO' => 'Angola', |
|
30 | + 'DIR_FLAG_CODE_AQ' => 'Antarctica', |
|
31 | + 'DIR_FLAG_CODE_AR' => 'Argentina', |
|
32 | + 'DIR_FLAG_CODE_AS' => 'American Samoa', |
|
33 | + 'DIR_FLAG_CODE_AT' => 'Austria', |
|
34 | + 'DIR_FLAG_CODE_AU' => 'Australia', |
|
35 | + 'DIR_FLAG_CODE_AW' => 'Aruba', |
|
36 | + 'DIR_FLAG_CODE_AX' => 'Åland', |
|
37 | + 'DIR_FLAG_CODE_AZ' => 'Azerbaijan', |
|
38 | + 'DIR_FLAG_CODE_BA' => 'Bosnia-Herzegovina', |
|
39 | + 'DIR_FLAG_CODE_BB' => 'Barbados', |
|
40 | + 'DIR_FLAG_CODE_BD' => 'Bangladesh', |
|
41 | + 'DIR_FLAG_CODE_BE' => 'Belgium', |
|
42 | + 'DIR_FLAG_CODE_BF' => 'Burkina faso', |
|
43 | + 'DIR_FLAG_CODE_BG' => 'Bulgaria', |
|
44 | + 'DIR_FLAG_CODE_BH' => 'Bahrain', |
|
45 | + 'DIR_FLAG_CODE_BI' => 'Burundi', |
|
46 | + 'DIR_FLAG_CODE_BJ' => 'Benin', |
|
47 | + 'DIR_FLAG_CODE_BL' => 'St. Barthelemy', |
|
48 | + 'DIR_FLAG_CODE_BM' => 'Bermuda', |
|
49 | + 'DIR_FLAG_CODE_BN' => 'Brunei', |
|
50 | + 'DIR_FLAG_CODE_BO' => 'Bolivia', |
|
51 | + 'DIR_FLAG_CODE_BR' => 'Brazil', |
|
52 | + 'DIR_FLAG_CODE_BS' => 'Bahamas', |
|
53 | + 'DIR_FLAG_CODE_BT' => 'Bhutan', |
|
54 | + 'DIR_FLAG_CODE_BV' => 'Bouvet Isle', |
|
55 | + 'DIR_FLAG_CODE_BW' => 'Botswana', |
|
56 | + 'DIR_FLAG_CODE_BY' => 'Belarus', |
|
57 | + 'DIR_FLAG_CODE_BZ' => 'Belize', |
|
58 | + 'DIR_FLAG_CODE_CA' => 'Canada', |
|
59 | + 'DIR_FLAG_CODE_CC' => 'Cocos Isle', |
|
60 | + 'DIR_FLAG_CODE_CD' => 'Congo, the Democratic Republic of the', |
|
61 | + 'DIR_FLAG_CODE_CF' => 'Central African Republic', |
|
62 | + 'DIR_FLAG_CODE_CG' => 'Congo', |
|
63 | + 'DIR_FLAG_CODE_CH' => 'Switzerland', |
|
64 | + 'DIR_FLAG_CODE_CI' => 'Ivory Coast', |
|
65 | + 'DIR_FLAG_CODE_CK' => 'Cook Isle', |
|
66 | + 'DIR_FLAG_CODE_CL' => 'Chili', |
|
67 | + 'DIR_FLAG_CODE_CM' => 'Cameroon', |
|
68 | + 'DIR_FLAG_CODE_CN' => 'China', |
|
69 | + 'DIR_FLAG_CODE_CO' => 'Colombia', |
|
70 | + 'DIR_FLAG_CODE_CR' => 'Costa Rica', |
|
71 | + 'DIR_FLAG_CODE_CU' => 'Cuba', |
|
72 | + 'DIR_FLAG_CODE_CV' => 'Cape Verde', |
|
73 | + 'DIR_FLAG_CODE_CX' => 'Christmas Isle', |
|
74 | + 'DIR_FLAG_CODE_CY' => 'Cyprus', |
|
75 | + 'DIR_FLAG_CODE_CZ' => 'The Czech Republic', |
|
76 | + 'DIR_FLAG_CODE_DE' => 'Germany', |
|
77 | + 'DIR_FLAG_CODE_DJ' => 'Djibouti', |
|
78 | + 'DIR_FLAG_CODE_DK' => 'Denmark', |
|
79 | + 'DIR_FLAG_CODE_DM' => 'Dominica', |
|
80 | + 'DIR_FLAG_CODE_DO' => 'Dominican Republic', |
|
81 | + 'DIR_FLAG_CODE_DZ' => 'Algeria', |
|
82 | + 'DIR_FLAG_CODE_EC' => 'Ecuador', |
|
83 | + 'DIR_FLAG_CODE_EE' => 'Estonia', |
|
84 | + 'DIR_FLAG_CODE_EG' => 'Egypt', |
|
85 | + 'DIR_FLAG_CODE_EH' => 'Western Sahara', |
|
86 | + 'DIR_FLAG_CODE_ER' => 'Eritrea', |
|
87 | + 'DIR_FLAG_CODE_ES' => 'Spain', |
|
88 | + 'DIR_FLAG_CODE_ET' => 'Ethiopia', |
|
89 | + 'DIR_FLAG_CODE_FI' => 'Finland', |
|
90 | + 'DIR_FLAG_CODE_FJ' => 'Fiji', |
|
91 | + 'DIR_FLAG_CODE_FK' => 'Falklands', |
|
92 | + 'DIR_FLAG_CODE_FM' => 'Micronesia', |
|
93 | + 'DIR_FLAG_CODE_FO' => 'Faroe Islands', |
|
94 | + 'DIR_FLAG_CODE_FR' => 'France', |
|
95 | + 'DIR_FLAG_CODE_GA' => 'Gabon', |
|
96 | + 'DIR_FLAG_CODE_GB' => 'United Kingdom', |
|
97 | + 'DIR_FLAG_CODE_GD' => 'Grenade', |
|
98 | + 'DIR_FLAG_CODE_GE' => 'Georgia', |
|
99 | + 'DIR_FLAG_CODE_GF' => 'French Guiana', |
|
100 | + 'DIR_FLAG_CODE_GG' => 'Guernesey', |
|
101 | + 'DIR_FLAG_CODE_GH' => 'Ghana', |
|
102 | + 'DIR_FLAG_CODE_GI' => 'Gibraltar', |
|
103 | + 'DIR_FLAG_CODE_GL' => 'Groenland', |
|
104 | + 'DIR_FLAG_CODE_GM' => 'Gambia', |
|
105 | + 'DIR_FLAG_CODE_GN' => 'Guinea', |
|
106 | + 'DIR_FLAG_CODE_GP' => 'Guadeloupe', |
|
107 | + 'DIR_FLAG_CODE_GQ' => 'Equatorial Guinea', |
|
108 | + 'DIR_FLAG_CODE_GR' => 'Greece', |
|
109 | + 'DIR_FLAG_CODE_GS' => 'South Georgia and the South Sandwich Islands', |
|
110 | + 'DIR_FLAG_CODE_GT' => 'Guatemala', |
|
111 | + 'DIR_FLAG_CODE_GU' => 'Guam', |
|
112 | + 'DIR_FLAG_CODE_GW' => 'Guinea-Bissau', |
|
113 | + 'DIR_FLAG_CODE_GY' => 'Guyana', |
|
114 | + 'DIR_FLAG_CODE_HK' => 'Hong Kong', |
|
115 | + 'DIR_FLAG_CODE_HM' => 'Heard Island and McDonald Islands', |
|
116 | + 'DIR_FLAG_CODE_HN' => 'Honduras', |
|
117 | + 'DIR_FLAG_CODE_HR' => 'Croatie', |
|
118 | + 'DIR_FLAG_CODE_HT' => 'Haïti', |
|
119 | + 'DIR_FLAG_CODE_HU' => 'Hungary', |
|
120 | + 'DIR_FLAG_CODE_ID' => 'Indonesia', |
|
121 | + 'DIR_FLAG_CODE_IE' => 'Ireland', |
|
122 | + 'DIR_FLAG_CODE_IL' => 'Israel', |
|
123 | + 'DIR_FLAG_CODE_IM' => 'Isle of Man', |
|
124 | + 'DIR_FLAG_CODE_IN' => 'India', |
|
125 | + 'DIR_FLAG_CODE_IO' => 'British Territory Indian Ocean', |
|
126 | + 'DIR_FLAG_CODE_IQ' => 'Iraq', |
|
127 | + 'DIR_FLAG_CODE_IR' => 'Iran', |
|
128 | + 'DIR_FLAG_CODE_IS' => 'Iceland', |
|
129 | + 'DIR_FLAG_CODE_IT' => 'Italia', |
|
130 | + 'DIR_FLAG_CODE_JE' => 'Jersey', |
|
131 | + 'DIR_FLAG_CODE_JM' => 'Jamaica', |
|
132 | + 'DIR_FLAG_CODE_JO' => 'Jordanie', |
|
133 | + 'DIR_FLAG_CODE_JP' => 'Japan', |
|
134 | + 'DIR_FLAG_CODE_KE' => 'Kenya', |
|
135 | + 'DIR_FLAG_CODE_KG' => 'Kirghizistan', |
|
136 | + 'DIR_FLAG_CODE_KH' => 'Cambodge', |
|
137 | + 'DIR_FLAG_CODE_KI' => 'Kiribati', |
|
138 | + 'DIR_FLAG_CODE_KM' => 'Comores', |
|
139 | + 'DIR_FLAG_CODE_KN' => 'Saint Kitts and Nevis', |
|
140 | + 'DIR_FLAG_CODE_KP' => 'North Korea', |
|
141 | + 'DIR_FLAG_CODE_KR' => 'South Korea', |
|
142 | + 'DIR_FLAG_CODE_KW' => 'Kuwait', |
|
143 | + 'DIR_FLAG_CODE_KY' => 'Cayman Isle', |
|
144 | + 'DIR_FLAG_CODE_KZ' => 'Kazakhstan', |
|
145 | + 'DIR_FLAG_CODE_LA' => 'Laos', |
|
146 | + 'DIR_FLAG_CODE_LB' => 'Lebanon', |
|
147 | + 'DIR_FLAG_CODE_LC' => 'Saint Lucia', |
|
148 | + 'DIR_FLAG_CODE_LI' => 'Liechtenstein', |
|
149 | + 'DIR_FLAG_CODE_LK' => 'Sri Lanka', |
|
150 | + 'DIR_FLAG_CODE_LR' => 'Libéria', |
|
151 | + 'DIR_FLAG_CODE_LS' => 'Lesotho', |
|
152 | + 'DIR_FLAG_CODE_LT' => 'Lituanie', |
|
153 | + 'DIR_FLAG_CODE_LU' => 'Luxembourg', |
|
154 | + 'DIR_FLAG_CODE_LV' => 'Lettonie', |
|
155 | + 'DIR_FLAG_CODE_LY' => 'Liby', |
|
156 | + 'DIR_FLAG_CODE_MA' => 'Morroco', |
|
157 | + 'DIR_FLAG_CODE_MC' => 'Monaco', |
|
158 | + 'DIR_FLAG_CODE_MD' => 'Moldovie', |
|
159 | + 'DIR_FLAG_CODE_ME' => 'Montenegro', |
|
160 | + 'DIR_FLAG_CODE_MF' => 'St. Martin', |
|
161 | + 'DIR_FLAG_CODE_MG' => 'Madagascar', |
|
162 | + 'DIR_FLAG_CODE_MH' => 'Marshallese', |
|
163 | + 'DIR_FLAG_CODE_MK' => 'Macedonia, the former Yugoslav Republic of', |
|
164 | + 'DIR_FLAG_CODE_ML' => 'Mali', |
|
165 | + 'DIR_FLAG_CODE_MM' => 'Myanmar', |
|
166 | + 'DIR_FLAG_CODE_MN' => 'Mongolie', |
|
167 | + 'DIR_FLAG_CODE_MO' => 'Macao', |
|
168 | + 'DIR_FLAG_CODE_MP' => 'Northern Mariana Islands', |
|
169 | + 'DIR_FLAG_CODE_MQ' => 'Martinique', |
|
170 | + 'DIR_FLAG_CODE_MR' => 'Mauritanie', |
|
171 | + 'DIR_FLAG_CODE_MS' => 'Montserrat', |
|
172 | + 'DIR_FLAG_CODE_MT' => 'Malta', |
|
173 | + 'DIR_FLAG_CODE_MU' => 'Mauritius', |
|
174 | + 'DIR_FLAG_CODE_MV' => 'Maldives', |
|
175 | + 'DIR_FLAG_CODE_MW' => 'Malawi', |
|
176 | + 'DIR_FLAG_CODE_MX' => 'Mexico', |
|
177 | + 'DIR_FLAG_CODE_MY' => 'Malaysia', |
|
178 | + 'DIR_FLAG_CODE_MZ' => 'Mozambique', |
|
179 | + 'DIR_FLAG_CODE_NA' => 'Namibia', |
|
180 | + 'DIR_FLAG_CODE_NC' => 'New Caledonia', |
|
181 | + 'DIR_FLAG_CODE_NE' => 'Niger', |
|
182 | + 'DIR_FLAG_CODE_NF' => 'Norfolk Island', |
|
183 | + 'DIR_FLAG_CODE_NG' => 'Nigeria', |
|
184 | + 'DIR_FLAG_CODE_NI' => 'Nicaragua', |
|
185 | + 'DIR_FLAG_CODE_NL' => 'Holland', |
|
186 | + 'DIR_FLAG_CODE_NO' => 'Norway', |
|
187 | + 'DIR_FLAG_CODE_NP' => 'Nepal', |
|
188 | + 'DIR_FLAG_CODE_NR' => 'Nauru', |
|
189 | + 'DIR_FLAG_CODE_NU' => 'Niue', |
|
190 | + 'DIR_FLAG_CODE_NZ' => 'New Zealand', |
|
191 | + 'DIR_FLAG_CODE_OM' => 'Oman', |
|
192 | + 'DIR_FLAG_CODE_PA' => 'Panama', |
|
193 | + 'DIR_FLAG_CODE_PE' => 'Peru', |
|
194 | + 'DIR_FLAG_CODE_PF' => 'French Polynesia', |
|
195 | + 'DIR_FLAG_CODE_PG' => 'Papua New Guinea', |
|
196 | + 'DIR_FLAG_CODE_PH' => 'Philippines', |
|
197 | + 'DIR_FLAG_CODE_PK' => 'Pakistan', |
|
198 | + 'DIR_FLAG_CODE_PL' => 'Poland', |
|
199 | + 'DIR_FLAG_CODE_PM' => 'Saint Pierre and Miquelon', |
|
200 | + 'DIR_FLAG_CODE_PN' => 'Pitcairn', |
|
201 | + 'DIR_FLAG_CODE_PR' => 'Porto Rico', |
|
202 | + 'DIR_FLAG_CODE_PS' => 'Palestinian Territory, Occupied', |
|
203 | + 'DIR_FLAG_CODE_PT' => 'Portugal', |
|
204 | + 'DIR_FLAG_CODE_PW' => 'Palau', |
|
205 | + 'DIR_FLAG_CODE_PY' => 'Paraguay', |
|
206 | + 'DIR_FLAG_CODE_QA' => 'Qatar', |
|
207 | + 'DIR_FLAG_CODE_RE' => 'Reunion', |
|
208 | + 'DIR_FLAG_CODE_RO' => 'Romania', |
|
209 | + 'DIR_FLAG_CODE_RS' => 'Serbia', |
|
210 | + 'DIR_FLAG_CODE_RU' => 'Russia', |
|
211 | + 'DIR_FLAG_CODE_RW' => 'Rwanda', |
|
212 | + 'DIR_FLAG_CODE_SA' => 'Saudi Arabia', |
|
213 | + 'DIR_FLAG_CODE_SB' => 'Salomon', |
|
214 | + 'DIR_FLAG_CODE_SC' => 'Seychelles', |
|
215 | + 'DIR_FLAG_CODE_SD' => 'Sudan', |
|
216 | + 'DIR_FLAG_CODE_SE' => 'Sweden', |
|
217 | + 'DIR_FLAG_CODE_SG' => 'Singapore', |
|
218 | + 'DIR_FLAG_CODE_SH' => 'Saint Helena, Ascension and Tristan da Cunha', |
|
219 | + 'DIR_FLAG_CODE_SI' => 'Slovenia', |
|
220 | + 'DIR_FLAG_CODE_SJ' => 'Svalbard and Jan Mayen Isle', |
|
221 | + 'DIR_FLAG_CODE_SK' => 'Slovakia', |
|
222 | + 'DIR_FLAG_CODE_SL' => 'Sierra Leone', |
|
223 | + 'DIR_FLAG_CODE_SM' => 'San Marino', |
|
224 | + 'DIR_FLAG_CODE_SN' => 'Senegal', |
|
225 | + 'DIR_FLAG_CODE_SO' => 'Somalia', |
|
226 | + 'DIR_FLAG_CODE_SR' => 'Suriname', |
|
227 | + 'DIR_FLAG_CODE_ST' => 'Sao Tome and Principe', |
|
228 | + 'DIR_FLAG_CODE_SV' => 'Salvador', |
|
229 | + 'DIR_FLAG_CODE_SY' => 'Syria', |
|
230 | + 'DIR_FLAG_CODE_SZ' => 'Swaziland', |
|
231 | + 'DIR_FLAG_CODE_TC' => 'Turks and Caicos Islands', |
|
232 | + 'DIR_FLAG_CODE_TD' => 'Tchad', |
|
233 | + 'DIR_FLAG_CODE_TF' => 'French Southern and Antarctic Lands', |
|
234 | + 'DIR_FLAG_CODE_TG' => 'Togo', |
|
235 | + 'DIR_FLAG_CODE_TH' => 'Thailand', |
|
236 | + 'DIR_FLAG_CODE_TJ' => 'Tadjikistan', |
|
237 | + 'DIR_FLAG_CODE_TK' => 'Tokelau', |
|
238 | + 'DIR_FLAG_CODE_TL' => 'Timor oriental', |
|
239 | + 'DIR_FLAG_CODE_TM' => 'Turkmenistan', |
|
240 | + 'DIR_FLAG_CODE_TN' => 'Tunisia', |
|
241 | + 'DIR_FLAG_CODE_TO' => 'Tonga', |
|
242 | + 'DIR_FLAG_CODE_TR' => 'Turkey', |
|
243 | + 'DIR_FLAG_CODE_TT' => 'Trinidad and Tobago', |
|
244 | + 'DIR_FLAG_CODE_TV' => 'Tuvalu', |
|
245 | + 'DIR_FLAG_CODE_TW' => 'Taïwan', |
|
246 | + 'DIR_FLAG_CODE_TZ' => 'Tanzanie', |
|
247 | + 'DIR_FLAG_CODE_UA' => 'Ukraine', |
|
248 | + 'DIR_FLAG_CODE_UG' => 'Ouganda', |
|
249 | + 'DIR_FLAG_CODE_UM' => 'United States Minor Outlying Islands', |
|
250 | + 'DIR_FLAG_CODE_US' => 'USA', |
|
251 | + 'DIR_FLAG_CODE_UY' => 'Uruguay', |
|
252 | + 'DIR_FLAG_CODE_UZ' => 'Uzbekistan', |
|
253 | + 'DIR_FLAG_CODE_VA' => 'Vatican', |
|
254 | + 'DIR_FLAG_CODE_VC' => 'St. Vincent and the Grenadines', |
|
255 | + 'DIR_FLAG_CODE_VE' => 'Venezuela', |
|
256 | + 'DIR_FLAG_CODE_VG' => 'British Virgin Islands', |
|
257 | + 'DIR_FLAG_CODE_VI' => 'United States Virgin Islands', |
|
258 | + 'DIR_FLAG_CODE_VN' => 'Vietnam', |
|
259 | + 'DIR_FLAG_CODE_VU' => 'Vanuatu', |
|
260 | + 'DIR_FLAG_CODE_WF' => 'Wallis and Futuna', |
|
261 | + 'DIR_FLAG_CODE_WS' => 'Samoa', |
|
262 | + 'DIR_FLAG_CODE_YE' => 'Yemen', |
|
263 | + 'DIR_FLAG_CODE_YT' => 'Mayotte', |
|
264 | + 'DIR_FLAG_CODE_ZA' => 'South Africa', |
|
265 | + 'DIR_FLAG_CODE_ZM' => 'Zambia', |
|
266 | + 'DIR_FLAG_CODE_ZW' => 'Zimbabwe', |
|
267 | 267 | ]); |
@@ -9,11 +9,13 @@ |
||
9 | 9 | /** |
10 | 10 | * DO NOT CHANGE. |
11 | 11 | */ |
12 | -if (!defined('IN_PHPBB')) { |
|
12 | +if (!defined('IN_PHPBB')) |
|
13 | +{ |
|
13 | 14 | exit; |
14 | 15 | } |
15 | 16 | |
16 | -if (empty($lang) || !is_array($lang)) { |
|
17 | +if (empty($lang) || !is_array($lang)) |
|
18 | +{ |
|
17 | 19 | $lang = []; |
18 | 20 | } |
19 | 21 |
@@ -10,26 +10,26 @@ |
||
10 | 10 | * DO NOT CHANGE. |
11 | 11 | */ |
12 | 12 | if (!defined('IN_PHPBB')) { |
13 | - exit; |
|
13 | + exit; |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | if (empty($lang) || !is_array($lang)) { |
17 | - $lang = []; |
|
17 | + $lang = []; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | $lang = array_merge($lang, [ |
21 | - 'ACL_CAT_DIRECTORY' => 'Directory', |
|
21 | + 'ACL_CAT_DIRECTORY' => 'Directory', |
|
22 | 22 | |
23 | - 'ACL_M_DELETE_DIR' => 'Can delete a website', |
|
24 | - 'ACL_M_DELETE_COMMENT_DIR' => 'Can delete comments', |
|
25 | - 'ACL_M_EDIT_DIR' => 'Can edit a website', |
|
26 | - 'ACL_M_EDIT_COMMENT_DIR' => 'Can edit comments', |
|
27 | - 'ACL_U_COMMENT_DIR' => 'Can post a comment (if comments are allowed in the category)', |
|
28 | - 'ACL_U_DELETE_DIR' => 'Can delete own links', |
|
29 | - 'ACL_U_DELETE_COMMENT_DIR' => 'Can delete own comments', |
|
30 | - 'ACL_U_EDIT_DIR' => 'Can edit own links', |
|
31 | - 'ACL_U_EDIT_COMMENT_DIR' => 'Can edit own comments', |
|
32 | - 'ACL_U_SEARCH_DIR' => 'Can search in the directory', |
|
33 | - 'ACL_U_SUBMIT_DIR' => 'Can submit a website in the directory', |
|
34 | - 'ACL_U_VOTE_DIR' => 'Can vote for a website of the directory', |
|
23 | + 'ACL_M_DELETE_DIR' => 'Can delete a website', |
|
24 | + 'ACL_M_DELETE_COMMENT_DIR' => 'Can delete comments', |
|
25 | + 'ACL_M_EDIT_DIR' => 'Can edit a website', |
|
26 | + 'ACL_M_EDIT_COMMENT_DIR' => 'Can edit comments', |
|
27 | + 'ACL_U_COMMENT_DIR' => 'Can post a comment (if comments are allowed in the category)', |
|
28 | + 'ACL_U_DELETE_DIR' => 'Can delete own links', |
|
29 | + 'ACL_U_DELETE_COMMENT_DIR' => 'Can delete own comments', |
|
30 | + 'ACL_U_EDIT_DIR' => 'Can edit own links', |
|
31 | + 'ACL_U_EDIT_COMMENT_DIR' => 'Can edit own comments', |
|
32 | + 'ACL_U_SEARCH_DIR' => 'Can search in the directory', |
|
33 | + 'ACL_U_SUBMIT_DIR' => 'Can submit a website in the directory', |
|
34 | + 'ACL_U_VOTE_DIR' => 'Can vote for a website of the directory', |
|
35 | 35 | ]); |
@@ -9,11 +9,13 @@ |
||
9 | 9 | /** |
10 | 10 | * DO NOT CHANGE. |
11 | 11 | */ |
12 | -if (!defined('IN_PHPBB')) { |
|
12 | +if (!defined('IN_PHPBB')) |
|
13 | +{ |
|
13 | 14 | exit; |
14 | 15 | } |
15 | 16 | |
16 | -if (empty($lang) || !is_array($lang)) { |
|
17 | +if (empty($lang) || !is_array($lang)) |
|
18 | +{ |
|
17 | 19 | $lang = []; |
18 | 20 | } |
19 | 21 |
@@ -10,11 +10,11 @@ discard block |
||
10 | 10 | * DO NOT CHANGE. |
11 | 11 | */ |
12 | 12 | if (!defined('IN_PHPBB')) { |
13 | - exit; |
|
13 | + exit; |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | if (empty($lang) || !is_array($lang)) { |
17 | - $lang = []; |
|
17 | + $lang = []; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | // DEVELOPERS PLEASE NOTE |
@@ -30,196 +30,196 @@ discard block |
||
30 | 30 | // in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine |
31 | 31 | |
32 | 32 | $lang = array_merge($lang, [ |
33 | - 'ACP_DIRECTORY' => 'phpBB Directory', |
|
34 | - 'ACP_DIRECTORY_CATS' => 'Category settings', |
|
35 | - 'ACP_DIRECTORY_INDEX_TITLE' => 'phpBB Directory', |
|
36 | - 'ACP_DIRECTORY_MAIN' => 'Informations and Tools', |
|
37 | - 'ACP_DIRECTORY_SETTINGS' => 'General settings', |
|
38 | - 'ACP_DIRECTORY_SETTINGS_EXPLAIN' => 'Directory settings', |
|
39 | - 'ACP_DIRECTORY_VAL' => 'Website authorisation', |
|
40 | - 'DIR_ACTIVE_CHECK' => 'Enable the submitted websites test', |
|
41 | - 'DIR_ACTIVE_CHECK_EXPLAIN' => 'By checking <i>yes</i>, the links will be tested when they are submitted. If there is no answer in a second, they will be considered as unreacheable.', |
|
42 | - 'DIR_ACTIVE_THUMB' => 'Enable websites thumbnails', |
|
43 | - 'DIR_ACTIVE_THUMB_REMOTE' => 'Enable the AscreeN compatibility', |
|
44 | - 'DIR_ACTIVE_THUMB_REMOTE_EXPLAIN' => 'By checking <i>yes</i>, during a website submission, the mod will check if an AscreeN thumbnails exists.<br />An AscreeN thumbnail is managed by the webmaster and normally it is more accurate to the website look.', |
|
45 | - 'DIR_ACTIV_BANNER' => 'Enable banner link', |
|
46 | - 'DIR_ACTIV_FLAG' => 'Enable language selection', |
|
47 | - 'DIR_ACTIV_PAGERANK' => 'Enable websites pagerank', |
|
48 | - 'DIR_ACTIV_PAGERANK_EXPLAIN' => 'The pagerank calculated during the website submission will be displayed.', |
|
49 | - 'DIR_ACTIV_REWRITE' => 'Enable the directory url rewritting ', |
|
50 | - 'DIR_ACTIV_REWRITE_EXPLAIN' => 'If you enable this option, the urls of the directory categories as well as the navbar’s directory link will be rewritten according to the settings of the mod <a href="http://www.phpbb-seo.com/fr/mod-rewrite-phpbb/ultimate-seo-url-t4489.html" target="_blank">Ultimate SEO URL by dcz</a>.<br />An update of the file .htaccess will be required.', |
|
51 | - 'DIR_ACTIV_RSS' => 'Enable the specification of the RSS feed', |
|
52 | - 'DIR_ACTIV_RSS_EXPLAIN' => 'Acivating of this option allows to specify the URL of the associated RSS feed during the website submission <br />An icon will be displayed when the category is looked at.', |
|
53 | - 'DIR_ADD_GUEST' => 'Guests Settings', |
|
54 | - 'DIR_ALLOW_BBCODE' => 'Allow bbcodes in comments', |
|
55 | - 'DIR_ALLOW_COMMENTS' => 'Allow comments', |
|
56 | - 'DIR_ALLOW_FLASH' => 'Allow use of <code>[FLASH]</code> BBCode tag in comments', |
|
57 | - 'DIR_ALLOW_LINKS' => 'Allow links in comments', |
|
58 | - 'DIR_ALLOW_SMILIES' => 'Allow smiley in comments', |
|
59 | - 'DIR_ALLOW_VOTES' => 'Allow votes', |
|
60 | - 'DIR_BANNERS_DIR_SIZE' => 'Size of the banners directory', |
|
61 | - 'DIR_BANN_PARAM' => 'Banners Settings', |
|
62 | - 'DIR_CAT_ADMIN' => 'Settings of the directory categories', |
|
63 | - 'DIR_CAT_ADMIN_EXPLAIN' => 'Here you can add, modify or delete categories individually. If the statistiques of the links (comments, numbers of votes) or one of the categories seems uncorrect, you can also re-synchronize a category.', |
|
64 | - 'DIR_CAT_CREATED' => 'The category has been created.', |
|
65 | - 'DIR_CAT_DATA_NEGATIVE' => 'The automatic checking settings and the number of checking before removal cannot be negatives or not existing.', |
|
66 | - 'DIR_CAT_DELETE' => 'Delete the category', |
|
67 | - 'DIR_CAT_DELETED' => 'The category was deleted', |
|
68 | - 'DIR_CAT_DELETE_EXPLAIN' => 'The following form allows you to delete a category and to decide where you want to move all the websites (or categories) it contains.', |
|
69 | - 'DIR_CAT_DESC' => 'Description', |
|
70 | - 'DIR_CAT_DESC_EXPLAIN' => 'The description of the category is optionnal. If you write one, it will appear above the websites in the category.<br />Any HTML balise written will be displayed as they are.', |
|
71 | - 'DIR_CAT_GENERAL_SETTINGS' => 'General Settings of the Category', |
|
72 | - 'DIR_CAT_ICON' => 'Category Picture', |
|
73 | - 'DIR_CAT_NAME' => 'Category Name', |
|
74 | - 'DIR_CAT_NAME_EMPTY' => 'You must enter category name', |
|
75 | - 'DIR_CAT_PARENT' => 'Category parent', |
|
76 | - 'DIR_CAT_RESYNCED' => 'The category “%s” has been resynchronized', |
|
77 | - 'DIR_CAT_SETTINGS' => 'Category Settings', |
|
78 | - 'DIR_CAT_TOO_LONG' => 'The category description is too long. It cannot contain more than 4000 characters.', |
|
79 | - 'DIR_CAT_UPDATED' => 'The category informations have been updated.', |
|
80 | - 'DIR_COMM_PARAM' => 'Comments Settings', |
|
81 | - 'DIR_COMM_PER_PAGE' => 'Number of comments per page', |
|
82 | - 'DIR_CONFIG_SETTINGS' => 'The directory configuration update', |
|
83 | - 'DIR_COUNT_ALL' => 'Count the the sub-categories websites', |
|
84 | - 'DIR_COUNT_ALL_EXPLAIN' => 'If you enable this option, the counter displayed next to each category will count the websites in the sub-categories', |
|
85 | - 'DIR_ADD_CAT' => 'Create a new category', |
|
86 | - 'DIR_CRON_ENABLE' => 'Enable backlinks periodical check ', |
|
87 | - 'DIR_CRON_ENABLE_EXPLAIN' => 'If enabled, this option will periodically check submitted back links validity.', |
|
88 | - 'DIR_CRON_EVERY' => 'Check every', |
|
89 | - 'DIR_CRON_SETTINGS' => 'Back Links Settings', |
|
90 | - 'DIR_DEFAULT_ORDER' => 'Ranking default order ', |
|
91 | - 'DIR_DELETE_ALL_LINKS' => 'Delete all the websites', |
|
92 | - 'DIR_DELETE_ORPHANS' => 'Delete orphan banners', |
|
93 | - 'DIR_DELETE_ORPHANS_CONFIRM' => 'Are you sure you want to delete the orphan banners ?', |
|
94 | - 'DIR_DELETE_ORPHANS_EXPLAIN' => 'The orphan banners are the banners which were copied on the server but, for an unknown reason, are no longer associated to a directory website', |
|
95 | - 'DIR_DELETE_ORPHANS_SUCCESS' => 'Orphans banners deleted', |
|
96 | - 'DIR_DELETE_SUBCATS' => 'Delete sub-categories and websites', |
|
97 | - 'DIR_EDIT_CAT' => 'Edit category', |
|
98 | - 'DIR_EDIT_EXPLAIN' => 'The following form allows you to personnalize this category.', |
|
99 | - 'DIR_ERROR_AUTH_COMM' => 'You are not allowed to post a comment', |
|
100 | - 'DIR_ERROR_CAT' => 'It is not possible to recover the datas of the category', |
|
101 | - 'DIR_ERROR_COMM_LOGGED' => 'You have to be logged in to post a comment', |
|
102 | - 'DIR_ERROR_KEYWORD' => 'You must enter keywords to do a research', |
|
103 | - 'DIR_ERROR_NOT_AUTH' => 'You are not allowed to do this operation', |
|
104 | - 'DIR_ERROR_NO_LINK' => 'The website you are looking for doesn’t exist', |
|
105 | - 'DIR_ERROR_NO_LINKS' => 'This website doesn’t exist', |
|
106 | - 'DIR_ERROR_SUBMIT_TYPE' => 'Wrong data type in the function dir_submit_type', |
|
107 | - 'DIR_ERROR_URL' => 'You must enter a valid URL', |
|
108 | - 'DIR_ERROR_VOTE' => 'You have already voted for this website', |
|
109 | - 'DIR_ERROR_VOTE_LOGGED' => 'You must be logged in to vote', |
|
110 | - 'DIR_INDEX' => 'Index of the Directory', |
|
111 | - 'DIR_LENGTH_COMMENTS' => 'Maximal number of characters for a link commentary', |
|
112 | - 'DIR_LINKS' => 'Links', |
|
113 | - 'DIR_LINK_ACTIVATE' => 'Validate', |
|
114 | - 'DIR_LINK_DELETE' => 'Delete', |
|
115 | - 'DIR_LIST_INDEX' => 'Display the category in the legend of its parent category', |
|
116 | - 'DIR_MAIL_NOTIFICATION' => 'A new website in the directory', |
|
117 | - 'DIR_MAIL_VALIDATION' => 'Receive an email for a website pending authentication', |
|
118 | - 'DIR_MAX_ADD_ATTEMPTS' => 'Attempts of website submission', |
|
119 | - 'DIR_MAX_ADD_ATTEMPTS_EXPLAIN' => 'Number of attempts to enter the confirmation code before the end of their session.', |
|
120 | - 'DIR_MAX_BANN' => 'Maximum banners size', |
|
121 | - 'DIR_MAX_BANN_EXPLAIN' => 'Maximum sent banners size. Set the two values on 0px by 0px to disable the option of control.', |
|
122 | - 'DIR_MAX_DESC' => 'Maximum characters number for the website description.', |
|
123 | - 'DIR_MAX_SIZE' => 'Maximum banner size', |
|
124 | - 'DIR_MAX_SIZE_EXPLAIN' => 'For the sent banners', |
|
125 | - 'DIR_MOVE_LINKS_TO' => 'Move all websites to', |
|
126 | - 'DIR_MOVE_SUBCATS_TO' => 'Move the sub-categories', |
|
127 | - 'DIR_MUST_BACK' => 'Request a back link', |
|
128 | - 'DIR_MUST_BACK_EXPLAIN' => 'If enabled, this option asks for a link back during the website submission.', |
|
129 | - 'DIR_MUST_DESCRIBE' => 'Enable description request during a website submission', |
|
130 | - 'DIR_NB_CHECK' => 'Number of chekings before removal', |
|
131 | - 'DIR_NB_CHECK_EXPLAIN' => 'Enter the number of checks after which a website will be removed because his backlink is not valid anymore; An email will be sent at every failed checking to warn the user of the missing backlink. Enter 0 if you want to remove the website after the first failed checking.', |
|
132 | - 'DIR_NESTEDSET_LOCK_FAILED_ACQUIRE' => 'Unable to lock the categories table for this operation', |
|
133 | - 'DIR_NESTEDSET_INVALID_ITEM' => 'Unable to retrieve informations about the category', |
|
134 | - 'DIR_NESTEDSET_INVALID_PARENT' => 'Invalid parent category', |
|
135 | - 'DIR_NEW_TIME' => 'Number of days for the new websites.', |
|
136 | - 'DIR_NEW_TIME_EXPLAIN' => 'Number of days to consider a website as new. If so, the icon "new" will be displayed. Enter 0 to disable this option.', |
|
137 | - 'DIR_NEXT_CRON_ACTION' => 'Date of the next checking', |
|
138 | - 'DIR_NO_CAT' => 'No category selected', |
|
139 | - 'DIR_NO_DESTINATION_CAT' => 'A destination category is not specified', |
|
140 | - 'DIR_NO_LINK' => 'There is no website waiting for approval', |
|
141 | - 'DIR_NO_PARENT' => 'No parent', |
|
142 | - 'DIR_NUMBER_CATS' => 'Categories number', |
|
143 | - 'DIR_NUMBER_CLICKS' => 'Number of clicks', |
|
144 | - 'DIR_NUMBER_COMMENTS' => 'Number of comments', |
|
145 | - 'DIR_NUMBER_LINKS' => 'Number of Active links', |
|
146 | - 'DIR_NUMBER_ORPHANS' => 'Number of Orphan banners', |
|
147 | - 'DIR_NUMBER_VOTES' => 'Number of Votes', |
|
148 | - 'DIR_ORDER_A_A' => '[Ascending] Author', |
|
149 | - 'DIR_ORDER_A_D' => '[Descending] Author', |
|
150 | - 'DIR_ORDER_R_A' => '[Ascending] Comments', |
|
151 | - 'DIR_ORDER_R_D' => '[Descending] Comments', |
|
152 | - 'DIR_ORDER_S_A' => '[Ascending] Name', |
|
153 | - 'DIR_ORDER_S_D' => '[Descending] Name', |
|
154 | - 'DIR_ORDER_T_A' => '[Ascending] Date', |
|
155 | - 'DIR_ORDER_T_D' => '[Descending] Date', |
|
156 | - 'DIR_ORDER_V_A' => '[Ascending] Cliks', |
|
157 | - 'DIR_ORDER_V_D' => '[Descending] Cliks', |
|
158 | - 'DIR_PARAM' => 'General Settings', |
|
159 | - 'DIR_RECENT_COLUMNS' => 'Number of columns in the block', |
|
160 | - 'DIR_RECENT_ENABLE' => 'Enable "last links added" block', |
|
161 | - 'DIR_RECENT_ENABLE_EXPLAIN' => 'This option displays a block showing the latest websites added to the directory at the bottom of the directory main page. <br />The number of displayed websites can be set in the following settings.', |
|
162 | - 'DIR_RECENT_EXCLUDE' => 'ID of the categories to exclude', |
|
163 | - 'DIR_RECENT_EXCLUDE_EXPLAIN' => 'Enter here the IDs of the cateogories not to consider, separated with comma.<br />Ex: 1,4,12', |
|
164 | - 'DIR_RECENT_GUEST' => 'Settings of the "Last links added" block', |
|
165 | - 'DIR_RECENT_ROWS' => 'Number of lines in the block', |
|
166 | - 'DIR_RESET_CLICKS' => 'Reset clicks counter', |
|
167 | - 'DIR_RESET_CLICKS_CONFIRM' => 'Are you sure you want to reset the clicks counter ?', |
|
168 | - 'DIR_RESET_CLICKS_SUCCESS' => 'Clicks reseted', |
|
169 | - 'DIR_RESET_COMMENTS' => 'Reset comments', |
|
170 | - 'DIR_RESET_COMMENTS_CONFIRM' => 'Are you sure you want to reset the comments ?', |
|
171 | - 'DIR_RESET_COMMENTS_EXPLAIN' => 'Delete all comments from the directory links', |
|
172 | - 'DIR_RESET_COMMENTS_SUCCESS' => 'Comments deleted', |
|
173 | - 'DIR_RESET_VOTES' => 'Reset votes', |
|
174 | - 'DIR_RESET_VOTES_CONFIRM' => 'Are you sure you want to reset votes ?', |
|
175 | - 'DIR_RESET_VOTES_EXPLAIN' => 'Delete all votes from the directory links', |
|
176 | - 'DIR_RESET_VOTES_SUCCESS' => 'Votes reseted', |
|
177 | - 'DIR_REWRITE_PARAM' => 'URL Rewriting Settings', |
|
178 | - 'DIR_SELECT_CAT' => 'Select a category', |
|
179 | - 'DIR_SHOW' => 'Number of websites per page', |
|
180 | - 'DIR_STATS' => 'Directory statistiques', |
|
181 | - 'DIR_STORAGE_BANNER' => 'Copy the banners on the server', |
|
182 | - 'DIR_STORAGE_BANNER_EXPLAIN' => 'If you enable this option, the banners linked to the websites will be copied to this server.<br />Enabling this option makes page load faster.', |
|
183 | - 'DIR_SUBCAT' => 'Sub-category', |
|
184 | - 'DIR_THUMB_PARAM' => 'Thumbnails Settings', |
|
185 | - 'DIR_THUMB_SERVICE' => 'Thumbnail Service to use', |
|
186 | - 'DIR_THUMB_SERVICE_EXPLAIN' => 'Thumbnail Service to use when the Ascreen thumbnail does not exist. Unless enabling the option below, changing this setting will only affect the futur submitted websites', |
|
187 | - 'DIR_THUMB_SERVICE_REVERSE' => 'Enable the retroactive change of service', |
|
188 | - 'DIR_THUMB_SERVICE_REVERSE_EXPLAIN' => 'By checking <i>yes</i>, the existing links before the change of the service will use the new service selected. It requires a query for each website during the first display after the service change, in order to update the table.', |
|
189 | - 'DIR_USER_PROP' => 'Submitted by %s in <i>%s</i> the %s', |
|
190 | - 'DIR_VALIDATE' => 'Enable administrator validation', |
|
191 | - 'DIR_VALIDATE_EXPLAIN' => 'By checking <i>yes</i>, the submitted links will be authenticated before appearing in the directory. Otherwise, if you check <i>no</i> the links will be immediately displayed.', |
|
192 | - 'DIR_VALIDATION' => 'Validation of the directory websites', |
|
193 | - 'DIR_VALIDATION_EXPLAIN' => 'This option will work only if in the settings panel you choose that the website of the directory have to be approuved. If so, an email will be sent to the person who submitted the website and, as soon as you validate the website in the panel, it will appear in the directory.', |
|
194 | - 'DIR_VISUAL_CONFIRM' => 'Enable the visual confirmation for guests', |
|
195 | - 'DIR_VISUAL_CONFIRM_EXPLAIN' => 'By checking <i>yes</i>, the guests will have to enter a random code matching a picture to prevent them from mass submission.', |
|
196 | - 'DIR_WAITING_LINKS' => 'Number of Pending links', |
|
33 | + 'ACP_DIRECTORY' => 'phpBB Directory', |
|
34 | + 'ACP_DIRECTORY_CATS' => 'Category settings', |
|
35 | + 'ACP_DIRECTORY_INDEX_TITLE' => 'phpBB Directory', |
|
36 | + 'ACP_DIRECTORY_MAIN' => 'Informations and Tools', |
|
37 | + 'ACP_DIRECTORY_SETTINGS' => 'General settings', |
|
38 | + 'ACP_DIRECTORY_SETTINGS_EXPLAIN' => 'Directory settings', |
|
39 | + 'ACP_DIRECTORY_VAL' => 'Website authorisation', |
|
40 | + 'DIR_ACTIVE_CHECK' => 'Enable the submitted websites test', |
|
41 | + 'DIR_ACTIVE_CHECK_EXPLAIN' => 'By checking <i>yes</i>, the links will be tested when they are submitted. If there is no answer in a second, they will be considered as unreacheable.', |
|
42 | + 'DIR_ACTIVE_THUMB' => 'Enable websites thumbnails', |
|
43 | + 'DIR_ACTIVE_THUMB_REMOTE' => 'Enable the AscreeN compatibility', |
|
44 | + 'DIR_ACTIVE_THUMB_REMOTE_EXPLAIN' => 'By checking <i>yes</i>, during a website submission, the mod will check if an AscreeN thumbnails exists.<br />An AscreeN thumbnail is managed by the webmaster and normally it is more accurate to the website look.', |
|
45 | + 'DIR_ACTIV_BANNER' => 'Enable banner link', |
|
46 | + 'DIR_ACTIV_FLAG' => 'Enable language selection', |
|
47 | + 'DIR_ACTIV_PAGERANK' => 'Enable websites pagerank', |
|
48 | + 'DIR_ACTIV_PAGERANK_EXPLAIN' => 'The pagerank calculated during the website submission will be displayed.', |
|
49 | + 'DIR_ACTIV_REWRITE' => 'Enable the directory url rewritting ', |
|
50 | + 'DIR_ACTIV_REWRITE_EXPLAIN' => 'If you enable this option, the urls of the directory categories as well as the navbar’s directory link will be rewritten according to the settings of the mod <a href="http://www.phpbb-seo.com/fr/mod-rewrite-phpbb/ultimate-seo-url-t4489.html" target="_blank">Ultimate SEO URL by dcz</a>.<br />An update of the file .htaccess will be required.', |
|
51 | + 'DIR_ACTIV_RSS' => 'Enable the specification of the RSS feed', |
|
52 | + 'DIR_ACTIV_RSS_EXPLAIN' => 'Acivating of this option allows to specify the URL of the associated RSS feed during the website submission <br />An icon will be displayed when the category is looked at.', |
|
53 | + 'DIR_ADD_GUEST' => 'Guests Settings', |
|
54 | + 'DIR_ALLOW_BBCODE' => 'Allow bbcodes in comments', |
|
55 | + 'DIR_ALLOW_COMMENTS' => 'Allow comments', |
|
56 | + 'DIR_ALLOW_FLASH' => 'Allow use of <code>[FLASH]</code> BBCode tag in comments', |
|
57 | + 'DIR_ALLOW_LINKS' => 'Allow links in comments', |
|
58 | + 'DIR_ALLOW_SMILIES' => 'Allow smiley in comments', |
|
59 | + 'DIR_ALLOW_VOTES' => 'Allow votes', |
|
60 | + 'DIR_BANNERS_DIR_SIZE' => 'Size of the banners directory', |
|
61 | + 'DIR_BANN_PARAM' => 'Banners Settings', |
|
62 | + 'DIR_CAT_ADMIN' => 'Settings of the directory categories', |
|
63 | + 'DIR_CAT_ADMIN_EXPLAIN' => 'Here you can add, modify or delete categories individually. If the statistiques of the links (comments, numbers of votes) or one of the categories seems uncorrect, you can also re-synchronize a category.', |
|
64 | + 'DIR_CAT_CREATED' => 'The category has been created.', |
|
65 | + 'DIR_CAT_DATA_NEGATIVE' => 'The automatic checking settings and the number of checking before removal cannot be negatives or not existing.', |
|
66 | + 'DIR_CAT_DELETE' => 'Delete the category', |
|
67 | + 'DIR_CAT_DELETED' => 'The category was deleted', |
|
68 | + 'DIR_CAT_DELETE_EXPLAIN' => 'The following form allows you to delete a category and to decide where you want to move all the websites (or categories) it contains.', |
|
69 | + 'DIR_CAT_DESC' => 'Description', |
|
70 | + 'DIR_CAT_DESC_EXPLAIN' => 'The description of the category is optionnal. If you write one, it will appear above the websites in the category.<br />Any HTML balise written will be displayed as they are.', |
|
71 | + 'DIR_CAT_GENERAL_SETTINGS' => 'General Settings of the Category', |
|
72 | + 'DIR_CAT_ICON' => 'Category Picture', |
|
73 | + 'DIR_CAT_NAME' => 'Category Name', |
|
74 | + 'DIR_CAT_NAME_EMPTY' => 'You must enter category name', |
|
75 | + 'DIR_CAT_PARENT' => 'Category parent', |
|
76 | + 'DIR_CAT_RESYNCED' => 'The category “%s” has been resynchronized', |
|
77 | + 'DIR_CAT_SETTINGS' => 'Category Settings', |
|
78 | + 'DIR_CAT_TOO_LONG' => 'The category description is too long. It cannot contain more than 4000 characters.', |
|
79 | + 'DIR_CAT_UPDATED' => 'The category informations have been updated.', |
|
80 | + 'DIR_COMM_PARAM' => 'Comments Settings', |
|
81 | + 'DIR_COMM_PER_PAGE' => 'Number of comments per page', |
|
82 | + 'DIR_CONFIG_SETTINGS' => 'The directory configuration update', |
|
83 | + 'DIR_COUNT_ALL' => 'Count the the sub-categories websites', |
|
84 | + 'DIR_COUNT_ALL_EXPLAIN' => 'If you enable this option, the counter displayed next to each category will count the websites in the sub-categories', |
|
85 | + 'DIR_ADD_CAT' => 'Create a new category', |
|
86 | + 'DIR_CRON_ENABLE' => 'Enable backlinks periodical check ', |
|
87 | + 'DIR_CRON_ENABLE_EXPLAIN' => 'If enabled, this option will periodically check submitted back links validity.', |
|
88 | + 'DIR_CRON_EVERY' => 'Check every', |
|
89 | + 'DIR_CRON_SETTINGS' => 'Back Links Settings', |
|
90 | + 'DIR_DEFAULT_ORDER' => 'Ranking default order ', |
|
91 | + 'DIR_DELETE_ALL_LINKS' => 'Delete all the websites', |
|
92 | + 'DIR_DELETE_ORPHANS' => 'Delete orphan banners', |
|
93 | + 'DIR_DELETE_ORPHANS_CONFIRM' => 'Are you sure you want to delete the orphan banners ?', |
|
94 | + 'DIR_DELETE_ORPHANS_EXPLAIN' => 'The orphan banners are the banners which were copied on the server but, for an unknown reason, are no longer associated to a directory website', |
|
95 | + 'DIR_DELETE_ORPHANS_SUCCESS' => 'Orphans banners deleted', |
|
96 | + 'DIR_DELETE_SUBCATS' => 'Delete sub-categories and websites', |
|
97 | + 'DIR_EDIT_CAT' => 'Edit category', |
|
98 | + 'DIR_EDIT_EXPLAIN' => 'The following form allows you to personnalize this category.', |
|
99 | + 'DIR_ERROR_AUTH_COMM' => 'You are not allowed to post a comment', |
|
100 | + 'DIR_ERROR_CAT' => 'It is not possible to recover the datas of the category', |
|
101 | + 'DIR_ERROR_COMM_LOGGED' => 'You have to be logged in to post a comment', |
|
102 | + 'DIR_ERROR_KEYWORD' => 'You must enter keywords to do a research', |
|
103 | + 'DIR_ERROR_NOT_AUTH' => 'You are not allowed to do this operation', |
|
104 | + 'DIR_ERROR_NO_LINK' => 'The website you are looking for doesn’t exist', |
|
105 | + 'DIR_ERROR_NO_LINKS' => 'This website doesn’t exist', |
|
106 | + 'DIR_ERROR_SUBMIT_TYPE' => 'Wrong data type in the function dir_submit_type', |
|
107 | + 'DIR_ERROR_URL' => 'You must enter a valid URL', |
|
108 | + 'DIR_ERROR_VOTE' => 'You have already voted for this website', |
|
109 | + 'DIR_ERROR_VOTE_LOGGED' => 'You must be logged in to vote', |
|
110 | + 'DIR_INDEX' => 'Index of the Directory', |
|
111 | + 'DIR_LENGTH_COMMENTS' => 'Maximal number of characters for a link commentary', |
|
112 | + 'DIR_LINKS' => 'Links', |
|
113 | + 'DIR_LINK_ACTIVATE' => 'Validate', |
|
114 | + 'DIR_LINK_DELETE' => 'Delete', |
|
115 | + 'DIR_LIST_INDEX' => 'Display the category in the legend of its parent category', |
|
116 | + 'DIR_MAIL_NOTIFICATION' => 'A new website in the directory', |
|
117 | + 'DIR_MAIL_VALIDATION' => 'Receive an email for a website pending authentication', |
|
118 | + 'DIR_MAX_ADD_ATTEMPTS' => 'Attempts of website submission', |
|
119 | + 'DIR_MAX_ADD_ATTEMPTS_EXPLAIN' => 'Number of attempts to enter the confirmation code before the end of their session.', |
|
120 | + 'DIR_MAX_BANN' => 'Maximum banners size', |
|
121 | + 'DIR_MAX_BANN_EXPLAIN' => 'Maximum sent banners size. Set the two values on 0px by 0px to disable the option of control.', |
|
122 | + 'DIR_MAX_DESC' => 'Maximum characters number for the website description.', |
|
123 | + 'DIR_MAX_SIZE' => 'Maximum banner size', |
|
124 | + 'DIR_MAX_SIZE_EXPLAIN' => 'For the sent banners', |
|
125 | + 'DIR_MOVE_LINKS_TO' => 'Move all websites to', |
|
126 | + 'DIR_MOVE_SUBCATS_TO' => 'Move the sub-categories', |
|
127 | + 'DIR_MUST_BACK' => 'Request a back link', |
|
128 | + 'DIR_MUST_BACK_EXPLAIN' => 'If enabled, this option asks for a link back during the website submission.', |
|
129 | + 'DIR_MUST_DESCRIBE' => 'Enable description request during a website submission', |
|
130 | + 'DIR_NB_CHECK' => 'Number of chekings before removal', |
|
131 | + 'DIR_NB_CHECK_EXPLAIN' => 'Enter the number of checks after which a website will be removed because his backlink is not valid anymore; An email will be sent at every failed checking to warn the user of the missing backlink. Enter 0 if you want to remove the website after the first failed checking.', |
|
132 | + 'DIR_NESTEDSET_LOCK_FAILED_ACQUIRE' => 'Unable to lock the categories table for this operation', |
|
133 | + 'DIR_NESTEDSET_INVALID_ITEM' => 'Unable to retrieve informations about the category', |
|
134 | + 'DIR_NESTEDSET_INVALID_PARENT' => 'Invalid parent category', |
|
135 | + 'DIR_NEW_TIME' => 'Number of days for the new websites.', |
|
136 | + 'DIR_NEW_TIME_EXPLAIN' => 'Number of days to consider a website as new. If so, the icon "new" will be displayed. Enter 0 to disable this option.', |
|
137 | + 'DIR_NEXT_CRON_ACTION' => 'Date of the next checking', |
|
138 | + 'DIR_NO_CAT' => 'No category selected', |
|
139 | + 'DIR_NO_DESTINATION_CAT' => 'A destination category is not specified', |
|
140 | + 'DIR_NO_LINK' => 'There is no website waiting for approval', |
|
141 | + 'DIR_NO_PARENT' => 'No parent', |
|
142 | + 'DIR_NUMBER_CATS' => 'Categories number', |
|
143 | + 'DIR_NUMBER_CLICKS' => 'Number of clicks', |
|
144 | + 'DIR_NUMBER_COMMENTS' => 'Number of comments', |
|
145 | + 'DIR_NUMBER_LINKS' => 'Number of Active links', |
|
146 | + 'DIR_NUMBER_ORPHANS' => 'Number of Orphan banners', |
|
147 | + 'DIR_NUMBER_VOTES' => 'Number of Votes', |
|
148 | + 'DIR_ORDER_A_A' => '[Ascending] Author', |
|
149 | + 'DIR_ORDER_A_D' => '[Descending] Author', |
|
150 | + 'DIR_ORDER_R_A' => '[Ascending] Comments', |
|
151 | + 'DIR_ORDER_R_D' => '[Descending] Comments', |
|
152 | + 'DIR_ORDER_S_A' => '[Ascending] Name', |
|
153 | + 'DIR_ORDER_S_D' => '[Descending] Name', |
|
154 | + 'DIR_ORDER_T_A' => '[Ascending] Date', |
|
155 | + 'DIR_ORDER_T_D' => '[Descending] Date', |
|
156 | + 'DIR_ORDER_V_A' => '[Ascending] Cliks', |
|
157 | + 'DIR_ORDER_V_D' => '[Descending] Cliks', |
|
158 | + 'DIR_PARAM' => 'General Settings', |
|
159 | + 'DIR_RECENT_COLUMNS' => 'Number of columns in the block', |
|
160 | + 'DIR_RECENT_ENABLE' => 'Enable "last links added" block', |
|
161 | + 'DIR_RECENT_ENABLE_EXPLAIN' => 'This option displays a block showing the latest websites added to the directory at the bottom of the directory main page. <br />The number of displayed websites can be set in the following settings.', |
|
162 | + 'DIR_RECENT_EXCLUDE' => 'ID of the categories to exclude', |
|
163 | + 'DIR_RECENT_EXCLUDE_EXPLAIN' => 'Enter here the IDs of the cateogories not to consider, separated with comma.<br />Ex: 1,4,12', |
|
164 | + 'DIR_RECENT_GUEST' => 'Settings of the "Last links added" block', |
|
165 | + 'DIR_RECENT_ROWS' => 'Number of lines in the block', |
|
166 | + 'DIR_RESET_CLICKS' => 'Reset clicks counter', |
|
167 | + 'DIR_RESET_CLICKS_CONFIRM' => 'Are you sure you want to reset the clicks counter ?', |
|
168 | + 'DIR_RESET_CLICKS_SUCCESS' => 'Clicks reseted', |
|
169 | + 'DIR_RESET_COMMENTS' => 'Reset comments', |
|
170 | + 'DIR_RESET_COMMENTS_CONFIRM' => 'Are you sure you want to reset the comments ?', |
|
171 | + 'DIR_RESET_COMMENTS_EXPLAIN' => 'Delete all comments from the directory links', |
|
172 | + 'DIR_RESET_COMMENTS_SUCCESS' => 'Comments deleted', |
|
173 | + 'DIR_RESET_VOTES' => 'Reset votes', |
|
174 | + 'DIR_RESET_VOTES_CONFIRM' => 'Are you sure you want to reset votes ?', |
|
175 | + 'DIR_RESET_VOTES_EXPLAIN' => 'Delete all votes from the directory links', |
|
176 | + 'DIR_RESET_VOTES_SUCCESS' => 'Votes reseted', |
|
177 | + 'DIR_REWRITE_PARAM' => 'URL Rewriting Settings', |
|
178 | + 'DIR_SELECT_CAT' => 'Select a category', |
|
179 | + 'DIR_SHOW' => 'Number of websites per page', |
|
180 | + 'DIR_STATS' => 'Directory statistiques', |
|
181 | + 'DIR_STORAGE_BANNER' => 'Copy the banners on the server', |
|
182 | + 'DIR_STORAGE_BANNER_EXPLAIN' => 'If you enable this option, the banners linked to the websites will be copied to this server.<br />Enabling this option makes page load faster.', |
|
183 | + 'DIR_SUBCAT' => 'Sub-category', |
|
184 | + 'DIR_THUMB_PARAM' => 'Thumbnails Settings', |
|
185 | + 'DIR_THUMB_SERVICE' => 'Thumbnail Service to use', |
|
186 | + 'DIR_THUMB_SERVICE_EXPLAIN' => 'Thumbnail Service to use when the Ascreen thumbnail does not exist. Unless enabling the option below, changing this setting will only affect the futur submitted websites', |
|
187 | + 'DIR_THUMB_SERVICE_REVERSE' => 'Enable the retroactive change of service', |
|
188 | + 'DIR_THUMB_SERVICE_REVERSE_EXPLAIN' => 'By checking <i>yes</i>, the existing links before the change of the service will use the new service selected. It requires a query for each website during the first display after the service change, in order to update the table.', |
|
189 | + 'DIR_USER_PROP' => 'Submitted by %s in <i>%s</i> the %s', |
|
190 | + 'DIR_VALIDATE' => 'Enable administrator validation', |
|
191 | + 'DIR_VALIDATE_EXPLAIN' => 'By checking <i>yes</i>, the submitted links will be authenticated before appearing in the directory. Otherwise, if you check <i>no</i> the links will be immediately displayed.', |
|
192 | + 'DIR_VALIDATION' => 'Validation of the directory websites', |
|
193 | + 'DIR_VALIDATION_EXPLAIN' => 'This option will work only if in the settings panel you choose that the website of the directory have to be approuved. If so, an email will be sent to the person who submitted the website and, as soon as you validate the website in the panel, it will appear in the directory.', |
|
194 | + 'DIR_VISUAL_CONFIRM' => 'Enable the visual confirmation for guests', |
|
195 | + 'DIR_VISUAL_CONFIRM_EXPLAIN' => 'By checking <i>yes</i>, the guests will have to enter a random code matching a picture to prevent them from mass submission.', |
|
196 | + 'DIR_WAITING_LINKS' => 'Number of Pending links', |
|
197 | 197 | |
198 | - 'LOG_DIR_AUTO_PRUNE' => '<strong>Auto prune of a category of the directory</strong><br />» %s', |
|
199 | - 'LOG_DIR_CAT_ADD' => '<strong>Creation of a new category in the directory</strong><br />» %s', |
|
200 | - 'LOG_DIR_CAT_DEL_CAT' => '<strong>Removal of a category</strong><br />» %s', |
|
201 | - 'LOG_DIR_CAT_DEL_CATS' => '<strong>Removal of a category and its sub-categories</strong><br />» %s', |
|
202 | - 'LOG_DIR_CAT_DEL_LINKS' => '<strong>Removal of a category and its messages.</strong><br />» %s', |
|
203 | - 'LOG_DIR_CAT_DEL_LINKS_CATS' => '<strong>Removal of a category, of its messages and of its sub-categories</strong><br />» %s', |
|
204 | - 'LOG_DIR_CAT_DEL_LINKS_MOVE_CATS' => '<strong>Removal of a category and its messages, sub-categories moved</strong> to %1$s<br />» %2$s', |
|
205 | - 'LOG_DIR_CAT_DEL_MOVE_CATS' => '<strong>Removal of a category and sub-categories moved</strong> to %1$s<br />» %2$s', |
|
206 | - 'LOG_DIR_CAT_DEL_MOVE_LINKS' => '<strong>Removal of a category and messages moved</strong> to %1$s<br />» %2$s', |
|
207 | - 'LOG_DIR_CAT_DEL_MOVE_LINKS_CATS' => '<strong>Removal of a category and its sub-categories, and messages moved</strong> to %1$s<br />» %2$s', |
|
208 | - 'LOG_DIR_CAT_DEL_MOVE_LINKS_MOVE_CATS' => '<strong>Removal of a category, messages moved </strong> to %1$s <strong>and sub-categories moved</strong> to %2$s<br />» %3$s', |
|
209 | - 'LOG_DIR_CAT_EDIT' => '<strong>Modify a category of the directory</strong><br />» %s', |
|
210 | - 'LOG_DIR_CAT_MOVE_DOWN' => '<strong>Move a category of the directory</strong> %1$s <strong>under</strong> %2$s', |
|
211 | - 'LOG_DIR_CAT_MOVE_UP' => '<strong>Move a category of the directory</strong> %1$s <strong>above</strong> %2$s', |
|
212 | - 'LOG_DIR_CAT_SYNC' => '<strong>Resynchronization of a category of the directory</strong><br />» %s', |
|
213 | - 'LOG_LINK_APPROVED' => '<strong>Activation of websites waiting for approval</strong><br />» %s', |
|
214 | - 'LOG_LINK_DISAPPROVED' => '<strong>Removal of websites waiting for approval</strong><br />» %s', |
|
198 | + 'LOG_DIR_AUTO_PRUNE' => '<strong>Auto prune of a category of the directory</strong><br />» %s', |
|
199 | + 'LOG_DIR_CAT_ADD' => '<strong>Creation of a new category in the directory</strong><br />» %s', |
|
200 | + 'LOG_DIR_CAT_DEL_CAT' => '<strong>Removal of a category</strong><br />» %s', |
|
201 | + 'LOG_DIR_CAT_DEL_CATS' => '<strong>Removal of a category and its sub-categories</strong><br />» %s', |
|
202 | + 'LOG_DIR_CAT_DEL_LINKS' => '<strong>Removal of a category and its messages.</strong><br />» %s', |
|
203 | + 'LOG_DIR_CAT_DEL_LINKS_CATS' => '<strong>Removal of a category, of its messages and of its sub-categories</strong><br />» %s', |
|
204 | + 'LOG_DIR_CAT_DEL_LINKS_MOVE_CATS' => '<strong>Removal of a category and its messages, sub-categories moved</strong> to %1$s<br />» %2$s', |
|
205 | + 'LOG_DIR_CAT_DEL_MOVE_CATS' => '<strong>Removal of a category and sub-categories moved</strong> to %1$s<br />» %2$s', |
|
206 | + 'LOG_DIR_CAT_DEL_MOVE_LINKS' => '<strong>Removal of a category and messages moved</strong> to %1$s<br />» %2$s', |
|
207 | + 'LOG_DIR_CAT_DEL_MOVE_LINKS_CATS' => '<strong>Removal of a category and its sub-categories, and messages moved</strong> to %1$s<br />» %2$s', |
|
208 | + 'LOG_DIR_CAT_DEL_MOVE_LINKS_MOVE_CATS' => '<strong>Removal of a category, messages moved </strong> to %1$s <strong>and sub-categories moved</strong> to %2$s<br />» %3$s', |
|
209 | + 'LOG_DIR_CAT_EDIT' => '<strong>Modify a category of the directory</strong><br />» %s', |
|
210 | + 'LOG_DIR_CAT_MOVE_DOWN' => '<strong>Move a category of the directory</strong> %1$s <strong>under</strong> %2$s', |
|
211 | + 'LOG_DIR_CAT_MOVE_UP' => '<strong>Move a category of the directory</strong> %1$s <strong>above</strong> %2$s', |
|
212 | + 'LOG_DIR_CAT_SYNC' => '<strong>Resynchronization of a category of the directory</strong><br />» %s', |
|
213 | + 'LOG_LINK_APPROVED' => '<strong>Activation of websites waiting for approval</strong><br />» %s', |
|
214 | + 'LOG_LINK_DISAPPROVED' => '<strong>Removal of websites waiting for approval</strong><br />» %s', |
|
215 | 215 | |
216 | - 'SYNC_IN_PROGRESS' => 'Synchronization of the category', |
|
217 | - 'SYNC_IN_PROGRESS_EXPLAIN' => 'Resynchronization of the links %1$d/%2$d in progress.', |
|
216 | + 'SYNC_IN_PROGRESS' => 'Synchronization of the category', |
|
217 | + 'SYNC_IN_PROGRESS_EXPLAIN' => 'Resynchronization of the links %1$d/%2$d in progress.', |
|
218 | 218 | |
219 | - 'TOO_LONG_DESCRIPTION' => 'Your description is too long', |
|
220 | - 'TOO_SHORT_DESCRIPTION' => 'You must enter a description', |
|
221 | - 'TOO_SHORT_REPLY' => 'Your comment is too short', |
|
222 | - 'TOO_SHORT_SITE_NAME' => 'You must enter a name for the website', |
|
223 | - 'TOO_SHORT_URL' => 'You must enter an URL', |
|
224 | - 'TOO_SMALL_CAT' => 'You must select a category', |
|
219 | + 'TOO_LONG_DESCRIPTION' => 'Your description is too long', |
|
220 | + 'TOO_SHORT_DESCRIPTION' => 'You must enter a description', |
|
221 | + 'TOO_SHORT_REPLY' => 'Your comment is too short', |
|
222 | + 'TOO_SHORT_SITE_NAME' => 'You must enter a name for the website', |
|
223 | + 'TOO_SHORT_URL' => 'You must enter an URL', |
|
224 | + 'TOO_SMALL_CAT' => 'You must select a category', |
|
225 | 225 | ]); |
@@ -9,11 +9,13 @@ |
||
9 | 9 | /** |
10 | 10 | * DO NOT CHANGE. |
11 | 11 | */ |
12 | -if (!defined('IN_PHPBB')) { |
|
12 | +if (!defined('IN_PHPBB')) |
|
13 | +{ |
|
13 | 14 | exit; |
14 | 15 | } |
15 | 16 | |
16 | -if (empty($lang) || !is_array($lang)) { |
|
17 | +if (empty($lang) || !is_array($lang)) |
|
18 | +{ |
|
17 | 19 | $lang = []; |
18 | 20 | } |
19 | 21 |
@@ -10,25 +10,25 @@ |
||
10 | 10 | * DO NOT CHANGE. |
11 | 11 | */ |
12 | 12 | if (!defined('IN_PHPBB')) { |
13 | - exit; |
|
13 | + exit; |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | if (empty($lang) || !is_array($lang)) { |
17 | - $lang = []; |
|
17 | + $lang = []; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | $lang = array_merge($lang, [ |
21 | - 'DIRECTORY' => 'Directory', |
|
21 | + 'DIRECTORY' => 'Directory', |
|
22 | 22 | |
23 | - 'NOTIFICATION_DIR_NEW' => '%1$s posted a new website "%2$s" in the categorie "%3$s".', |
|
24 | - 'NOTIFICATION_DIR_UCP' => 'PhpBB Directory Notifications', |
|
25 | - 'NOTIFICATION_TYPE_DIR_UCP_ERROR_CHECK' => 'The backlink to this forum on one of my links is not found', |
|
26 | - 'NOTIFICATION_TYPE_DIR_UCP_IN_MODERATION_QUEUE' => 'A new website needs approval', |
|
27 | - 'NOTIFICATION_TYPE_DIR_UCP_MODERATION_QUEUE' => 'Your website are approved or disapproved by a moderator', |
|
28 | - 'NOTIFICATION_TYPE_DIR_UCP_WEBSITE' => 'Someone submits a website in a categorie to which you are subscribed', |
|
23 | + 'NOTIFICATION_DIR_NEW' => '%1$s posted a new website "%2$s" in the categorie "%3$s".', |
|
24 | + 'NOTIFICATION_DIR_UCP' => 'PhpBB Directory Notifications', |
|
25 | + 'NOTIFICATION_TYPE_DIR_UCP_ERROR_CHECK' => 'The backlink to this forum on one of my links is not found', |
|
26 | + 'NOTIFICATION_TYPE_DIR_UCP_IN_MODERATION_QUEUE' => 'A new website needs approval', |
|
27 | + 'NOTIFICATION_TYPE_DIR_UCP_MODERATION_QUEUE' => 'Your website are approved or disapproved by a moderator', |
|
28 | + 'NOTIFICATION_TYPE_DIR_UCP_WEBSITE' => 'Someone submits a website in a categorie to which you are subscribed', |
|
29 | 29 | |
30 | - 'NOTIFICATION_DIR_WEBSITE_APPROVED' => 'Your website "%1$s" in the categorie "%2$s" was approved.', |
|
31 | - 'NOTIFICATION_DIR_WEBSITE_DISAPPROVED' => 'Your website "%1$s" in the categorie "%2$s" was disapproved.', |
|
32 | - 'NOTIFICATION_DIR_WEBSITE_ERROR_CHECK' => 'The backlink on "%1$s" in the categorie "%2$s" is not found', |
|
33 | - 'NOTIFICATION_DIR_WEBSITE_IN_QUEUE' => 'A new website named "%1$s" was posted by %2$s and needs approval.', |
|
30 | + 'NOTIFICATION_DIR_WEBSITE_APPROVED' => 'Your website "%1$s" in the categorie "%2$s" was approved.', |
|
31 | + 'NOTIFICATION_DIR_WEBSITE_DISAPPROVED' => 'Your website "%1$s" in the categorie "%2$s" was disapproved.', |
|
32 | + 'NOTIFICATION_DIR_WEBSITE_ERROR_CHECK' => 'The backlink on "%1$s" in the categorie "%2$s" is not found', |
|
33 | + 'NOTIFICATION_DIR_WEBSITE_IN_QUEUE' => 'A new website named "%1$s" was posted by %2$s and needs approval.', |
|
34 | 34 | ]); |
@@ -9,11 +9,13 @@ |
||
9 | 9 | /** |
10 | 10 | * DO NOT CHANGE. |
11 | 11 | */ |
12 | -if (!defined('IN_PHPBB')) { |
|
12 | +if (!defined('IN_PHPBB')) |
|
13 | +{ |
|
13 | 14 | exit; |
14 | 15 | } |
15 | 16 | |
16 | -if (empty($lang) || !is_array($lang)) { |
|
17 | +if (empty($lang) || !is_array($lang)) |
|
18 | +{ |
|
17 | 19 | $lang = []; |
18 | 20 | } |
19 | 21 |
@@ -9,116 +9,116 @@ |
||
9 | 9 | |
10 | 10 | class prune_categorie extends \phpbb\cron\task\base implements \phpbb\cron\task\parametrized |
11 | 11 | { |
12 | - /** @var \phpbb\db\driver\driver_interface */ |
|
13 | - protected $db; |
|
12 | + /** @var \phpbb\db\driver\driver_interface */ |
|
13 | + protected $db; |
|
14 | 14 | |
15 | - /** @var \phpbb\config\config */ |
|
16 | - protected $config; |
|
15 | + /** @var \phpbb\config\config */ |
|
16 | + protected $config; |
|
17 | 17 | |
18 | - /** @var \ernadoo\phpbbdirectory\core\link */ |
|
19 | - protected $directory_cron; |
|
18 | + /** @var \ernadoo\phpbbdirectory\core\link */ |
|
19 | + protected $directory_cron; |
|
20 | 20 | |
21 | - /** @var string phpEx */ |
|
22 | - protected $php_ext; |
|
21 | + /** @var string phpEx */ |
|
22 | + protected $php_ext; |
|
23 | 23 | |
24 | - /** @var array */ |
|
25 | - private $cat_data; |
|
24 | + /** @var array */ |
|
25 | + private $cat_data; |
|
26 | 26 | |
27 | - /** |
|
28 | - * Constructor. |
|
29 | - * |
|
30 | - * @param \phpbb\db\driver\driver_interface $db Database object |
|
31 | - * @param \phpbb\config\config $config Config object |
|
32 | - * @param \ernadoo\phpbbdirectory\core\link $directory_cron PhpBB Directory extension link object |
|
33 | - * @param string $php_ext phpEx |
|
34 | - */ |
|
35 | - public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\config\config $config, \ernadoo\phpbbdirectory\core\link $directory_cron, $php_ext) |
|
36 | - { |
|
37 | - $this->db = $db; |
|
38 | - $this->config = $config; |
|
39 | - $this->dir_cron = $directory_cron; |
|
40 | - $this->php_ext = $php_ext; |
|
41 | - } |
|
27 | + /** |
|
28 | + * Constructor. |
|
29 | + * |
|
30 | + * @param \phpbb\db\driver\driver_interface $db Database object |
|
31 | + * @param \phpbb\config\config $config Config object |
|
32 | + * @param \ernadoo\phpbbdirectory\core\link $directory_cron PhpBB Directory extension link object |
|
33 | + * @param string $php_ext phpEx |
|
34 | + */ |
|
35 | + public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\config\config $config, \ernadoo\phpbbdirectory\core\link $directory_cron, $php_ext) |
|
36 | + { |
|
37 | + $this->db = $db; |
|
38 | + $this->config = $config; |
|
39 | + $this->dir_cron = $directory_cron; |
|
40 | + $this->php_ext = $php_ext; |
|
41 | + } |
|
42 | 42 | |
43 | - /** |
|
44 | - * Manually set categorie data. |
|
45 | - * |
|
46 | - * @param array $cat_data Information about a category to be pruned. |
|
47 | - */ |
|
48 | - public function set_categorie_data($cat_data) |
|
49 | - { |
|
50 | - $this->cat_data = $cat_data; |
|
51 | - } |
|
43 | + /** |
|
44 | + * Manually set categorie data. |
|
45 | + * |
|
46 | + * @param array $cat_data Information about a category to be pruned. |
|
47 | + */ |
|
48 | + public function set_categorie_data($cat_data) |
|
49 | + { |
|
50 | + $this->cat_data = $cat_data; |
|
51 | + } |
|
52 | 52 | |
53 | - /** |
|
54 | - * Runs this cron task. |
|
55 | - * |
|
56 | - * @return null |
|
57 | - */ |
|
58 | - public function run() |
|
59 | - { |
|
60 | - $this->dir_cron->auto_check($this->cat_data); |
|
61 | - } |
|
53 | + /** |
|
54 | + * Runs this cron task. |
|
55 | + * |
|
56 | + * @return null |
|
57 | + */ |
|
58 | + public function run() |
|
59 | + { |
|
60 | + $this->dir_cron->auto_check($this->cat_data); |
|
61 | + } |
|
62 | 62 | |
63 | - /** |
|
64 | - * Returns whether this cron task can run, given current board configuration. |
|
65 | - * |
|
66 | - * @return bool |
|
67 | - */ |
|
68 | - public function is_runnable() |
|
69 | - { |
|
70 | - return !$this->config['use_system_cron'] && !empty($this->cat_data); |
|
71 | - } |
|
63 | + /** |
|
64 | + * Returns whether this cron task can run, given current board configuration. |
|
65 | + * |
|
66 | + * @return bool |
|
67 | + */ |
|
68 | + public function is_runnable() |
|
69 | + { |
|
70 | + return !$this->config['use_system_cron'] && !empty($this->cat_data); |
|
71 | + } |
|
72 | 72 | |
73 | - /** |
|
74 | - * Returns whether this cron task should run now, because enough time |
|
75 | - * has passed since it was last run. |
|
76 | - * |
|
77 | - * @return bool |
|
78 | - */ |
|
79 | - public function should_run() |
|
80 | - { |
|
81 | - return $this->cat_data['cat_cron_enable'] && $this->cat_data['cat_cron_next'] < time(); |
|
82 | - } |
|
73 | + /** |
|
74 | + * Returns whether this cron task should run now, because enough time |
|
75 | + * has passed since it was last run. |
|
76 | + * |
|
77 | + * @return bool |
|
78 | + */ |
|
79 | + public function should_run() |
|
80 | + { |
|
81 | + return $this->cat_data['cat_cron_enable'] && $this->cat_data['cat_cron_next'] < time(); |
|
82 | + } |
|
83 | 83 | |
84 | - /** |
|
85 | - * Returns parameters of this cron task as an array. |
|
86 | - * The array has one key, c, whose value is id of the category to be pruned. |
|
87 | - * |
|
88 | - * @return array |
|
89 | - */ |
|
90 | - public function get_parameters() |
|
91 | - { |
|
92 | - return ['c' => $this->cat_data['cat_id']]; |
|
93 | - } |
|
84 | + /** |
|
85 | + * Returns parameters of this cron task as an array. |
|
86 | + * The array has one key, c, whose value is id of the category to be pruned. |
|
87 | + * |
|
88 | + * @return array |
|
89 | + */ |
|
90 | + public function get_parameters() |
|
91 | + { |
|
92 | + return ['c' => $this->cat_data['cat_id']]; |
|
93 | + } |
|
94 | 94 | |
95 | - /** |
|
96 | - * Parses parameters found in $request, which is an instance of |
|
97 | - * \phpbb\request\request_interface. |
|
98 | - * |
|
99 | - * It is expected to have a key f whose value is id of the forum to be pruned. |
|
100 | - * |
|
101 | - * @param \phpbb\request\request_interface $request Request object. |
|
102 | - * |
|
103 | - * @return null |
|
104 | - */ |
|
105 | - public function parse_parameters(\phpbb\request\request_interface $request) |
|
106 | - { |
|
107 | - $this->cat_data = []; |
|
95 | + /** |
|
96 | + * Parses parameters found in $request, which is an instance of |
|
97 | + * \phpbb\request\request_interface. |
|
98 | + * |
|
99 | + * It is expected to have a key f whose value is id of the forum to be pruned. |
|
100 | + * |
|
101 | + * @param \phpbb\request\request_interface $request Request object. |
|
102 | + * |
|
103 | + * @return null |
|
104 | + */ |
|
105 | + public function parse_parameters(\phpbb\request\request_interface $request) |
|
106 | + { |
|
107 | + $this->cat_data = []; |
|
108 | 108 | |
109 | - if ($request->is_set('c')) { |
|
110 | - $cat_id = $request->variable('c', 0); |
|
109 | + if ($request->is_set('c')) { |
|
110 | + $cat_id = $request->variable('c', 0); |
|
111 | 111 | |
112 | - $sql = 'SELECT cat_id, cat_cron_enable, cat_cron_next, cat_cron_freq, cat_cron_nb_check |
|
112 | + $sql = 'SELECT cat_id, cat_cron_enable, cat_cron_next, cat_cron_freq, cat_cron_nb_check |
|
113 | 113 | FROM '.DIR_CAT_TABLE." |
114 | 114 | WHERE cat_id = $cat_id"; |
115 | - $result = $this->db->sql_query($sql); |
|
116 | - $row = $this->db->sql_fetchrow($result); |
|
117 | - $this->db->sql_freeresult($result); |
|
115 | + $result = $this->db->sql_query($sql); |
|
116 | + $row = $this->db->sql_fetchrow($result); |
|
117 | + $this->db->sql_freeresult($result); |
|
118 | 118 | |
119 | - if ($row) { |
|
120 | - $this->cat_data = $row; |
|
121 | - } |
|
122 | - } |
|
123 | - } |
|
119 | + if ($row) { |
|
120 | + $this->cat_data = $row; |
|
121 | + } |
|
122 | + } |
|
123 | + } |
|
124 | 124 | } |
@@ -106,7 +106,8 @@ discard block |
||
106 | 106 | { |
107 | 107 | $this->cat_data = []; |
108 | 108 | |
109 | - if ($request->is_set('c')) { |
|
109 | + if ($request->is_set('c')) |
|
110 | + { |
|
110 | 111 | $cat_id = $request->variable('c', 0); |
111 | 112 | |
112 | 113 | $sql = 'SELECT cat_id, cat_cron_enable, cat_cron_next, cat_cron_freq, cat_cron_nb_check |
@@ -116,7 +117,8 @@ discard block |
||
116 | 117 | $row = $this->db->sql_fetchrow($result); |
117 | 118 | $this->db->sql_freeresult($result); |
118 | 119 | |
119 | - if ($row) { |
|
120 | + if ($row) |
|
121 | + { |
|
120 | 122 | $this->cat_data = $row; |
121 | 123 | } |
122 | 124 | } |
@@ -9,18 +9,18 @@ |
||
9 | 9 | |
10 | 10 | class phpbbdirectory_info |
11 | 11 | { |
12 | - public function module() |
|
13 | - { |
|
14 | - return [ |
|
15 | - 'filename' => '\ernadoo\phpbbdirectory\acp\phpbbdirectory_module', |
|
16 | - 'title' => 'ACP_DIRECTORY', |
|
17 | - 'modes' => [ |
|
18 | - '' => ['title' => 'ACP_DIRECTORY', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['']], |
|
19 | - 'main' => ['title' => 'ACP_DIRECTORY_MAIN', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
20 | - 'settings' => ['title' => 'ACP_DIRECTORY_SETTINGS', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
21 | - 'cat' => ['title' => 'ACP_DIRECTORY_CATS', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
22 | - 'val' => ['title' => 'ACP_DIRECTORY_VAL', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
23 | - ], |
|
24 | - ]; |
|
25 | - } |
|
12 | + public function module() |
|
13 | + { |
|
14 | + return [ |
|
15 | + 'filename' => '\ernadoo\phpbbdirectory\acp\phpbbdirectory_module', |
|
16 | + 'title' => 'ACP_DIRECTORY', |
|
17 | + 'modes' => [ |
|
18 | + '' => ['title' => 'ACP_DIRECTORY', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['']], |
|
19 | + 'main' => ['title' => 'ACP_DIRECTORY_MAIN', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
20 | + 'settings' => ['title' => 'ACP_DIRECTORY_SETTINGS', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
21 | + 'cat' => ['title' => 'ACP_DIRECTORY_CATS', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
22 | + 'val' => ['title' => 'ACP_DIRECTORY_VAL', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
23 | + ], |
|
24 | + ]; |
|
25 | + } |
|
26 | 26 | } |
@@ -15,11 +15,11 @@ |
||
15 | 15 | 'filename' => '\ernadoo\phpbbdirectory\acp\phpbbdirectory_module', |
16 | 16 | 'title' => 'ACP_DIRECTORY', |
17 | 17 | 'modes' => [ |
18 | - '' => ['title' => 'ACP_DIRECTORY', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['']], |
|
19 | - 'main' => ['title' => 'ACP_DIRECTORY_MAIN', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
20 | - 'settings' => ['title' => 'ACP_DIRECTORY_SETTINGS', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
21 | - 'cat' => ['title' => 'ACP_DIRECTORY_CATS', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
22 | - 'val' => ['title' => 'ACP_DIRECTORY_VAL', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
18 | + '' => ['title' => 'ACP_DIRECTORY', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['']], |
|
19 | + 'main' => ['title' => 'ACP_DIRECTORY_MAIN', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
20 | + 'settings' => ['title' => 'ACP_DIRECTORY_SETTINGS', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
21 | + 'cat' => ['title' => 'ACP_DIRECTORY_CATS', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
22 | + 'val' => ['title' => 'ACP_DIRECTORY_VAL', 'auth' => 'ext_ernadoo/phpbbdirectory', 'cat' => ['ACP_DIRECTORY']], |
|
23 | 23 | ], |
24 | 24 | ]; |
25 | 25 | } |
@@ -9,240 +9,240 @@ |
||
9 | 9 | |
10 | 10 | class phpbbdirectory_module |
11 | 11 | { |
12 | - public $page_title; |
|
12 | + public $page_title; |
|
13 | 13 | |
14 | - public $tpl_name; |
|
14 | + public $tpl_name; |
|
15 | 15 | |
16 | - public $u_action; |
|
16 | + public $u_action; |
|
17 | 17 | |
18 | - /** |
|
19 | - * @param int $id |
|
20 | - * @param string $mode |
|
21 | - */ |
|
22 | - public function main($id, $mode) |
|
23 | - { |
|
24 | - global $request, $phpbb_container; |
|
18 | + /** |
|
19 | + * @param int $id |
|
20 | + * @param string $mode |
|
21 | + */ |
|
22 | + public function main($id, $mode) |
|
23 | + { |
|
24 | + global $request, $phpbb_container; |
|
25 | 25 | |
26 | - $action = $request->variable('action', ''); |
|
27 | - $update = ($request->is_set_post('update')) ? true : false; |
|
26 | + $action = $request->variable('action', ''); |
|
27 | + $update = ($request->is_set_post('update')) ? true : false; |
|
28 | 28 | |
29 | - switch ($mode) { |
|
30 | - case 'main': |
|
29 | + switch ($mode) { |
|
30 | + case 'main': |
|
31 | 31 | |
32 | - // Set the page title for our ACP page |
|
33 | - $this->page_title = 'ACP_DIRECTORY'; |
|
32 | + // Set the page title for our ACP page |
|
33 | + $this->page_title = 'ACP_DIRECTORY'; |
|
34 | 34 | |
35 | - // Load a template from adm/style for our ACP page |
|
36 | - $this->tpl_name = 'acp_dir_main'; |
|
35 | + // Load a template from adm/style for our ACP page |
|
36 | + $this->tpl_name = 'acp_dir_main'; |
|
37 | 37 | |
38 | - // Get an instance of the acp_main controller |
|
39 | - $main_controller = $phpbb_container->get('ernadoo.phpbbdirectory.controller.acp.main'); |
|
38 | + // Get an instance of the acp_main controller |
|
39 | + $main_controller = $phpbb_container->get('ernadoo.phpbbdirectory.controller.acp.main'); |
|
40 | 40 | |
41 | - // Make the $u_action url available in the acp_main controller |
|
42 | - $main_controller->set_page_url($this->u_action); |
|
41 | + // Make the $u_action url available in the acp_main controller |
|
42 | + $main_controller->set_page_url($this->u_action); |
|
43 | 43 | |
44 | - if ($action) { |
|
45 | - if (!confirm_box(true)) { |
|
46 | - $main_controller->display_confirm($action); |
|
47 | - } else { |
|
48 | - $main_controller->exec_action($action); |
|
49 | - } |
|
50 | - } |
|
44 | + if ($action) { |
|
45 | + if (!confirm_box(true)) { |
|
46 | + $main_controller->display_confirm($action); |
|
47 | + } else { |
|
48 | + $main_controller->exec_action($action); |
|
49 | + } |
|
50 | + } |
|
51 | 51 | |
52 | - // Display main page |
|
53 | - $main_controller->display_stats(); |
|
52 | + // Display main page |
|
53 | + $main_controller->display_stats(); |
|
54 | 54 | |
55 | - break; |
|
55 | + break; |
|
56 | 56 | |
57 | - case 'settings': |
|
57 | + case 'settings': |
|
58 | 58 | |
59 | - // Get an instance of the acp_settings controller |
|
60 | - $settings_controller = $phpbb_container->get('ernadoo.phpbbdirectory.controller.acp.settings'); |
|
59 | + // Get an instance of the acp_settings controller |
|
60 | + $settings_controller = $phpbb_container->get('ernadoo.phpbbdirectory.controller.acp.settings'); |
|
61 | 61 | |
62 | - // Set the page title for our ACP page |
|
63 | - $this->page_title = 'ACP_DIRECTORY_SETTINGS'; |
|
62 | + // Set the page title for our ACP page |
|
63 | + $this->page_title = 'ACP_DIRECTORY_SETTINGS'; |
|
64 | 64 | |
65 | - // Load a template from adm/style for our ACP page |
|
66 | - $this->tpl_name = 'acp_board'; |
|
65 | + // Load a template from adm/style for our ACP page |
|
66 | + $this->tpl_name = 'acp_board'; |
|
67 | 67 | |
68 | - // Make the $u_action url available in the acp_settings controller |
|
69 | - $settings_controller->set_page_url($this->u_action); |
|
68 | + // Make the $u_action url available in the acp_settings controller |
|
69 | + $settings_controller->set_page_url($this->u_action); |
|
70 | 70 | |
71 | - $settings_controller->process(); |
|
71 | + $settings_controller->process(); |
|
72 | 72 | |
73 | - // Display config |
|
74 | - $settings_controller->display_config(); |
|
73 | + // Display config |
|
74 | + $settings_controller->display_config(); |
|
75 | 75 | |
76 | - break; |
|
76 | + break; |
|
77 | 77 | |
78 | - case 'cat': |
|
78 | + case 'cat': |
|
79 | 79 | |
80 | - // Set the page title for our ACP page |
|
81 | - $this->page_title = 'ACP_DIRECTORY'; |
|
80 | + // Set the page title for our ACP page |
|
81 | + $this->page_title = 'ACP_DIRECTORY'; |
|
82 | 82 | |
83 | - // Load a template from adm/style for our ACP page |
|
84 | - $this->tpl_name = 'acp_dir_cat'; |
|
83 | + // Load a template from adm/style for our ACP page |
|
84 | + $this->tpl_name = 'acp_dir_cat'; |
|
85 | 85 | |
86 | - // Get an instance of the acp_cat controller |
|
87 | - $cat_controller = $phpbb_container->get('ernadoo.phpbbdirectory.controller.acp.cat'); |
|
86 | + // Get an instance of the acp_cat controller |
|
87 | + $cat_controller = $phpbb_container->get('ernadoo.phpbbdirectory.controller.acp.cat'); |
|
88 | 88 | |
89 | - // Make the $u_action url available in the acp_cat controller |
|
90 | - $cat_controller->set_page_url($this->u_action); |
|
89 | + // Make the $u_action url available in the acp_cat controller |
|
90 | + $cat_controller->set_page_url($this->u_action); |
|
91 | 91 | |
92 | - // Major routines |
|
93 | - if ($update) { |
|
94 | - $cat_controller->update(); |
|
95 | - } |
|
92 | + // Major routines |
|
93 | + if ($update) { |
|
94 | + $cat_controller->update(); |
|
95 | + } |
|
96 | 96 | |
97 | - switch ($action) { |
|
98 | - case 'progress_bar': |
|
99 | - $cat_controller->action_progress_bar(); |
|
97 | + switch ($action) { |
|
98 | + case 'progress_bar': |
|
99 | + $cat_controller->action_progress_bar(); |
|
100 | 100 | |
101 | - return; |
|
102 | - break; |
|
101 | + return; |
|
102 | + break; |
|
103 | 103 | |
104 | - case 'sync': |
|
105 | - $cat_controller->action_sync(); |
|
106 | - break; |
|
104 | + case 'sync': |
|
105 | + $cat_controller->action_sync(); |
|
106 | + break; |
|
107 | 107 | |
108 | - case 'sync_cat': |
|
109 | - $cat_controller->action_sync_cat(); |
|
110 | - break; |
|
108 | + case 'sync_cat': |
|
109 | + $cat_controller->action_sync_cat(); |
|
110 | + break; |
|
111 | 111 | |
112 | - case 'move_up': |
|
113 | - case 'move_down': |
|
114 | - $cat_controller->action_move(); |
|
115 | - break; |
|
112 | + case 'move_up': |
|
113 | + case 'move_down': |
|
114 | + $cat_controller->action_move(); |
|
115 | + break; |
|
116 | 116 | |
117 | - case 'edit': |
|
118 | - $this->page_title = 'DIR_EDIT_CAT'; |
|
117 | + case 'edit': |
|
118 | + $this->page_title = 'DIR_EDIT_CAT'; |
|
119 | 119 | |
120 | - $cat_controller->action_edit(); |
|
120 | + $cat_controller->action_edit(); |
|
121 | 121 | |
122 | - return; |
|
123 | - break; |
|
122 | + return; |
|
123 | + break; |
|
124 | 124 | |
125 | - case 'add': |
|
126 | - $this->page_title = 'DIR_ADD_CAT'; |
|
125 | + case 'add': |
|
126 | + $this->page_title = 'DIR_ADD_CAT'; |
|
127 | 127 | |
128 | - $cat_controller->action_add(); |
|
128 | + $cat_controller->action_add(); |
|
129 | 129 | |
130 | - return; |
|
131 | - break; |
|
130 | + return; |
|
131 | + break; |
|
132 | 132 | |
133 | - case 'delete': |
|
134 | - $cat_controller->action_delete(); |
|
133 | + case 'delete': |
|
134 | + $cat_controller->action_delete(); |
|
135 | 135 | |
136 | - return; |
|
137 | - break; |
|
138 | - } |
|
136 | + return; |
|
137 | + break; |
|
138 | + } |
|
139 | 139 | |
140 | - // Display categories |
|
141 | - $cat_controller->display_cats(); |
|
140 | + // Display categories |
|
141 | + $cat_controller->display_cats(); |
|
142 | 142 | |
143 | - break; |
|
143 | + break; |
|
144 | 144 | |
145 | - case 'val': |
|
145 | + case 'val': |
|
146 | 146 | |
147 | - // Set the page title for our ACP page |
|
148 | - $this->page_title = 'ACP_DIRECTORY'; |
|
147 | + // Set the page title for our ACP page |
|
148 | + $this->page_title = 'ACP_DIRECTORY'; |
|
149 | 149 | |
150 | - // Load a template from adm/style for our ACP page |
|
151 | - $this->tpl_name = 'acp_dir_val'; |
|
150 | + // Load a template from adm/style for our ACP page |
|
151 | + $this->tpl_name = 'acp_dir_val'; |
|
152 | 152 | |
153 | - // Get an instance of the acp_validation controller |
|
154 | - $validation_controller = $phpbb_container->get('ernadoo.phpbbdirectory.controller.acp.validation'); |
|
153 | + // Get an instance of the acp_validation controller |
|
154 | + $validation_controller = $phpbb_container->get('ernadoo.phpbbdirectory.controller.acp.validation'); |
|
155 | 155 | |
156 | - // Make the $u_action url available in the acp_validation controller |
|
157 | - $validation_controller->set_page_url($this->u_action); |
|
156 | + // Make the $u_action url available in the acp_validation controller |
|
157 | + $validation_controller->set_page_url($this->u_action); |
|
158 | 158 | |
159 | - $mark = ($request->is_set_post('link_id')) ? $request->variable('link_id', [0]) : []; |
|
160 | - |
|
161 | - if ($action && count($mark)) { |
|
162 | - if (!confirm_box(true) && $action != 'approved') { |
|
163 | - $validation_controller->display_confirm($mark); |
|
164 | - } else { |
|
165 | - $validation_controller->exec_action($mark); |
|
166 | - } |
|
167 | - |
|
168 | - $validation_controller->notifiy_submiters(); |
|
169 | - } |
|
170 | - |
|
171 | - // Display websites pending validation |
|
172 | - $validation_controller->display_websites(); |
|
173 | - |
|
174 | - break; |
|
175 | - } |
|
176 | - } |
|
177 | - |
|
178 | - /** |
|
179 | - * Display thumb services available. |
|
180 | - * |
|
181 | - * @param string $url_selected |
|
182 | - * |
|
183 | - * @return string |
|
184 | - */ |
|
185 | - public function get_thumb_service_list($url_selected) |
|
186 | - { |
|
187 | - $thumbshot = [ |
|
188 | - 'http://www.apercite.fr/apercite/120x90/oui/oui/', |
|
189 | - 'http://www.easy-thumb.net/min.html?url=', |
|
190 | - ]; |
|
191 | - |
|
192 | - $select_options = ''; |
|
193 | - foreach ($thumbshot as $url) { |
|
194 | - $selected = ($url == $url_selected) ? 'selected="selected"' : ''; |
|
195 | - |
|
196 | - $select_options .= '<option value="'.$url.'" '.$selected.'>'.parse_url($url, PHP_URL_HOST).'</option>'; |
|
197 | - } |
|
198 | - |
|
199 | - return $select_options; |
|
200 | - } |
|
201 | - |
|
202 | - /** |
|
203 | - * Display order drop-down list. |
|
204 | - * |
|
205 | - * @param string $order_selected |
|
206 | - * |
|
207 | - * @return string |
|
208 | - */ |
|
209 | - public function get_order_list($order_selected) |
|
210 | - { |
|
211 | - global $user; |
|
212 | - |
|
213 | - $order_array = [ |
|
214 | - 'a a', |
|
215 | - 'a d', |
|
216 | - 't a', |
|
217 | - 't d', |
|
218 | - 'r a', |
|
219 | - 'r d', |
|
220 | - 's a', |
|
221 | - 's d', |
|
222 | - 'v a', |
|
223 | - 'v d', |
|
224 | - ]; |
|
225 | - $tpl = ''; |
|
226 | - foreach ($order_array as $i) { |
|
227 | - $selected = ($i == $order_selected) ? 'selected="selected"' : ''; |
|
228 | - $order_substr = trim(str_replace(' ', '_', $i)); |
|
229 | - $tpl .= '<option value="'.$i.'" '.$selected.'>'.$user->lang['DIR_ORDER_'.strtoupper($order_substr)].'</option>'; |
|
230 | - } |
|
231 | - |
|
232 | - return $tpl; |
|
233 | - } |
|
234 | - |
|
235 | - /** |
|
236 | - * Adjust all three max_filesize config vars for display. |
|
237 | - */ |
|
238 | - public function max_filesize($value, $key = '') |
|
239 | - { |
|
240 | - // Determine size var and adjust the value accordingly |
|
241 | - $filesize = get_formatted_filesize($value, false, ['mb', 'kb', 'b']); |
|
242 | - $size_var = $filesize['si_identifier']; |
|
243 | - $value = $filesize['value']; |
|
244 | - |
|
245 | - // size and maxlength must not be specified for input of type number |
|
246 | - return '<input type="number" id="'.$key.'" min="0" max="999999999999999" step="any" name="config['.$key.']" value="'.$value.'" /> <select name="'.$key.'">'.size_select_options($size_var).'</select>'; |
|
247 | - } |
|
159 | + $mark = ($request->is_set_post('link_id')) ? $request->variable('link_id', [0]) : []; |
|
160 | + |
|
161 | + if ($action && count($mark)) { |
|
162 | + if (!confirm_box(true) && $action != 'approved') { |
|
163 | + $validation_controller->display_confirm($mark); |
|
164 | + } else { |
|
165 | + $validation_controller->exec_action($mark); |
|
166 | + } |
|
167 | + |
|
168 | + $validation_controller->notifiy_submiters(); |
|
169 | + } |
|
170 | + |
|
171 | + // Display websites pending validation |
|
172 | + $validation_controller->display_websites(); |
|
173 | + |
|
174 | + break; |
|
175 | + } |
|
176 | + } |
|
177 | + |
|
178 | + /** |
|
179 | + * Display thumb services available. |
|
180 | + * |
|
181 | + * @param string $url_selected |
|
182 | + * |
|
183 | + * @return string |
|
184 | + */ |
|
185 | + public function get_thumb_service_list($url_selected) |
|
186 | + { |
|
187 | + $thumbshot = [ |
|
188 | + 'http://www.apercite.fr/apercite/120x90/oui/oui/', |
|
189 | + 'http://www.easy-thumb.net/min.html?url=', |
|
190 | + ]; |
|
191 | + |
|
192 | + $select_options = ''; |
|
193 | + foreach ($thumbshot as $url) { |
|
194 | + $selected = ($url == $url_selected) ? 'selected="selected"' : ''; |
|
195 | + |
|
196 | + $select_options .= '<option value="'.$url.'" '.$selected.'>'.parse_url($url, PHP_URL_HOST).'</option>'; |
|
197 | + } |
|
198 | + |
|
199 | + return $select_options; |
|
200 | + } |
|
201 | + |
|
202 | + /** |
|
203 | + * Display order drop-down list. |
|
204 | + * |
|
205 | + * @param string $order_selected |
|
206 | + * |
|
207 | + * @return string |
|
208 | + */ |
|
209 | + public function get_order_list($order_selected) |
|
210 | + { |
|
211 | + global $user; |
|
212 | + |
|
213 | + $order_array = [ |
|
214 | + 'a a', |
|
215 | + 'a d', |
|
216 | + 't a', |
|
217 | + 't d', |
|
218 | + 'r a', |
|
219 | + 'r d', |
|
220 | + 's a', |
|
221 | + 's d', |
|
222 | + 'v a', |
|
223 | + 'v d', |
|
224 | + ]; |
|
225 | + $tpl = ''; |
|
226 | + foreach ($order_array as $i) { |
|
227 | + $selected = ($i == $order_selected) ? 'selected="selected"' : ''; |
|
228 | + $order_substr = trim(str_replace(' ', '_', $i)); |
|
229 | + $tpl .= '<option value="'.$i.'" '.$selected.'>'.$user->lang['DIR_ORDER_'.strtoupper($order_substr)].'</option>'; |
|
230 | + } |
|
231 | + |
|
232 | + return $tpl; |
|
233 | + } |
|
234 | + |
|
235 | + /** |
|
236 | + * Adjust all three max_filesize config vars for display. |
|
237 | + */ |
|
238 | + public function max_filesize($value, $key = '') |
|
239 | + { |
|
240 | + // Determine size var and adjust the value accordingly |
|
241 | + $filesize = get_formatted_filesize($value, false, ['mb', 'kb', 'b']); |
|
242 | + $size_var = $filesize['si_identifier']; |
|
243 | + $value = $filesize['value']; |
|
244 | + |
|
245 | + // size and maxlength must not be specified for input of type number |
|
246 | + return '<input type="number" id="'.$key.'" min="0" max="999999999999999" step="any" name="config['.$key.']" value="'.$value.'" /> <select name="'.$key.'">'.size_select_options($size_var).'</select>'; |
|
247 | + } |
|
248 | 248 | } |
@@ -26,7 +26,8 @@ discard block |
||
26 | 26 | $action = $request->variable('action', ''); |
27 | 27 | $update = ($request->is_set_post('update')) ? true : false; |
28 | 28 | |
29 | - switch ($mode) { |
|
29 | + switch ($mode) |
|
30 | + { |
|
30 | 31 | case 'main': |
31 | 32 | |
32 | 33 | // Set the page title for our ACP page |
@@ -41,10 +42,14 @@ discard block |
||
41 | 42 | // Make the $u_action url available in the acp_main controller |
42 | 43 | $main_controller->set_page_url($this->u_action); |
43 | 44 | |
44 | - if ($action) { |
|
45 | - if (!confirm_box(true)) { |
|
45 | + if ($action) |
|
46 | + { |
|
47 | + if (!confirm_box(true)) |
|
48 | + { |
|
46 | 49 | $main_controller->display_confirm($action); |
47 | - } else { |
|
50 | + } |
|
51 | + else |
|
52 | + { |
|
48 | 53 | $main_controller->exec_action($action); |
49 | 54 | } |
50 | 55 | } |
@@ -90,11 +95,13 @@ discard block |
||
90 | 95 | $cat_controller->set_page_url($this->u_action); |
91 | 96 | |
92 | 97 | // Major routines |
93 | - if ($update) { |
|
98 | + if ($update) |
|
99 | + { |
|
94 | 100 | $cat_controller->update(); |
95 | 101 | } |
96 | 102 | |
97 | - switch ($action) { |
|
103 | + switch ($action) |
|
104 | + { |
|
98 | 105 | case 'progress_bar': |
99 | 106 | $cat_controller->action_progress_bar(); |
100 | 107 | |
@@ -158,10 +165,14 @@ discard block |
||
158 | 165 | |
159 | 166 | $mark = ($request->is_set_post('link_id')) ? $request->variable('link_id', [0]) : []; |
160 | 167 | |
161 | - if ($action && count($mark)) { |
|
162 | - if (!confirm_box(true) && $action != 'approved') { |
|
168 | + if ($action && count($mark)) |
|
169 | + { |
|
170 | + if (!confirm_box(true) && $action != 'approved') |
|
171 | + { |
|
163 | 172 | $validation_controller->display_confirm($mark); |
164 | - } else { |
|
173 | + } |
|
174 | + else |
|
175 | + { |
|
165 | 176 | $validation_controller->exec_action($mark); |
166 | 177 | } |
167 | 178 | |
@@ -190,7 +201,8 @@ discard block |
||
190 | 201 | ]; |
191 | 202 | |
192 | 203 | $select_options = ''; |
193 | - foreach ($thumbshot as $url) { |
|
204 | + foreach ($thumbshot as $url) |
|
205 | + { |
|
194 | 206 | $selected = ($url == $url_selected) ? 'selected="selected"' : ''; |
195 | 207 | |
196 | 208 | $select_options .= '<option value="'.$url.'" '.$selected.'>'.parse_url($url, PHP_URL_HOST).'</option>'; |
@@ -223,7 +235,8 @@ discard block |
||
223 | 235 | 'v d', |
224 | 236 | ]; |
225 | 237 | $tpl = ''; |
226 | - foreach ($order_array as $i) { |
|
238 | + foreach ($order_array as $i) |
|
239 | + { |
|
227 | 240 | $selected = ($i == $order_selected) ? 'selected="selected"' : ''; |
228 | 241 | $order_substr = trim(str_replace(' ', '_', $i)); |
229 | 242 | $tpl .= '<option value="'.$i.'" '.$selected.'>'.$user->lang['DIR_ORDER_'.strtoupper($order_substr)].'</option>'; |
@@ -9,29 +9,29 @@ |
||
9 | 9 | |
10 | 10 | class nestedset_category extends \phpbb\tree\nestedset |
11 | 11 | { |
12 | - /** |
|
13 | - * Construct. |
|
14 | - * |
|
15 | - * @param \phpbb\db\driver\driver_interface $db Database connection |
|
16 | - * @param \phpbb\lock\db $lock Lock class used to lock the table when moving forums around |
|
17 | - */ |
|
18 | - public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\lock\db $lock) |
|
19 | - { |
|
20 | - parent::__construct( |
|
21 | - $db, |
|
22 | - $lock, |
|
23 | - DIR_CAT_TABLE, |
|
24 | - 'DIR_NESTEDSET_', |
|
25 | - '', |
|
26 | - [ |
|
27 | - 'cat_id', |
|
28 | - 'cat_name', |
|
29 | - ], |
|
30 | - [ |
|
31 | - 'item_id' => 'cat_id', |
|
32 | - 'parent_id' => 'parent_id', |
|
33 | - 'item_parents' => 'cat_parents', |
|
34 | - ] |
|
35 | - ); |
|
36 | - } |
|
12 | + /** |
|
13 | + * Construct. |
|
14 | + * |
|
15 | + * @param \phpbb\db\driver\driver_interface $db Database connection |
|
16 | + * @param \phpbb\lock\db $lock Lock class used to lock the table when moving forums around |
|
17 | + */ |
|
18 | + public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\lock\db $lock) |
|
19 | + { |
|
20 | + parent::__construct( |
|
21 | + $db, |
|
22 | + $lock, |
|
23 | + DIR_CAT_TABLE, |
|
24 | + 'DIR_NESTEDSET_', |
|
25 | + '', |
|
26 | + [ |
|
27 | + 'cat_id', |
|
28 | + 'cat_name', |
|
29 | + ], |
|
30 | + [ |
|
31 | + 'item_id' => 'cat_id', |
|
32 | + 'parent_id' => 'parent_id', |
|
33 | + 'item_parents' => 'cat_parents', |
|
34 | + ] |
|
35 | + ); |
|
36 | + } |
|
37 | 37 | } |
@@ -9,476 +9,476 @@ |
||
9 | 9 | |
10 | 10 | class categorie |
11 | 11 | { |
12 | - /** @var \phpbb\db\driver\driver_interface */ |
|
13 | - protected $db; |
|
14 | - |
|
15 | - /** @var \phpbb\config\config */ |
|
16 | - protected $config; |
|
17 | - |
|
18 | - /** @var \phpbb\template\template */ |
|
19 | - protected $template; |
|
20 | - |
|
21 | - /** @var \phpbb\user */ |
|
22 | - protected $user; |
|
23 | - |
|
24 | - /** @var \phpbb\controller\helper */ |
|
25 | - protected $helper; |
|
26 | - |
|
27 | - /** @var \phpbb\request\request */ |
|
28 | - protected $request; |
|
29 | - |
|
30 | - /** @var \phpbb\auth\auth */ |
|
31 | - protected $auth; |
|
32 | - |
|
33 | - /** @var \phpbb\cron\manager */ |
|
34 | - protected $cron; |
|
35 | - |
|
36 | - /** @var \ernadoo\phpbbdirectory\core\helper */ |
|
37 | - protected $dir_helper; |
|
38 | - |
|
39 | - |
|
40 | - /** @var array data */ |
|
41 | - public $data = []; |
|
42 | - |
|
43 | - /** |
|
44 | - * Constructor. |
|
45 | - * |
|
46 | - * @param \phpbb\db\driver\driver_interface $db Database object |
|
47 | - * @param \phpbb\config\config $config Config object |
|
48 | - * @param \phpbb\template\template $template Template object |
|
49 | - * @param \phpbb\user $user User object |
|
50 | - * @param \phpbb\controller\helper $helper Controller helper object |
|
51 | - * @param \phpbb\request\request $request Request object |
|
52 | - * @param \phpbb\auth\auth $auth Auth object |
|
53 | - * @param \phpbb\cron\manager $cron Cron object |
|
54 | - * @param \ernadoo\phpbbdirectory\core\helper $dir_helper PhpBB Directory extension helper object |
|
55 | - */ |
|
56 | - public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\config\config $config, \phpbb\template\template $template, \phpbb\user $user, \phpbb\controller\helper $helper, \phpbb\request\request $request, \phpbb\auth\auth $auth, \phpbb\cron\manager $cron, \ernadoo\phpbbdirectory\core\helper $dir_helper) |
|
57 | - { |
|
58 | - $this->db = $db; |
|
59 | - $this->config = $config; |
|
60 | - $this->template = $template; |
|
61 | - $this->user = $user; |
|
62 | - $this->helper = $helper; |
|
63 | - $this->request = $request; |
|
64 | - $this->auth = $auth; |
|
65 | - $this->cron = $cron; |
|
66 | - $this->dir_helper = $dir_helper; |
|
67 | - } |
|
68 | - |
|
69 | - /** |
|
70 | - * Function for get approval setting |
|
71 | - * used in edit mode for test the setting of new category's link. |
|
72 | - * |
|
73 | - * @return bool |
|
74 | - */ |
|
75 | - public function need_approval() |
|
76 | - { |
|
77 | - return (bool) $this->data['cat_validate']; |
|
78 | - } |
|
79 | - |
|
80 | - /** |
|
81 | - * Generate Jumpbox. |
|
82 | - * |
|
83 | - * @return null |
|
84 | - */ |
|
85 | - public function make_cat_jumpbox() |
|
86 | - { |
|
87 | - $sql = 'SELECT cat_id, cat_name, parent_id, left_id, right_id |
|
12 | + /** @var \phpbb\db\driver\driver_interface */ |
|
13 | + protected $db; |
|
14 | + |
|
15 | + /** @var \phpbb\config\config */ |
|
16 | + protected $config; |
|
17 | + |
|
18 | + /** @var \phpbb\template\template */ |
|
19 | + protected $template; |
|
20 | + |
|
21 | + /** @var \phpbb\user */ |
|
22 | + protected $user; |
|
23 | + |
|
24 | + /** @var \phpbb\controller\helper */ |
|
25 | + protected $helper; |
|
26 | + |
|
27 | + /** @var \phpbb\request\request */ |
|
28 | + protected $request; |
|
29 | + |
|
30 | + /** @var \phpbb\auth\auth */ |
|
31 | + protected $auth; |
|
32 | + |
|
33 | + /** @var \phpbb\cron\manager */ |
|
34 | + protected $cron; |
|
35 | + |
|
36 | + /** @var \ernadoo\phpbbdirectory\core\helper */ |
|
37 | + protected $dir_helper; |
|
38 | + |
|
39 | + |
|
40 | + /** @var array data */ |
|
41 | + public $data = []; |
|
42 | + |
|
43 | + /** |
|
44 | + * Constructor. |
|
45 | + * |
|
46 | + * @param \phpbb\db\driver\driver_interface $db Database object |
|
47 | + * @param \phpbb\config\config $config Config object |
|
48 | + * @param \phpbb\template\template $template Template object |
|
49 | + * @param \phpbb\user $user User object |
|
50 | + * @param \phpbb\controller\helper $helper Controller helper object |
|
51 | + * @param \phpbb\request\request $request Request object |
|
52 | + * @param \phpbb\auth\auth $auth Auth object |
|
53 | + * @param \phpbb\cron\manager $cron Cron object |
|
54 | + * @param \ernadoo\phpbbdirectory\core\helper $dir_helper PhpBB Directory extension helper object |
|
55 | + */ |
|
56 | + public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\config\config $config, \phpbb\template\template $template, \phpbb\user $user, \phpbb\controller\helper $helper, \phpbb\request\request $request, \phpbb\auth\auth $auth, \phpbb\cron\manager $cron, \ernadoo\phpbbdirectory\core\helper $dir_helper) |
|
57 | + { |
|
58 | + $this->db = $db; |
|
59 | + $this->config = $config; |
|
60 | + $this->template = $template; |
|
61 | + $this->user = $user; |
|
62 | + $this->helper = $helper; |
|
63 | + $this->request = $request; |
|
64 | + $this->auth = $auth; |
|
65 | + $this->cron = $cron; |
|
66 | + $this->dir_helper = $dir_helper; |
|
67 | + } |
|
68 | + |
|
69 | + /** |
|
70 | + * Function for get approval setting |
|
71 | + * used in edit mode for test the setting of new category's link. |
|
72 | + * |
|
73 | + * @return bool |
|
74 | + */ |
|
75 | + public function need_approval() |
|
76 | + { |
|
77 | + return (bool) $this->data['cat_validate']; |
|
78 | + } |
|
79 | + |
|
80 | + /** |
|
81 | + * Generate Jumpbox. |
|
82 | + * |
|
83 | + * @return null |
|
84 | + */ |
|
85 | + public function make_cat_jumpbox() |
|
86 | + { |
|
87 | + $sql = 'SELECT cat_id, cat_name, parent_id, left_id, right_id |
|
88 | 88 | FROM '.DIR_CAT_TABLE.' |
89 | 89 | ORDER BY left_id ASC'; |
90 | - $result = $this->db->sql_query($sql, 600); |
|
91 | - |
|
92 | - $right = $padding = 0; |
|
93 | - $padding_store = ['0' => 0]; |
|
94 | - $display_jumpbox = false; |
|
95 | - $iteration = 0; |
|
96 | - |
|
97 | - while ($row = $this->db->sql_fetchrow($result)) { |
|
98 | - $display_jumpbox = true; |
|
99 | - |
|
100 | - if ($row['left_id'] < $right) { |
|
101 | - $padding++; |
|
102 | - $padding_store[$row['parent_id']] = $padding; |
|
103 | - } elseif ($row['left_id'] > $right + 1) { |
|
104 | - $padding = (isset($padding_store[$row['parent_id']])) ? $padding_store[$row['parent_id']] : $padding; |
|
105 | - } |
|
106 | - |
|
107 | - $right = $row['right_id']; |
|
108 | - |
|
109 | - $this->template->assign_block_vars('jumpbox_forums', [ |
|
110 | - 'FORUM_ID' => $row['cat_id'], |
|
111 | - 'FORUM_NAME' => $row['cat_name'], |
|
112 | - 'S_FORUM_COUNT' => $iteration, |
|
113 | - 'LINK' => $this->helper->route('ernadoo_phpbbdirectory_page_controller', ['cat_id' => $row['cat_id']]), |
|
114 | - ]); |
|
115 | - |
|
116 | - for ($i = 0; $i < $padding; $i++) { |
|
117 | - $this->template->assign_block_vars('jumpbox_forums.level', []); |
|
118 | - } |
|
119 | - $iteration++; |
|
120 | - } |
|
121 | - $this->db->sql_freeresult($result); |
|
122 | - unset($padding_store); |
|
123 | - |
|
124 | - $this->template->assign_vars([ |
|
125 | - 'S_DISPLAY_JUMPBOX' => $display_jumpbox, |
|
126 | - ]); |
|
127 | - } |
|
128 | - |
|
129 | - /** |
|
130 | - * Generate a list of directory's categories. |
|
131 | - * |
|
132 | - * @param int $select_id Selected category |
|
133 | - * @param array $ignore_id Array of ignored categories |
|
134 | - * |
|
135 | - * @return string $cat_list html code |
|
136 | - */ |
|
137 | - public function make_cat_select($select_id = 0, $ignore_id = []) |
|
138 | - { |
|
139 | - $ignore_id = is_array($ignore_id) ? $ignore_id : [$ignore_id]; |
|
140 | - |
|
141 | - // This query is identical to the jumpbox one |
|
142 | - $sql = 'SELECT cat_id, cat_name, parent_id, left_id, right_id |
|
90 | + $result = $this->db->sql_query($sql, 600); |
|
91 | + |
|
92 | + $right = $padding = 0; |
|
93 | + $padding_store = ['0' => 0]; |
|
94 | + $display_jumpbox = false; |
|
95 | + $iteration = 0; |
|
96 | + |
|
97 | + while ($row = $this->db->sql_fetchrow($result)) { |
|
98 | + $display_jumpbox = true; |
|
99 | + |
|
100 | + if ($row['left_id'] < $right) { |
|
101 | + $padding++; |
|
102 | + $padding_store[$row['parent_id']] = $padding; |
|
103 | + } elseif ($row['left_id'] > $right + 1) { |
|
104 | + $padding = (isset($padding_store[$row['parent_id']])) ? $padding_store[$row['parent_id']] : $padding; |
|
105 | + } |
|
106 | + |
|
107 | + $right = $row['right_id']; |
|
108 | + |
|
109 | + $this->template->assign_block_vars('jumpbox_forums', [ |
|
110 | + 'FORUM_ID' => $row['cat_id'], |
|
111 | + 'FORUM_NAME' => $row['cat_name'], |
|
112 | + 'S_FORUM_COUNT' => $iteration, |
|
113 | + 'LINK' => $this->helper->route('ernadoo_phpbbdirectory_page_controller', ['cat_id' => $row['cat_id']]), |
|
114 | + ]); |
|
115 | + |
|
116 | + for ($i = 0; $i < $padding; $i++) { |
|
117 | + $this->template->assign_block_vars('jumpbox_forums.level', []); |
|
118 | + } |
|
119 | + $iteration++; |
|
120 | + } |
|
121 | + $this->db->sql_freeresult($result); |
|
122 | + unset($padding_store); |
|
123 | + |
|
124 | + $this->template->assign_vars([ |
|
125 | + 'S_DISPLAY_JUMPBOX' => $display_jumpbox, |
|
126 | + ]); |
|
127 | + } |
|
128 | + |
|
129 | + /** |
|
130 | + * Generate a list of directory's categories. |
|
131 | + * |
|
132 | + * @param int $select_id Selected category |
|
133 | + * @param array $ignore_id Array of ignored categories |
|
134 | + * |
|
135 | + * @return string $cat_list html code |
|
136 | + */ |
|
137 | + public function make_cat_select($select_id = 0, $ignore_id = []) |
|
138 | + { |
|
139 | + $ignore_id = is_array($ignore_id) ? $ignore_id : [$ignore_id]; |
|
140 | + |
|
141 | + // This query is identical to the jumpbox one |
|
142 | + $sql = 'SELECT cat_id, cat_name, parent_id, left_id, right_id |
|
143 | 143 | FROM '.DIR_CAT_TABLE.' |
144 | 144 | ORDER BY left_id ASC'; |
145 | - $result = $this->db->sql_query($sql, 600); |
|
146 | - |
|
147 | - $right = 0; |
|
148 | - $padding_store = ['0' => '']; |
|
149 | - $padding = ''; |
|
150 | - $cat_list = ''; |
|
151 | - |
|
152 | - while ($row = $this->db->sql_fetchrow($result)) { |
|
153 | - if ($row['left_id'] < $right) { |
|
154 | - $padding .= ' '; |
|
155 | - $padding_store[$row['parent_id']] = $padding; |
|
156 | - } elseif ($row['left_id'] > $right + 1) { |
|
157 | - $padding = (isset($padding_store[$row['parent_id']])) ? $padding_store[$row['parent_id']] : ''; |
|
158 | - } |
|
159 | - |
|
160 | - $right = $row['right_id']; |
|
161 | - $disabled = false; |
|
162 | - |
|
163 | - if (in_array($row['cat_id'], $ignore_id)) { |
|
164 | - $disabled = true; |
|
165 | - } |
|
166 | - |
|
167 | - $selected = (($row['cat_id'] == $select_id) ? ' selected="selected"' : ''); |
|
168 | - $cat_list .= '<option value="'.$row['cat_id'].'"'.(($disabled) ? ' disabled="disabled" class="disabled-option"' : $selected).'>'.$padding.$row['cat_name'].'</option>'; |
|
169 | - } |
|
170 | - $this->db->sql_freeresult($result); |
|
171 | - unset($padding_store); |
|
172 | - |
|
173 | - return $cat_list; |
|
174 | - } |
|
175 | - |
|
176 | - /** |
|
177 | - * Display cat or subcat. |
|
178 | - * |
|
179 | - * @return null |
|
180 | - */ |
|
181 | - public function display() |
|
182 | - { |
|
183 | - $cat_rows = $subcats = []; |
|
184 | - $parent_id = $visible_cats = 0; |
|
185 | - |
|
186 | - $sql_array = [ |
|
187 | - 'SELECT' => 'cat_id, left_id, right_id, parent_id, cat_name, cat_desc, display_subcat_list, cat_desc_uid, cat_desc_bitfield, cat_desc_options, cat_links, cat_icon, cat_count_all', |
|
188 | - 'FROM' => [ |
|
189 | - DIR_CAT_TABLE => '', |
|
190 | - ], |
|
191 | - ]; |
|
192 | - |
|
193 | - if (empty($this->data)) { |
|
194 | - $root_data = ['cat_id' => 0]; |
|
195 | - $sql_where = ''; |
|
196 | - } else { |
|
197 | - $root_data = $this->data; |
|
198 | - $sql_where = 'left_id > '.$root_data['left_id'].' AND left_id < '.$root_data['right_id']; |
|
199 | - } |
|
200 | - |
|
201 | - $sql = $this->db->sql_build_query('SELECT', [ |
|
202 | - 'SELECT' => $sql_array['SELECT'], |
|
203 | - 'FROM' => $sql_array['FROM'], |
|
204 | - |
|
205 | - 'WHERE' => $sql_where, |
|
206 | - |
|
207 | - 'ORDER_BY' => 'left_id', |
|
208 | - ]); |
|
209 | - |
|
210 | - $result = $this->db->sql_query($sql); |
|
211 | - |
|
212 | - $branch_root_id = $root_data['cat_id']; |
|
213 | - while ($row = $this->db->sql_fetchrow($result)) { |
|
214 | - $dir_cat_id = $row['cat_id']; |
|
215 | - |
|
216 | - if ($row['parent_id'] == $root_data['cat_id'] || $row['parent_id'] == $branch_root_id) { |
|
217 | - // Direct child of current branch |
|
218 | - $parent_id = $dir_cat_id; |
|
219 | - $cat_rows[$dir_cat_id] = $row; |
|
220 | - } else { |
|
221 | - $subcats[$parent_id][$dir_cat_id]['display'] = ($row['display_subcat_list']) ? true : false; |
|
222 | - $subcats[$parent_id][$dir_cat_id]['name'] = $row['cat_name']; |
|
223 | - $subcats[$parent_id][$dir_cat_id]['links'] = $row['cat_links']; |
|
224 | - $subcats[$parent_id][$dir_cat_id]['parent_id'] = $row['parent_id']; |
|
225 | - } |
|
226 | - } |
|
227 | - $this->db->sql_freeresult($result); |
|
228 | - |
|
229 | - foreach ($cat_rows as $row) { |
|
230 | - $visible_cats++; |
|
231 | - $dir_cat_id = $row['cat_id']; |
|
232 | - |
|
233 | - $subcats_list = []; |
|
234 | - |
|
235 | - // Generate list of subcats if we need to |
|
236 | - if (isset($subcats[$dir_cat_id])) { |
|
237 | - foreach ($subcats[$dir_cat_id] as $subcat_id => $subcat_row) { |
|
238 | - $row['cat_links'] = ($row['cat_count_all']) ? ($row['cat_links'] + $subcat_row['links']) : $row['cat_links']; |
|
239 | - |
|
240 | - if ($subcat_row['display'] && $subcat_row['parent_id'] == $dir_cat_id) { |
|
241 | - $subcats_list[] = [ |
|
242 | - 'link' => $this->helper->route('ernadoo_phpbbdirectory_page_controller', ['cat_id' => (int) $subcat_id]), |
|
243 | - 'name' => $subcat_row['name'], |
|
244 | - 'links' => $subcat_row['links'], |
|
245 | - ]; |
|
246 | - } else { |
|
247 | - unset($subcats[$dir_cat_id][$subcat_id]); |
|
248 | - } |
|
249 | - } |
|
250 | - } |
|
251 | - |
|
252 | - $this->template->assign_block_vars('cat', [ |
|
253 | - 'CAT_NAME' => $row['cat_name'], |
|
254 | - 'CAT_DESC' => generate_text_for_display($row['cat_desc'], $row['cat_desc_uid'], $row['cat_desc_bitfield'], $row['cat_desc_options']), |
|
255 | - 'CAT_LINKS' => $row['cat_links'], |
|
256 | - 'CAT_IMG' => $this->dir_helper->get_img_path('icons', $row['cat_icon']), |
|
257 | - |
|
258 | - 'U_CAT' => $this->helper->route('ernadoo_phpbbdirectory_page_controller', ['cat_id' => (int) $row['cat_id']]), |
|
259 | - ]); |
|
260 | - |
|
261 | - // Assign subcats loop for style authors |
|
262 | - foreach ($subcats_list as $subcat) { |
|
263 | - $this->template->assign_block_vars('cat.subcat', [ |
|
264 | - 'U_CAT' => $subcat['link'], |
|
265 | - 'CAT_NAME' => $subcat['name'], |
|
266 | - 'CAT_LINKS' => $subcat['links'], |
|
267 | - ]); |
|
268 | - } |
|
269 | - } |
|
270 | - |
|
271 | - $this->template->assign_vars([ |
|
272 | - 'S_AUTH_ADD' => $this->auth->acl_get('u_submit_dir'), |
|
273 | - 'S_AUTH_SEARCH' => $this->auth->acl_get('u_search_dir'), |
|
274 | - 'S_HAS_SUBCAT' => ($visible_cats) ? true : false, |
|
275 | - 'S_ROOT' => empty($this->data), |
|
276 | - |
|
277 | - 'U_MAKE_SEARCH' => $this->helper->route('ernadoo_phpbbdirectory_search_controller'), |
|
278 | - ]); |
|
279 | - |
|
280 | - // Do the categorie Prune thang - cron type job ... |
|
281 | - if (!$this->config['use_system_cron']) { |
|
282 | - $task = $this->cron->find_task('ernadoo.phpbbdirectory.cron.task.core.prune_categorie'); |
|
283 | - $task->set_categorie_data($this->data); |
|
284 | - |
|
285 | - if ($task->is_ready()) { |
|
286 | - $url = $task->get_url(); |
|
287 | - $this->template->assign_var('RUN_CRON_TASK', '<img src="'.$url.'" width="1" height="1" alt="" />'); |
|
288 | - } |
|
289 | - } |
|
290 | - } |
|
291 | - |
|
292 | - /** |
|
293 | - * Get informations about a cat or subcat. |
|
294 | - * |
|
295 | - * @param int $cat_id The category ID |
|
296 | - * |
|
297 | - * @return null|false |
|
298 | - */ |
|
299 | - public function get($cat_id = 0) |
|
300 | - { |
|
301 | - if ($cat_id) { |
|
302 | - $sql_array = [ |
|
303 | - 'SELECT' => 'c.*, w.notify_status', |
|
304 | - 'FROM' => [ |
|
305 | - DIR_CAT_TABLE => 'c', ], |
|
306 | - 'LEFT_JOIN' => [ |
|
307 | - [ |
|
308 | - 'FROM' => [DIR_WATCH_TABLE => 'w'], |
|
309 | - 'ON' => 'c.cat_id = w.cat_id AND w.user_id = '.(int) $this->user->data['user_id'], |
|
310 | - ], |
|
311 | - ], |
|
312 | - 'WHERE' => 'c.cat_id = '.(int) $cat_id, |
|
313 | - ]; |
|
314 | - $sql = $this->db->sql_build_query('SELECT', $sql_array); |
|
315 | - $result = $this->db->sql_query($sql); |
|
316 | - if (!($this->data = $this->db->sql_fetchrow($result))) { |
|
317 | - return false; |
|
318 | - } |
|
319 | - $this->db->sql_freeresult($result); |
|
320 | - } |
|
321 | - } |
|
322 | - |
|
323 | - /** |
|
324 | - * Create category navigation links for given category, create parent |
|
325 | - * list if currently null, assign basic category info to template. |
|
326 | - * |
|
327 | - * @param array $dir_cat_data |
|
328 | - */ |
|
329 | - public function generate_dir_nav(&$dir_cat_data) |
|
330 | - { |
|
331 | - global $phpbb_container; |
|
332 | - |
|
333 | - $nestedset_category = $phpbb_container->get('ernadoo.phpbbdirectory.core.nestedset_category'); |
|
334 | - |
|
335 | - // Get cat parents |
|
336 | - $dir_cat_parents = $nestedset_category->get_path_basic_data($dir_cat_data); |
|
337 | - |
|
338 | - $microdata_attr = 'data-category-id'; |
|
339 | - |
|
340 | - // Build navigation links |
|
341 | - if (!empty($dir_cat_parents)) { |
|
342 | - foreach ($dir_cat_parents as $parent_cat_id => $parent_data) { |
|
343 | - $this->template->assign_block_vars('dir_navlinks', [ |
|
344 | - 'FORUM_NAME' => $parent_data['cat_name'], |
|
345 | - 'FORUM_ID' => $parent_cat_id, |
|
346 | - 'MICRODATA' => $microdata_attr.'="'.$parent_cat_id.'"', |
|
347 | - 'U_VIEW_FORUM' => $this->helper->route('ernadoo_phpbbdirectory_page_controller', ['cat_id' => (int) $parent_cat_id]), |
|
348 | - ]); |
|
349 | - } |
|
350 | - } |
|
351 | - |
|
352 | - $this->template->assign_block_vars('dir_navlinks', [ |
|
353 | - 'FORUM_NAME' => $dir_cat_data['cat_name'], |
|
354 | - 'FORUM_ID' => $dir_cat_data['cat_id'], |
|
355 | - 'MICRODATA' => $microdata_attr.'="'.$dir_cat_data['cat_id'].'"', |
|
356 | - 'U_VIEW_FORUM' => $this->helper->route('ernadoo_phpbbdirectory_page_controller', ['cat_id' => (int) $dir_cat_data['cat_id']]), |
|
357 | - ]); |
|
358 | - } |
|
359 | - |
|
360 | - /** |
|
361 | - * Return good key language. |
|
362 | - * |
|
363 | - * @param bool $validate True if approbation needed before publication |
|
364 | - * |
|
365 | - * @throws \phpbb\exception\runtime_exception |
|
366 | - * |
|
367 | - * @return string Information about approval, depends on user auth level |
|
368 | - */ |
|
369 | - public function dir_submit_type($validate) |
|
370 | - { |
|
371 | - if ($validate && !$this->auth->acl_get('a_')) { |
|
372 | - return $this->user->lang['DIR_SUBMIT_TYPE_1']; |
|
373 | - } elseif (!$validate && !$this->auth->acl_get('a_')) { |
|
374 | - return $this->user->lang['DIR_SUBMIT_TYPE_2']; |
|
375 | - } elseif ($this->auth->acl_get('a_')) { |
|
376 | - return $this->user->lang['DIR_SUBMIT_TYPE_3']; |
|
377 | - } elseif ($this->auth->acl_get('m_')) { |
|
378 | - return $this->user->lang['DIR_SUBMIT_TYPE_4']; |
|
379 | - } |
|
380 | - |
|
381 | - throw new \phpbb\exception\runtime_exception('DIR_ERROR_SUBMIT_TYPE'); |
|
382 | - } |
|
383 | - |
|
384 | - /** |
|
385 | - * Category watching common code. |
|
386 | - * |
|
387 | - * @param string $mode Watch or unwatch a category |
|
388 | - * @param array $s_watching An empty array, passed by reference |
|
389 | - * @param int $user_id The user ID |
|
390 | - * @param int $cat_id The category ID |
|
391 | - * @param string $notify_status User is watching the category? |
|
392 | - * |
|
393 | - * @return null|string |
|
394 | - */ |
|
395 | - public function watch_categorie($mode, &$s_watching, $user_id, $cat_id, $notify_status) |
|
396 | - { |
|
397 | - // Is user watching this thread? |
|
398 | - if ($user_id != ANONYMOUS) { |
|
399 | - $can_watch = true; |
|
400 | - |
|
401 | - if (!is_null($notify_status) && $notify_status !== '') { |
|
402 | - if ($mode == 'unwatch') { |
|
403 | - $sql = 'DELETE FROM '.DIR_WATCH_TABLE." |
|
145 | + $result = $this->db->sql_query($sql, 600); |
|
146 | + |
|
147 | + $right = 0; |
|
148 | + $padding_store = ['0' => '']; |
|
149 | + $padding = ''; |
|
150 | + $cat_list = ''; |
|
151 | + |
|
152 | + while ($row = $this->db->sql_fetchrow($result)) { |
|
153 | + if ($row['left_id'] < $right) { |
|
154 | + $padding .= ' '; |
|
155 | + $padding_store[$row['parent_id']] = $padding; |
|
156 | + } elseif ($row['left_id'] > $right + 1) { |
|
157 | + $padding = (isset($padding_store[$row['parent_id']])) ? $padding_store[$row['parent_id']] : ''; |
|
158 | + } |
|
159 | + |
|
160 | + $right = $row['right_id']; |
|
161 | + $disabled = false; |
|
162 | + |
|
163 | + if (in_array($row['cat_id'], $ignore_id)) { |
|
164 | + $disabled = true; |
|
165 | + } |
|
166 | + |
|
167 | + $selected = (($row['cat_id'] == $select_id) ? ' selected="selected"' : ''); |
|
168 | + $cat_list .= '<option value="'.$row['cat_id'].'"'.(($disabled) ? ' disabled="disabled" class="disabled-option"' : $selected).'>'.$padding.$row['cat_name'].'</option>'; |
|
169 | + } |
|
170 | + $this->db->sql_freeresult($result); |
|
171 | + unset($padding_store); |
|
172 | + |
|
173 | + return $cat_list; |
|
174 | + } |
|
175 | + |
|
176 | + /** |
|
177 | + * Display cat or subcat. |
|
178 | + * |
|
179 | + * @return null |
|
180 | + */ |
|
181 | + public function display() |
|
182 | + { |
|
183 | + $cat_rows = $subcats = []; |
|
184 | + $parent_id = $visible_cats = 0; |
|
185 | + |
|
186 | + $sql_array = [ |
|
187 | + 'SELECT' => 'cat_id, left_id, right_id, parent_id, cat_name, cat_desc, display_subcat_list, cat_desc_uid, cat_desc_bitfield, cat_desc_options, cat_links, cat_icon, cat_count_all', |
|
188 | + 'FROM' => [ |
|
189 | + DIR_CAT_TABLE => '', |
|
190 | + ], |
|
191 | + ]; |
|
192 | + |
|
193 | + if (empty($this->data)) { |
|
194 | + $root_data = ['cat_id' => 0]; |
|
195 | + $sql_where = ''; |
|
196 | + } else { |
|
197 | + $root_data = $this->data; |
|
198 | + $sql_where = 'left_id > '.$root_data['left_id'].' AND left_id < '.$root_data['right_id']; |
|
199 | + } |
|
200 | + |
|
201 | + $sql = $this->db->sql_build_query('SELECT', [ |
|
202 | + 'SELECT' => $sql_array['SELECT'], |
|
203 | + 'FROM' => $sql_array['FROM'], |
|
204 | + |
|
205 | + 'WHERE' => $sql_where, |
|
206 | + |
|
207 | + 'ORDER_BY' => 'left_id', |
|
208 | + ]); |
|
209 | + |
|
210 | + $result = $this->db->sql_query($sql); |
|
211 | + |
|
212 | + $branch_root_id = $root_data['cat_id']; |
|
213 | + while ($row = $this->db->sql_fetchrow($result)) { |
|
214 | + $dir_cat_id = $row['cat_id']; |
|
215 | + |
|
216 | + if ($row['parent_id'] == $root_data['cat_id'] || $row['parent_id'] == $branch_root_id) { |
|
217 | + // Direct child of current branch |
|
218 | + $parent_id = $dir_cat_id; |
|
219 | + $cat_rows[$dir_cat_id] = $row; |
|
220 | + } else { |
|
221 | + $subcats[$parent_id][$dir_cat_id]['display'] = ($row['display_subcat_list']) ? true : false; |
|
222 | + $subcats[$parent_id][$dir_cat_id]['name'] = $row['cat_name']; |
|
223 | + $subcats[$parent_id][$dir_cat_id]['links'] = $row['cat_links']; |
|
224 | + $subcats[$parent_id][$dir_cat_id]['parent_id'] = $row['parent_id']; |
|
225 | + } |
|
226 | + } |
|
227 | + $this->db->sql_freeresult($result); |
|
228 | + |
|
229 | + foreach ($cat_rows as $row) { |
|
230 | + $visible_cats++; |
|
231 | + $dir_cat_id = $row['cat_id']; |
|
232 | + |
|
233 | + $subcats_list = []; |
|
234 | + |
|
235 | + // Generate list of subcats if we need to |
|
236 | + if (isset($subcats[$dir_cat_id])) { |
|
237 | + foreach ($subcats[$dir_cat_id] as $subcat_id => $subcat_row) { |
|
238 | + $row['cat_links'] = ($row['cat_count_all']) ? ($row['cat_links'] + $subcat_row['links']) : $row['cat_links']; |
|
239 | + |
|
240 | + if ($subcat_row['display'] && $subcat_row['parent_id'] == $dir_cat_id) { |
|
241 | + $subcats_list[] = [ |
|
242 | + 'link' => $this->helper->route('ernadoo_phpbbdirectory_page_controller', ['cat_id' => (int) $subcat_id]), |
|
243 | + 'name' => $subcat_row['name'], |
|
244 | + 'links' => $subcat_row['links'], |
|
245 | + ]; |
|
246 | + } else { |
|
247 | + unset($subcats[$dir_cat_id][$subcat_id]); |
|
248 | + } |
|
249 | + } |
|
250 | + } |
|
251 | + |
|
252 | + $this->template->assign_block_vars('cat', [ |
|
253 | + 'CAT_NAME' => $row['cat_name'], |
|
254 | + 'CAT_DESC' => generate_text_for_display($row['cat_desc'], $row['cat_desc_uid'], $row['cat_desc_bitfield'], $row['cat_desc_options']), |
|
255 | + 'CAT_LINKS' => $row['cat_links'], |
|
256 | + 'CAT_IMG' => $this->dir_helper->get_img_path('icons', $row['cat_icon']), |
|
257 | + |
|
258 | + 'U_CAT' => $this->helper->route('ernadoo_phpbbdirectory_page_controller', ['cat_id' => (int) $row['cat_id']]), |
|
259 | + ]); |
|
260 | + |
|
261 | + // Assign subcats loop for style authors |
|
262 | + foreach ($subcats_list as $subcat) { |
|
263 | + $this->template->assign_block_vars('cat.subcat', [ |
|
264 | + 'U_CAT' => $subcat['link'], |
|
265 | + 'CAT_NAME' => $subcat['name'], |
|
266 | + 'CAT_LINKS' => $subcat['links'], |
|
267 | + ]); |
|
268 | + } |
|
269 | + } |
|
270 | + |
|
271 | + $this->template->assign_vars([ |
|
272 | + 'S_AUTH_ADD' => $this->auth->acl_get('u_submit_dir'), |
|
273 | + 'S_AUTH_SEARCH' => $this->auth->acl_get('u_search_dir'), |
|
274 | + 'S_HAS_SUBCAT' => ($visible_cats) ? true : false, |
|
275 | + 'S_ROOT' => empty($this->data), |
|
276 | + |
|
277 | + 'U_MAKE_SEARCH' => $this->helper->route('ernadoo_phpbbdirectory_search_controller'), |
|
278 | + ]); |
|
279 | + |
|
280 | + // Do the categorie Prune thang - cron type job ... |
|
281 | + if (!$this->config['use_system_cron']) { |
|
282 | + $task = $this->cron->find_task('ernadoo.phpbbdirectory.cron.task.core.prune_categorie'); |
|
283 | + $task->set_categorie_data($this->data); |
|
284 | + |
|
285 | + if ($task->is_ready()) { |
|
286 | + $url = $task->get_url(); |
|
287 | + $this->template->assign_var('RUN_CRON_TASK', '<img src="'.$url.'" width="1" height="1" alt="" />'); |
|
288 | + } |
|
289 | + } |
|
290 | + } |
|
291 | + |
|
292 | + /** |
|
293 | + * Get informations about a cat or subcat. |
|
294 | + * |
|
295 | + * @param int $cat_id The category ID |
|
296 | + * |
|
297 | + * @return null|false |
|
298 | + */ |
|
299 | + public function get($cat_id = 0) |
|
300 | + { |
|
301 | + if ($cat_id) { |
|
302 | + $sql_array = [ |
|
303 | + 'SELECT' => 'c.*, w.notify_status', |
|
304 | + 'FROM' => [ |
|
305 | + DIR_CAT_TABLE => 'c', ], |
|
306 | + 'LEFT_JOIN' => [ |
|
307 | + [ |
|
308 | + 'FROM' => [DIR_WATCH_TABLE => 'w'], |
|
309 | + 'ON' => 'c.cat_id = w.cat_id AND w.user_id = '.(int) $this->user->data['user_id'], |
|
310 | + ], |
|
311 | + ], |
|
312 | + 'WHERE' => 'c.cat_id = '.(int) $cat_id, |
|
313 | + ]; |
|
314 | + $sql = $this->db->sql_build_query('SELECT', $sql_array); |
|
315 | + $result = $this->db->sql_query($sql); |
|
316 | + if (!($this->data = $this->db->sql_fetchrow($result))) { |
|
317 | + return false; |
|
318 | + } |
|
319 | + $this->db->sql_freeresult($result); |
|
320 | + } |
|
321 | + } |
|
322 | + |
|
323 | + /** |
|
324 | + * Create category navigation links for given category, create parent |
|
325 | + * list if currently null, assign basic category info to template. |
|
326 | + * |
|
327 | + * @param array $dir_cat_data |
|
328 | + */ |
|
329 | + public function generate_dir_nav(&$dir_cat_data) |
|
330 | + { |
|
331 | + global $phpbb_container; |
|
332 | + |
|
333 | + $nestedset_category = $phpbb_container->get('ernadoo.phpbbdirectory.core.nestedset_category'); |
|
334 | + |
|
335 | + // Get cat parents |
|
336 | + $dir_cat_parents = $nestedset_category->get_path_basic_data($dir_cat_data); |
|
337 | + |
|
338 | + $microdata_attr = 'data-category-id'; |
|
339 | + |
|
340 | + // Build navigation links |
|
341 | + if (!empty($dir_cat_parents)) { |
|
342 | + foreach ($dir_cat_parents as $parent_cat_id => $parent_data) { |
|
343 | + $this->template->assign_block_vars('dir_navlinks', [ |
|
344 | + 'FORUM_NAME' => $parent_data['cat_name'], |
|
345 | + 'FORUM_ID' => $parent_cat_id, |
|
346 | + 'MICRODATA' => $microdata_attr.'="'.$parent_cat_id.'"', |
|
347 | + 'U_VIEW_FORUM' => $this->helper->route('ernadoo_phpbbdirectory_page_controller', ['cat_id' => (int) $parent_cat_id]), |
|
348 | + ]); |
|
349 | + } |
|
350 | + } |
|
351 | + |
|
352 | + $this->template->assign_block_vars('dir_navlinks', [ |
|
353 | + 'FORUM_NAME' => $dir_cat_data['cat_name'], |
|
354 | + 'FORUM_ID' => $dir_cat_data['cat_id'], |
|
355 | + 'MICRODATA' => $microdata_attr.'="'.$dir_cat_data['cat_id'].'"', |
|
356 | + 'U_VIEW_FORUM' => $this->helper->route('ernadoo_phpbbdirectory_page_controller', ['cat_id' => (int) $dir_cat_data['cat_id']]), |
|
357 | + ]); |
|
358 | + } |
|
359 | + |
|
360 | + /** |
|
361 | + * Return good key language. |
|
362 | + * |
|
363 | + * @param bool $validate True if approbation needed before publication |
|
364 | + * |
|
365 | + * @throws \phpbb\exception\runtime_exception |
|
366 | + * |
|
367 | + * @return string Information about approval, depends on user auth level |
|
368 | + */ |
|
369 | + public function dir_submit_type($validate) |
|
370 | + { |
|
371 | + if ($validate && !$this->auth->acl_get('a_')) { |
|
372 | + return $this->user->lang['DIR_SUBMIT_TYPE_1']; |
|
373 | + } elseif (!$validate && !$this->auth->acl_get('a_')) { |
|
374 | + return $this->user->lang['DIR_SUBMIT_TYPE_2']; |
|
375 | + } elseif ($this->auth->acl_get('a_')) { |
|
376 | + return $this->user->lang['DIR_SUBMIT_TYPE_3']; |
|
377 | + } elseif ($this->auth->acl_get('m_')) { |
|
378 | + return $this->user->lang['DIR_SUBMIT_TYPE_4']; |
|
379 | + } |
|
380 | + |
|
381 | + throw new \phpbb\exception\runtime_exception('DIR_ERROR_SUBMIT_TYPE'); |
|
382 | + } |
|
383 | + |
|
384 | + /** |
|
385 | + * Category watching common code. |
|
386 | + * |
|
387 | + * @param string $mode Watch or unwatch a category |
|
388 | + * @param array $s_watching An empty array, passed by reference |
|
389 | + * @param int $user_id The user ID |
|
390 | + * @param int $cat_id The category ID |
|
391 | + * @param string $notify_status User is watching the category? |
|
392 | + * |
|
393 | + * @return null|string |
|
394 | + */ |
|
395 | + public function watch_categorie($mode, &$s_watching, $user_id, $cat_id, $notify_status) |
|
396 | + { |
|
397 | + // Is user watching this thread? |
|
398 | + if ($user_id != ANONYMOUS) { |
|
399 | + $can_watch = true; |
|
400 | + |
|
401 | + if (!is_null($notify_status) && $notify_status !== '') { |
|
402 | + if ($mode == 'unwatch') { |
|
403 | + $sql = 'DELETE FROM '.DIR_WATCH_TABLE." |
|
404 | 404 | WHERE cat_id = $cat_id |
405 | 405 | AND user_id = $user_id"; |
406 | - $this->db->sql_query($sql); |
|
406 | + $this->db->sql_query($sql); |
|
407 | 407 | |
408 | - $redirect_url = $this->helper->route('ernadoo_phpbbdirectory_page_controller', ['cat_id' => (int) $cat_id]); |
|
409 | - $message = $this->user->lang['DIR_NOT_WATCHING_CAT']; |
|
408 | + $redirect_url = $this->helper->route('ernadoo_phpbbdirectory_page_controller', ['cat_id' => (int) $cat_id]); |
|
409 | + $message = $this->user->lang['DIR_NOT_WATCHING_CAT']; |
|
410 | 410 | |
411 | - if (!$this->request->is_ajax()) { |
|
412 | - $message .= '<br /><br />'.$this->user->lang('DIR_CLICK_RETURN_CAT', '<a href="'.$redirect_url.'">', '</a>'); |
|
413 | - } |
|
411 | + if (!$this->request->is_ajax()) { |
|
412 | + $message .= '<br /><br />'.$this->user->lang('DIR_CLICK_RETURN_CAT', '<a href="'.$redirect_url.'">', '</a>'); |
|
413 | + } |
|
414 | 414 | |
415 | - meta_refresh(3, $redirect_url); |
|
415 | + meta_refresh(3, $redirect_url); |
|
416 | 416 | |
417 | - return $message; |
|
418 | - } else { |
|
419 | - $is_watching = true; |
|
417 | + return $message; |
|
418 | + } else { |
|
419 | + $is_watching = true; |
|
420 | 420 | |
421 | - if ($notify_status != NOTIFY_YES) { |
|
422 | - $sql = 'UPDATE '.DIR_WATCH_TABLE.' |
|
421 | + if ($notify_status != NOTIFY_YES) { |
|
422 | + $sql = 'UPDATE '.DIR_WATCH_TABLE.' |
|
423 | 423 | SET notify_status = '.NOTIFY_YES." |
424 | 424 | WHERE cat_id = $cat_id |
425 | 425 | AND user_id = $user_id"; |
426 | - $this->db->sql_query($sql); |
|
427 | - } |
|
428 | - } |
|
429 | - } else { |
|
430 | - if ($mode == 'watch') { |
|
431 | - $sql = 'INSERT INTO '.DIR_WATCH_TABLE." (user_id, cat_id, notify_status) |
|
426 | + $this->db->sql_query($sql); |
|
427 | + } |
|
428 | + } |
|
429 | + } else { |
|
430 | + if ($mode == 'watch') { |
|
431 | + $sql = 'INSERT INTO '.DIR_WATCH_TABLE." (user_id, cat_id, notify_status) |
|
432 | 432 | VALUES ($user_id, $cat_id, ".NOTIFY_YES.')'; |
433 | - $this->db->sql_query($sql); |
|
434 | - |
|
435 | - $redirect_url = $this->helper->route('ernadoo_phpbbdirectory_page_controller', ['cat_id' => (int) $cat_id]); |
|
436 | - $message = $this->user->lang['DIR_ARE_WATCHING_CAT']; |
|
437 | - |
|
438 | - if (!$this->request->is_ajax()) { |
|
439 | - $message .= '<br /><br />'.$this->user->lang('DIR_CLICK_RETURN_CAT', '<a href="'.$redirect_url.'">', '</a>'); |
|
440 | - } |
|
441 | - |
|
442 | - meta_refresh(3, $redirect_url); |
|
443 | - |
|
444 | - return $message; |
|
445 | - } else { |
|
446 | - $is_watching = false; |
|
447 | - } |
|
448 | - } |
|
449 | - } else { |
|
450 | - $can_watch = false; |
|
451 | - $is_watching = false; |
|
452 | - } |
|
453 | - |
|
454 | - if ($can_watch) { |
|
455 | - $s_watching['link'] = $this->helper->route('ernadoo_phpbbdirectory_suscribe_controller', ['cat_id' => $cat_id, 'mode' => (($is_watching) ? 'unwatch' : 'watch')]); |
|
456 | - $s_watching['link_toggle'] = $this->helper->route('ernadoo_phpbbdirectory_suscribe_controller', ['cat_id' => $cat_id, 'mode' => ((!$is_watching) ? 'unwatch' : 'watch')]); |
|
457 | - $s_watching['title'] = $this->user->lang[(($is_watching) ? 'DIR_STOP' : 'DIR_START').'_WATCHING_CAT']; |
|
458 | - $s_watching['title_toggle'] = $this->user->lang[((!$is_watching) ? 'DIR_STOP' : 'DIR_START').'_WATCHING_CAT']; |
|
459 | - $s_watching['is_watching'] = $is_watching; |
|
460 | - } |
|
461 | - } |
|
462 | - |
|
463 | - /** |
|
464 | - * Return Category name. |
|
465 | - * |
|
466 | - * @param int $cat_id The category ID |
|
467 | - * |
|
468 | - * @return string The category name |
|
469 | - */ |
|
470 | - public static function getname($cat_id) |
|
471 | - { |
|
472 | - global $db; |
|
473 | - |
|
474 | - $sql = 'SELECT cat_name |
|
433 | + $this->db->sql_query($sql); |
|
434 | + |
|
435 | + $redirect_url = $this->helper->route('ernadoo_phpbbdirectory_page_controller', ['cat_id' => (int) $cat_id]); |
|
436 | + $message = $this->user->lang['DIR_ARE_WATCHING_CAT']; |
|
437 | + |
|
438 | + if (!$this->request->is_ajax()) { |
|
439 | + $message .= '<br /><br />'.$this->user->lang('DIR_CLICK_RETURN_CAT', '<a href="'.$redirect_url.'">', '</a>'); |
|
440 | + } |
|
441 | + |
|
442 | + meta_refresh(3, $redirect_url); |
|
443 | + |
|
444 | + return $message; |
|
445 | + } else { |
|
446 | + $is_watching = false; |
|
447 | + } |
|
448 | + } |
|
449 | + } else { |
|
450 | + $can_watch = false; |
|
451 | + $is_watching = false; |
|
452 | + } |
|
453 | + |
|
454 | + if ($can_watch) { |
|
455 | + $s_watching['link'] = $this->helper->route('ernadoo_phpbbdirectory_suscribe_controller', ['cat_id' => $cat_id, 'mode' => (($is_watching) ? 'unwatch' : 'watch')]); |
|
456 | + $s_watching['link_toggle'] = $this->helper->route('ernadoo_phpbbdirectory_suscribe_controller', ['cat_id' => $cat_id, 'mode' => ((!$is_watching) ? 'unwatch' : 'watch')]); |
|
457 | + $s_watching['title'] = $this->user->lang[(($is_watching) ? 'DIR_STOP' : 'DIR_START').'_WATCHING_CAT']; |
|
458 | + $s_watching['title_toggle'] = $this->user->lang[((!$is_watching) ? 'DIR_STOP' : 'DIR_START').'_WATCHING_CAT']; |
|
459 | + $s_watching['is_watching'] = $is_watching; |
|
460 | + } |
|
461 | + } |
|
462 | + |
|
463 | + /** |
|
464 | + * Return Category name. |
|
465 | + * |
|
466 | + * @param int $cat_id The category ID |
|
467 | + * |
|
468 | + * @return string The category name |
|
469 | + */ |
|
470 | + public static function getname($cat_id) |
|
471 | + { |
|
472 | + global $db; |
|
473 | + |
|
474 | + $sql = 'SELECT cat_name |
|
475 | 475 | FROM '.DIR_CAT_TABLE.' |
476 | 476 | WHERE cat_id = '.(int) $cat_id; |
477 | - $result = $db->sql_query($sql); |
|
478 | - $row = $db->sql_fetchrow($result); |
|
477 | + $result = $db->sql_query($sql); |
|
478 | + $row = $db->sql_fetchrow($result); |
|
479 | 479 | |
480 | - if (!empty($row)) { |
|
481 | - return $row['cat_name']; |
|
482 | - } |
|
483 | - } |
|
480 | + if (!empty($row)) { |
|
481 | + return $row['cat_name']; |
|
482 | + } |
|
483 | + } |
|
484 | 484 | } |
@@ -94,13 +94,17 @@ discard block |
||
94 | 94 | $display_jumpbox = false; |
95 | 95 | $iteration = 0; |
96 | 96 | |
97 | - while ($row = $this->db->sql_fetchrow($result)) { |
|
97 | + while ($row = $this->db->sql_fetchrow($result)) |
|
98 | + { |
|
98 | 99 | $display_jumpbox = true; |
99 | 100 | |
100 | - if ($row['left_id'] < $right) { |
|
101 | + if ($row['left_id'] < $right) |
|
102 | + { |
|
101 | 103 | $padding++; |
102 | 104 | $padding_store[$row['parent_id']] = $padding; |
103 | - } elseif ($row['left_id'] > $right + 1) { |
|
105 | + } |
|
106 | + elseif ($row['left_id'] > $right + 1) |
|
107 | + { |
|
104 | 108 | $padding = (isset($padding_store[$row['parent_id']])) ? $padding_store[$row['parent_id']] : $padding; |
105 | 109 | } |
106 | 110 | |
@@ -113,7 +117,8 @@ discard block |
||
113 | 117 | 'LINK' => $this->helper->route('ernadoo_phpbbdirectory_page_controller', ['cat_id' => $row['cat_id']]), |
114 | 118 | ]); |
115 | 119 | |
116 | - for ($i = 0; $i < $padding; $i++) { |
|
120 | + for ($i = 0; $i < $padding; $i++) |
|
121 | + { |
|
117 | 122 | $this->template->assign_block_vars('jumpbox_forums.level', []); |
118 | 123 | } |
119 | 124 | $iteration++; |
@@ -149,18 +154,23 @@ discard block |
||
149 | 154 | $padding = ''; |
150 | 155 | $cat_list = ''; |
151 | 156 | |
152 | - while ($row = $this->db->sql_fetchrow($result)) { |
|
153 | - if ($row['left_id'] < $right) { |
|
157 | + while ($row = $this->db->sql_fetchrow($result)) |
|
158 | + { |
|
159 | + if ($row['left_id'] < $right) |
|
160 | + { |
|
154 | 161 | $padding .= ' '; |
155 | 162 | $padding_store[$row['parent_id']] = $padding; |
156 | - } elseif ($row['left_id'] > $right + 1) { |
|
163 | + } |
|
164 | + elseif ($row['left_id'] > $right + 1) |
|
165 | + { |
|
157 | 166 | $padding = (isset($padding_store[$row['parent_id']])) ? $padding_store[$row['parent_id']] : ''; |
158 | 167 | } |
159 | 168 | |
160 | 169 | $right = $row['right_id']; |
161 | 170 | $disabled = false; |
162 | 171 | |
163 | - if (in_array($row['cat_id'], $ignore_id)) { |
|
172 | + if (in_array($row['cat_id'], $ignore_id)) |
|
173 | + { |
|
164 | 174 | $disabled = true; |
165 | 175 | } |
166 | 176 | |
@@ -190,10 +200,13 @@ discard block |
||
190 | 200 | ], |
191 | 201 | ]; |
192 | 202 | |
193 | - if (empty($this->data)) { |
|
203 | + if (empty($this->data)) |
|
204 | + { |
|
194 | 205 | $root_data = ['cat_id' => 0]; |
195 | 206 | $sql_where = ''; |
196 | - } else { |
|
207 | + } |
|
208 | + else |
|
209 | + { |
|
197 | 210 | $root_data = $this->data; |
198 | 211 | $sql_where = 'left_id > '.$root_data['left_id'].' AND left_id < '.$root_data['right_id']; |
199 | 212 | } |
@@ -210,14 +223,18 @@ discard block |
||
210 | 223 | $result = $this->db->sql_query($sql); |
211 | 224 | |
212 | 225 | $branch_root_id = $root_data['cat_id']; |
213 | - while ($row = $this->db->sql_fetchrow($result)) { |
|
226 | + while ($row = $this->db->sql_fetchrow($result)) |
|
227 | + { |
|
214 | 228 | $dir_cat_id = $row['cat_id']; |
215 | 229 | |
216 | - if ($row['parent_id'] == $root_data['cat_id'] || $row['parent_id'] == $branch_root_id) { |
|
230 | + if ($row['parent_id'] == $root_data['cat_id'] || $row['parent_id'] == $branch_root_id) |
|
231 | + { |
|
217 | 232 | // Direct child of current branch |
218 | 233 | $parent_id = $dir_cat_id; |
219 | 234 | $cat_rows[$dir_cat_id] = $row; |
220 | - } else { |
|
235 | + } |
|
236 | + else |
|
237 | + { |
|
221 | 238 | $subcats[$parent_id][$dir_cat_id]['display'] = ($row['display_subcat_list']) ? true : false; |
222 | 239 | $subcats[$parent_id][$dir_cat_id]['name'] = $row['cat_name']; |
223 | 240 | $subcats[$parent_id][$dir_cat_id]['links'] = $row['cat_links']; |
@@ -226,24 +243,30 @@ discard block |
||
226 | 243 | } |
227 | 244 | $this->db->sql_freeresult($result); |
228 | 245 | |
229 | - foreach ($cat_rows as $row) { |
|
246 | + foreach ($cat_rows as $row) |
|
247 | + { |
|
230 | 248 | $visible_cats++; |
231 | 249 | $dir_cat_id = $row['cat_id']; |
232 | 250 | |
233 | 251 | $subcats_list = []; |
234 | 252 | |
235 | 253 | // Generate list of subcats if we need to |
236 | - if (isset($subcats[$dir_cat_id])) { |
|
237 | - foreach ($subcats[$dir_cat_id] as $subcat_id => $subcat_row) { |
|
254 | + if (isset($subcats[$dir_cat_id])) |
|
255 | + { |
|
256 | + foreach ($subcats[$dir_cat_id] as $subcat_id => $subcat_row) |
|
257 | + { |
|
238 | 258 | $row['cat_links'] = ($row['cat_count_all']) ? ($row['cat_links'] + $subcat_row['links']) : $row['cat_links']; |
239 | 259 | |
240 | - if ($subcat_row['display'] && $subcat_row['parent_id'] == $dir_cat_id) { |
|
260 | + if ($subcat_row['display'] && $subcat_row['parent_id'] == $dir_cat_id) |
|
261 | + { |
|
241 | 262 | $subcats_list[] = [ |
242 | 263 | 'link' => $this->helper->route('ernadoo_phpbbdirectory_page_controller', ['cat_id' => (int) $subcat_id]), |
243 | 264 | 'name' => $subcat_row['name'], |
244 | 265 | 'links' => $subcat_row['links'], |
245 | 266 | ]; |
246 | - } else { |
|
267 | + } |
|
268 | + else |
|
269 | + { |
|
247 | 270 | unset($subcats[$dir_cat_id][$subcat_id]); |
248 | 271 | } |
249 | 272 | } |
@@ -259,7 +282,8 @@ discard block |
||
259 | 282 | ]); |
260 | 283 | |
261 | 284 | // Assign subcats loop for style authors |
262 | - foreach ($subcats_list as $subcat) { |
|
285 | + foreach ($subcats_list as $subcat) |
|
286 | + { |
|
263 | 287 | $this->template->assign_block_vars('cat.subcat', [ |
264 | 288 | 'U_CAT' => $subcat['link'], |
265 | 289 | 'CAT_NAME' => $subcat['name'], |
@@ -278,11 +302,13 @@ discard block |
||
278 | 302 | ]); |
279 | 303 | |
280 | 304 | // Do the categorie Prune thang - cron type job ... |
281 | - if (!$this->config['use_system_cron']) { |
|
305 | + if (!$this->config['use_system_cron']) |
|
306 | + { |
|
282 | 307 | $task = $this->cron->find_task('ernadoo.phpbbdirectory.cron.task.core.prune_categorie'); |
283 | 308 | $task->set_categorie_data($this->data); |
284 | 309 | |
285 | - if ($task->is_ready()) { |
|
310 | + if ($task->is_ready()) |
|
311 | + { |
|
286 | 312 | $url = $task->get_url(); |
287 | 313 | $this->template->assign_var('RUN_CRON_TASK', '<img src="'.$url.'" width="1" height="1" alt="" />'); |
288 | 314 | } |
@@ -298,7 +324,8 @@ discard block |
||
298 | 324 | */ |
299 | 325 | public function get($cat_id = 0) |
300 | 326 | { |
301 | - if ($cat_id) { |
|
327 | + if ($cat_id) |
|
328 | + { |
|
302 | 329 | $sql_array = [ |
303 | 330 | 'SELECT' => 'c.*, w.notify_status', |
304 | 331 | 'FROM' => [ |
@@ -313,7 +340,8 @@ discard block |
||
313 | 340 | ]; |
314 | 341 | $sql = $this->db->sql_build_query('SELECT', $sql_array); |
315 | 342 | $result = $this->db->sql_query($sql); |
316 | - if (!($this->data = $this->db->sql_fetchrow($result))) { |
|
343 | + if (!($this->data = $this->db->sql_fetchrow($result))) |
|
344 | + { |
|
317 | 345 | return false; |
318 | 346 | } |
319 | 347 | $this->db->sql_freeresult($result); |
@@ -338,8 +366,10 @@ discard block |
||
338 | 366 | $microdata_attr = 'data-category-id'; |
339 | 367 | |
340 | 368 | // Build navigation links |
341 | - if (!empty($dir_cat_parents)) { |
|
342 | - foreach ($dir_cat_parents as $parent_cat_id => $parent_data) { |
|
369 | + if (!empty($dir_cat_parents)) |
|
370 | + { |
|
371 | + foreach ($dir_cat_parents as $parent_cat_id => $parent_data) |
|
372 | + { |
|
343 | 373 | $this->template->assign_block_vars('dir_navlinks', [ |
344 | 374 | 'FORUM_NAME' => $parent_data['cat_name'], |
345 | 375 | 'FORUM_ID' => $parent_cat_id, |
@@ -368,13 +398,20 @@ discard block |
||
368 | 398 | */ |
369 | 399 | public function dir_submit_type($validate) |
370 | 400 | { |
371 | - if ($validate && !$this->auth->acl_get('a_')) { |
|
401 | + if ($validate && !$this->auth->acl_get('a_')) |
|
402 | + { |
|
372 | 403 | return $this->user->lang['DIR_SUBMIT_TYPE_1']; |
373 | - } elseif (!$validate && !$this->auth->acl_get('a_')) { |
|
404 | + } |
|
405 | + elseif (!$validate && !$this->auth->acl_get('a_')) |
|
406 | + { |
|
374 | 407 | return $this->user->lang['DIR_SUBMIT_TYPE_2']; |
375 | - } elseif ($this->auth->acl_get('a_')) { |
|
408 | + } |
|
409 | + elseif ($this->auth->acl_get('a_')) |
|
410 | + { |
|
376 | 411 | return $this->user->lang['DIR_SUBMIT_TYPE_3']; |
377 | - } elseif ($this->auth->acl_get('m_')) { |
|
412 | + } |
|
413 | + elseif ($this->auth->acl_get('m_')) |
|
414 | + { |
|
378 | 415 | return $this->user->lang['DIR_SUBMIT_TYPE_4']; |
379 | 416 | } |
380 | 417 | |
@@ -395,11 +432,14 @@ discard block |
||
395 | 432 | public function watch_categorie($mode, &$s_watching, $user_id, $cat_id, $notify_status) |
396 | 433 | { |
397 | 434 | // Is user watching this thread? |
398 | - if ($user_id != ANONYMOUS) { |
|
435 | + if ($user_id != ANONYMOUS) |
|
436 | + { |
|
399 | 437 | $can_watch = true; |
400 | 438 | |
401 | - if (!is_null($notify_status) && $notify_status !== '') { |
|
402 | - if ($mode == 'unwatch') { |
|
439 | + if (!is_null($notify_status) && $notify_status !== '') |
|
440 | + { |
|
441 | + if ($mode == 'unwatch') |
|
442 | + { |
|
403 | 443 | $sql = 'DELETE FROM '.DIR_WATCH_TABLE." |
404 | 444 | WHERE cat_id = $cat_id |
405 | 445 | AND user_id = $user_id"; |
@@ -408,17 +448,21 @@ discard block |
||
408 | 448 | $redirect_url = $this->helper->route('ernadoo_phpbbdirectory_page_controller', ['cat_id' => (int) $cat_id]); |
409 | 449 | $message = $this->user->lang['DIR_NOT_WATCHING_CAT']; |
410 | 450 | |
411 | - if (!$this->request->is_ajax()) { |
|
451 | + if (!$this->request->is_ajax()) |
|
452 | + { |
|
412 | 453 | $message .= '<br /><br />'.$this->user->lang('DIR_CLICK_RETURN_CAT', '<a href="'.$redirect_url.'">', '</a>'); |
413 | 454 | } |
414 | 455 | |
415 | 456 | meta_refresh(3, $redirect_url); |
416 | 457 | |
417 | 458 | return $message; |
418 | - } else { |
|
459 | + } |
|
460 | + else |
|
461 | + { |
|
419 | 462 | $is_watching = true; |
420 | 463 | |
421 | - if ($notify_status != NOTIFY_YES) { |
|
464 | + if ($notify_status != NOTIFY_YES) |
|
465 | + { |
|
422 | 466 | $sql = 'UPDATE '.DIR_WATCH_TABLE.' |
423 | 467 | SET notify_status = '.NOTIFY_YES." |
424 | 468 | WHERE cat_id = $cat_id |
@@ -426,8 +470,11 @@ discard block |
||
426 | 470 | $this->db->sql_query($sql); |
427 | 471 | } |
428 | 472 | } |
429 | - } else { |
|
430 | - if ($mode == 'watch') { |
|
473 | + } |
|
474 | + else |
|
475 | + { |
|
476 | + if ($mode == 'watch') |
|
477 | + { |
|
431 | 478 | $sql = 'INSERT INTO '.DIR_WATCH_TABLE." (user_id, cat_id, notify_status) |
432 | 479 | VALUES ($user_id, $cat_id, ".NOTIFY_YES.')'; |
433 | 480 | $this->db->sql_query($sql); |
@@ -435,23 +482,29 @@ discard block |
||
435 | 482 | $redirect_url = $this->helper->route('ernadoo_phpbbdirectory_page_controller', ['cat_id' => (int) $cat_id]); |
436 | 483 | $message = $this->user->lang['DIR_ARE_WATCHING_CAT']; |
437 | 484 | |
438 | - if (!$this->request->is_ajax()) { |
|
485 | + if (!$this->request->is_ajax()) |
|
486 | + { |
|
439 | 487 | $message .= '<br /><br />'.$this->user->lang('DIR_CLICK_RETURN_CAT', '<a href="'.$redirect_url.'">', '</a>'); |
440 | 488 | } |
441 | 489 | |
442 | 490 | meta_refresh(3, $redirect_url); |
443 | 491 | |
444 | 492 | return $message; |
445 | - } else { |
|
493 | + } |
|
494 | + else |
|
495 | + { |
|
446 | 496 | $is_watching = false; |
447 | 497 | } |
448 | 498 | } |
449 | - } else { |
|
499 | + } |
|
500 | + else |
|
501 | + { |
|
450 | 502 | $can_watch = false; |
451 | 503 | $is_watching = false; |
452 | 504 | } |
453 | 505 | |
454 | - if ($can_watch) { |
|
506 | + if ($can_watch) |
|
507 | + { |
|
455 | 508 | $s_watching['link'] = $this->helper->route('ernadoo_phpbbdirectory_suscribe_controller', ['cat_id' => $cat_id, 'mode' => (($is_watching) ? 'unwatch' : 'watch')]); |
456 | 509 | $s_watching['link_toggle'] = $this->helper->route('ernadoo_phpbbdirectory_suscribe_controller', ['cat_id' => $cat_id, 'mode' => ((!$is_watching) ? 'unwatch' : 'watch')]); |
457 | 510 | $s_watching['title'] = $this->user->lang[(($is_watching) ? 'DIR_STOP' : 'DIR_START').'_WATCHING_CAT']; |
@@ -477,7 +530,8 @@ discard block |
||
477 | 530 | $result = $db->sql_query($sql); |
478 | 531 | $row = $db->sql_fetchrow($result); |
479 | 532 | |
480 | - if (!empty($row)) { |
|
533 | + if (!empty($row)) |
|
534 | + { |
|
481 | 535 | return $row['cat_name']; |
482 | 536 | } |
483 | 537 | } |