antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
szucs2014

Problema Site Ajudem Por Favor

Question

Olá coloquei o site metin2 no cpanel mas tem um problema na pagina de registro o captcha não aparece me ajudem +1

Imagem colocada

 

Código: 

 

<h2>Registro</h2>

</div>

<div id="left_content">

<?PHP

$regCoins = 0; // Startcoins

$laufZeit = 365; //Tage autoloot,safebox

$calcLZ = (60*60*24)*365;

$expireStamp = time()+$calcLZ;

$expireDate = date("Y-m-d H:i:s",$expireStamp);

if($serverSettings['register_on'] && (!isset($_SESSION['user_admin']) && !checkInt($_SESSION['user_admin']) && !$_SESSION['user_admin']>=0)) {

if(isset($_POST['submit']) && $_POST['submit']=="registrieren") {

if((checkAnum($_POST['account']) && strlen($_POST['account'])>=8 && strlen($_POST['account'])<=16) && checkAnum($_POST['pass']) && strlen($_POST['pass'])>=8 && strlen($_POST['pass2'])<=16 && !empty($_POST['pass2']) && (checkName($_POST['uname']) && strlen($_POST['uname'])>=3 && strlen($_POST['uname'])<=20) && $_POST['pass']==$_POST['pass2'] && checkMail($_POST['email']) && strlen($_POST['email'])<=40 && $_POST['captcha']==$_SESSION['captcha_id'] && $_POST['email']==$_POST['email2'] && (checkAnum($_POST['sicherheitsa']) && strlen($_POST['sicherheitsa'])>=3 && strlen($_POST['sicherheitsa'])<=16) && checkInt($_POST['sicherheitsf']) && (checkAnum($_POST['loeschcode']) && strlen($_POST['loeschcode'])==7)) {

if(isset($_POST['agb'])) {

$hashSF = md5($_POST['sicherheitsa']);

$sfNum = mysql_real_escape_string($_POST['sicherheitsf']);

$lcode = mysql_real_escape_string($_POST['loeschcode']);

$zuFall = rand(99999,999999999);

$userpass=mysql_real_escape_string($_POST['pass']);

$aktivHash = ($serverSettings['mail_activation']) ? md5($zuFall):'';

$accountStatus = ($serverSettings['mail_activation']) ? 'BLOCK':'OK';

$sqlCmd = "INSERT INTO account.account

(login,password,real_name,email,social_id,question1,answer1,create_time,status,coins,autoloot_expire,safebox_expire,web_aktiviert)

VALUES

('".$_POST['account']."',PASSWORD('".$userpass."'),'".mysql_real_escape_string($_POST['uname'])."','".mysql_real_escape_string($_POST['email'])."','".$lcode."','".$sfNum."','".$hashSF."','".$sqlZeit."','".$accountStatus."','".$regCoins."','".$expireDate."','".$expireDate."','".$aktivHash."')";

$sqlQry = mysql_query($sqlCmd,$sqlServ);

if($sqlQry) {

$absender = $serverSettings['titel']." Registration";

$email = $serverSettings['reg_mail'];

$empfaenger = $_POST['email'];

$mail_body = "Hallo ".$_POST['uname'].",

A sua inscricao na ".$serverSettings['titel']." foi um sucesso! Para jogar no servidor, voce tem que ativar a sua conta.

Voce pode fazer isso atraves do seguinte link:

".$serverSettings['url']."/index.php?s=login&do=aktivieren&hash=".$aktivHash."

Seus dados sao:

Sua Conta: ".$_POST['account']."

Senha: ".$userpass."

Senha Apagar Char: ".$lcode."

Pergunta Secreta: ".$sFrage[$sfNum]."

Resposta: ".$_POST['sicherheitsa']."

Divirta-se a jogar,

Seu ".$serverSettings['titel']."-Team

Este endereco de e-mail foi gerado automaticamente. Por favor nao envie respostas para este endereco";

$titel = "Registro ".$serverSettings['titel'];

$header = "X-Priority: 3n";

$header .= "X-Mailer: ".$serverSettings['titel']." Homepage Mailern";

$header .= "MIME-Version: 1.0n";

$header .= "From: ".$absender." <".$serverSettings['reg_mail'].">n";

$header .= "Reply-To: ".$serverSettings['reg_mail']."n";

$header .= "Content-Type: text/plain; charset=iso-8859-1n";

if($serverSettings['mail_activation']) {

mail($empfaenger, $titel, $mail_body, $header);

echo'<p class="meldung">Conta criar com sucesso por favor verifique o E-Mail.</p>';

}

else {

echo'<p class="meldung">Conta criada com sucesso., voce pode logar agora.</p>';

}

}

else {

echo'<p class="meldung">Registo falhou: A conta ja existe.</p>';

}

}

else {

echo 'Eu li e aceito os <a href="?s=agb">Termos de Uso</a>';

}

}

else {

echo'<p class="meldung">Registro falhou: especifique todos os campos corretamente</p>';

}

}

?>

<p>Todos os campos sao de preenchimento obrigatorio e deve ser concluido.<?PHP if($serverSettings['mail_activation']) { echo'<br/><b>A conta sera ativada por e-mail, assim que entrar em um e-mail correto!</b>'; } ?></p>

<form action="index.php?s=register" method="POST">

<table>

<tr>

<th class="topLine">Login:</th>

<td class="tdunkel"><input class="bar" type="text" name="account" maxlength="16" size="16"/> 8-16 Caracteres (Num a-Z,0-9)</td>

</tr>

<tr>

<th class="topLine">Nome:</th>

<td class="thell"><input class="bar" type="text" name="uname" maxlength="16" size="16"/> 3-20 Caracteres (Num a-Z,0-9)</td>

</tr>

<tr>

<th class="topLine">Senha:</th>

<td class="tdunkel"><input class="bar" type="password" name="pass" maxlength="16" size="16"/> 8-16 Caracteres (Num a-Z,0-9)</td>

</tr>

<tr>

<th class="topLine">Repita Senha:</th>

<td class="thell"><input class="bar" type="password" name="pass2" maxlength="16" size="16"/> Repita Senha</td>

</tr>

<tr>

<th class="topLine">E-Mail:</th>

<td class="tdunkel"><input class="bar" type="text" name="email" maxlength="50" size="25"/> Max. 40 Caracteres </td>

</tr>

<tr>

<th class="topLine">Repita E-Mail:</th>

<td class="thell"><input class="bar" type="text" name="email2" maxlength="50" size="25"/> Repita E-Mail </td>

</tr>

<tr>

<th class="topLine">Senha Apagar Char:</th>

<td class="tdunkel"><input class="bar" type="text" name="loeschcode" maxlength="7" size="7"/> 7 Caracteres (Num a-Z,0-9)</td>

</tr>

<tr>

<th class="topLine">Pergunta Secreta:</th>

<td class="thell">

<select name="sicherheitsf">

<?PHP

foreach($sFrage AS $fragew => $frage) {

echo'<option value="'.$fragew.'">'.$frage.'</option>';

}

?>

</select>

</td>

</tr>

<tr>

<th>Resposta Secreta:</th>

<td><input type="text" class="bar" name="sicherheitsa" maxlength="16" size="16"/> 3-16 Caracteres (Num a-Z,0-9)</td>

</tr>

<tr>

<th class="topLine">Captcha:</th>

<td class="tdunkel"><img src="./captcha/captcha.php" title="Captcha"/> <input class="bar" type="text" name="captcha" maxlength="5" size="5"/></td>

</tr>

<tr>

<th></th>

<td><input type="checkbox" name="agb" /> Eu li e aceito os <a href="?s=agb">Termos de Uso</a> </td>

</tr>

<tr>

<th class="topLine" style="text-align:center;" colspan="2"><input type="submit" class="btn" name="submit" value="Registrar"/> <input type="reset" class="btn" value="Resetar"/></th>

</tr>

</table>

</form>

<?PHP

}

