|
|
8 tuntia sitten | |
|---|---|---|
| .. | ||
| node | 8 tuntia sitten | |
| README.md | 8 tuntia sitten | |
| bg.png | 8 tuntia sitten | |
| counter.png | 8 tuntia sitten | |
| counter.txt | 8 tuntia sitten | |
| script.php | 8 tuntia sitten | |
Remember Hit Counters? Well, They’re Back. And They’re Gloriously useless, personal websites were as unique as fingerprints, and every site proudly flaunted a hit counter? It was the ultimate digital badge of honor—a glaring declaration of how many lost souls had wandered onto your site. Fast forward to now, and it turns out you can relive those glitzy days. Yup, hit counters are back, and they are as gloriously pointless as ever!
Why on Satans earth would anyone need a hit counter in 2024? Honestly, I haven't got the slightest idea. Most modern web metrics tools can provide far more detailed insights. But hey, who says everything needs to make sense? Sometimes, a little nostalgia is all you need to spice things up.
Clone this fantastic repository:
git clone https://git.cyberwa.re/revengeday/hit-counter.git
Navigate to the project directory:
cd hit-counter
Set proper permissions (because your web server demands it):
sudo chown -R www-data:www-data .
sudo chmod -R 755 .
Enable the GD Library in your PHP configuration (php.ini):
; Make sure this line is uncommented
extension=gd
Enjoy the Retro Vibes: Access the script from your web browser or via curl:
http://yourserver/hit-counter/script.php
Edit script.php and personalize as much as you like. Feeling adventurous? Here are some things you might want to tweak:
$counterFile, $imageFile$backgroundImageUrl$customText, $secondaryText$textPositionX, $textPositionY, $secondaryTextPositionX, $secondaryTextPositionY$numberPositionX, $numberPositionY$textColorRGB, $secondaryTextColorRGB, $numberColorRGB, $frameColorRGB$drawFrame$customText = "Hit Counter!";
$secondaryText = "Super cyber, super cool!";
$drawFrame = true;
Want to make this even more useless? Fork it, hack it, and send me a pull request.
Got questions or just feeling nostalgic? Hit me up on the fediverse: @revengeday@corteximplant.com.