[ b / jp / o / q / sw / lounge ] [ cgi ] [ up ] [ wiki ]
[Home] [Search] [RSS feed] [Inbox] [Write PM] [Catalog] [Admin]
[Return]
Posting mode: Reply
[]
(for deletion, 8 chars max)
  • Allowed file types are: GIF, JPG, JPEG, PNG, BMP, WEBM, MP4
  • Maximum file size allowed is 9000 KB.
  • Images greater than 200 * 200 pixels will be thumbnailed.
boku

  • 2024/04/26 - Neomenu came back from 2021
  • 2024/04/26 - Museum@Heyuri has been launched
  • 2024/02/27 - Anime nominations and their votings will be held on this table from now on.
  • 2024/01/29 - Try out some extra CSS files: Link


Want your site's banner shown here too? Read this thread and contact me.

34 KB
is there a reason why this is hidden?
i find it cool that this data is veiwable. is teh data sqewd because of bots? will this be added to kokonotsuba? or at least shared with me to put on some pear site?
>>
Hidden most likely because of bots and this data is probably not that useful anyways.
It's the same onlinecounter.php from /Utilities that i stole from ToR, but with a higher time limit.
>>
oh i didn't notice it was in utilities. that place just seemed like some sort of extra that was not used in main script.

now i am thinking it is hidden to just collect the ip and log it for 24 hours

<?php
/*
Online counter for kokonotsuba
from http://php.loglog.jp/
*/
define(USR_LST, "../dat/users.dat");
define(TIMEOUT, 300); // Update every 5 minutes

$usr_arr = file(USR_LST);
touch(USR_LST);

$fp = fopen(USR_LST, "w");
$now = time();
$addr = $_SERVER['REMOTE_ADDR'];

for ($i = 0; $i < sizeof($usr_arr); $i++) {
list($ip_addr,$stamp) = explode("|", $usr_arr[$i]);
if (($now - $stamp) < TIMEOUT && $ip_addr != $addr) {
fputs($fp, $ip_addr.'|'.$stamp);
}
}
fputs($fp, $addr.'|'.$now."\n");
fclose($fp);

$count = count($usr_arr);
$data = '<div style="background-color: #000000; color: #00FF00;">Currently <b>'.$count.'</b> unique user'.($count > 1 ? 's' : '').' online</div>';
echo $data;
?>
>>
It's to see how many unique IPs visited the board in the last 24 hours
It's a little inaccurate for several reasons
https://heyuri.net/onlinecounter.php
>>
File: 150.jpg
(230 KB, 1158x475) ImgOps
230 KB
This is roughly what 150 people looks like!
>>
>>66466
this is in fact 146 people
>>
d-did u count?nyaoo2
>>
File: count.png
(1228 KB, 1158x586) ImgOps
1228 KB
yah I did
it's 7x20 + 6
>>
>>66467
not if 2 of those woman are pregnant with twins!
>>
>>66469
correction: It's 147, seems there is one lady I forgot to include
>>
File: 146.png
(1203 KB, 1158x475) ImgOps
1203 KB
>>66474
you're wrong, there are in fact 146 people .huh:


Delete Post: []
Password:
First[0] Last