[Not really a Release] I got bored -> So here [IP | Date | Text Logger]

Results 1 to 4 of 4
  1. #1
    Not working on UnitedFlyf Mootie is offline
    MemberRank
    Apr 2009 Join Date
    1,589Posts

    Re: [Not really a Release] I got bored -> So here [IP | Date | Text Logger]

    Quote Originally Posted by apixen View Post
    Code:
    <?php
     
    $yourip = $_SERVER['REMOTE_ADDR'];
    $thedate = date("l d F H:i:s");
     
    $fp = fopen("logs.txt", "a");
    fputs($fp, "IP: $yourip - DATE: $thedate\n\n");
    fclose($fp);
     
    ?>

    IP/Date/Even Account Logger.


    Can be edited to log information given in a text field.


    Code:
    <?php
     
    $yourip = $_SERVER['REMOTE_ADDR'];
    $thedate = date("l d F H:i:s");
     
    $fp = fopen("logs.txt", "a");
    fputs($fp, "Information: $_POST['info']; .  IP: $yourip - DATE: $thedate\n\n");
    fclose($fp);
     
    ?>
    Use it the best you can


    You could put it in a management system, a index.php file that no one is allowed to access. It'll log the IP, and the date.

    Greets~

    -Apixen
    paff put it in a forbidden directory with a pass or something xd. People dont take kindly to everyone knowing their IP. Also I like to use html+colors(pretty <:). But yeh a lot of servers need logging(I log pretty much everything that happens on the site(especially donation/admin related)).


  2. #2
    Infraction Banned BGxApixen is offline
    MemberRank
    May 2009 Join Date
    939Posts

    Re: [Not really a Release] I got bored -> So here [IP | Date | Text Logger]

    Quote Originally Posted by mootie View Post
    paff put it in a forbidden directory with a pass or something xd. People dont take kindly to everyone knowing their IP. Also I like to use html+colors(pretty <:). But yeh a lot of servers need logging(I log pretty much everything that happens on the site(especially donation/admin related)).
    Exactly .;3

  3. #3
    Infraction Banned BGxApixen is offline
    MemberRank
    May 2009 Join Date
    939Posts

    [Not really a Release] I got bored -> So here [IP | Date | Text Logger]

    Code:
    <?php
     
    $yourip = $_SERVER['REMOTE_ADDR'];
    $thedate = date("l d F H:i:s");
     
    $fp = fopen("logs.txt", "a");
    fputs($fp, "IP: $yourip - DATE: $thedate\n\n");
    fclose($fp);
     
    ?>

    IP/Date/Even Account Logger.


    Can be edited to log information given in a text field.


    Code:
    <?php
     
    $yourip = $_SERVER['REMOTE_ADDR'];
    $thedate = date("l d F H:i:s");
     
    $fp = fopen("logs.txt", "a");
    fputs($fp, "Information: $_POST['info']; .  IP: $yourip - DATE: $thedate\n\n");
    fclose($fp);
     
    ?>
    Use it the best you can


    You could put it in a management system, a index.php file that no one is allowed to access. It'll log the IP, and the date.

    Greets~

    -Apixen
    Last edited by BGxApixen; 23-05-10 at 02:36 AM.

  4. #4
    Account Upgraded | Title Enabled! Nick1337 is offline
    MemberRank
    May 2009 Join Date
    357Posts

    Re: [Not really a Release] I got bored -> So here [IP | Date | Text Logger]

    Thanks good job.



Advertisement