Changeset 16000
- Timestamp:
- Jun 24, 2012, 3:13:49 PM (12 years ago)
- Location:
- extensions/GuestBook
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GuestBook/include/functions_comment.inc.php
r15940 r16000 1 1 <?php 2 2 if (!defined('GUESTBOOK_PATH')) die('Hacking attempt!'); 3 4 include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php'); 5 add_event_handler('user_comment_check_guestbook', 'user_comment_check', 6 EVENT_HANDLER_PRIORITY_NEUTRAL, 2); 3 7 4 8 function insert_user_comment_guestbook( &$comm, $key, &$infos ) … … 122 126 } 123 127 124 include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php'); 125 $comment_action = user_comment_check($comment_action, $comm); 128 // perform more spam check 129 $comment_action = trigger_event('user_comment_check_guestbook', 130 $comment_action, $comm 131 ); 126 132 127 133 if ( $comment_action!='reject' ) -
extensions/GuestBook/template/guestbook.tpl
r15948 r16000 67 67 68 68 <p><label for="contentid">{'Comment'|@translate}* :</label></p> 69 <p><textarea name="content" id="contentid" rows=" 5" cols="60">{$comment_add.CONTENT}</textarea></p>69 <p><textarea name="content" id="contentid" rows="10" cols="60">{$comment_add.CONTENT}</textarea></p> 70 70 <p><input type="hidden" name="key" value="{$comment_add.KEY}"> 71 71 <input type="submit" value="{'Submit'|@translate}"> {'* : mandatory fields'|@translate}</p>
Note: See TracChangeset
for help on using the changeset viewer.