- 0
-
Quem Está Navegando
- Nenhum usuário registrado visualizando esta página.
-
Posts
-
Los links estan caidos 😞
-
Olá, seu tópico se encontra com um ou mais links offline. Caso ainda possua o conteúdo, favor postar aqui mesmo no tópico ou mandar MP para algum staff que estaremos normalizando o tópico. Grato pela atenção!
-
Olá, é possível obter o arquivo para esses ícones? Olá, é possível obter o arquivo para esses ícones?
-
Voce usar a conta de admin q vc tem no server, vai em accounts e define o acess_level la. e vc entra auto. Eu tenho uma versão desse votesystem q tentei atualizar e com tutorial so acessar o link na minha assinatura em baixo.
-
Por Heverton Molina · Postado
Gente eu instalei aqui no meu servidor porem não sei qual e a senha pra entrar eu crio o login de admin mas e a senha onde eu coloco? -
Por juniinxt007 · Postado
Todos os Links dele Estao OFF -
Por JefersonFelisbino · Postado
Boa ! O icone dos agathions esta fora do ar "/ estou precisando -
Por juniinxt007 · Postado
Alguem pela misericordia teria o link dos Set S PVP e de todas as armas S coloridas PVP? @AllInOne -
Por L2BloodyWar · Postado
eu tava com um projeto acis 398 mais o java era 11 ai nao sei atualizar e desistir fui olhar essa lucera, mal tem arquivos sobre ele entao eo projeto mais atual ? se alguem tiver uma sourve/rev ja compilada boa fico a dispor no chat! meu intuito e aprender e tbm por online mais bem la na frente ai a 398 era limpa mais falaram que estava muito desatualizada e eu ia ter problema pra add qualquer coisa
-
Pergunta
Arkond
Olá pessoal!
Estou com um site que já está todo pronto, porém acho que está errado meu arquivo .php no formulário de contrato, já configurei como "imagino" estar certo, mais não vai, espero que um par de olhos possa me ajudar, desde já agradeço muito! Código .php abaixo:
<?php
class Ajax_Contact_Form {
protected $address_destination = '[email protected]';
protected $message_subject = 'Message from AJAX Contact Form';
protected $strings = array(
'body' => '
<h1>{{subject}}</h1>
<p><strong>From:</strong> {{name}}</p>
<p><strong>E-Mail:</strong> {{email}}</p>
<p><strong>Message:</strong> <br> {{message}}</p>',
'success' => 'Thank You! I will be in touch.',
'error' => 'Sorry there was an error sending your message. Please check server PHP mail configuration.',
'demo' => 'This is demo message from PHP',
'header_injection' => 'Header injection detected.',
'enter_name' => 'Please enter your name.',
'enter_email' => 'Please enter a valid email address.',
'enter_message' => 'Please enter your message.',
'ajax_only' => 'Allowed only XMLHttpRequest.',
);
protected $demo = true;
public function __construct() {
if ( $this->demo ) {
$this->successHandler('demo');
}
// Ajax check.
if ( ! isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) || 'XMLHttpRequest' !== $_SERVER['HTTP_X_REQUESTED_WITH'] ) {
$this->errorHandler('ajax_only');
}
// Get post data.
$name = stripslashes(trim($_POST['name']));
$email = stripslashes(trim($_POST['email']));
$message = stripslashes(trim($_POST['message']));
// Sanitize fields.
$name = filter_var($name, FILTER_SANITIZE_STRING);
$email = filter_var($email, FILTER_SANITIZE_EMAIL);
$message = filter_var($message, FILTER_SANITIZE_STRING);
$message = nl2br($message, false); // false gives <br>, true gives <br />
// Check header injection.
$pattern = '/[\r\n]|Content-Type:|Bcc:|Cc:/i';
if ( preg_match($pattern, $name) || preg_match($pattern, $email) ) {
$this->errorHandler('header_injection');
}
// Validate email.
$isEmailValid = filter_var($email, FILTER_VALIDATE_EMAIL);
// Check if name has been entered.
if ( ! $name ) {
$this->errorHandler('enter_name');
}
// Check if email has been entered and is valid.
if ( ! $isEmailValid || ! $email ) {
$this->errorHandler('enter_email');
}
// Check if message has been entered.
if ( ! $message ) {
$this->errorHandler('enter_message');
}
// Prepare headers.
$headers = 'MIME-Version: 1.1' . PHP_EOL;
$headers .= 'Content-type: text/html; charset=utf-8' . PHP_EOL;
$headers .= "From: $name <$email>" . PHP_EOL;
$headers .= "Return-Path: $this->address_destination" . PHP_EOL;
$headers .= "Reply-To: $email" . PHP_EOL;
$headers .= "X-Mailer: PHP/". phpversion() . PHP_EOL;
// Prepare body.
$body = $this->getString('body');
$body = $this->template( $body, array(
'subject' => $this->message_subject,
'name' => $name,
'email' => $email,
'message' => $message,
) );
$body = "
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html>
<head>
<title>{$this->message_subject}</title>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/>
</head>
<body>{$body}</body>
</html>
Kaio Alencar
Link para o comentário
Compartilhar em outros sites
0 respostass a esta questão
Posts recomendados
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.