add_to_title($locale['global_200'].$locale['400']); include_once INCLUDES."securimage/securimage.php"; $error = ""; $subject = substr(str_replace(array("\r","\n","@"), "", descript(stripslash(trim($_POST['subject'])))), 0, 50); if ($mailname == "") { $error .= "ˇ <span class='alt'>".$locale['420']."</span><br />\n"; } if ($email == "" || !preg_match("/^[-0-9A-Z_\.]{1,50}@([-0-9A-Z_\.]+\.){1,50}([0-9A-Z]){2,4}$/i", $email)) { $error .= "ˇ <span class='alt'>".$locale['421']."</span><br />\n"; } if ($subject == "") { $error .= "ˇ <span class='alt'>".$locale['422']."</span><br />\n"; } if ($message == "") { $error .= "ˇ <span class='alt'>".$locale['423']."</span><br />\n"; } $securimage = new Securimage(); $error .= "ˇ <span class='alt'>".$locale['424']."</span><br />\n"; } if (!$error) { require_once INCLUDES."sendmail_include.php"; if (!sendemail($settings['siteusername'],$settings['siteemail'],$mailname,$email,$subject,$message)) { $error .= "ˇ <span class='alt'>".$locale['425']."</span><br />\n"; } } if ($error) { opentable($locale['400']); echo "<div style='text-align:center'><br />\n".$locale['442']."<br /><br />\n".$error."<br />\n".$locale['443']."</div><br />\n"; closetable(); } else { opentable($locale['400']); echo "<div style='text-align:center'><br />\n".$locale['440']."<br /><br />\n".$locale['441']."</div><br />\n"; closetable(); } } else { opentable($locale['400']); echo "<td class='tbl'><input type='text' name='mailname' maxlength='50' class='textbox' style='width: 200px;' /></td>\n"; echo "<td class='tbl'><input type='text' name='email' maxlength='100' class='textbox' style='width: 200px;' /></td>\n"; echo "<td class='tbl'><input type='text' name='subject' maxlength='50' class='textbox' style='width: 200px;' /></td>\n"; echo "<td class='tbl'><textarea name='message' rows='10' class='textbox' style='width: 320px'></textarea></td>\n"; echo "<a href='".INCLUDES."securimage/securimage_play.php'><img src='".INCLUDES."securimage/images/audio_icon.gif' alt='' align='top' class='tbl-border' style='margin-bottom:1px' /></a><br />\n"; echo "<a href='#' onclick=\"document.getElementById('captcha').src = '".INCLUDES."securimage/securimage_show.php?sid=' + Math.random(); return false\"><img src='".INCLUDES."securimage/images/refresh.gif' alt='' align='bottom' class='tbl-border' /></a>\n"; echo "<td class='tbl'><input type='text' name='captcha_code' class='textbox' style='width:100px' /></td>\n"; closetable(); }
czekam na info i z gory dziekuje.
pomoze ktos? :/