| View previous topic :: View next topic |
| Author |
Message |
OSIRIS Grandmaster Cheater
Reputation: 0
Joined: 27 Aug 2006 Posts: 654
|
Posted: Sat Oct 11, 2008 1:59 pm Post subject: Login Page for my website. |
|
|
http://stefon.kicks-ass.net/admin.php
USER: admin
PASS: admin
It is pretty cool because I made it so no MySQL is used. I plan on using this page to modify the 'IP Log' file and edit the 'Ban List'
|
|
| Back to top |
|
 |
sinsgift Cheater
Reputation: -1
Joined: 16 Aug 2007 Posts: 43 Location: behind you
|
Posted: Sat Oct 11, 2008 2:00 pm Post subject: |
|
|
stfux up!
_________________
Watch out im out to get you...
 |
|
| Back to top |
|
 |
Reak I post too much
Reputation: 0
Joined: 15 May 2007 Posts: 3496
|
Posted: Sat Oct 11, 2008 2:00 pm Post subject: |
|
|
| I can't see a session when logging in.
|
|
| Back to top |
|
 |
Localhost I post too much
Reputation: 0
Joined: 28 Apr 2007 Posts: 3402
|
Posted: Sat Oct 11, 2008 2:04 pm Post subject: |
|
|
[Stefon], if there is only 1 username and password (fail) it doesnt need Mysql... you just do
if($_POST['user'] == "admin" && $_POST['pass'] == "admin")
{
logged in!
}
else
{
fail
}
_________________
|
|
| Back to top |
|
 |
OSIRIS Grandmaster Cheater
Reputation: 0
Joined: 27 Aug 2006 Posts: 654
|
Posted: Sat Oct 11, 2008 2:05 pm Post subject: |
|
|
<?php
$username = "admin";
$password = "admin";
if ($_POST['txtUsername'] != $username || $_POST['txtPassword'] != $password) {
?>
<h1>Login</h1>
<form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<p><label for="txtUsername">Username:</label>
<br /><input type="text" title="Enter your Username" name="txtUsername" /></p>
<p><label for="txtpassword">Password:</label>
<br /><input type="password" title="Enter your password" name="txtPassword" /></p>
<p><input type="submit" name="Submit" value="Login" /></p>
</form>
<?php
}
else {
?>
This is where the pr0nz go.
<?php
}
?>
|
|
| Back to top |
|
 |
Localhost I post too much
Reputation: 0
Joined: 28 Apr 2007 Posts: 3402
|
Posted: Sat Oct 11, 2008 2:09 pm Post subject: |
|
|
| Code: | <?php
if(isset($_POST['user']) && isset($_POST['pass']))
{
if($_POST['user'] == "admin" && $_POST['pass'] == "admin")
{
echo "You are logged in!";
}
else
{
echo "epic fail login!";
}
}
else
{
echo '
<form name="form" method="post" action="">
<p><label for="txtUsername">Username:</label>
<br /><input type="text" title="Enter your Username" name="txtUsername" /></p>
<p><label for="txtpassword">Password:</label>
<br /><input type="password" title="Enter your password" name="txtPassword" /></p>
<p><input type="submit" name="Submit" value="Login" /></p>
</form>
';
}
?> |
mines better
_________________
|
|
| Back to top |
|
 |
Reak I post too much
Reputation: 0
Joined: 15 May 2007 Posts: 3496
|
Posted: Sat Oct 11, 2008 2:14 pm Post subject: |
|
|
you can do it with filestreams too.
@localhost:
Yours has mistakes.
Last edited by Reak on Sat Oct 11, 2008 2:15 pm; edited 1 time in total |
|
| Back to top |
|
 |
Localhost I post too much
Reputation: 0
Joined: 28 Apr 2007 Posts: 3402
|
Posted: Sat Oct 11, 2008 2:15 pm Post subject: |
|
|
| localhost wrote: | | Code: | <?php
if(isset($_POST['user']) && isset($_POST['pass']))
{
if($_POST['user'] == "admin" && $_POST['pass'] == "admin")
{
echo "You are logged in!";
}
else
{
echo "epic fail login!";
}
}
else
{
echo '
<form name="form" method="post" action="">
<p><label for="txtUsername">Username:</label>
<br /><input type="text" title="Enter your Username" name="txtUsername" /></p>
<p><label for="txtpassword">Password:</label>
<br /><input type="password" title="Enter your password" name="txtPassword" /></p>
<p><input type="submit" name="Submit" value="Login" /></p>
</form>
';
}
?> |
mines better |
_________________
|
|
| Back to top |
|
 |
Reak I post too much
Reputation: 0
Joined: 15 May 2007 Posts: 3496
|
Posted: Sat Oct 11, 2008 2:16 pm Post subject: |
|
|
| rEakW0n wrote: | you can do it with filestreams too.
@localhost:
Yours has mistakes. |
|
|
| Back to top |
|
 |
Localhost I post too much
Reputation: 0
Joined: 28 Apr 2007 Posts: 3402
|
Posted: Sat Oct 11, 2008 2:17 pm Post subject: |
|
|
i just wipped it together, lol do you think id actually test it?
_________________
|
|
| Back to top |
|
 |
Reak I post too much
Reputation: 0
Joined: 15 May 2007 Posts: 3496
|
Posted: Sat Oct 11, 2008 2:21 pm Post subject: |
|
|
I saw that on first sight without testing^^
|
|
| Back to top |
|
 |
Localhost I post too much
Reputation: 0
Joined: 28 Apr 2007 Posts: 3402
|
Posted: Sat Oct 11, 2008 2:22 pm Post subject: |
|
|
wuts wrong god?
_________________
|
|
| Back to top |
|
 |
Reak I post too much
Reputation: 0
Joined: 15 May 2007 Posts: 3496
|
Posted: Sat Oct 11, 2008 2:23 pm Post subject: |
|
|
OMG U CALL ME GOD?
Form names are txtUsername, txtPassword and you are parsing user, pass.
CANT WORK!!!11
|
|
| Back to top |
|
 |
pedofaggot Expert Cheater
Reputation: 0
Joined: 11 Feb 2007 Posts: 213
|
Posted: Sat Oct 11, 2008 2:24 pm Post subject: |
|
|
| http://www.ihatemisty.com?id=bmekeydg8776i119j25dgxdtzqgqln
|
|
| Back to top |
|
 |
Localhost I post too much
Reputation: 0
Joined: 28 Apr 2007 Posts: 3402
|
Posted: Sat Oct 11, 2008 2:24 pm Post subject: |
|
|
| rEakW0n wrote: | OMG U CALL ME GOD?
Form names are txtUsername, txtPassword and you are parsing user, pass.
CANT WORK!!!11 |
oh lawd, i didnt even look at his HTML
_________________
|
|
| Back to top |
|
 |
|