How pphson/worldskill2024 works
The tree contains several independent WorldSkill modules rather than one integrated application. Module B is a product/company catalogue: visitors and administrators enter through its PHP router, which selects public pages, admin views, or JSON endpoints backed by MySQL. Module C is a Lyon heritage directory with article parsing and list/detail templates. Modules A, D, E, and F are retained as distinct runtime areas based on their source paths and filenames; their broader workflows cannot be established from the README or shown excerpts.
Main entry points: index.php Request router · db.php Catalogue database · list_view.php Article listing · single_view.php Article detail
Components 34
Product catalogue
- Request router
XX_module_b/index.php - Admin login
XX_module_b/views/login.php - Product admin
XX_module_b/views/admin_products.php - Product editor
XX_module_b/views/product_form.php - Company admin
XX_module_b/views/admin_companies.php - Company editor
XX_module_b/views/company_form.php - Company details
XX_module_b/views/company_detail.php - Public product
XX_module_b/views/public_product.php - Bulk verification
XX_module_b/views/bulk_verify.php - Product listing API
XX_module_b/api/products.php - Product detail API
XX_module_b/api/product_detail.php - Catalogue database
XX_module_b/db.php
Heritage directory
- Directory entry
XX_module_c/index.php - File scanner
XX_module_c/includes/file_scanner.php - Article parser
XX_module_c/includes/parser.php - Search logic
XX_module_c/includes/search_logic.php - Article listing
XX_module_c/templates/list_view.php - Article detail
XX_module_c/templates/single_view.php - Shared header
XX_module_c/templates/layout_header.php - Shared footer
XX_module_c/templates/layout_footer.php
Module D
- Frontend script
XX_module_d/front-end/script.js - API
XX_module_d/module_d_api.php - CORS API
XX_module_d/module_d_api-cors-version.php - Distance helper
XX_module_d/geolocation_distance.js
Module E
- Config loader
XX_module_e/js/load-config.js - Main script
XX_module_e/js/main.js - Drag reorder
XX_module_e/js/reorder-drag-drop.js - Slideshow
XX_module_e/js/slideshow.js
Module A
- B35 script
XX_module_a/B35/script.js - B39 script
XX_module_a/B39/script.js - B9 script
XX_module_a/B9/script.js
Other components
- Visitor
- Administrator
- API consumer
Connections 24
- Administrator → Request router: requests pages
XX_module_b/index.php - Visitor → Request router: requests pages
XX_module_b/index.php - API consumer → Request router: requests JSON
XX_module_b/index.php - Request router → Admin login: routes to
XX_module_b/index.php - Request router → Product admin: routes to
XX_module_b/index.php - Request router → Product editor: routes to
XX_module_b/index.php - Request router → Company admin: routes to
XX_module_b/index.php - Request router → Company editor: routes to
XX_module_b/index.php - Request router → Company details: routes to
XX_module_b/index.php - Request router → Public product: routes to
XX_module_b/index.php - Request router → Bulk verification: routes to
XX_module_b/index.php - Request router → Product listing API: routes to
XX_module_b/index.php - Request router → Product detail API: routes to
XX_module_b/index.php - Product listing API → Catalogue database: queries
XX_module_b/api/products.php - Product detail API → Catalogue database: queries
XX_module_b/api/product_detail.php - Product editor → Catalogue database: reads and writes
XX_module_b/views/product_form.php - Company editor → Catalogue database: reads and writes
XX_module_b/views/company_form.php - Company details → Catalogue database: queries
XX_module_b/views/company_detail.php - Public product → Catalogue database: queries
XX_module_b/views/public_product.php - Article listing → Article parser: parses articles
XX_module_c/templates/list_view.php - Article listing → Shared header: includes
XX_module_c/templates/list_view.php - Article listing → Shared footer: includes
XX_module_c/templates/list_view.php - Article detail → Shared header: uses layout
XX_module_c/templates/single_view.php - Article detail → Shared footer: uses layout
XX_module_c/templates/single_view.php