Working on my pc, but not my VPS. When I go to the row 95, I can't find anything that could be an error?
http://puu.sh/i6sYE/235af65958.png
I also forgot to mention that its only happening on register page.
Printable View
Working on my pc, but not my VPS. When I go to the row 95, I can't find anything that could be an error?
http://puu.sh/i6sYE/235af65958.png
I also forgot to mention that its only happening on register page.
Syntax error in fresh clean install would be kind of odd, even more since it was working on my pc before and now its not on my vps.
Quote:
<?php
if(basename($_SERVER["PHP_SELF"]) == "register.php"){
die("403 - Access Forbidden");
}
if(isset($_SESSION['id'])){
echo "<meta http-equiv=refresh content="0; url=?base=ucp">";
}
else{
echo "<h2 class="text-left">Registration</h2><hr/>";
if (@$_POST["register"] != "1") {
?>
<form action="?base=main&page=register" method="POST" role="form">
<div class="form-group">
<label for="inputUser">Username</label>
<input type="text" name="musername" maxlength="12" class="form-control" id="inputUser" required autocomplete="off" placeholder="Username">
</div>
<div class="form-group">
<label for="inputPass">Password</label>
<input type="password" name="mpass" maxlength="30" class="form-control" id="inputPass" required autocomplete="off" placeholder="Password">
</div>
<div class="form-group">
<label for="inputConfirm">Confirm Password</label>
<input type="password" name="mpwcheck" maxlength="30" class="form-control" id="inputConfirm" required autocomplete="off" placeholder="Confirm Password">
</div>
<div class="form-group">
<label for="inputEmail">Email</label>
<input type="email" name="memail" maxlength="50" class="form-control" id="inputEmail" required autocomplete="off" placeholder="Email">
</div>
<b>reCaptcha</b>
<?php
require_once('assets/config/recaptchalib.php');
$error = null;
$publickey = "6LemqAwAAAAAAF4dIpSjTB3GJt1ax0MRQ9FvOX_T";
$privatekey = "6LemqAwAAAAAAO69RT3j9M1eHPX_ahhmC6Gakuwb";
echo recaptcha_get_html($publickey, $error);
?>
<br/>
<input type="submit" class="btn btn-primary" name="submit" alt="Register" value="Register »"/>
<input type="hidden" name="register" value="1" />
</form>
<br/>
<?php
} else {
if (!isset($_POST["musername"]) OR
!isset($_POST["mpass"]) OR
!isset($_POST["mpwcheck"]) OR
!isset($_POST["memail"]) OR
!isset($_POST["recaptcha_response_field"])) {
die ("<div class="alert alert-error"><b>Error A:</b> Please fill in the correct ReCAPTCHA code!<br/><a href="?base=main&page=register" class="areg">« Go Back</a></div>");
}
$getusername = $mysqli->real_escape_string($_POST["musername"]); # Get Username
$username = preg_replace("/[^A-Za-z0-9 ]/", '', $getusername); # Escape and Strip
$password = $_POST["mpass"]; # Get Password
$confirm_password =$_POST["mpwcheck"]; # Get Confirm Password
$email = $mysqli->real_escape_string($_POST["memail"]);
$birth = "1990-01-01";
$ip = getRealIpAddr();
$continue = false;
require_once('assets/config/recaptchalib.php');
$publickey = "6LemqAwAAAAAAF4dIpSjTB3GJt1ax0MRQ9FvOX_T";
$privatekey = "6LemqAwAAAAAAO69RT3j9M1eHPX_ahhmC6Gakuwb";
$resp = null;
$danger = null;
if ($_POST["recaptcha_response_field"]) {
$resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]);
if ($resp->is_valid) {
$continue = true;
}
}
if (!$continue) {
echo ("<div class="content"><div class="contentbg registerbg"></div><div class="body_register"><div class="alert alert-danger"><b>Error:</b> Please fill in the correct ReCAPTCHA code!<br/><a href="?base=main&page=register" class="areg">« Go Back</a></div></div></div>");
} else {
$select_user_result = $mysqli->query("SELECT id FROM accounts WHERE name='".$username."' OR email='".$email."' LIMIT 1");
$returned = $select_user_result->num_rows;
if ($returned > 0) {
echo ("<div class="alert alert-danger"><b>Error:</b> This username or email is already used!<br/><a href="?base=main&page=register">« Go Back</a>");
} else if ($password != $confirm_password) {
echo ("<div class="alert alert-danger">Passwords didn't match!<br/><a href="?base=main&page=register">« Go Back</a></div></div></div>");
} else if (strlen($password) < 4 || strlen($password) > 12) {
echo ("<div class="alert alert-danger">Your password must be between 4-12 characters<br/><a href="?base=main&page=register">« Go Back</a>");
} else if (strlen($username) < 4 || strlen($username) > 12) {
echo ("<div class="alert alert-danger">Your username must be between 4-12 characters<br/><a href="?base=main&page=register">« Go Back</a>");
} else if (!strstr($email, '@')) {
echo ("<div class="alert alert-danger">You have filled in a wrong email address<br/><a href="?base=main&page=register">« Go Back</a>");
} else {
//All data is ok
$password = sha1($password);
$insert_user_query = "INSERT INTO accounts (`name`, `password`, `ip`, `email`, `birthday`) VALUES ('".$username."', '".$password)."', '".$ip."', '".$email."', '".$birth."')";
$mysqli->query($insert_user_query);
echo"
<br/><div class="alert alert-success"><b>Success!</b> Please login, and head to the downloads page to get started!</div>
";
}
}
}
}
?>
Line 95 ".$password)." - > ".$password."
Not sure why you set it up to $password = sha1($password);
instead of using .hash("sha1", $password) at line 95, but yeh, the ) after password gives the syntax error.
I pushed out an updated register.php today, and I somehow missed that error. Glad to see it was reported quickly!
Thanks for reporting, fixed version is on the github so future installs won't have this issue.
Edit 5/31/15: Added some more edge case checks. My goal is to have the CMS handle all errors that may occur.
Update 6/6/2015: Released v1.07. Changes can be seen here: https://github.com/greenelfx/MapleBi...v1.06...master
Update status will be updated in your dashboards within the next 24 hours.
If you are using a version older than v1.05 it is HIGHLY RECOMMENDED that you update
Just a few suggestions I've come up so you can add it for the vanilla release.
- Profile names should be able to be set in the registration form (disabled by default but can be enabled via Admin panel)
- Birthdays should be able to be set in the registration form (disabled by default but can be enabled via Admin panel)
- There should be an option where we could force the user to not have a profile name that is the same (or similar, perhaps) as their username.
- The ticket should indicate a Closed ticket when actually viewing the ticket (not just tell me it's closed in the ticket list).
- If a user adds a comment after the ticket has been closed, there is no way for the administrator to see that comment. There should be an ability to either view closed tickets or closed tickets with new comments (and the ability to re-open them).
- A Knowledgebase maybe? With an ajax search function?
- GMs, not just Admins should be able to reply to tickets as well.
- Admins should be able to add on more details on how to set up/download the server in the Downloads page without modifying the code.
Fatal error: Call to a member function fetch_assoc() on a non-object in C:\AppServ\www\MS\assets\config\afuncs.php on line 24
Notice: Undefined variable: getn2 in C:\xampp\htdocs\MS\assets\config\afuncs.php on line 24
Notice: Undefined index: debug in C:\xampp\htdocs\MS\sources\structure\header.php on line 47
Inadvertently stumbled across an issue with voting. I have fixed it and committed it to GitHub.
This issue is critical. YOU MUST UPDATE MAPLEBIT ASAP
There's a few issues with the $show arrays in rankings.php. There might be more, but these are the ones for explorer jobs.
Warrior
MagicianCode:Maplebit
$show = "AND c.job = 100 OR c.job = 110 OR c.job = 120 OR c.job = 130 OR c.job = 121 OR c.job = 112 OR c.job = 122 OR c.job = 132";
Fixed
$show = "AND c.job = 100 OR c.job = 110 OR c.job = 111 OR c.job = 112 OR c.job = 120 OR c.job = 121 OR c.job = 122 OR c.job = 130 OR c.job = 131 OR c.job = 132";
BowmanCode:Maplebit$show = "AND c.job = 210 OR c.job = 220 OR c.job = 230 OR c.job = 211 OR c.job = 221 OR c.job = 231 OR c.job = 212 OR c.job = 222 OR c.job = 232";
Fixed
$show = "AND c.job = 200 OR c.job = 210 OR c.job = 211 OR c.job = 212 OR c.job = 220 OR c.job = 221 OR c.job = 222 OR c.job = 230 OR c.job = 231 OR c.job = 232";
ThiefCode:Maplebit
$show = "AND (c.job = 300 OR c.job = 310 OR c.job = 320 OR c.job = 311 OR c.job = 321 OR c.job = 312 OR c.job = 322)";
Sorted
$show = "AND (c.job = 300 OR c.job = 310 OR c.job = 311 OR c.job = 312 OR c.job = 320 OR c.job = 321 OR c.job = 322)";
PirateCode:Maplebit
$show = "AND (c.job = 400 OR c.job = 410 OR c.job = 420 OR c.job = 411 OR c.job = 421 OR c.job = 422)";
fixed
$show = "AND (c.job = 400 OR c.job = 410 OR c.job = 411 OR c.job = 412 OR c.job = 420 OR c.job = 421 OR c.job = 422)";
Code:Maplebit
$show = "AND c.job = 500 OR c.job = 500 OR c.job = 510 OR c.job = 520 OR c.job = 511 OR c.job = 521 OR c.job = 512 OR c.job = 522";
Sorted
$show = "AND c.job = 500 OR c.job = 510 OR c.job = 511 OR c.job = 512 OR c.job = 520 OR c.job = 521 OR c.job = 522";
I'm having a bit of a minor issue with rankings where only the first is displayed and the others are broken images.
http://puu.sh/j5vMp/b53705afe1.png
Would you know what the cause of that is? Characters show up fine in rankings tab though.
Thanks, I'll get those job ids pushed out tonight.
I discovered some pretty noticeable bugs in rankings, surprised nobody has reported it yet.
I'll take a look at the front page ranks and get back to you.
Sure thing. I also notice that when I first attempted to scroll over names in rankings the hyper links kept bugging out and being out of place.
To clarify, it's the front page rankings that have problems with the hyper link and not the actual page with the rankings. The issue seems to have resolved itself ... and I didn't touch it. I'll enable error reporting on the main page if if it comes up again (?)
Can I Chinese this website?
I am from Taiwan,I need a chinese website for my player,and this website is clean and beautiful,I like it.
(Sorry,my English is pool QQ)
8/1/15
- Updated CKEditor to v4.5.1 (from 4.4.x).
- Removed PHPMailer, no plans to add mail support.
- Updated FontAwesome to 4.4.0 (from 4.1)
- Updated all themes to Bootstrap v3.3.5 (from v3.3.4)
- revamp of theme switching. Switching bootswatch themes will become a much faster and immersive process.
Good job, thanks for your dedication to the project, definitely a good website by a good developer.
Don't see a reason in revamping the theme switching, it's good as it is (in my opinion at least).
May I suggest, instead of removing the PHPMailer, why not coding a "Forgot/Reset Password" feature that sends it to user's Email?
It shouldn't be much of a trouble :P