Hallo,
ich habe ein Content wo man einen Katalog bestellen kann. Dafür habe ich die contact_us.php und contact_us.html geändert.
Seit dem ich auf sp1d aktualisiert habe kommen bei der Email keine Daten mehr. Nicht bei der Kontakt Anfrage, nicht bei der Katalog Anfrage. Das heißt, kommt eine Email und da steht nur: "Ihre Anfrage", mehr nicht. Die daten und die Nachricht werden nicht übergeben.
Hier die templates/xtc5/module/contact_us.html
{config_load file="$language/lang_$language.conf" section="newsletter"}
{config_load file="$language/lang_$language.conf" section="contact_us"}
<h1>{$CONTACT_HEADING}</h1>
{if $KATALOG!=''}
{#text_online#}<br /><br />
<div class="highlightbox">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td align="center">{#titel_online#}</td>
</tr>
<tr>
<td align="center"><a href="/katalog/catalog.htm" target="_blank"><img src='{$tpl_path}img/katalog.jpg'></a></td>
</tr>
</table>
</div>
<br /><br />
{/if}
{$CONTACT_CONTENT} <br />
<br />
{if $error_message!=''}
<div class="errormessage">{$error_message}</div>
{/if} {if $success!='1'} {$FORM_ACTION}
<div class="highlightbox">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
{if $KATALOG!=''}
<tr>
<td></td><td></td><td rowspan=9 valign=top>
<IMG src='{$tpl_path}img/katalog.gif' width='136' height='281' alt=''>
</td>
</tr>
{/if}
<tr>
<td width="41%">{#text_name#}*</td>
<td width="59%">{$INPUT_NAME}</td>
</tr>
{if $KATALOG!='1'}
<tr>
<td>{#text_email#}*</td>
<td width="59%">{$INPUT_EMAIL}</td>
</tr>
{/if}
<tr>
<td>{#text_phone#}</td>
<td width="59%">{$INPUT_PHONE}</td>
</tr>
{if $KATALOG!='1'}
<tr>
<td>{#text_fax#}</td>
<td width="59%">{$INPUT_FAX}</td>
</tr>
{/if}
<tr>
<td>{#text_street#}{if $KATALOG!=''}*{/if}</td>
<td width="59%">{$INPUT_STREET}</td>
</tr>
<tr>
<td>{#text_postcode#}{if $KATALOG!=''}*{/if}</td>
<td width="59%">{$INPUT_POSTCODE}</td>
</tr>
<tr>
<td>{#text_city#}{if $KATALOG!=''}*{/if}</td>
<td width="59%">{$INPUT_CITY}</td>
</tr>
{if $KATALOG!=''}
<tr>
<td>{#text_land#}</td>
<td width="59%">{$INPUT_LAND}{$KATALOG_HIDDEN}</td>
</tr>
{/if}
<tr>
<td>{#text_company#}</td>
<td width="59%">{$INPUT_COMPANY}</td>
</tr>
<tr>
<td>{#text_sec_code#}</td>
<td>{$VVIMG}</td>
</tr>
<tr>
<td>{#text_sec_code#}*</td>
<td width="59%">{$INPUT_CODE}</td>
</tr>
{if $KATALOG!='1'}
<tr>
<td valign="top">{#text_message#}*</td>
<td width="59%" colspan=2>{$INPUT_TEXT}</td>
</tr>
{/if}
<tr>
<td valign="top"> </td>
<td width="59%" colspan=2>{$BUTTON_SUBMIT}</td>
</tr>
<tr>
<td colspan="3"><b>{#text_hint#}</b></td>
</tr>
</table>
</div>
<!--p>{*$BUTTON_SUBMIT*}</p-->
{$FORM_END}
{else}
<p>{#text_success#}</p>
<p>{$BUTTON_CONTINUE}</p>
{/if}
und includes/contact_us.php
<?php//include by shop_content.php //BOF - web28 - 2010-07-17 - move language definition on top require (DIR_WS_LANGUAGES
.$_SESSION['language'].'/contact_us.php'); //EOF - web28 - 2010-07-17 - move language definition on top require_once (DIR_FS_INC
.'xtc_get_countries.inc.php'); // BOF - Cjg - 2011-01-16 - Pedido de Katalog $katalog=($_GET['coID']==11 || isset($_GET['katalog']) || isset($_POST['katalog_hidden']))?
1:0; // EOF - Cjg - 2011-01-16 - Pedido de Katalog $error = false; if (isset ($_GET['action']) && ($_GET['action'] == 'send')) { //BOF - web28 - 2010-07-17 - move language definition on top //require (DIR_WS_LANGUAGES.$_SESSION['language'].'/contact_us.php'); //EOF - web28 - 2010-07-17 - move language definition on top //BOF - web28 - 2010-04-03 - New error handling for required fileds //jedes Feld kann hier auf die gewünschte Bedingung getestet und eine Fehlermeldung zugeordnet werden //BOF error handling $err_msg = ''; // BOF - Cjg - 2011-01-16 - Pedido de Katalog if (isset($_POST['name']) && trim($_POST['name']) == '') $err_msg .= ERROR_MSG_NAME
; if(!$katalog) // EOF - Cjg - 2011-01-16 - Pedido de Katalog if (!xtc_validate_email
(trim($_POST['email']))) $err_msg .= ERROR_EMAIL
; // BOF - Cjg - 2011-01-16 - Pedido de Katalog if($katalog) { if (isset($_POST['street']) && trim($_POST['street']) == '') $err_msg .= ERROR_MSG_STREET
; if (isset($_POST['postcode']) && trim($_POST['postcode']) == '') $err_msg .= ERROR_MSG_POSTCODE
; if (isset($_POST['city']) && trim($_POST['city']) == '') $err_msg .= ERROR_MSG_CITY
; } // EOF - Cjg - 2011-01-16 - Pedido de Katalog if ((strtoupper($_POST['vvcode']) != $_SESSION['vvcode']) || $_SESSION['vvcode']=='') $err_msg .= ERROR_VVCODE
; if(!$katalog) //Cjg - 2011-01-16 - Pedido de Katalog if (trim($_POST['message_body']) == '') $err_msg .= ERROR_MSG_BODY
; //EOF error handling $smarty->assign('error_message', ERROR_MAIL
. $err_msg); if ($err_msg != '') $error = true; //Wenn kein Fehler Email formatieren und absenden if (!$error) { // Datum und Uhrzeit $datum= date("d.m.Y"); $uhrzeit= date("H:i"); // BOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields) $additional_fields = ''; if (isset($_POST['company'])) $additional_fields = EMAIL_COMPANY
. $_POST['company'] . "\n" ; if (isset($_POST['street'])) $additional_fields .= EMAIL_STREET
. $_POST['street'] . "\n" ; if (isset($_POST['postcode'])) $additional_fields .= EMAIL_POSTCODE
. $_POST['postcode'] . "\n" ; if (isset($_POST['city'])) $additional_fields .= EMAIL_CITY
. $_POST['city'] . "\n" ; if (isset($_POST['phone'])) $additional_fields .= EMAIL_PHONE
. $_POST['phone'] . "\n" ; if (isset($_POST['fax'])) $additional_fields .= EMAIL_FAX
. $_POST['fax'] . "\n" ; // EOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields) // BOF - Tomcraft - 2009-11-05 - Advanced contact form (check for USE_CONTACT_EMAIL_ADDRESS) $use_contact_email_query = xtc_db_query
("select configuration_value from " . TABLE_CONFIGURATION
. " where configuration_key = 'USE_CONTACT_EMAIL_ADDRESS'"); $use_contact_email = xtc_db_fetch_array
($use_contact_email_query); if ($use_contact_email['configuration_value'] == 'true') { $email = trim(CONTACT_US_EMAIL_ADDRESS
); $name = CONTACT_US_NAME
; $notify = EMAIL_NOTIFY
. "\n\n"; } else { $email = trim($_POST['email']); $name = $_POST['name']; $notify = ''; } // EOF - Tomcraft - 2009-11-05 - Advanced contact form (check for USE_CONTACT_EMAIL_ADDRESS) $email_layout = sprintf(EMAIL_SENT_BY
, CONTACT_US_NAME
, CONTACT_US_EMAIL_ADDRESS
, $datum , $uhrzeit) . "\n" . "--------------------------------------------------------------" . "\n" . $notify . EMAIL_NAME
. $_POST['name'] . "\n" . EMAIL_EMAIL
. trim($_POST['email']) . "\n" . // BOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields) $additional_fields . // EOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields) "\n".EMAIL_MESSAGE
."\n ". $_POST['message_body'] . "\n"; xtc_php_mail
($email, $name, CONTACT_US_EMAIL_ADDRESS
, CONTACT_US_NAME
, CONTACT_US_FORWARDING_STRING
, $email, $name, '', '', $katalog?KATALOG_EMAIL_SUBJECT
:CONTACT_US_EMAIL_SUBJECT
, // Cjg - 2011-01-16 - Pedido de Katalog CONTACT_US_EMAIL_SUBJECT
, nl2br($email_layout), $email_layout ); if (!isset ($mail_error)) { xtc_redirect
(xtc_href_link
(FILENAME_CONTENT
, 'action=success&coID='.(int
) $_GET['coID'])); } else { $smarty->assign('error_message', $mail_error); } } //EOF - web28 - 2010-04-03 - New error handling for required fileds } $smarty->assign('CONTACT_HEADING', $shop_content_data['content_heading']); if (isset ($_GET['action']) && ($_GET['action'] == 'success')) { $smarty->assign('success', '1'); $smarty->assign('BUTTON_CONTINUE', '<a href="'.xtc_href_link
(FILENAME_DEFAULT
).'">'.xtc_image_button
('button_continue.gif', IMAGE_BUTTON_CONTINUE
).'</a>'); } else { if ($shop_content_data['content_file'] != '') { ob_start(); if (strpos($shop_content_data['content_file'], '.txt')) echo '<pre>'; include (DIR_FS_CATALOG
.'media/content/'.$shop_content_data['content_file']); if (strpos($shop_content_data['content_file'], '.txt')) echo '</pre>'; $contact_content = ob_get_contents(); ob_end_clean(); } else { $contact_content = $shop_content_data['content_text']; } // BOF - Cjg - 2011-01-16 - Pedido de Katalog if($katalog) $contact_content=KATALOG_TITLE
; // EOF - Cjg - 2011-01-16 - Pedido de Katalog require (DIR_WS_INCLUDES
.'header.php'); // BOF - Tomcraft - 2009-11-05 - Advanced contact form (fix override by error request) if (isset ($_SESSION['customer_id']) && !$error) { // EOF - Tomcraft - 2009-11-05 - Advanced contact form (fix override by error request) $customers_name = $_SESSION['customer_first_name'].' '.$_SESSION['customer_last_name']; // BOF - Dokuman - 2009-09-04: preallocate email address on contact form //$email_address = $_SESSION['customer_email_address']; $c_query = xtc_db_query
("SELECT * FROM ".TABLE_CUSTOMERS
." WHERE customers_id='".$_SESSION['customer_id']."'"); $c_data = xtc_db_fetch_array
($c_query); $email_address = stripslashes($c_data['customers_email_address']); // EOF - Dokuman - 2009-09-04: preallocate email address on contact form // BOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields) $phone = stripslashes($c_data['customers_telephone']); $company = stripslashes($c_data['entry_company']); $street = stripslashes($c_data['entry_street_address']); $postcode= stripslashes($c_data['entry_postcode']); $city = stripslashes($c_data['entry_city']); $fax= stripslashes($c_data['customers_fax']); // EOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields) } // BOF - Tomcraft - 2009-11-05 - Advanced contact form (product question) $products_info = ''; // BOF - web28 - 2010-07-14 - false clamp fixing //if (trim($_GET['products_name'] != '')) {$products_info= trim($_GET['products_name']);} //if (trim($_GET['products_model'] != '')) {$products_info= trim($products_info . ' - ' . trim($_GET['products_model']));} //if ($products_info != '') {$products_info = trim($_GET['question'])."\n" . $products_info . "\n"; } if (trim($_GET['products_name']) != '') {$products_info= trim($_GET['products_name']);} if (trim($_GET['products_model']) != '') {$products_info= trim($products_info . ' - ' . trim($_GET['products_model']));} if (trim($_GET['question']) != '') {$products_question= trim($_GET['products_name'])."\n";} if ($products_info != '') {$products_info = $products_question . $products_info . "\n"; } // EOF - web28 - 2010-07-14 - false clamp fixing if (!$error) $message_body = $products_info . "\n"; // EOF - Tomcraft - 2009-11-05 - Advanced contact form (product question) $smarty->assign('CONTACT_CONTENT', $contact_content); // BOF - Cjg - 2011-01-16 - Pedido de Katalog $smarty->assign('KATALOG',$katalog); if($katalog) $smarty->assign('KATALOG_HIDDEN', xtc_draw_hidden_field
('katalog_hidden', $katalog)); // EOF - Cjg - 2011-01-16 - Pedido de Katalog //BOF - Dokuman - 2009-12-23 - send contact form information with SSL //$smarty->assign('FORM_ACTION', xtc_draw_form('contact_us', xtc_href_link(FILENAME_CONTENT, 'action=send&coID='.(int) $_GET['coID']))); $smarty->assign('FORM_ACTION', xtc_draw_form
('contact_us', xtc_href_link
(FILENAME_CONTENT
, 'action=send&coID='.(int
) $_GET['coID'], 'SSL'))); //EOF - Dokuman - 2009-12-23 - send contact form information with SSL //BOF - web28 - 2009-07-14 - FIX SSL capchta image path $smarty->assign('VVIMG', '<img src="'.FILENAME_DISPLAY_VVCODES
.'" alt="Captcha" />'); //EOF - web28 - 2009-07-14 - FIX SSL capchta image path $smarty->assign('INPUT_CODE', xtc_draw_input_field
('vvcode', '', 'size="8" maxlength="6"', 'text', false)); $smarty->assign('INPUT_NAME', xtc_draw_input_field
('name', ($error ?
$_POST['name'] : $customers_name), 'size="30"')); $smarty->assign('INPUT_EMAIL', xtc_draw_input_field
('email', ($error ?
$_POST['email'] : $email_address), 'size="30"')); // BOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields) $smarty->assign('INPUT_PHONE', xtc_draw_input_field
('phone', ($error ?
$_POST['phone'] : $phone), 'size="30"')); $smarty->assign('INPUT_COMPANY', xtc_draw_input_field
('company', ($error ?
$_POST['company'] : $company), 'size="30"')); $smarty->assign('INPUT_STREET', xtc_draw_input_field
('street', ($error ?
$_POST['street'] : $street), 'size="30"')); $smarty->assign('INPUT_POSTCODE', xtc_draw_input_field
('postcode', ($error ?
$_POST['postcode'] : $postcode), 'size="30"')); $smarty->assign('INPUT_CITY', xtc_draw_input_field
('city', ($error ?
$_POST['city'] : $city), 'size="30"')); $smarty->assign('INPUT_FAX', xtc_draw_input_field
('fax', ($error ?
$_POST['fax'] : $fax), 'size="30"')); // BOF - Cjg - 2011-01-16 - Pedido de Katalog $xgcl=xtc_get_countriesList
(); $countriesList=array(); $land=""; foreach($xgcl as $xgc) { $countriesList[]=array("id"=>"$xgc[countries_name]","text"=>"$xgc[countries_name]"); if($xgc["countries_id"]==81) $land=$xgc["countries_name"]; } $smarty->assign('INPUT_LAND', xtc_draw_pull_down_menu
('land', $countriesList ,($error ?
$_POST['land'] : $land),'style=width:98%;')); // EOF - Cjg - 2011-01-16 - Pedido de Katalog // EOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields) // BOF - Tomcraft - 2009-09-29 - fixed word-wrap in contact-form //$smarty->assign('INPUT_TEXT', xtc_draw_textarea_field('message_body', 'soft', 50, 15, ($error ? xtc_db_input($_POST['message_body']) : $first_name))); // BOF - Tomcraft - 2010-02-18 - Fixed width of textarea in FireFox under Linux. //$smarty->assign('INPUT_TEXT', xtc_draw_textarea_field('message_body', 'soft', 50, 15, ($error ? $_POST['message_body'] : $message_body))); $smarty->assign('INPUT_TEXT', xtc_draw_textarea_field
('message_body', 'soft', 45, 15, ($error ?
$_POST['message_body'] : $message_body))); // EOF - Tomcraft - 2010-02-18 - Fixed width of textarea in FireFox under Linux. // EOF - Tomcraft - 2009-09-29 - fixed word-wrap in contact-form $smarty->assign('BUTTON_SUBMIT', xtc_image_submit
('button_send.gif', IMAGE_BUTTON_SEND
)); $smarty->assign('FORM_END', '</form>'); } $smarty->assign('language', $_SESSION['language']); $smarty->caching = 0; $main_content = $smarty->fetch(CURRENT_TEMPLATE
.'/module/contact_us.html');?> Kann mir jemand bitte helfen?
Danke!
Gruß piru
Linkback: https://www.modified-shop.org/forum/index.php?topic=21611.0