diff options
| author | Hannah Isopod <me@bathynomus.xyz> | 2025-06-11 03:25:00 -0600 |
|---|---|---|
| committer | Hannah Isopod <me@bathynomus.xyz> | 2025-06-11 03:25:00 -0600 |
| commit | b3bb0b898d3178963fefb9c0b16a00a76cf2a034 (patch) | |
| tree | eec6da7a21790183b15f31283fe3b8bcaabfaa4d /stats | |
| parent | 5023bdef46281034c0476bc4201342a0a4cc2ae7 (diff) | |
total guestbook overhaul + new blog post + etc
- Added /about/pronouns/ in leiu of something like
a pronouns.cc profile
- New blog post about my new and improved AI
opinions
- Moved Stop Using Chromium to an actual blog post
page
- Blog posts now have previous and next buttons
- New /blog/ background
- Moved status.cafe widget from /blog/ to landing
page
- Total overhaul of guestbook:
- Merged guestbook and blog comment section code
- Beefed up bot protection
- Added a word filter
- Added a property to entries to facilitate
holding comments for review and approving or
denying them manually (The interface for this
is somewhere else)
- IP address from which a post originates is now
tracked in order to IP ban malicious actors
- Various new buttons
- Updated /greenhouse/
- The site is now a member of the No AI Webring
- a couple minor CSS fixes
Diffstat (limited to 'stats')
| -rw-r--r-- | stats/index.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/stats/index.php b/stats/index.php index eb17786..a0373fc 100644 --- a/stats/index.php +++ b/stats/index.php @@ -21,7 +21,8 @@ } } </style> - <?php include($_SERVER['DOCUMENT_ROOT'] . '/seasonal.php'); ?> + <?php include($_SERVER['DOCUMENT_ROOT'] . '/seasonal.php'); + include($_SERVER['DOCUMENT_ROOT'] . '/common.php'); ?> </head> <body> <?php include($_SERVER['DOCUMENT_ROOT'] . '/nav.php'); bg(); ?> @@ -161,9 +162,9 @@ <td title="Since this bit was added, anyway">Page views</td> <td> <?php - $num = (int) filter_var(file_get_contents("views.txt"), FILTER_SANITIZE_NUMBER_INT); + $num = (int) filter_var(file_get_contents($datadir."stats_views.txt"), FILTER_SANITIZE_NUMBER_INT); $num++; - file_put_contents("views.txt", $num); + file_put_contents($datadir."stats_views.txt", $num); echo $num; ?> </td> |
