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 /common.php | |
| 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 'common.php')
| -rw-r--r-- | common.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common.php b/common.php new file mode 100644 index 0000000..3433d20 --- /dev/null +++ b/common.php @@ -0,0 +1,15 @@ +<?php + +# Common data for the various guestbook scripts +$datadir = "/var/www/data/isopoddotcool/"; +$defaultmodstatus = 1; # If 0, all posts will be held for review by default. + # If 1, only posts containing the banned words defined in + # $datadir/bannedwords.json will be held for review. +$gbform_messages = array ( + "success" => "<span class='success'>Successfully posted!</span>", + "review" => "<span class='warning'>Sumitted for review!</span>", + "botcheckfailed" => "<span class='error'>Bot test failed!</span>", + "noname" => "<span class='error'>Name required!</span>", + "nomessage" => "<span class='error'>Message required!</span>", + "invalidlink" => "<span class='error'>Invalid link!</span>" +);
\ No newline at end of file |
