[Settings] [Home] [Contact] [Catalog] [Search] [Thread list] [Report] [Watcher] [PMs] [Admin]
[Return]

Report a post

Preview
>>69395
https://up.heyuri.net/src/2930.7z is what were using
what im trying to use as a log is this:
my $ip = $ENV{'HTTP_CLIENT_IP'} 
       || $ENV{'HTTP_X_FORWARDED_FOR'} 
       || $ENV{'REMOTE_ADDR'} 
       || 'UNKNOWN';
    my $timestamp = localtime();
    open(my $log_fh, '>>', 'log.txt') or warn "Nao da pra abrir o log: $!";
    flock($log_fh, 2);  # exclusive lock
    print $log_fh "[$timestamp | Turn: $HislandTurn] LOGIN on (ID: $HcurrentID) from IP: $ip\n";
    close($log_fh);
    }

i want it to look the one you had here: https://dafai7al4bivx5.archive.ph/WF5LH/321a762c63bfb88642b877f1d463c1cb2008b0c3.jpg
i dont know if im placing it wrong or what but it doesnt work right. most annoying part is it logs the info everytime you click 'to development' instead of every actual login.

what does/did yours look like, and where did you place it in the file(I think that matters?), also WHICH file, hako-main or hako-top? hopefully we can ban people manually from htaccess from there.
we were already going to, but we will credit you. Im pretty sure most of our users use heyuri anyway though.


thanks
Post number No.69404
Board Site Discussion@Heyuri
Optional. Describe what's wrong with it.