Changeset 20181 for extensions/GuestBook/include/functions_comment.inc.php
- Timestamp:
- Jan 16, 2013, 2:15:29 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GuestBook/include/functions_comment.inc.php
r16000 r20181 6 6 EVENT_HANDLER_PRIORITY_NEUTRAL, 2); 7 7 8 function insert_user_comment_guestbook( &$comm, $key , &$infos)8 function insert_user_comment_guestbook( &$comm, $key ) 9 9 { 10 10 global $conf, $user, $page; … … 16 16 ) 17 17 ); 18 19 $infos = array(); 18 20 19 if (!$conf['guestbook']['comments_validation'] or is_admin()) 21 20 { … … 75 74 $comm['email'] = $user['email']; 76 75 } 77 else if ( !empty($comm['email']) and ! is_valid_email($comm['email']) )76 else if ( !empty($comm['email']) and !gb_is_valid_email($comm['email']) ) 78 77 { 79 78 array_push($page['errors'], l10n('mail address must be like xxx@yyy.eee (example : jack@altern.org)')); … … 86 85 $comm['website'] = 'http://'.$comm['website']; 87 86 } 88 if ( !empty($comm['website']) and ! is_valid_url($comm['website']) )87 if ( !empty($comm['website']) and !gb_is_valid_url($comm['website']) ) 89 88 { 90 89 array_push($page['errors'], l10n('invalid website address')); … … 121 120 if ($counter > 0) 122 121 { 123 array_push( $infos, l10n('Anti-flood system : please wait for a moment before trying to post another comment') );122 array_push($page['errors'], l10n('Anti-flood system : please wait for a moment before trying to post another comment') ); 124 123 $comment_action='reject'; 125 124 }
Note: See TracChangeset
for help on using the changeset viewer.