Jump to content

Member Login/Console


SuperS82

Recommended Posts

Hey I have this script that lets you login, but once you enter your name and pass the page loads fine except for one small error.

 

Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\btcs3\console.php on line 15

 

This is the console.php file contents:

<?PHP

include('config.php');

include('themes/' . $theme . '/header.php');
$membername = $_SESSION['membername'];
$memberpass = $_SESSION['memberpass'];


if(checkLogin($membername, $memberpass)) {
$query = 'UPDATE {$dbprefix}members SET lastlogin = UNIX_TIMESTAMP(), loggedin = "1", ipnum = "'.$ip." WHERE username = '$membername';
$result = mysql_query($query)
	or die(mysql_error());

$memrank = getMemberInfo("rank", $membername);
$memid = getMemberInfo("id", $membername);
$memrankcat = getRankCatInfo("name", $memrank);
define("MEMBER_RANK", $memrank);
define("MEMBER_NAME", $membername);
define("MEMBER_PASS", $memberpass);

if($pid == "") {
	include("include/console/main.php");
}
else {
	$url = getConsoleInfoById("url", $pid);
	include($url);
}
}
else {
echo "
<br>
<center><blockquote>You must login to view this page.</blockquote></center>
";
}

echo "
<table align='center' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td class='smalltext'><br><br><b>Powered By: <a href='http://www.bluethrust.com' target='_blank'>BT Clan Scripts v3</a></b><br><br></td>
</tr>
</table>
";

include("themes/$theme/footer.php");


?>

 

Can someone please show me what I am doing wrong?

 

PHP/5.3.4

MySQL client version: mysqlnd 5.0.7-dev - 091210 - $Revision: 304625 $

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.