Gentoo Archives: gentoo-commits

From: "Tom Knight (tomk)" <tomk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in forums/htdocs: posting.php profile.php
Date: Mon, 31 Dec 2012 11:43:56
Message-Id: 20121231114334.A989D2171E@flycatcher.gentoo.org
1 tomk 12/12/31 11:43:34
2
3 Modified: posting.php profile.php
4 Log:
5 trigger watched user e-mail when posts are edited
6
7 Revision Changes Path
8 1.25 forums/htdocs/posting.php
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/forums/htdocs/posting.php?rev=1.25&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/forums/htdocs/posting.php?rev=1.25&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/forums/htdocs/posting.php?r1=1.24&r2=1.25
13
14 Index: posting.php
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/forums/htdocs/posting.php,v
17 retrieving revision 1.24
18 retrieving revision 1.25
19 diff -u -r1.24 -r1.25
20 --- posting.php 29 Dec 2006 11:52:49 -0000 1.24
21 +++ posting.php 31 Dec 2012 11:43:34 -0000 1.25
22 @@ -6,7 +6,7 @@
23 * copyright : (C) 2001 The phpBB Group
24 * email : support@×××××.com
25 *
26 - * $Id: posting.php,v 1.24 2006/12/29 11:52:49 tomk Exp $
27 + * $Id: posting.php,v 1.25 2012/12/31 11:43:34 tomk Exp $
28 *
29 *
30 ***************************************************************************/
31 @@ -257,11 +257,11 @@
32 message_die(GENERAL_MESSAGE, $lang['No_post_id']);
33 }
34
35 - $select_sql = (!$submit) ? ', t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig, u.user_sig_bbcode_uid' : '';
36 + $select_sql = (!$submit) ? ', p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig, u.user_sig_bbcode_uid' : '';
37 $from_sql = ( !$submit ) ? ", " . POSTS_TEXT_TABLE . " pt, " . USERS_TABLE . " u" : '';
38 $where_sql = ( !$submit ) ? "AND pt.post_id = p.post_id AND u.user_id = p.poster_id" : '';
39
40 - $sql = "SELECT f.*, t.topic_id, t.topic_status, t.topic_type, t.topic_first_post_id, t.topic_last_post_id, t.topic_vote, p.post_id, p.poster_id" . $select_sql . "
41 + $sql = "SELECT f.*, t.topic_id, t.topic_status, t.topic_title, t.topic_type, t.topic_first_post_id, t.topic_last_post_id, t.topic_vote, p.post_id, p.poster_id" . $select_sql . "
42 FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $from_sql . "
43 WHERE p.post_id = $post_id
44 AND t.topic_id = p.topic_id
45
46
47
48 1.8 forums/htdocs/profile.php
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/forums/htdocs/profile.php?rev=1.8&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/forums/htdocs/profile.php?rev=1.8&content-type=text/plain
52 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/forums/htdocs/profile.php?r1=1.7&r2=1.8
53
54 Index: profile.php
55 ===================================================================
56 RCS file: /var/cvsroot/gentoo-projects/forums/htdocs/profile.php,v
57 retrieving revision 1.7
58 retrieving revision 1.8
59 diff -u -r1.7 -r1.8
60 --- profile.php 30 Jul 2009 06:38:50 -0000 1.7
61 +++ profile.php 31 Dec 2012 11:43:34 -0000 1.8
62 @@ -6,7 +6,7 @@
63 * copyright : (C) 2001 The phpBB Group
64 * email : support@×××××.com
65 *
66 - * $Id: profile.php,v 1.7 2009/07/30 06:38:50 desultory Exp $
67 + * $Id: profile.php,v 1.8 2012/12/31 11:43:34 tomk Exp $
68 *
69 *
70 ***************************************************************************/
71 @@ -25,12 +25,6 @@
72 include($phpbb_root_path . 'extension.inc');
73 include($phpbb_root_path . 'common.'.$phpEx);
74
75 -// 2005-05-08 tomk - Are registration/profile changes disabled?
76 -if ( empty($board_config['allow_registration']) )
77 -{
78 - message_die(GENERAL_MESSAGE, 'Forum_is_locked');
79 -}
80 -
81 //
82 // Start session management
83 //
84 @@ -104,6 +98,12 @@
85 }
86 else if ( $mode == 'editprofile' || $mode == 'register' )
87 {
88 + // 2005-05-08 tomk - Are registration/profile changes disabled?
89 + if ( empty($board_config['allow_registration']) )
90 + {
91 + message_die(GENERAL_MESSAGE, 'Forum_is_locked');
92 + }
93 +
94 if ( !$userdata['session_logged_in'] && $mode == 'editprofile' )
95 {
96 redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=editprofile", true));