Project

General

Profile

« Previous | Next » 

Revision 1634

Added by Luisehahne over 14 years ago

! update language files and rework some core files (read DEVINFOS)
! compress mdcr.js
+ add DEVINFOS Instructions/Informations for modulecoder

View differences:

submit_comment.php
108 108

  
109 109
		if($settings['use_captcha'])
110 110
        {
111
			$search = array('{SERVER_EMAIL}');
112
			$replace = array( SERVER_EMAIL,);
113
			$MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'] = str_replace($search,$replace,$MESSAGE['MOD_FORM_INCORRECT_CAPTCHA']);
111 114
			if(isset($_POST['captcha']) AND $_POST['captcha'] != '')
112 115
            {
113 116
				// Check for a mismatch
114 117
				if(!isset($_POST['captcha']) OR !isset($_SESSION['captcha']) OR $_POST['captcha'] != $_SESSION['captcha'])
115 118
                {
116
					$_SESSION['captcha_error'] = $MESSAGE['MOD_FORM']['INCORRECT_CAPTCHA'];
119
					$_SESSION['captcha_error'] = $MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'];
117 120
					$_SESSION['comment_title'] = $title;
118 121
					$_SESSION['comment_body'] = $comment;
119 122
					header("Location: ".WB_URL."/modules/news/comment.php?post_id=".$post_id."&section_id=".$section_id."" );
......
122 125
			}
123 126
            else
124 127
            {
125
				$_SESSION['captcha_error'] = $MESSAGE['MOD_FORM']['INCORRECT_CAPTCHA'];
128
				$_SESSION['captcha_error'] = $MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'];
126 129
				$_SESSION['comment_title'] = $title;
127 130
				$_SESSION['comment_body'] = $comment;
128 131
				header("Location: ".WB_URL."/modules/news/comment.php?post_id=".$post_id."&section_id=".$section_id."" );

Also available in: Unified diff