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

  • Switch Form Position | BBCode Reference
  • Read the rules before you post.
  • Protect your username, use a tripcode!
  • 日本のへゆり
    boku

  • 2024/09/12 - NEW GAME: Battle Royale R! Make characters and see if they can win the Heyuri Cup!
  • 2024/09/10 - Tegaki function has been added
  • 2024/06/19 - File size limits have been increased
  • 2024/06/11 - Overboard@Heyuri is back after 4 years
  • [Show All]


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?

Marked for deletion (Old)
>>
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