# geschrieben wurde.\r
#\r
# Autor: Patrick Canterino <patrick@patshaping.de>\r
-# Letzte Aenderung: 3.12.2011\r
+# Letzte Aenderung: 4.12.2011\r
#\r
# Copyright (C) 2002-2011 Patrick Canterino\r
#\r
# Hauptteil\r
# ===========\r
\r
+$VERSION = '3.5-dev';\r
+\r
require('config.php');\r
require('functions.php');\r
require('class.Template.php');\r
\r
-if($only_post && $_SERVER['REQUEST_METHOD'] != 'POST') show_fatal($err_only_post);\r
+if($_SERVER['REQUEST_METHOD'] != 'POST') show_fatal($err_only_post);\r
\r
# Wenn Captchas aktiviert sind, Session starten\r
\r
continue;\r
}\r
\r
+ # Laengen-Pruefung\r
+ \r
+ if(isset($user_field_data['min']) && $user_field_data['min']) {\r
+ if(strlen($user_field_content) < $user_field_data['min']) {\r
+ show_user_error($user_field_data['errors']['too_short']);\r
+ }\r
+ }\r
+ \r
+ if(isset($user_field_data['min']) && $user_field_data['max']) {\r
+ if(strlen($user_field_content) > $user_field_data['max']) {\r
+ show_user_error($user_field_data['errors']['too_long']);\r
+ }\r
+ }\r
+ \r
# Pruefung gegen frei definierbare Pruef-Funktion\r
\r
if(isset($user_field_data['check']) && $user_field_data['check'] != '') {\r
$header .= 'Content-Type: text/plain; charset="'.$charset.'"'."\n";\r
$header .= 'Content-Transfer-Encoding: 8bit'."\n";\r
$header .= 'MIME-Version: 1.0'."\n";\r
- $header .= 'X-Mailer: Form E-Mail 3.4.1'."\n";\r
+ $header .= 'X-Mailer: Form E-Mail '.$VERSION."\n";\r
$header .= 'X-Sender-IP: ['.$_SERVER['REMOTE_ADDR'].']';\r
}\r
else $header .= "Reply-To: $email";\r