1 |
desultory 09/07/30 06:38:51 |
2 |
|
3 |
Modified: bbcode.php constants.php functions.php |
4 |
functions_admin.php functions_validate.php |
5 |
page_header.php page_tail.php sessions.php |
6 |
usercp_register.php |
7 |
Log: |
8 |
Upgrade to 2.0.23, add some proxy fixes, fix bug 191626 and bug 170166. |
9 |
|
10 |
Revision Changes Path |
11 |
1.21 forums/htdocs/includes/bbcode.php |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/bbcode.php?rev=1.21&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/bbcode.php?rev=1.21&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/bbcode.php?r1=1.20&r2=1.21 |
16 |
|
17 |
Index: bbcode.php |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-projects/forums/htdocs/includes/bbcode.php,v |
20 |
retrieving revision 1.20 |
21 |
retrieving revision 1.21 |
22 |
diff -u -r1.20 -r1.21 |
23 |
--- bbcode.php 8 Jun 2006 22:08:45 -0000 1.20 |
24 |
+++ bbcode.php 30 Jul 2009 06:38:50 -0000 1.21 |
25 |
@@ -6,7 +6,7 @@ |
26 |
* copyright : (C) 2001 The phpBB Group |
27 |
* email : support@×××××.com |
28 |
* |
29 |
- * $Id: bbcode.php,v 1.20 2006/06/08 22:08:45 tomk Exp $ |
30 |
+ * $Id: bbcode.php,v 1.21 2009/07/30 06:38:50 desultory Exp $ |
31 |
* |
32 |
***************************************************************************/ |
33 |
|
34 |
@@ -1077,7 +1077,7 @@ |
35 |
} |
36 |
|
37 |
// 2005-06-21 tomk - Change http -> https for forums links if you're logged in securely |
38 |
- if (isset($_SERVER['HTTPS'])) |
39 |
+ if (isset($_SERVER['HTTPS']) || isset($_SERVER["HTTP_FRONT_END_HTTPS"])) |
40 |
{ |
41 |
$ret = preg_replace("#http://forums(|test).gentoo.org#is", "https://forums\\1.gentoo.org", $ret); |
42 |
// 2005-07-17 tomk - also do it for bugs |
43 |
|
44 |
|
45 |
|
46 |
1.18 forums/htdocs/includes/constants.php |
47 |
|
48 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/constants.php?rev=1.18&view=markup |
49 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/constants.php?rev=1.18&content-type=text/plain |
50 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/constants.php?r1=1.17&r2=1.18 |
51 |
|
52 |
Index: constants.php |
53 |
=================================================================== |
54 |
RCS file: /var/cvsroot/gentoo-projects/forums/htdocs/includes/constants.php,v |
55 |
retrieving revision 1.17 |
56 |
retrieving revision 1.18 |
57 |
diff -u -r1.17 -r1.18 |
58 |
--- constants.php 6 Feb 2007 18:42:11 -0000 1.17 |
59 |
+++ constants.php 30 Jul 2009 06:38:50 -0000 1.18 |
60 |
@@ -6,7 +6,7 @@ |
61 |
* copyright : ('C) 2001 The phpBB Group |
62 |
* email : support@×××××.com |
63 |
* |
64 |
- * $Id: constants.php,v 1.17 2007/02/06 18:42:11 tomk Exp $ |
65 |
+ * $Id: constants.php,v 1.18 2009/07/30 06:38:50 desultory Exp $ |
66 |
* |
67 |
* |
68 |
***************************************************************************/ |
69 |
@@ -203,6 +203,8 @@ |
70 |
define('MTYPE_REPLY', 'Post reply'); |
71 |
define('MTYPE_PRVMSG', 'Private message'); |
72 |
define('MTYPE_NEWACC', 'New account created'); |
73 |
+# 2009-03 desultory -- Bug 170166. |
74 |
+define('MTYPE_SPAMMER', 'Profile spammer detected'); # DANGER, DANGER! |
75 |
|
76 |
// 2006-0306 tomk - values for this topic/forum search dropdown |
77 |
define('THIS_ALL', 0); |
78 |
|
79 |
|
80 |
|
81 |
1.26 forums/htdocs/includes/functions.php |
82 |
|
83 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/functions.php?rev=1.26&view=markup |
84 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/functions.php?rev=1.26&content-type=text/plain |
85 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/functions.php?r1=1.25&r2=1.26 |
86 |
|
87 |
Index: functions.php |
88 |
=================================================================== |
89 |
RCS file: /var/cvsroot/gentoo-projects/forums/htdocs/includes/functions.php,v |
90 |
retrieving revision 1.25 |
91 |
retrieving revision 1.26 |
92 |
diff -u -r1.25 -r1.26 |
93 |
--- functions.php 24 Nov 2008 06:14:23 -0000 1.25 |
94 |
+++ functions.php 30 Jul 2009 06:38:50 -0000 1.26 |
95 |
@@ -7,7 +7,7 @@ |
96 |
* copyright : (C) 2001 The phpBB Group |
97 |
* email : support@×××××.com |
98 |
* |
99 |
- * $Id: functions.php,v 1.25 2008/11/24 06:14:23 robbat2 Exp $ |
100 |
+ * $Id: functions.php,v 1.26 2009/07/30 06:38:50 desultory Exp $ |
101 |
* |
102 |
* |
103 |
***************************************************************************/ |
104 |
@@ -395,7 +395,7 @@ |
105 |
|
106 |
$userdata['user_lang'] = $default_lang; |
107 |
} |
108 |
- elseif ( $userdata['user_id'] === ANONYMOUS && $board_config['default_lang'] !== $default_lang ) |
109 |
+ elseif ( $userdata['user_id'] == ANONYMOUS && $board_config['default_lang'] !== $default_lang ) |
110 |
{ |
111 |
$sql = 'UPDATE ' . CONFIG_TABLE . " |
112 |
SET config_value = '" . $default_lang . "' |
113 |
|
114 |
|
115 |
|
116 |
1.5 forums/htdocs/includes/functions_admin.php |
117 |
|
118 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/functions_admin.php?rev=1.5&view=markup |
119 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/functions_admin.php?rev=1.5&content-type=text/plain |
120 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/functions_admin.php?r1=1.4&r2=1.5 |
121 |
|
122 |
Index: functions_admin.php |
123 |
=================================================================== |
124 |
RCS file: /var/cvsroot/gentoo-projects/forums/htdocs/includes/functions_admin.php,v |
125 |
retrieving revision 1.4 |
126 |
retrieving revision 1.5 |
127 |
diff -u -r1.4 -r1.5 |
128 |
--- functions_admin.php 8 Jun 2006 22:08:45 -0000 1.4 |
129 |
+++ functions_admin.php 30 Jul 2009 06:38:50 -0000 1.5 |
130 |
@@ -6,7 +6,7 @@ |
131 |
* copyright : (C) 2001 The phpBB Group |
132 |
* email : support@×××××.com |
133 |
* |
134 |
- * $Id: functions_admin.php,v 1.4 2006/06/08 22:08:45 tomk Exp $ |
135 |
+ * $Id: functions_admin.php,v 1.5 2009/07/30 06:38:50 desultory Exp $ |
136 |
* |
137 |
* |
138 |
***************************************************************************/ |
139 |
@@ -26,7 +26,7 @@ |
140 |
// |
141 |
function make_forum_select($box_name, $ignore_forum = false, $select_forum = '') |
142 |
{ |
143 |
- global $db, $userdata; |
144 |
+ global $db, $userdata, $lang; |
145 |
|
146 |
$is_auth_ary = auth(AUTH_READ, AUTH_LIST_ALL, $userdata); |
147 |
|
148 |
@@ -50,7 +50,7 @@ |
149 |
} |
150 |
} |
151 |
|
152 |
- $forum_list = ( $forum_list == '' ) ? '<option value="-1">-- ! No Forums ! --</option>' : '<select name="' . $box_name . '">' . $forum_list . '</select>'; |
153 |
+ $forum_list = ( $forum_list == '' ) ? $lang['No_forums'] : '<select name="' . $box_name . '">' . $forum_list . '</select>'; |
154 |
|
155 |
return $forum_list; |
156 |
} |
157 |
|
158 |
|
159 |
|
160 |
1.3 forums/htdocs/includes/functions_validate.php |
161 |
|
162 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/functions_validate.php?rev=1.3&view=markup |
163 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/functions_validate.php?rev=1.3&content-type=text/plain |
164 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/functions_validate.php?r1=1.2&r2=1.3 |
165 |
|
166 |
Index: functions_validate.php |
167 |
=================================================================== |
168 |
RCS file: /var/cvsroot/gentoo-projects/forums/htdocs/includes/functions_validate.php,v |
169 |
retrieving revision 1.2 |
170 |
retrieving revision 1.3 |
171 |
diff -u -r1.2 -r1.3 |
172 |
--- functions_validate.php 1 Nov 2005 12:00:03 -0000 1.2 |
173 |
+++ functions_validate.php 30 Jul 2009 06:38:50 -0000 1.3 |
174 |
@@ -6,7 +6,7 @@ |
175 |
* copyright : (C) 2001 The phpBB Group |
176 |
* email : support@×××××.com |
177 |
* |
178 |
- * $Id: functions_validate.php,v 1.2 2005/11/01 12:00:03 tomk Exp $ |
179 |
+ * $Id: functions_validate.php,v 1.3 2009/07/30 06:38:50 desultory Exp $ |
180 |
* |
181 |
* |
182 |
***************************************************************************/ |
183 |
@@ -101,7 +101,7 @@ |
184 |
$db->sql_freeresult($result); |
185 |
|
186 |
// Don't allow " and ALT-255 in username. |
187 |
- if (strstr($username, '"') || strstr($username, '"') || strstr($username, chr(160))) |
188 |
+ if (strstr($username, '"') || strstr($username, '"') || strstr($username, chr(160)) || strstr($username, chr(173))) |
189 |
{ |
190 |
return array('error' => true, 'error_msg' => $lang['Username_invalid']); |
191 |
} |
192 |
|
193 |
|
194 |
|
195 |
1.13 forums/htdocs/includes/page_header.php |
196 |
|
197 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/page_header.php?rev=1.13&view=markup |
198 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/page_header.php?rev=1.13&content-type=text/plain |
199 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/page_header.php?r1=1.12&r2=1.13 |
200 |
|
201 |
Index: page_header.php |
202 |
=================================================================== |
203 |
RCS file: /var/cvsroot/gentoo-projects/forums/htdocs/includes/page_header.php,v |
204 |
retrieving revision 1.12 |
205 |
retrieving revision 1.13 |
206 |
diff -u -r1.12 -r1.13 |
207 |
--- page_header.php 13 Aug 2006 15:22:02 -0000 1.12 |
208 |
+++ page_header.php 30 Jul 2009 06:38:50 -0000 1.13 |
209 |
@@ -6,7 +6,7 @@ |
210 |
* copyright : (C) 2001 The phpBB Group |
211 |
* email : support@×××××.com |
212 |
* |
213 |
- * $Id: page_header.php,v 1.12 2006/08/13 15:22:02 tomk Exp $ |
214 |
+ * $Id: page_header.php,v 1.13 2009/07/30 06:38:50 desultory Exp $ |
215 |
* |
216 |
* |
217 |
***************************************************************************/ |
218 |
@@ -414,7 +414,7 @@ |
219 |
$rank_title = $rank['rank_title']; |
220 |
if (isset($lang[$rank_title.'_rank'])) |
221 |
$rank_title = $lang[$rank_title.'_rank']; |
222 |
- $ranks_legend .= sprintf('  [ <span style="color:#%s">%s</span> ] ', |
223 |
+ $ranks_legend .= sprintf(' [ <span style="color:#%s">%s</span> ] ', |
224 |
$rank['rank_colour'], $rank_title); |
225 |
} |
226 |
|
227 |
|
228 |
|
229 |
|
230 |
1.6 forums/htdocs/includes/page_tail.php |
231 |
|
232 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/page_tail.php?rev=1.6&view=markup |
233 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/page_tail.php?rev=1.6&content-type=text/plain |
234 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/page_tail.php?r1=1.5&r2=1.6 |
235 |
|
236 |
Index: page_tail.php |
237 |
=================================================================== |
238 |
RCS file: /var/cvsroot/gentoo-projects/forums/htdocs/includes/page_tail.php,v |
239 |
retrieving revision 1.5 |
240 |
retrieving revision 1.6 |
241 |
diff -u -r1.5 -r1.6 |
242 |
--- page_tail.php 22 May 2006 16:07:48 -0000 1.5 |
243 |
+++ page_tail.php 30 Jul 2009 06:38:50 -0000 1.6 |
244 |
@@ -6,7 +6,7 @@ |
245 |
* copyright : (C) 2001 The phpBB Group |
246 |
* email : support@×××××.com |
247 |
* |
248 |
- * $Id: page_tail.php,v 1.5 2006/05/22 16:07:48 tomk Exp $ |
249 |
+ * $Id: page_tail.php,v 1.6 2009/07/30 06:38:50 desultory Exp $ |
250 |
* |
251 |
* |
252 |
***************************************************************************/ |
253 |
@@ -36,8 +36,9 @@ |
254 |
'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl') |
255 |
); |
256 |
|
257 |
+// 2008-12 desultory -- Front end https tweak. |
258 |
$template->assign_vars(array( |
259 |
- 'SERVER_PROTOCOL' => ($board_config['cookie_secure'] || $_SERVER['HTTPS']) ? 'https://' : 'http://', |
260 |
+ 'SERVER_PROTOCOL' => ($board_config['cookie_secure'] || $_SERVER['HTTPS'] || isset($_SERVER["HTTP_FRONT_END_HTTPS"])) ? 'https://' : 'http://', |
261 |
'PHPBB_VERSION' => '2' . $board_config['version'], |
262 |
'TRANSLATION_INFO' => (isset($lang['TRANSLATION_INFO'])) ? $lang['TRANSLATION_INFO'] : ((isset($lang['TRANSLATION'])) ? $lang['TRANSLATION'] : ''), |
263 |
'ADMIN_LINK' => $admin_link, |
264 |
@@ -76,4 +77,4 @@ |
265 |
|
266 |
exit; |
267 |
|
268 |
-?> |
269 |
\ No newline at end of file |
270 |
+?> |
271 |
|
272 |
|
273 |
|
274 |
1.12 forums/htdocs/includes/sessions.php |
275 |
|
276 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/sessions.php?rev=1.12&view=markup |
277 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/sessions.php?rev=1.12&content-type=text/plain |
278 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/sessions.php?r1=1.11&r2=1.12 |
279 |
|
280 |
Index: sessions.php |
281 |
=================================================================== |
282 |
RCS file: /var/cvsroot/gentoo-projects/forums/htdocs/includes/sessions.php,v |
283 |
retrieving revision 1.11 |
284 |
retrieving revision 1.12 |
285 |
diff -u -r1.11 -r1.12 |
286 |
--- sessions.php 11 Aug 2006 13:41:28 -0000 1.11 |
287 |
+++ sessions.php 30 Jul 2009 06:38:50 -0000 1.12 |
288 |
@@ -6,7 +6,7 @@ |
289 |
* copyright : (C) 2001 The phpBB Group |
290 |
* email : support@×××××.com |
291 |
* |
292 |
- * $Id: sessions.php,v 1.11 2006/08/11 13:41:28 maedhros Exp $ |
293 |
+ * $Id: sessions.php,v 1.12 2009/07/30 06:38:50 desultory Exp $ |
294 |
* |
295 |
* |
296 |
***************************************************************************/ |
297 |
@@ -29,7 +29,8 @@ |
298 |
{ |
299 |
global $board_config; |
300 |
|
301 |
- $this->secure = ($board_config['cookie_secure'] || $_SERVER['HTTPS']); |
302 |
+ // 2008-12 desultory -- Front end https tweak. |
303 |
+ $this->secure = ($board_config['cookie_secure'] || $_SERVER['HTTPS'] || isset($_SERVER["HTTP_FRONT_END_HTTPS"])); |
304 |
$this->name = ($this->secure) ? $name.'_s' : $name; |
305 |
} |
306 |
|
307 |
|
308 |
|
309 |
|
310 |
1.28 forums/htdocs/includes/usercp_register.php |
311 |
|
312 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/usercp_register.php?rev=1.28&view=markup |
313 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/usercp_register.php?rev=1.28&content-type=text/plain |
314 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/includes/usercp_register.php?r1=1.27&r2=1.28 |
315 |
|
316 |
Index: usercp_register.php |
317 |
=================================================================== |
318 |
RCS file: /var/cvsroot/gentoo-projects/forums/htdocs/includes/usercp_register.php,v |
319 |
retrieving revision 1.27 |
320 |
retrieving revision 1.28 |
321 |
diff -u -r1.27 -r1.28 |
322 |
--- usercp_register.php 12 Apr 2007 19:17:37 -0000 1.27 |
323 |
+++ usercp_register.php 30 Jul 2009 06:38:50 -0000 1.28 |
324 |
@@ -6,7 +6,7 @@ |
325 |
* copyright : (C) 2001 The phpBB Group |
326 |
* email : support@×××××.com |
327 |
* |
328 |
- * $Id: usercp_register.php,v 1.27 2007/04/12 19:17:37 tomk Exp $ |
329 |
+ * $Id: usercp_register.php,v 1.28 2009/07/30 06:38:50 desultory Exp $ |
330 |
* |
331 |
* |
332 |
***************************************************************************/ |
333 |
@@ -732,6 +732,9 @@ |
334 |
$emailer->use_template('admin_dupe_ip_spammer', $defaults['default_lang']); |
335 |
$emailer->set_subject($lang['Dupe_ip_spammer']); |
336 |
$emailer->email_address($board_config['board_email']); |
337 |
+ |
338 |
+ # 2009-03 desultory -- Bug 170166. |
339 |
+ $emailer->message_type(MTYPE_SPAMMER); |
340 |
|
341 |
$emailer->assign_vars(array( |
342 |
'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)), |