0

hi guys!
I deleted my scrit and installed a new script and i cant log in but can creat new users and new Global admin.
hav checked my login.php, member/index.php but the codes have no error yet i cant log in.
below are my codes
login.php

<?php
ob_start();
session_start();
include "moduls/settings.php"; include "moduls/connect.php"; include "moduls/func.php";
//STEP DOWN VALUES
$username=$_POST["username"];
$password=$_POST["password"];
//CLEANUP VALUES
$username=cleanvalues($username);
$password=cleanvalues($password);
$password=md5($password);
$checkuser=mysql_query("SELECT username FROM b_users WHERE username='$username' AND validated=0");
$checknum=mysql_num_rows($checkuser); if($checknum>0)
{ header("Location:activate.php");
exit(); } else
{ $checkquery=mysql_query("SELECT username, password, validated FROM b_users WHERE username='$username' AND password='$password' AND validated=1") or die(mysql_error());
$num=mysql_num_rows($checkquery);
if($num>0) { if(mysql_num_rows(mysql_query("SELECT * FROM b_users WHERE username='$username' AND banned=1"))>0)
{ $regmsg="You Have Been Banished By one of the Administrator! .How do You feel.....lol";
header("location:index.php?msg=$regmsg");
exit(); } $_SESSION["user"]=$username;
header("location:member/index.php");
} else
{ $regmsg="incorrect username and/or password, make sure you type correctly your username & password !";
header("location:index.php?msg=$regmsg"); } } } ?>


Directory Tree: root /public_html /member/index.php
<?php ERROR_REPORTING(0);

/*
Project: PBNL Forum v2.3

Coded By: Oyebamiji Akorede (Harkorede)



Email: (harkorede01@gmail.com)

CellPhone +2348029828364

Twitter: @harkorede94


*/
include("../init.php");
if(!isloggedin())
{ header('location: ../index.php');
exit(); } else { $user=$_SESSION["user"];
$banned=user_info($user, banned);
if($banned==0) { updateonline(); } else { header('location: ../logout.php'); exit(); } }
echo"<div class='body_width'>"; echo"<div class='page_w'>"; include "../topnav.php";
echo"<div class='clearfix'></div>
"; echo"<div style='clear: both'></div><br>";
echo"<center>";
include "../ads.php";
fblike(); echo"</center>";
echo"<center><div class='public_message'><div class='success'></div></div></center>"; $online=mysql_num_rows(mysql_query("SELECT DISTINCT(chatter) FROM b_chatonline"));
$recent=date("U")-900; $onlineusers=mysql_num_rows(mysql_query("SELECT * FROM b_users WHERE lasttime>'$recent'"));
if(isset($_POST["update"])) { $status=$_POST["status"];
$status=cleanvalues($status);
mysql_query("UPDATE b_users SET status='$status' WHERE username='$username'");
echo"<div class='msg'>Your status has been updated</div>"; } $status=user_info($user, status);
$status=cleanvalues2($status);
$msg=$_GET["msg"];
if(!empty($msg))
{ echo"<div class='ms'>$msg</div>";
} echo"<div class='grid3' style='margin-top: 5px;'>
</div>";
echo"<title>$config->title » Members Section</title>";
?><style type="text/css">
<!--.style7 { color: #FFFFFF; font-size: 13px; font-family: Arial, Helvetica, sans-serif; } .style70 {font-size: 12px} .style73 {color: #00FF00}
--></style><div class="grid3 middle" align="center"><div class="b_head"><strong>»</strong><?php echo $config->title; ?> Main Panel<strong>«</strong></div><div style=""><form action="#" method="post"><p><li><center><input type="text" name="status" value="<?php echo $status; ?>"></li><li><center><input type="submit" name="update" value="Update Your Mood" class="button"></center></li></ul></p><div class="error_message"></div><div id="site-alert"><span class="prefix"><?php
myupdates(85);
?></div></div><div align="center"><ul class="dashboard-links"><li class="dashboard_button"><a href="../forum"><img src="/images/brow.png" border="0"><br /><span class="dashboard_button_heading">FORUMS</span></a><br></li><li class="dashboard_button"><a href="../tutorials"><img src="/images/books.png" border="0"><br />
<span class="dashboard_button_heading">TUTORIAL SECTION</span></a><br></li><li class="dashboard_button"><a href="../upload"><img src="/images/upload.png" border="0"><br />
<span class="dashboard_button_heading">APP DOWNLOAD ZONE</span></a><br></li><li class="dashboard_button"><a href="../music"><img src="/images/music.png" border="0"><br /><span class="dashboard_button_heading">MUSIC DOWNLOADS</span></a><br></li><li class="dashboard_button"><a href="../video"><img src="/images/video1.png" border="0" /><br /><span class="dashboard_button_heading">PC VIDEOS SECTION</span></a><br></li><li class="dashboard_button"><a href="../movies"><img src="/images/video.png" border="0"><br/>
<span class="dashboard_button_heading">MOBILE VIDEOS</span></a></li><li class="dashboard_button"><a href="../chat"><img src="/images/chat1.png" border="0"><br /><span class="dashboard_button_heading">CHATROOM </span></a></li><li class="dashboard_button"><a href="online.php"><img src="/images/online.png" border="0"><br/><span class="dashboard_button_heading">ONLINE MEMBERS</span></a></li></ul><div class="style7" style="background:#000033; padding: 3px;"><span class="style70"><a href="http://fb.me/harkorede94"style="color:#ffffff">Create a site like this</a> ¶ <a href="../content/about.php"style="color:#ffffff"> About Us</a> ¶
<a href="../content/advertise.php"style="color:#ffffff">Advertise with us</a></span>  ¶ <a href="../invite.php"style="color:#ffffff">Invite your Friends</a> ¶
<a href="../content/privacy.php"style="color:#ffffff">Privacy Policy</a></span></span></div></div></div><div class="clearfix"></div></div></div>
<!-- Footer --><?php include "../footer.php"; ?><br /><!-- End Footer --> </body>  </html>

Really need to get this error in order to get my site back on track.,....
need Advice pls.
http://www.planetmobile.tk/index.php

2
Contributors
1
Reply
20
Views
3 Years
Discussion Span
Last Post by pritaeas
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.