§11
Preview, signed package, updates
- The Preview button shows the theme only in that administrator's session for 30 minutes; visitors keep seeing the active theme. It is closed from the strip at the top of the page.
- Signature and integrity are verified separately.
theme.lockis a signed document: the package manifest that carries the theme's file hashes, and an Ed25519 signature with the WIACP release key. The badge in the admin screen comes only from the two checks: Signed when the signature verifies with a trusted key and all files match the hashes; Signed (modified) with the list of changed files when the signature is valid but files changed; Unsigned when there is no lock, the signature is invalid, the key is unknown or revoked, or it was signed with the test key in production. Editing a field in the manifest or the lock file by hand does not make a theme show as signed. - When a signed theme package is installed, the package's signed manifest is written as the lock. WIACP's own themes are signed while preparing a release with
php tools/release/wiacp-release.php sign-theme --key <key> --dir templates/<name>(the key is never on the application server). - A theme uploaded over FTP can be used too; it appears with the Unsigned badge. If a locked theme is changed later, the update pre-check lists the changed files (the update overwrites those changes).