else {

echo'<p class="meldung">O registro esta desativado ou você ja esta registrado. Nao pode haver outra conta ser criada.</p>';

}

?> 

 

Obrigado  +1

Share this post


Link to post
Share on other sites

8 answers to this question

  • 0

em que pasta é que está o captcha.php?

 

Edit. e para o botão registar funcionar terás que editar isto 

if(isset($_POST['submit']) && $_POST['submit']=="registrieren")

Share this post


Link to post
Share on other sites
antiblock
https://i.imgur.com/aJ17bf7.gif
  • 0

Tens que fazer upload da captcha para o cpanel também pois ele nao encontra o caminho da captch

Share this post


Link to post
Share on other sites
  • 0

em que pasta é que está o captcha.php?

 

 

pasta captcha amigo mais os arquivos do site ta na pasta do subdominio

Share this post


Link to post
Share on other sites
  • 0

Para o botão registar funcionar terás que editar isto

if(isset($_POST['submit']) && $_POST['submit']=="registrieren")

pasta captcha amigo mais os arquivos do site ta na pasta do subdominio

tens que meter a pasta captcha na pasta do subdominio

Share this post


Link to post
Share on other sites
  • 0

Vai ao directório ./captcha/captcha.php, abre esse ficheiro e vê o directório da imagem, depois confirma que a imagem existe no respectivo directório.

Share this post


Link to post
Share on other sites
  • 0

Vai ao directório ./captcha/captcha.php, abre esse ficheiro e vê o directório da imagem, depois confirma que a imagem existe no respectivo directório.

 

 

Os arquivos estão la mas não aparece imagem rsrs

Share this post


Link to post
Share on other sites
  • 0

Os arquivos estão la mas não aparece imagem rsrs

Não te adianta meter o captcha se o botão não funcionar

Share this post


Link to post
Share on other sites
  • 0

Não te adianta meter o captcha se o botão não funcionar

removi o captcha ta normal agr

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this