spells.php

main 26 lines · 627 bytes Raw
Alex Alex Commit Initial commit 01/10/2026 09:20
1<?php require_once 'engine/init.php'; theme_open();
2
3/**
4 * Spell list.
5 *
6 * spells.xml is uploaded and parsed in the admin panel, under Server Info. This
7 * page only reads the result:
8 * $spells the spell list, or false when nothing was published
9 * $showSpellsForm, $spellsUpdated, $spellsFailed kept at false for older themes
10 */
11
12$showSpellsForm = false;
13$spellsUpdated = false;
14$spellsFailed = false;
15
16$spells = serverdata_load('spells');
17
18if ($spells === false && is_file(serverdata_file('spells.xml'))) {
19 serverdata_rebuild('spells');
20 $spells = serverdata_load('spells');
21}
22
23view('spells');
24
25theme_close();
26
Top