Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Olá pessoa,
Meu problema é o seguinte, a parte FUNCIONAL do script funciona PERFEITAMENTE ! Porém eu decidi colocar um verificador de imagem nele...
Só que agora ele fica me mandando a seguinte mensagem:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/poetawd/public_html/webacc/requestaccount.php:1) in /home/poetawd/public_html/webacc/requestaccount.php on line 11
O script pode ser visto aqui:
http://www.dimensions.com.br/webacc/requestaccount.php
<script language='JavaScript'> <!-- function setFocus() { document.verifica.key.focus(); } --> </script><?session_start();$key=$_POST['key'];?><?PHPrequire_once("include.php");echo'<p>Here you can request your '.SHARD_NAME.' account. Justfill in the form below and click on "Request Account".A verification email will be sent to the email you supply.</p>';$p=$_GET["p"];$qemail=$_POST["email"];$qemail2=$_POST["veremail"];$accname=$_POST["accname"];//printf(":: Logged IP: $REMOTE_ADDR ::<br><br>"); if($p=='1') { buildform(2); return; } if($qemail!=$qemail2) { printf("The email addresses do not match!<br><br>"); buildform(2); return; } $result=$accdb->query("SELECT name FROM $accdb->mysql_table WHERE name='$accname'"); if(mysql_num_rows($result) > 0) { printf("The account $accname already exists!<br><br>"); buildform(2); return; } $result=$accdb->query("SELECT email FROM $accdb->mysql_table WHERE email='$email'"); if(mysql_num_rows($result) > 0) { printf("An account has already been registered to $email!<br><br>"); buildform(2); return; } if($email=="" or $accname=="" or $key=="") { printf("Please fill out the form correctly!"); buildform(2); return; } if($key){if($key<>$code){?><script language="javascript"><!--alert("Sorry...Wrong Code!!! Exact code was <?print $code;?>. Try again."); //--></script><? buildform(2); return; } else { sendmails($email,$accname,$REMOTE_ADDR); }} function sendmails($e,$a,$IP){ $crypt_email=md5($e); $adminmail=ACCOUNTS_EMAIL; $subject = "".SHARD_NAME." - Account request"; $message = "Hi,\nYou are trying to register the account:\n$a\nPlease visit\n".SHARD_WEBSITE."/requestaccountverify.php?v=$crypt_email&ac=$a&em=$e\nin order to verify your new account request!"; mail($e,$subject,$message,"From: $adminmail"); $adminsubject = "".SHARD_NAME.": Someone requested an account!"; $adminmessage = "Someone is requesting an account!\n\nThis email is for information purposes only!\n\nDetails of request sender:\n\nEmail: $e\nAccount: $a\nLogged IP: $IP"; mail($adminmail,$adminsubject,$adminmessage,"From: $adminmail"); echo "The email has been sent with the information to activate your account!<br> Please take the time to read it all carefuly!<br> Remember to check your Junk-Mail folder too!<br> <br> <b><a href=\"java script:window.close()\">>>>Close Window<<<</a></b><br> ";}function buildform($phase){echo "<body onLoad=\"setFocus()\"><center><form action=\"".$PHP_SELF."?p=$phase\" method=\"post\"> <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"426\" align=\"center\"> <tr> <td align=\"right\"><font size=\"2\"><b>Account Name: <br>Email Address: <br>Email Confirm: </b></font></td> <td><input type=\"text\" name=\"accname\" size=\"41\"><br><input type=\"text\" name=\"email\" size=\"41\"><br><input type=\"text\" name=\"veremail\" size=\"41\"></td> </tr> </table> </div> <p><b> <img src='image.php'> <form action=\"requestaccount.php\" method=\"post\" name=\"verifica\" onsubmit=\"setFocus();\"> <input type=\"text\" name=\"key\" size=17 maxlength=15 ><br> </form><input type=\"submit\" value=\"Request Account\"></form></center>";}?>
ALguém tem alguma ideia de como solucionar ??
Valeu !
Carregando comentários...