Version: v0.70 (2026-08-01)
Type: PHP/Perl Web Application (Single-File Architecture)
Primary File: /os/ai/io/ko_center.php (16,322 lines, 205 functions)
Database: SQLite 3 (ko_center.db3, ~39.6 MB)
Web Server: Apache (with PHP) or Python Flask (equivalent: ko_center.py)
Document Type: System Administrator Guide
ko_center is a single-file PHP web application that provides a centralized dashboard for managing LED indicators, database grids, knowledge base articles, hardware inventory, and various system monitoring tools.
The application follows a traditional LAMP-style architecture:
$GLOBALS, $_SESSION,
$_REQUEST, $_SERVER)
Browser Request
|
v
Apache/PHP (ko_center.php)
|
+--> startup() [Initialize session, globals, paths]
|
+--> Parse ?q= parameter
| Split by "/" into options[] array
| options[0] = page, options[1] = action, options[2] = id, etc.
|
+--> Route to handler function
|
+--> leds_show() - Display LED indicators
+--> pdo_grid() - Database grid view
+--> leds_kb() - Knowledge Base
+--> leds_reports_* - Reports (SQL, CSV, XML)
+--> leds_config() - Configuration
+--> leds_login_* - Authentication
+--> trigger() - Broadcast refresh
+--> iperms() - System utilities
+--> ko_upload* - File uploads
+--> pdo_cr_* - Table creation
+--> pdo_insert_* - Data insertion
+--> ... (205 functions total)
|
+--> Generate HTML output
| html_header() - section
| html_btn_squares() - Navigation buttons
| [page content]
| html_footer() -