весь плагин лежит здесь http://files.mail.ru/XO4HJA
я его немного подправил, теперь ошибки не возникает, просто на заглавной странице ничего не появляется, хотя я в index.tpl вставляю {PLUGIN_CONTACTIN}
вот код плагина
<?PHP
/* ====================
[BEGIN_SED_EXTPLUGIN]
Code=contactin
Part=main
File=contactin
Hooks=index.tags
Tags=index.tpl:{PLUGIN_CONTACTIN}
Order=10
[END_SED_EXTPLUGIN]
==================== */
defined('SED_CODE') or die('Wrong URL');
$a = sed_import('a','P','ALP');
$subject = sed_import('subject','P','INT');
$message = sed_import('message','P','TXT');
$name = sed_import('name','P','STX');
$phone = sed_import('phone','P','STX');
$email = sed_import('email','P','STX');
$plugin_title = $L['plu_title'];
if ($a=="send") {
if (!is_numeric($subject) || empty($message) || empty($name) ||empty($phone))
{ $error = $L['plu_empty']."<br />\n"; }
if (empty($error))
{
$rectr =$cfg['plugin']['contactus']['email'];
$cfgsubjects = explode(";", $cfg['plugin']['contactus']['subjects']);
$subrt = trim($cfgsubjects[$subject]);
$headers = ("From: ".$name." <".$email."> tel: ".$phone."\n");
$body = $L['plu_notice']." ".$name."\n";
$body .= $L['plu_message'].": \n\n".$message;
sed_mail($rectr, $subrt, $body, $headers);
$ok = $L['plu_ok'];
unset($phone, $subject, $message, $name, $email);
}
}
if (!empty($error)) { $plugin_body .= "<span style=\"color: #FF0000;\">".$error."</span><br />"; }
if (!empty($ok)) { $plugin_body .= "<span style=\"color: #33CC33;\">".$ok."</span><br />"; }
$plugin_body .= "<form action=\"plug.php?e=contactus\" method=\"post\">\n";
$plugin_body .= "<div class=\"form-item\"><label>".$L['plu_subject']."</label>";
//Build subjects array and selectbox
$cfgsubjects = explode(";", $cfg['plugin']['contactus']['subjects']);
$plugin_body .= "<select name=\"subject\">\n";
$iii=0;
foreach($cfgsubjects as $x) {
if (!empty($x)) {
$subjects[$iii] = trim($x);
if ($iii==$subject || (empty($subject) && $iii==0)) {
$plugin_body .= "<option value=\"".$iii."\" selected=\"selected\">".$subjects[$iii]."</option>\n";
} else {
$plugin_body .= "<option value=\"".$iii."\">".$subjects[$iii]."</option>\n";
}
$iii++;
}
}
$plugin_body .= "</select>\n";
$plugin_body .= "</div>\n";
$plugin_body .= "<div class=\"form-item\"><label>".$L['plu_sendername']."<span class='form-required' title='reqred'> *</span></label>\n";
$plugin_body .= "<input type=\"text\" class=\"text\" name=\"name\" value=\"".sed_cc($name)."\" size=\"32\" maxlength=\"64\" />\n";
$plugin_body .= "</div>\n";
$plugin_body .= "<div class=\"form-item\"><label>".$L['plu_senderphone']."<span class='form-required' title='reqred'> *</span></label>\n";
$plugin_body .= "<input type=\"text\" class=\"text\" name=\"phone\" value=\"".sed_cc($phone)."\" size=\"32\" maxlength=\"64\" />\n";
$plugin_body .= "</div>\n";
$plugin_body .= "<div class=\"form-item\"><label>".$L['plu_sendermail']."</label>\n";
$plugin_body .= "<input type=\"text\" class=\"text\" name=\"email\" value=\"".sed_cc($email)."\" size=\"32\" maxlength=\"64\" />\n";
$plugin_body .= "</div>\n";
$plugin_body .= "<div class=\"form-item\"><label>".$L['plu_message']."<span class='form-required' title='reqred'> *</span></label>\n";
$plugin_body .= "<textarea cols=\"48\" rows=\"8\" name=\"message\">".sed_cc($message)."</textarea>\n";
$plugin_body .= "</div>\n";
$plugin_body .= "</fieldset>\n";
$plugin_body .= "<br />\n";
$plugin_body .= "<input type=\"hidden\" name=\"a\" value=\"send\" />\n";
$plugin_body .= "<input type=\"submit\" class=\"submit-l\" value=\"".$L['plu_send']."\" />\n";
$plugin_body .= "\n";
$plugin_body .= "</form>\n";
?>