Jump to content
Fórum Script Brasil
  • 0

Erro no script login


Gieves
 Share

Question

ola amigos instalei meu script www.brasilbux.tk mas esta dando erro no login Parse error: syntax error, unexpected $end in /srv/disk9/1078636/www/brasilbux.tk/login.php on line 102

segue abaixo o codigo se puderem me ajudem

<?php session_start();

if(isset($_COOKIE["usNick"]) && isset($_COOKIE["usPass"])){ ?>

<META HTTP-EQUIV=REFRESH" CONTENT="0;URL=myaccount.php">

<?php

exit();

}

$display_error = "";

$username = "";

if ($_POST['username]) {

$username = $_POST['username'];

if( strtolower($_POST['code'])!= strtolower($_SESSION['texto'])){

$display_error = "* Security Code Error"; // error language

include ('error.php');

exit();

}else{

include('includes/config.inc.php');

$username=uc($_POST['username']);

$pass=uc($_POST['password']);

$password = sha1($pass);

if ($password==NULL) {

$display_error = "* All fields are required"; // error language

include ('error.php');

exit();

}else{

$myDb->connect();

$query = mysql_query("SELECT username,password FROM yob_users WHERE username = '$username'") or die(mysql_error());

$data = mysql_fetch_array($query);

$myDb->close();

if($data['password'] != $password) {

$display_error = "* Please, Check your username/password."; // error language

include ('error.php');

exit();

}else{

$myDb->connect();

$query = mysql_query("SELECT username,password FROM yob_users WHERE username = '$username'") or die(mysql_error());

$row = mysql_fetch_array($query);

$myDb->close();

$nicke=$row['username'];

$passe=$row['password'];

setcookie("usNick",$nicke,time()+7776000);

setcookie("usPass",$passe,time()+7776000);

$lastlogdate = date("F j, Y - g:i a");

$lastip = getRealIP();

$myDb->connect();

$querybt = "UPDATE yob_users SET lastlogdate='$lastlogdate', lastiplog='$lastip' WHERE username='$nicke'";

mysql_query($querybt) or die(mysql_error());

$myDb->close(); ?>

<META HTTP-EQUIV="REFRESH" CONTENT="0;URL=myaccount.php">

<?

}

}

}

}else{

include ('header.php');

?>

<div id="content">

<p class="error"><?php echo $display_error;?></p>

<form action="login.php" method="post" class="f-wrap-1">

<div class="req"><a href="signup.php">Not Registered?</a><br /><a href="recoverpass.php">Forgot your Password?</a></div>

<center><a href="http://www.neobux.com/?r=rh123"target="_blank" ><img src="http://images.neobux.com/imagens/banner9/?u=rh123&amp;u3=9165176" width="468" height="60" /></a>

</center>

<fieldset>

<h3>Member Login</h3>

<label for="firstname"><b>Username:</b>

<input id="username" name="username" type="text" class="f-name" autocomplete="off" tabindex="1" /><br />

</label>

<label for="password"><b>Password:</b>

<input id="password" name="password" type="password" class="f-name" autocomplete="off" tabindex="2" /><br />

</label>

<label for="code"><b>Security Code:</b>

<input id="code" name="code" type="text" class="f-name" autocomplete="off" tabindex="3" /><br />

</label>

<label for="code2"><b>&nbsp;</b>

<img src="image.php?<?php echo $res; ?>" /><br />

</label>

<div class="f-submit-wrap">

<input type="submit" value="Submit" class="f-submit" tabindex="4" /><br />

<a href="http://www.clixsense.com/?3514239" target="_blank"><img src="http://static.clixsense.com/banners/clixsense468x60c.png" border="0" /></a>

</div>

</fieldset>

</form>

<?php

include ('footer.php');

?>

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

olha eu olhei o código e ta faltando fechar uma chave ... so tem que ver onde que fecha ela para não faltar nada do HTML eu nÃo li todo o código para interpreta ele so contei as chaves e ta faltando uma.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Forum Statistics

    • Total Topics
      150.9k
    • Total Posts
      648.8k
×
×
  • Create New...