[geeklog-cvs] geeklog-1.3/public_html comment.php,1.44.2.5,1.44.2.6
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Thu Oct 7 16:14:54 EDT 2004
- Previous message (by thread): [geeklog-cvs] geeklog-1.3/public_html/docs/images japan.gif,NONE,1.1.2.1 poland.gif,NONE,1.1.2.1
- Next message (by thread): [geeklog-cvs] geeklog-1.3/language bulgarian.php,1.4,1.4.2.1 chinese_big5.php,1.4,1.4.2.1 chinese_gb2312.php,1.2,1.2.2.1 czech.php,1.2,1.2.2.1 danish.php,1.2,1.2.2.1 dutch.php,1.13,1.13.2.1 english.php,1.98,1.98.2.1 french_canada.php,1.1.2.1,1.1.2.2 french_france.php,1.8,1.8.2.1 german_formal.php,1.3,1.3.2.1 hellenic.php,1.7,1.7.2.1 italian.php,1.15,1.15.2.1 japanese.php,1.16,1.16.2.1 norwegian.php,1.1,1.1.2.1 polish.php,1.18,1.18.2.1 portuguese.php,1.2,1.2.2.1 portuguese_brazil.php,1.6,1.6.4.1 romanian.php,1.2,1.2.2.1 slovak.php,1.3,1.3.2.1 spanish.php,1.7,1.7.2.1 spanish_argentina.php,1.8,1.8.2.1 swedish.php,1.6,1.6.2.1 turkish.php,1.2.2.1,1.2.2.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv20384
Modified Files:
Tag: geeklog_1_3_8_1_1
comment.php
Log Message:
Don't allow posting comments on stories or polls where comment posting has been disabled.
Index: comment.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/comment.php,v
retrieving revision 1.44.2.5
retrieving revision 1.44.2.6
diff -C2 -d -r1.44.2.5 -r1.44.2.6
*** comment.php 31 May 2004 12:49:51 -0000 1.44.2.5
--- comment.php 7 Oct 2004 20:14:52 -0000 1.44.2.6
***************
*** 256,259 ****
--- 256,271 ----
}
+ $commentcode = 0;
+ if ($type == 'article') {
+ $commentcode = DB_getItem ($_TABLES['stories'], 'commentcode',
+ "sid = '$sid'");
+ } else if ($type == 'poll') {
+ $commentcode = DB_getItem ($_TABLES['pollquestions'], 'commentcode',
+ "qid = '$sid'");
+ }
+ if ($commentcode < 0) {
+ return COM_refresh ($_CONF['site_url'] . '/index.php');
+ }
+
// Clean 'em up a bit!
if ($postmode == 'html') {
- Previous message (by thread): [geeklog-cvs] geeklog-1.3/public_html/docs/images japan.gif,NONE,1.1.2.1 poland.gif,NONE,1.1.2.1
- Next message (by thread): [geeklog-cvs] geeklog-1.3/language bulgarian.php,1.4,1.4.2.1 chinese_big5.php,1.4,1.4.2.1 chinese_gb2312.php,1.2,1.2.2.1 czech.php,1.2,1.2.2.1 danish.php,1.2,1.2.2.1 dutch.php,1.13,1.13.2.1 english.php,1.98,1.98.2.1 french_canada.php,1.1.2.1,1.1.2.2 french_france.php,1.8,1.8.2.1 german_formal.php,1.3,1.3.2.1 hellenic.php,1.7,1.7.2.1 italian.php,1.15,1.15.2.1 japanese.php,1.16,1.16.2.1 norwegian.php,1.1,1.1.2.1 polish.php,1.18,1.18.2.1 portuguese.php,1.2,1.2.2.1 portuguese_brazil.php,1.6,1.6.4.1 romanian.php,1.2,1.2.2.1 slovak.php,1.3,1.3.2.1 spanish.php,1.7,1.7.2.1 spanish_argentina.php,1.8,1.8.2.1 swedish.php,1.6,1.6.2.1 turkish.php,1.2.2.1,1.2.2.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the geeklog-cvs
mailing list