Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Olá, eu fiz um site e peguei um código pronto e adaptei
Já mandei pro FTP mais tá dando erro na linha 292
Parse error: syntax error, unexpected T_VARIABLE in /home/a4368693/public_html/index.php-p=fale.php on line 292
Lá vai o documento:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?PHP
$path = ".";
if(!$PHP_SELF){?>
<html xmlns="[http://www.w3.org/1999/xhtml">](http://www.w3.org/1999/xhtml)
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script>
imagens = new Array();imagens[0]="banners/banner1.gif";
imagens[1]="banners/banner2.gif";
imagens[2]="banners/banner3.gif";
imagens[3]="banners/banner4.gif";
imagens[4]="banners/banner5.gif";
imagens[5]="banners/banner6.gif";
imagens[6]="banners/banner7.gif";
imagens[7]="banners/banner8.gif";
imagens[8]="banners/banner9.gif";
imagens[9]="banners/banner10.gif";
imagens[10]="banners/banner11.gif";
//Preencha com os respectivos links
links = new Array();
links[0] = "";
links[1] = "";
links[2] = "";
links[3] = "";
links[4] = "";
links[5] = "";
links[6] = "";
links[7] = "";
links[8] = "";
links[9] = "";
links[10] = "";
i=0;
function troca(){
if (i==imagens.length){
i=0;
}
document.getElementById('img1').src=imagens[i];
document.getElementById('banner').href=links[i];
i++;<style type="text/css">
<!--
a:link {text-decoration: none; color:#000};
a:hover {text-decoration: none; color:#000};
a:visited {text-decoration: none; color: #000}; text-decoration:underline;
color: #000;
}
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #707070;
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #000000;
padding-top: 5px;
}
.thrColFixHdr #container {
width: 780px; / using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar /
background: #FFFFFF;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 0;
text-align: left; /* this overrides the text-align: center on the body element. */
} background: #707070;
padding: 0; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
} border-left: 3px solid #0093d7;
font-weight: bold;
font-size: 10px;
} border-right: 3px solid #0093d7;
} background:#DDDDDD;
} float: right;
margin-left: 8px;
} float: left;
margin-right: 8px;
} clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
#sidebar1 {
font-family: Calibri;
font-size: 9px;
font-weight: bold;
} color: #000;
}
.menu {
font-family: "Kozuka Gothic Pro B";
font-size: 10px;
font-weight: bolder;
color: #000;
}
.copyright {
font-family: "Kozuka Gothic Pro B";
font-size: x-small;
font-weight: bold;
color: #000;
}
.copyright {
font-size: xx-small;
} font-size: 8px;
} font-style: normal;
font-weight: normal;
color: #000;
}
-->
</style><!--[if IE 5]>
<style type="text/css"></style>
<![endif]--></head>
<body class="thrColFixHdr">
<div id="container">
<div id="header">
<h1><img src="logo.png" width="780" height="250" longdesc="logo.png" /></h1>
<!-- end #header --></div>
<div id="sidebar1" class="#sidebar1" >
<h3><img src="button_ts3.png" width="150" height="40" longdesc="button_ts3.png" /></h3>
<p class="menu"><a href="index.php-p=ojogo.php">•O jogo</a><br />
<a href="index.php-p=tutoriais.php">Tutoriais</a><br />
<a href="index.php-p=codigos.php">Códigos</a> <br />
<a href="index.php-p=lancamentos.php">Lançamentos</a>
<p><img src="button_midia.png" width="150" height="40" longdesc="button_media.png" /></p>
<a href="index.php-p=audio.php"> <span class="menu">Áudio<br />
</span></a><span class="menu"><a href="index.php-p=imagens.php">Screenshots</a><br />
<a href="index.php-p=wallpapers.php">Wallpapers</a><br />
<a href="index.php-p=videos.php">Vídeos</a></span>
<p class="menu"><img src="button_consoles.png" width="150" height="40" longdesc="button_consoles.png" /></p>
<p class="menu"><a href="index.php-p=wii.php">Nitendo Wii</a><br />
<a href="index.php-p=iphone.php">iPhone</a></p>
<p class="menu"><img src="button_sobre.png" width="150" height="40" longdesc="button_sobre.png" /></p>
<p class="menu"><a href="index.php-p=criador.php">Criador</a><br />
<a href="index.php-p=fale.php">Fale Conosco</a></p>
<img src="endmenu_sb1.png" width="150" height="25" longdesc="endmenu_sb1.png" /><br />
<!-- end #sidebar1 -->
</div>
<div id="sidebar2">
<h3><img src="button_search.png" width="150" height="40" longdesc="button_search.png" /></h3>
<!-- The Quick Search Form -->
<form action="admin/search.php" method="post" class="menu">
<input type="hidden" name="dosearch" value="yes" />
<input type="text" name="story" size="15" />
<input type="image" src="button_search_ok.png" alt="Pesquisar" border="0" />
<input type="hidden" name="do" value="search" />
</form> <p><img src="button_parceiros.png" width="150" height="40" longdesc="button_parceiros.png" /></p>
<center><a href="[http://www.studiosims.byethost5.com">http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>
</center>
<img src="endmenu_sb2.png" width="150" height="25" longdesc="endmenu_sb2.png" /><br>
<!-- end #sidebar2 --></div>
<div id="mainContent">
<p align="center" class="menu" style="font-size:24px">Fale Conosco</p>
<p class="menu" style="font-size:10px;">Quer enviar uma mensagem a equipe? Preencha o formulário a seguir. No assunto explique bem o que você quer (Ex.: Enviar mídia, proposta de parceria, sugestão e etc.)</p>
<?php
// Assunto que você receberá em seu e-mail!
$titulo = "Mensagem de $nome - Revolution Sims - Fale Conosco";
// Assunto do e-mail auto resposta que o visitante receberá!
$assunto_r = "$nome, recebemos sua mensagem de contato!";
// Endereço do seu site que aparecerá no e-mail auto resposta!
$url_site = "Revolution Sims - The Sims 3";
// Nome da assinatura que aparecerá no e-mail auto resposta!
$nome_ass = "Equipe Revolution Sims";
// Mensagem que será enviada no e-mail auto resposta!
$resposta =
"Obrigado $nome por ter entrado em contato conosco.\nEm breve você receberá nosso contato.\n
Este é um e-mail automático, favor não respondê-lo!
Atenciosamente,
$nome_ass
$url_site";
$nome = $_POST["nome"]; //pegando a variavel nome
$email = $_POST["email"]; // pegando a variavel email
$assunto = $_POST["assunto"];
$ip = $_SERVER['REMOTE_ADDR']; // Envia o IP do visitante para o seu e-mail!
$enviar .= "De: Contato WEB\n";// Frase que aparecerá no topo da mensagem(email)!
$enviar .= "IP registrado: $ip\n";
$enviar .= "Nome do contato: $nome\n";
$enviar .= "E-mail: $email\n------------------------------------------------------------\n";
$enviar .= "Assunto: $assunto\n\n";
$enviar .= "Mensagem: $mensagem\n";
$rh="noreply@revolutionsims.co.cc"//
LINHA 292 >>>>>$mailto="revolutionsims@revolutionsims.co.cc";
mail($mailto, $titulo, utf8_decode($enviar), "From: $email"); // utf8 é uma funçaõ para aceitar acentos da lingua portuguesa
mail($email, $assunto_r, utf8_decode($resposta), "From: $rh");
?><script language="JavaScript">alert('A sua mensagem foi enviada com sucesso!');
location.href='index.php';</script><p align="center"><br>
</p>
</p>
</form>
<script
language=JavaScript>
<!--
window.open = SymRealWinOpen;
//-->
</SCRIPT>
</div>
<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
<div id="footer">
<p class="copyright" align="center"><span class="copyright"><span class="copyright">The Sims, Spore e Sim City são marcas da Electronic Arts Inc. Todos os direitos reservados.<br />
<strong>©</strong>Revolution Sims - 2009 </span></span></p>
<p class="copyright" align="center"><img src="ts3_icon.png" width="55" height="54" longdesc="ts3_icon.png" /><img src="spore_icon.png" width="55" height="55" longdesc="spore_icon.png" /><img src="simcity_icon.png" width="55" height="55" longdesc="simcity_icon.png" /></p>
<!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>
Linha 292: $mailto="revolutionsims@revolutionsims.co.cc";
Como resolvo isso?
Carregando comentários...