[HELP] When you register the ip dosn't show up in ip_reg in the DB [HELP]

Vezel

Member
Nov 20, 2012
92
4
Hi! As the title sais, when I register to my hotel it dosn't take my ip and put it in the ip_reg in the DB. This is how it looks like:
Becouse of this it sais that all users have the same IP adress and I can't IP ban anyone. Please help!
 

Vezel

Member
Nov 20, 2012
92
4
This is my register.php if you need it:
HTML:
<?php
if(isset($_POST['register'])){
    $alertType = "danger"; // danger - warning - success - info
    $alert = "Registration under construction.";
}
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>HabZen Hotel</title>
        <meta name="description" content="HabZen, habbo, hotel, virtual, game" />
        <link rel="stylesheet" href="/web-gallery/css/index.css" type="text/css" />
        <link rel="stylesheet" href="/web-gallery/css/bootstrap.css" type="text/css" />
        <link rel="shortcut icon" href="app/tpl/skins/{skin}/static/images/favicon.gif"/>
        <script type="text/javascript" src="./web-gallery/js/jquery.min.js"></script>
        <script type="text/javascript" src="./web-gallery/js/bootstrap.js"></script>
    </head>
    <body>
        <div id="wrap-slash">
            <div id="wrap-center">
                <a href="index.php" id="logo"></a>
                <div id="users-online">{online} Users Playing!</div>
            </div>
        </div>
       
        <div id="wrap-body">
            <div id="wrap-center">
                <?php if(isset($alert)){ ?>
                <div class="alert alert-<?php echo $alertType; ?>">
                    <?php echo $template->form->error; ?>
                </div>
                <?php } ?>
                <div style="height:360px;">
                    <div id="register-left"></div>
                    <div id="register-right">
                        <div id="title">Register</div>
                        Enter the fields below to start playing.
                        <form id="register" method="post"><br />
                            <input type="text" name="reg_username" id="username" placeholder="Username" autofocus /><br />
                            <input type="text" name="reg_email" id="mail" placeholder="E-mail Adress" autofocus /><br />
                            <input type="password" name="reg_password" id="password" placeholder="Password" /><br />
                            <input type="password" name="reg_rep_password" id="password2" placeholder="Repeat Password" /><br />
                            <input type="submit" name="register" id="submit" value="" />
                        </form>
                    </div>
                    <div id="register-right2"></div>
                </div>
               
                <div id="logo_big"></div>
            </div>
        </div>
       
        <div id="wrap-footer">
            <div id="wrap-center">
                Copyright &copy;  HabZen 2014. All rights reserved to their respective owner(s).<br />
                HabZen is no way affiliated with Sulake Corporation Oy.
            </div>
        </div>
    </body>
</html>
 

Hindi

System.out.println(" ");
Dec 30, 2012
989
192
Hi! As the title sais, when I register to my hotel it dosn't take my ip and put it in the ip_reg in the DB. This is how it looks like:
Becouse of this it sais that all users have the same IP adress and I can't IP ban anyone. Please help!
Does it show ip_last? if yes you can ipban someone.
 

Users who are viewing this thread

Top