Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

better login form


ranma's Avatar
Member
0 0

When I go to the challenges page when I am not logged in, I find it annoying that when I login I am redirected to index.php. I have made a script to fix that, or at least I think so:

Username<br>
<input name="user_name" class="textbox" style="width: 100px;" type="text"><br>
Password<br>
<input name="user_pass" class="textbox" style="width: 100px;" type="password"><br>
<input name="remember_me" value="y" type="checkbox">Remember Me<br><br>
<input name="login" value="Login" class="button" type="submit"><br>
</form>
<input type="hidden" name="location" value="<?php echo 'http://www.helboundhackers.org' . $_SERVER['PHP_SELF']?>">```

This sends the form details to the index.php page. On the index.php page, add in a line of code:

```markupheader("Location: " . $_POST['location']);```

Please tell me if this would work or if it would be accepted

ghost's Avatar
0 0

I have a strategy… it's … ,well, lazy, simply, dumb, yet VERY effective:

  1. Copy the URL of the challenge you're on.
  2. Go ahead and login wherever on HBH.
  3. paste the URL of the challenge into the address bar.

genius, isn't it? I'm telling you, laziness pays off sometimes.


ghost's Avatar
0 0

That doesn't work for me..I have to refresh every time i go to a new page..gets very annoying


ranma's Avatar
Member
0 0

I was asking the mods or admins.


ghost's Avatar
0 0

actually, i think the solution is much easier than you wanted to make it

markup<form name="loginform" method="post" action="">

i think that would do the job. i'll see what i can do


ranma's Avatar
Member
0 0

so how's it going?


Uber0n's Avatar
Member
0 0

Hey this is easy ^^

If the cookies are set to 'hellboundhackers.org' they won't work for 'www.hellboundhackers.org' and vice versa.

Solution: if you're logged in to a page and click a link which logs you out, simply remove the 'www.' part from the URL.