Skip to content

bogdasari4/MyOpenMuWeb

Repository files navigation

MyOpenMuWeb

2

MyOpenMuWeb is an open source content management system (CMS) for the MUnique/OpenMU server based on PostgreSQL.

Crates.io License Static Badge Packagist Version Packagist Version Packagist Version Packagist Version Packagist Version Discord

Current status of the project

This project is currently under development. You can try the current state using the available git image.

What is ready for today! (click to expand)
  • Site pages
    • SignUp
      • Account verification
    • SigIn
      • Forgot your password
    • Personal Area
      • Information
      • Change password
      • Rests
      • Add stats
      • Teleport
    • Rankings
      • Characters (top %) 1
      • Guilds (top %) 1
    • About the character
    • About the guild
    • Downloads
    • About
  • Engine
    • Switch language
      • Russian
      • English (Google Translate)
    • Page caching 2

Quick setup

Open the App\Json\Config\cdb.json file and configure a connection to the PostgreSQL database.

API modification example

Go to the src\Web\Admin Panel\API directory and replace the old method with the new one below:

[HttpGet]
[Route("status")]
public IActionResult ServerState()
{
    var result = new Object[_gameServers.Values.Count];

    _gameServers.Values.ForEach(async item =>
    {
        var server = item as GameServer;
        if (server is not null)
        {

            var list = new List<string>();
            await server.Context.ForEachPlayerAsync(player =>
            {
                list.Add(player.GetName());
                return Task.CompletedTask;
            }).ConfigureAwait(false);

            result[server.Id] = new {
                status = server.ServerState > 0 ? true : false,
                maximumConnections = server.MaximumConnections,
                playerCount = server.Context.PlayerCount,
                playersList = list
            };

        };
    });

    return Ok(JsonSerializer.Serialize(result));
}

Screenshots

Adaptation of the template for a desktop computer (click to expand)

Adaptation of the template for a desktop computer Adaptation of the template for a desktop computer

Adaptation of the template for smartphones (click to expand)

Adaptation of the template for smartphones

For coffee ☕

Thanks to the developer ☺️

💳 donationalerts.com/r/bogdasar

🔹 Toncoin: UQCAP5ywtqtW0Vz5PX9hhsZeHhJ0XN00FiP3qBs92KlW05oq

💵 USDT: TH6QEamrEcQArqfpWUV3PPz6TVXpNnSvbv

💰 BTC: 1NzHox3KdeHVtgXaQQWpqi1WJQ29Mf81eM

Footnotes

  1. Number of lines in the request, set by user. 2

  2. Only pages that use database queries. Cache lifetime set by user for each page.