' . $flags . '' . $name . '' . $description . ''; } function printArray ($cvar_list, $program) { tableBoxHeader ('black', tableHeadColor); tableTitle ("cvars available in " . $program, 3, tableHeadColor); printRow ('flags', 'name', 'description'); while (list (, $cvar) = each ($cvar_list)) { $flags = str_replace (' ', ' ', substr ($cvar, 0, 4)); $pos = strpos ($cvar, ':'); $name = trim (substr ($cvar, 5, $pos - 6)); $description = trim (substr ($cvar, $pos + 1)); printRow ($flags, $name, $description); } tableBoxFooter (); } function printCvarlist ($program) { $cvar_list = file ('doc/' . $program . '-cvar.txt'); printArray ($cvar_list, $program); } if (strchr ($program, '.') || strchr ($program, '/')) { echo 'Go away.'; return; } tableBoxHeader ('black', tableHeadColor); tableTitle ("cvar flags", 2, tableHeadColor); echo 'rread only. Must be set on command line or in the config file.'; echo '*Archived. Will be saved to config.cfg.'; echo 'uUserinfo. Changes will be sent to the server.'; echo 'sServerinfo. Changes will be sent to the clients.'; tableBoxFooter (); echo '

'; printCvarlist ($program); ?>