Admin Panel Documentation

Comprehensive guide for the Blinkbox MFPS Admin Panel

Overview

The Blinkbox Admin Panel is a powerful web-based management system designed for Multiplayer FPS (MFPS) games built with Unity. It provides a centralized dashboard to manage players, clans, events, support tickets, and game assets.

Key Features:
  • User Management: View, edit, ban, and manage player stats.
  • Clan System: Manage clan details, members, and settings.
  • Event Manager: Create and track in-game events.
  • Ticket System: Handle player support requests directly.
  • Anti-Cheat: Monitor suspicious activities and logs.
  • Unity Integration: Seamlessly export game data (Camos, Emblems, Cards) from Unity to the web panel.

Installation Process

1. Web Server Requirements

2. Setup Steps

  1. Upload Files: Upload the contents of the Web folder to your web server's public directory (e.g., public_html/admin).
  2. Database: Ensure you have a MySQL database created for your game.
  3. Run Installer: Navigate to http://your-domain.com/admin/installer.php in your browser.
  4. Follow Wizard:
    • The installer will check for required permissions.
    • Enter your database credentials (Host, User, Password, Database Name).
    • The installer will create the necessary tables (bl_admin_settings, bl_admin_data, bl_admin_logs).
    • It will generate the .env file automatically.
  5. Finalize: Delete installer.php for security purposes after successful installation.

Configuration

Configuration is primarily handled via the .env file located in the root directory. This file is automatically generated by the installer but can be manually edited.

Environment Variables (.env)

HOST_PATH=http://your-domain.com/admin
SECRET_KEY=your_generated_secret_key
DB_HOST=localhost
DB_NAME=mfps_game_db
DB_USER=db_user
DB_PASSWORD=db_password

# hCaptcha Configuration (Optional)
HCAPTCHA_SITE_KEY=your_site_key
HCAPTCHA_SECRET_KEY=your_secret_key
Security Note: Ensure the .env file is not accessible via the web browser. The provided .htaccess file should handle this, but verify your server configuration.

Unity Integration

The admin panel comes with a custom Unity Editor tool to sync game data with the web panel. This is located at Assets/Addons/BlinkBox/AdminPanel/Code/Editor/AdminDataEditor.cs.

Using the Admin Data Editor

  1. In Unity, go to the top menu: BlinkBox > Admin Data Editor.
  2. The window will open, showing references to your game data:
    • Emblems Database: bl_EmblemsDataBase
    • Shop Data: bl_ShopData
    • Customizer Data: bl_CustomizerData
  3. Features:
    • Preview: View Emblems, Calling Cards, and Camos directly in the editor.
    • Export Single: Click "Export" next to an item to save its data/image.
    • Export All: Click "Export All Data" to generate a complete package of your game assets.
  4. Uploading Data:
    • After exporting, take the generated files/folders (usually in External Data).
    • Upload them to the sections/External Data directory on your web server.

Web Interface Guide

Dashboard

The landing page after login. Provides a quick snapshot of your game's status, including recent user registrations, active players, and system health.

User Management

Navigate to the Users section to:

Addons System

The panel is modular. Enabled addons appear in the sidebar:

Section Reference

Detailed documentation for each admin panel section file, including available functions and usage.

1. Dashboard

File: sections/dashboard_content.php

The main landing page displaying system overview.

2. User Management

Files: users_content.php, user_profile_content.php

3. Clan System

Files: clans_content.php, clans_profile_content.php

4. News System

Files: news_content.php, news_create_content.php, news_edit_content.php

5. Event System

Files: event_manager_content.php, event_create_content.php, event_leaderboard_content.php

6. Server Mail

File: sections/servermail_content.php

7. Support Tickets

File: sections/tickets_content.php

8. Data & Importer

Files: importer_content.php, Data_Loader.php, Data_LoaderV2.php

9. Settings & Diagnostics

Files: settings_content.php, diagnose_content.php

10. Anti-Cheat

Files: anticheat_content.php, anticheat_info_content.php

11. Vouchers

File: sections/voucher_content.php

API Endpoints

The panel provides RESTful API endpoints for external tools or the game client to fetch data.

Fetch Users

GET /API/fetch_users.php

Retrieves a list of users or specific user data. Useful for leaderboards or external stats viewers.

Internal Server

GET /API/internal_server.php

Used for internal communication between the game server and the web panel.

Troubleshooting

Common Issues

Support

For additional support, please contact the Blinkbox development team or refer to the project repository.