05.01.2016, 20:09
Poczekaj. Pokaż Twój contact.php i szablon contact. Zdaje mi się, że dodałeś(aś, nie wiem) inputy w szablonie, a w pliku już nie :v
<?php
/**
* MyBB 1.8
* Copyright 2014 MyBB Group, All Rights Reserved
*
* Website: http://www.mybb.com
* License: http://www.mybb.com/about/license
*
*/
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'contact.php');
$templatelist = "contact,post_captcha,post_captcha_recaptcha,post_captcha_nocaptcha,post_captcha_ayah";
require_once "./global.php";
require_once MYBB_ROOT.'inc/class_captcha.php';
// Load global language phrases
$lang->load("contact");
$plugins->run_hooks('contact_start');
// Make navigation
add_breadcrumb($lang->contact, "contact.php");
if($mybb->settings['contact'] != 1 || (!$mybb->user['uid'] && $mybb->settings['contact_guests'] == 1))
{
error_no_permission();
}
if($mybb->settings['contactemail'])
{
$contactemail = $mybb->settings['contactemail'];
}
else
{
$contactemail = $mybb->settings['adminemail'];
}
// Check group limits
if($mybb->usergroup['maxemails'] > 0)
{
if($mybb->user['uid'] > 0)
{
$user_check = "fromuid='{$mybb->user['uid']}'";
}
else
{
$user_check = "ipaddress=".$db->escape_binary($session->packedip);
}
$query = $db->simple_select("maillogs", "COUNT(mid) AS sent_count", "{$user_check} AND dateline >= ".(TIME_NOW - (60*60*24)));
$sent_count = $db->fetch_field($query, "sent_count");
if($sent_count >= $mybb->usergroup['maxemails'])
{
$lang->error_max_emails_day = $lang->sprintf($lang->error_max_emails_day, $mybb->usergroup['maxemails']);
error($lang->error_max_emails_day);
}
}
// Check email flood control
if($mybb->usergroup['emailfloodtime'] > 0)
{
if($mybb->user['uid'] > 0)
{
$user_check = "fromuid='{$mybb->user['uid']}'";
}
else
{
$user_check = "ipaddress=".$db->escape_binary($session->packedip);
}
$timecut = TIME_NOW-$mybb->usergroup['emailfloodtime']*60;
$query = $db->simple_select("maillogs", "mid, dateline", "{$user_check} AND dateline > '{$timecut}'", array('order_by' => "dateline", 'order_dir' => "DESC"));
$last_email = $db->fetch_array($query);
// Users last email was within the flood time, show the error
if($last_email['mid'])
{
$remaining_time = ($mybb->usergroup['emailfloodtime']*60)-(TIME_NOW-$last_email['dateline']);
if($remaining_time == 1)
{
$lang->error_emailflooding = $lang->sprintf($lang->error_emailflooding_1_second, $mybb->usergroup['emailfloodtime']);
}
elseif($remaining_time < 60)
{
$lang->error_emailflooding = $lang->sprintf($lang->error_emailflooding_seconds, $mybb->usergroup['emailfloodtime'], $remaining_time);
}
elseif($remaining_time > 60 && $remaining_time < 120)
{
$lang->error_emailflooding = $lang->sprintf($lang->error_emailflooding_1_minute, $mybb->usergroup['emailfloodtime']);
}
else
{
$remaining_time_minutes = ceil($remaining_time/60);
$lang->error_emailflooding = $lang->sprintf($lang->error_emailflooding_minutes, $mybb->usergroup['emailfloodtime'], $remaining_time_minutes);
}
error($lang->error_emailflooding);
}
}
$errors = array();
$mybb->input['email'] = trim_blank_chrs($mybb->get_input('email'));
$mybb->input['subject'] = trim_blank_chrs($mybb->input['subject']);
$mybb->input['message'] = trim_blank_chrs($mybb->input['message']);
$mybb->input['imie'] = trim_blank_chrs($mybb->input['imie']);
$mybb->input['nick'] = trim_blank_chrs($mybb->input['nick']);
$mybb->input['dataur'] = trim_blank_chrs($mybb->input['dataur']);
$mybb->input['steam'] = trim_blank_chrs($mybb->input['steam']);
$mybb->input['ets2mp'] = trim_blank_chrs($mybb->input['ets2mp']);
$mybb->input['dlc'] = trim_blank_chrs($mybb->input['dlc']);
if($mybb->request_method == "post")
{
// Verify incoming POST request
verify_post_check($mybb->get_input('my_post_key'));
$plugins->run_hooks('contact_do_start');
// Validate input
if(empty($mybb->input['subject']))
{
$errors[] = $lang->contact_no_subject;
}
if(strlen($mybb->input['subject']) > $mybb->settings['contact_maxsubjectlength'] && $mybb->settings['contact_maxsubjectlength'] > 0)
{
$errors[] = $lang->sprintf($lang->subject_too_long, $mybb->settings['contact_maxsubjectlength'], strlen($mybb->input['subject']));
}
if(empty($mybb->input['message']))
{
$errors[] = $lang->contact_no_message;
}
if(strlen($mybb->input['message']) > $mybb->settings['contact_maxmessagelength'] && $mybb->settings['contact_maxmessagelength'] > 0)
{
$errors[] = $lang->sprintf($lang->message_too_long, $mybb->settings['contact_maxmessagelength'], strlen($mybb->input['message']));
}
if(strlen($mybb->input['message']) < $mybb->settings['contact_minmessagelength'] && $mybb->settings['contact_minmessagelength'] > 0)
{
$errors[] = $lang->sprintf($lang->message_too_short, $mybb->settings['contact_minmessagelength'], strlen($mybb->input['message']));
}
if(empty($mybb->input['email']))
{
$errors[] = $lang->contact_no_email;
}
else
{
// Validate email
if(!validate_email_format($mybb->input['email']))
{
$errors[] = $lang->contact_no_email;
}
}
// Should we have a CAPTCHA? Perhaps yes, but only for guests like in other pages...
if($mybb->settings['captchaimage'] && !$mybb->user['uid'])
{
$captcha = new captcha;
if($captcha->validate_captcha() == false)
{
// CAPTCHA validation failed
foreach($captcha->get_errors() as $error)
{
$errors[] = $error;
}
}
}
if(!$mybb->user['uid'] && $mybb->settings['stopforumspam_on_contact'])
{
require_once MYBB_ROOT . '/inc/class_stopforumspamchecker.php';
$stop_forum_spam_checker = new StopForumSpamChecker(
$plugins,
$mybb->settings['stopforumspam_min_weighting_before_spam'],
$mybb->settings['stopforumspam_check_usernames'],
$mybb->settings['stopforumspam_check_emails'],
$mybb->settings['stopforumspam_check_ips'],
$mybb->settings['stopforumspam_log_blocks']
);
try {
if($stop_forum_spam_checker->is_user_a_spammer('', $mybb->input['email'], get_ip()))
{
$errors[] = $lang->sprintf($lang->error_stop_forum_spam_spammer,
$stop_forum_spam_checker->getErrorText(array(
'stopforumspam_check_emails',
'stopforumspam_check_ips')));
}
}
catch (Exception $e)
{
if($mybb->settings['stopforumspam_block_on_error'])
{
$errors[] = $lang->error_stop_forum_spam_fetching;
}
}
}
if(empty($errors))
{
if($mybb->settings['contact_badwords'] == 1)
{
// Load the post parser
require_once MYBB_ROOT."inc/class_parser.php";
$parser = new postParser;
$parser_options = array(
'filter_badwords' => 1
);
$mybb->input['subject'] = $parser->parse_message($mybb->input['subject'], $parser_options);
$mybb->input['message'] = $parser->parse_message($mybb->input['message'], $parser_options);
$mybb->input['imie'] = $parser->parse_message($mybb->input['imie'], $parser_options);
$mybb->input['nick'] = $parser->parse_message($mybb->input['nick'], $parser_options);
$mybb->input['dataur'] = $parser->parse_message($mybb->input['dataur'], $parser_options);
$mybb->input['steam'] = $parser->parse_message($mybb->input['steam'], $parser_options);
$mybb->input['ets2mp'] = $parser->parse_message($mybb->input['ets2mp'], $parser_options);
$mybb->input['dlc'] = $parser->parse_message($mybb->input['dlc'], $parser_options);
}
$user = $lang->na;
if($mybb->user['uid'])
{
$user = $mybb->user['username'].' - '.$mybb->settings['bburl'].'/'.get_profile_link($mybb->user['uid']);
}
$imie = "Imię: ".$mybb->input['imie'];
$nick = "Nick: ".$mybb->input['nick'];
$dataur = "Data urodzenia: ".$mybb->input['dataur'];
$steam = "Link do steama: ".$mybb->input['steam'];
$ets2mp = "Link Do Ets2Mp: ".$mybb->input['ets2mp'];
$dlc = "Posiadane DLC: ".$mybb->input['dlc'];
$subject = $lang->sprintf($lang->email_contact_subject, $mybb->input['subject']);
$message = $lang->sprintf($lang->email_contact, $mybb->input['email'], $user, $session->ipaddress, $mybb->input['message'], $imie, $nick, $dataur, $steam, $ets2mp, $dlc);
// Email the administrator
my_mail($contactemail, $subject, $message, $mybb->input['email']);
$plugins->run_hooks('contact_do_end');
if($mybb->settings['mail_logging'] > 0)
{
// Log the message
$log_entry = array(
"subject" => $db->escape_string($subject),
"message" => $db->escape_string($message),
"dateline" => TIME_NOW,
"fromuid" => $mybb->user['uid'],
"fromemail" => $db->escape_string($mybb->input['email']),
"touid" => 0,
"toemail" => $db->escape_string($contactemail),
"tid" => 0,
"ipaddress" => $db->escape_binary($session->packedip),
"type" => 3
);
$db->insert_query("maillogs", $log_entry);
}
if($mybb->usergroup['emailfloodtime'] > 0 || (isset($sent_count) && $sent_count + 1 >= $mybb->usergroup['maxemails']))
{
redirect('index.php', $lang->contact_success_message, '', true);
}
else
{
redirect('contact.php', $lang->contact_success_message, '', true);
}
}
else
{
$errors = inline_error($errors);
}
}
if(empty($errors))
{
$errors = '';
}
// Generate CAPTCHA?
$captcha = '';
if($mybb->settings['captchaimage'] && !$mybb->user['uid'])
{
$post_captcha = new captcha(true, "post_captcha");
if($post_captcha->html)
{
$captcha = $post_captcha->html;
}
}
$mybb->input['subject'] = htmlspecialchars_uni($mybb->input['subject']);
$mybb->input['message'] = htmlspecialchars_uni($mybb->input['message']);
$mybb->input['imie'] = htmlspecialchars_uni($mybb->input['imie']);
$mybb->input['nick'] = htmlspecialchars_uni($mybb->input['nick']);
$mybb->input['dataur'] = htmlspecialchars_uni($mybb->input['dataur']);
$mybb->input['steam'] = htmlspecialchars_uni($mybb->input['steam']);
$mybb->input['ets2mp'] = htmlspecialchars_uni($mybb->input['ets2mp']);
$mybb->input['dlc'] = htmlspecialchars_uni($mybb->input['dlc']);
if($mybb->user['uid'] && !$mybb->get_input('email'))
{
$mybb->input['email'] = htmlspecialchars_uni($mybb->user['email']);
}
else
{
$mybb->input['email'] = htmlspecialchars_uni($mybb->get_input('email'));
}
$plugins->run_hooks('contact_end');
eval("\$page = \"".$templates->get("contact")."\";");
output_page($page);
?>
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->contact}</title>
{$headerinclude}
</head>
<body>
{$header}
<form action="contact.php" method="post">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
{$errors}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>Podanie</strong></td>
</tr>
<tr>
<td class="trow1" valign="top"><strong>{$lang->contact_subject}:</strong><br /></td>
<td class="trow1"><input type="text" name="subject" class="textbox" size="150" value="{$mybb->input['subject']}" /></td>
</tr>
<tr>
<td class="trow2" valign="top"><strong>Imię</strong><br /></td>
<td class="trow2"><textarea cols="150" rows="1" name="message" class="textarea" >{$mybb->input['imie']}</textarea></td>
</tr>
<tr>
<td class="trow2" valign="top"><strong>Nick</strong><br /></td><br />
<td class="trow2"><textarea cols="150" rows="1" name="message" class="textarea" >{$mybb->input['nick']}</textarea></td>
</tr>
<tr>
<td class="trow2" valign="top"><strong>Data urodzenia</strong><br /></td>
<td class="trow2"><textarea cols="150" rows="1" name="message" class="textarea" >{$mybb->input['dataur']}</textarea></td>
</tr>
<tr>
<td class="trow2" valign="top"><strong>Link Do Profilu Steam</strong><br /></td>
<td class="trow2"><textarea cols="150" rows="1" name="message" class="textarea" >{$mybb->input['steam']}</textarea></td>
</tr>
<tr>
<td class="trow2" valign="top"><strong>Link Do Ets2Mp</strong><br /></td>
<td class="trow2"><textarea cols="150" rows="1" name="message" class="textarea" >{$mybb->input['ets2mp']}</textarea></td>
</tr>
<tr>
<td class="trow2" valign="top"><strong>Posiadane dlc</strong><br /></td>
<td class="trow2"><textarea cols="150" rows="1" name="message" class="textarea" >{$mybb->input['dlc']}</textarea></td>
</tr>
<tr>
<td class="trow2" valign="top"><strong>Napisz coś o sobie</strong><br /></td>
<td class="trow2"><textarea cols="150" rows="10" name="message" class="textarea" >{$mybb->input['message']}</textarea></td>
</tr>
<tr>
<td class="trow1" valign="top"><strong>{$lang->contact_email}:</strong><br /></td>
<td class="trow1"><input type="text" name="email" class="textbox" size="150" value="{$mybb->input['email']}" /></td>
</tr>
{$captcha}
</table>
<br />
<div align="center">
<input type="submit" class="button" name="submit" value="{$lang->contact_send}" />
</div>
</form>
{$footer}
</body>
</html>
<?php
/**
* MyBB 1.8
* Copyright 2014 MyBB Group, All Rights Reserved
*
* Website: http://www.mybb.com
* License: http://www.mybb.com/about/license
*
*/
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'contact.php');
$templatelist = "contact,post_captcha,post_captcha_recaptcha,post_captcha_nocaptcha,post_captcha_ayah";
require_once "./global.php";
require_once MYBB_ROOT.'inc/class_captcha.php';
// Load global language phrases
$lang->load("contact");
$plugins->run_hooks('contact_start');
// Make navigation
add_breadcrumb($lang->contact, "contact.php");
if($mybb->settings['contact'] != 1 || (!$mybb->user['uid'] && $mybb->settings['contact_guests'] == 1))
{
error_no_permission();
}
if($mybb->settings['contactemail'])
{
$contactemail = $mybb->settings['contactemail'];
}
else
{
$contactemail = $mybb->settings['adminemail'];
}
// Check group limits
if($mybb->usergroup['maxemails'] > 0)
{
if($mybb->user['uid'] > 0)
{
$user_check = "fromuid='{$mybb->user['uid']}'";
}
else
{
$user_check = "ipaddress=".$db->escape_binary($session->packedip);
}
$query = $db->simple_select("maillogs", "COUNT(mid) AS sent_count", "{$user_check} AND dateline >= ".(TIME_NOW - (60*60*24)));
$sent_count = $db->fetch_field($query, "sent_count");
if($sent_count >= $mybb->usergroup['maxemails'])
{
$lang->error_max_emails_day = $lang->sprintf($lang->error_max_emails_day, $mybb->usergroup['maxemails']);
error($lang->error_max_emails_day);
}
}
// Check email flood control
if($mybb->usergroup['emailfloodtime'] > 0)
{
if($mybb->user['uid'] > 0)
{
$user_check = "fromuid='{$mybb->user['uid']}'";
}
else
{
$user_check = "ipaddress=".$db->escape_binary($session->packedip);
}
$timecut = TIME_NOW-$mybb->usergroup['emailfloodtime']*60;
$query = $db->simple_select("maillogs", "mid, dateline", "{$user_check} AND dateline > '{$timecut}'", array('order_by' => "dateline", 'order_dir' => "DESC"));
$last_email = $db->fetch_array($query);
// Users last email was within the flood time, show the error
if($last_email['mid'])
{
$remaining_time = ($mybb->usergroup['emailfloodtime']*60)-(TIME_NOW-$last_email['dateline']);
if($remaining_time == 1)
{
$lang->error_emailflooding = $lang->sprintf($lang->error_emailflooding_1_second, $mybb->usergroup['emailfloodtime']);
}
elseif($remaining_time < 60)
{
$lang->error_emailflooding = $lang->sprintf($lang->error_emailflooding_seconds, $mybb->usergroup['emailfloodtime'], $remaining_time);
}
elseif($remaining_time > 60 && $remaining_time < 120)
{
$lang->error_emailflooding = $lang->sprintf($lang->error_emailflooding_1_minute, $mybb->usergroup['emailfloodtime']);
}
else
{
$remaining_time_minutes = ceil($remaining_time/60);
$lang->error_emailflooding = $lang->sprintf($lang->error_emailflooding_minutes, $mybb->usergroup['emailfloodtime'], $remaining_time_minutes);
}
error($lang->error_emailflooding);
}
}
$errors = array();
$mybb->input['email'] = trim_blank_chrs($mybb->get_input('email'));
$mybb->input['subject'] = trim_blank_chrs($mybb->input['subject']);
$mybb->input['message'] = trim_blank_chrs($mybb->input['message']);
$mybb->input['nick'] = trim_blank_chrs($mybb->input['nick']);
if($mybb->request_method == "post")
{
// Verify incoming POST request
verify_post_check($mybb->get_input('my_post_key'));
$plugins->run_hooks('contact_do_start');
// Validate input
if(empty($mybb->input['subject']))
{
$errors[] = $lang->contact_no_subject;
}
if(strlen($mybb->input['subject']) > $mybb->settings['contact_maxsubjectlength'] && $mybb->settings['contact_maxsubjectlength'] > 0)
{
$errors[] = $lang->sprintf($lang->subject_too_long, $mybb->settings['contact_maxsubjectlength'], strlen($mybb->input['subject']));
}
if(empty($mybb->input['message']))
{
$errors[] = $lang->contact_no_message;
}
if(strlen($mybb->input['message']) > $mybb->settings['contact_maxmessagelength'] && $mybb->settings['contact_maxmessagelength'] > 0)
{
$errors[] = $lang->sprintf($lang->message_too_long, $mybb->settings['contact_maxmessagelength'], strlen($mybb->input['message']));
}
if(strlen($mybb->input['message']) < $mybb->settings['contact_minmessagelength'] && $mybb->settings['contact_minmessagelength'] > 0)
{
$errors[] = $lang->sprintf($lang->message_too_short, $mybb->settings['contact_minmessagelength'], strlen($mybb->input['message']));
}
if(empty($mybb->input['email']))
{
$errors[] = $lang->contact_no_email;
}
else
{
// Validate email
if(!validate_email_format($mybb->input['email']))
{
$errors[] = $lang->contact_no_email;
}
}
// Should we have a CAPTCHA? Perhaps yes, but only for guests like in other pages...
if($mybb->settings['captchaimage'] && !$mybb->user['uid'])
{
$captcha = new captcha;
if($captcha->validate_captcha() == false)
{
// CAPTCHA validation failed
foreach($captcha->get_errors() as $error)
{
$errors[] = $error;
}
}
}
if(!$mybb->user['uid'] && $mybb->settings['stopforumspam_on_contact'])
{
require_once MYBB_ROOT . '/inc/class_stopforumspamchecker.php';
$stop_forum_spam_checker = new StopForumSpamChecker(
$plugins,
$mybb->settings['stopforumspam_min_weighting_before_spam'],
$mybb->settings['stopforumspam_check_usernames'],
$mybb->settings['stopforumspam_check_emails'],
$mybb->settings['stopforumspam_check_ips'],
$mybb->settings['stopforumspam_log_blocks']
);
try {
if($stop_forum_spam_checker->is_user_a_spammer('', $mybb->input['email'], get_ip()))
{
$errors[] = $lang->sprintf($lang->error_stop_forum_spam_spammer,
$stop_forum_spam_checker->getErrorText(array(
'stopforumspam_check_emails',
'stopforumspam_check_ips')));
}
}
catch (Exception $e)
{
if($mybb->settings['stopforumspam_block_on_error'])
{
$errors[] = $lang->error_stop_forum_spam_fetching;
}
}
}
if(empty($errors))
{
if($mybb->settings['contact_badwords'] == 1)
{
// Load the post parser
require_once MYBB_ROOT."inc/class_parser.php";
$parser = new postParser;
$parser_options = array(
'filter_badwords' => 1
);
$mybb->input['subject'] = $parser->parse_message($mybb->input['subject'], $parser_options);
$mybb->input['message'] = $parser->parse_message($mybb->input['message'], $parser_options);
$mybb->input['imie'] = $parser->parse_message($mybb->input['imie'], $parser_options);
$mybb->input['nick'] = $parser->parse_message($mybb->input['nick'], $parser_options);
$mybb->input['dataur'] = $parser->parse_message($mybb->input['dataur'], $parser_options);
$mybb->input['steam'] = $parser->parse_message($mybb->input['steam'], $parser_options);
$mybb->input['ets2mp'] = $parser->parse_message($mybb->input['ets2mp'], $parser_options);
$mybb->input['dlc'] = $parser->parse_message($mybb->input['dlc'], $parser_options);
}
$user = $lang->na;
if($mybb->user['uid'])
{
$user = $mybb->user['username'].' - '.$mybb->settings['bburl'].'/'.get_profile_link($mybb->user['uid']);
}
$imie = "Imię: ".$mybb->input['imie']."\n" ;
$nick = "Nick: ". $mybb->input['nick']."\n";
$dataur = "Data urodzenia: ".$mybb->input['dataur']."\n";
$steam = "Link do Steam: ".$mybb->input['steam'] ."\n";
$ets2mp = "Link do Ets2MP: ".$mybb->input['ets2mp']."\n";
$dlc = "Posiadane DLC: ".$mybb->input['dlc'];
$reszta = $mybb->input['message'] ."\n". $imie . $nick . $dataur . $steam . $ets2mp . $dlc;
$subject = $lang->sprintf($lang->email_contact_subject, $mybb->input['subject']);
$message = $lang->sprintf($lang->email_contact, $mybb->input['email'], $user, $session->ipaddress, $reszta);
// Email the administrator
my_mail($contactemail, $subject, $message, $mybb->input['email']);
$plugins->run_hooks('contact_do_end');
if($mybb->settings['mail_logging'] > 0)
{
// Log the message
$log_entry = array(
"subject" => $db->escape_string($subject),
"message" => $db->escape_string($message),
"dateline" => TIME_NOW,
"fromuid" => $mybb->user['uid'],
"fromemail" => $db->escape_string($mybb->input['email']),
"touid" => 0,
"toemail" => $db->escape_string($contactemail),
"tid" => 0,
"ipaddress" => $db->escape_binary($session->packedip),
"type" => 3
);
$db->insert_query("maillogs", $log_entry);
}
if($mybb->usergroup['emailfloodtime'] > 0 || (isset($sent_count) && $sent_count + 1 >= $mybb->usergroup['maxemails']))
{
redirect('index.php', $lang->contact_success_message, '', true);
}
else
{
redirect('contact.php', $lang->contact_success_message, '', true);
}
}
else
{
$errors = inline_error($errors);
}
}
if(empty($errors))
{
$errors = '';
}
// Generate CAPTCHA?
$captcha = '';
if($mybb->settings['captchaimage'] && !$mybb->user['uid'])
{
$post_captcha = new captcha(true, "post_captcha");
if($post_captcha->html)
{
$captcha = $post_captcha->html;
}
}
$mybb->input['subject'] = htmlspecialchars_uni($mybb->input['subject']);
$mybb->input['message'] = htmlspecialchars_uni($mybb->input['message']);
$mybb->input['imie'] = htmlspecialchars_uni($mybb->input['imie']);
$mybb->input['nick'] = htmlspecialchars_uni($mybb->input['nick']);
$mybb->input['dataur'] = htmlspecialchars_uni($mybb->input['dataur']);
$mybb->input['steam'] = htmlspecialchars_uni($mybb->input['steam']);
$mybb->input['ets2mp'] = htmlspecialchars_uni($mybb->input['ets2mp']);
$mybb->input['dlc'] = htmlspecialchars_uni($mybb->input['dlc']);
if($mybb->user['uid'] && !$mybb->get_input('email'))
{
$mybb->input['email'] = htmlspecialchars_uni($mybb->user['email']);
}
else
{
$mybb->input['email'] = htmlspecialchars_uni($mybb->get_input('email'));
}
$plugins->run_hooks('contact_end');
eval("\$page = \"".$templates->get("contact")."\";");
output_page($page);
?>
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->contact}</title>
{$headerinclude}
</head>
<body>
{$header}
<form action="contact.php" method="post">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
{$errors}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>Podanie</strong></td>
</tr>
<tr>
<td class="trow1" valign="top"><strong>{$lang->contact_subject}:</strong><br /></td>
<td class="trow1"><input type="text" name="subject" class="textbox" size="150" value="{$mybb->input['subject']}" /></td>
</tr>
<tr>
<td class="trow2" valign="top"><strong>Imię</strong><br /></td>
<td class="trow2"><textarea cols="150" rows="1" name="imie" class="textarea" value="{$mybb->input['imie']}"></textarea></td>
</tr>
<tr>
<td class="trow2" valign="top"><strong>Nick</strong><br /></td><br />
<td class="trow2"><textarea cols="150" rows="1" name="nick" class="textarea" value="{$mybb->input['nick']}"></textarea></td>
</tr>
<tr>
<td class="trow2" valign="top"><strong>Data urodzenia</strong><br /></td>
<td class="trow2"><textarea cols="150" rows="1" name="dataur" class="textarea" value="{$mybb->input['dataur']}"></textarea></td>
</tr>
<tr>
<td class="trow2" valign="top"><strong>Link Do Profilu Steam</strong><br /></td>
<td class="trow2"><textarea cols="150" rows="1" name="steam" class="textarea" value="{$mybb->input['steam']}"></textarea></td>
</tr>
<tr>
<td class="trow2" valign="top"><strong>Link Do Ets2Mp</strong><br /></td>
<td class="trow2"><textarea cols="150" rows="1" name="ets2mp" class="textarea" value="{$mybb->input['ets2mp']}"></textarea></td>
</tr>
<tr>
<td class="trow2" valign="top"><strong>Posiadane dlc</strong><br /></td>
<td class="trow2"><textarea cols="150" rows="1" name="dlc" class="textarea" value="{$mybb->input['dlc']}"></textarea></td>
</tr>
<tr>
<td class="trow2" valign="top"><strong>Napisz coś o sobie</strong><br /></td>
<td class="trow2"><textarea cols="150" rows="10" name="message" class="textarea" value="{$mybb->input['message']}"></textarea></td>
</tr>
<tr>
<td class="trow1" valign="top"><strong>{$lang->contact_email}:</strong><br /></td>
<td class="trow1"><input type="text" name="email" class="textbox" size="150" value="{$mybb->input['email']}" /></td>
</tr>
{$captcha}
</table>
<br />
<div align="center">
<input type="submit" class="button" name="submit" value="{$lang->contact_send}" />
</div>
</form>
{$footer}
</body>
</html>
(05.01.2016, 21:57)Szogi1910 napisał(a): [ -> ]Zobacz posmtp czy wiadomości na pocztę będą dochodzić
(05.01.2016, 21:57)Szogi1910 napisał(a): [ -> ]Hosting może blokować funkcję"mail()" warto to sprawdzić
Zobacz posmtp czy wiadomości na pocztę będą dochodzić