tim 4657088d23 Keep the space of the line-break note under the image box.
An invisible copy of the note sits under the image box, so the page
does not jump when the tabs change.
2026-09-26 15:27:51 +02:00
2026-09-26 03:48:09 +02:00
2026-09-25 23:32:08 +02:00
2026-09-25 21:18:58 +02:00
2013-05-17 23:38:44 +02:00
2013-05-17 23:38:44 +02:00
2026-09-25 21:18:58 +02:00
2013-05-17 23:38:44 +02:00
2026-09-25 23:32:08 +02:00
2026-09-26 03:48:09 +02:00
2026-09-26 03:48:09 +02:00
2013-05-17 23:38:44 +02:00
2026-09-25 23:32:08 +02:00

xxx.org.za

A Content Management System for x.x.x, a collection of 100-word stories.

This code was mostly written between 2004 and 2008, although the git history doesn't stretch that far. If you're wondering why some core ports don't use fancy new PHP features... that's probably why.

The site reads its configuration from .env. Copy .env.example to .env, and set the values in it.

Tests

The repository has three sets of tests:

  • The PHP unit tests (tests/php/Unit) run the functions of the site against a fake database. They do not need MySQL or the network.
  • The PHP page tests (tests/php/Pages) run the pages on the PHP built-in web server, and send HTTP requests to them.
  • The JavaScript tests (tests/js) run the story editor and the other scripts in jsdom, a browser document for Node.js.

No test uses the real database, the real .env file, Google, or a mail server. The tests use tests/php/fixtures/test.env for the configuration, and they write only to the system temporary directory.

Requirements

  • PHP 8.4.1 or later on the command line, with the dom, filter, json, libxml, mbstring, simplexml and xmlwriter extensions. The mysqli extension is not necessary.
  • Composer.
  • Node.js 20.19, 22.13, or 24 or later, with npm.

Run the PHP tests

Install PHPUnit and the other development packages into vendor/:

composer install

Run all the PHP tests:

composer test

Run the JavaScript tests

Install jsdom into node_modules/, then run the tests:

npm install
npm test

To run one file:

node --test tests/js/editor.test.js

Development files on the live site

Do not install the development packages on the live server. The site itself does not use them.

If the tests or the packages are on the server, .htaccess stops Apache from serving tests/, vendor/, node_modules/ and the Composer, npm and PHPUnit files. This needs AllowOverride AuthConfig, as the other rules in .htaccess do.

S
Description
A Content Management System for x.x.x, a collection of 100-word stories.
https://xxx.org.za/
Readme
5.6 MiB
Languages
PHP 92%
JavaScript 6.1%
CSS 1.9%