Giter Club home page Giter Club logo

cms's Introduction

BlackEye CMS

The best DarkOrbit private server. Current version: 1.1.1

CMS Structure

The core of the CMS (the installation of Alexya) is located in the directory alexya while the directory public_html contains the files interpreted by the browser (css, images, js...).

The CMS is build on top of the Alexya Framework so you should check it for knowing how it works. There 4 pages (they're located on Application/Page):

  • Internal page
  • External page
  • Map page
  • API page

The external page simply prints external page and registers/logins users. The internal page will load the requested module (they're located on Application/Module) and render it. The map page contains the spacemap container. The API page is used for querying the BlackEye database easily so you can build your own tools for this server (it's documented in docs/API).

Before continue you should go to the alexya directory and execute composer update for installing composer's dependencies.

ORM Classes

The ORM classes are under the \Application\ORM package and are used to translate the database tables to objects.

Between all the ORM classes, the class \Application\ORM\Account is the most important since it's used everywhere. This class represents the user that is currently visitting the website so take a close look to it.

SocksWork

SocksWork is the way the CMS will be linked to the emulator for keeping it updated about the things user does on the website (like bidding on auction, buying items...).

The SocksWork object is instanced in index.php and takes the configuration values from config/alexya.php, by default the client connects to 127.0.0.1:1207.

The packets SocksWork sends are located in Application/Packets and their structure is on the documentation of each packet.

Localization

When printing texts always use the \Alexya\Localization\Locale::translate function (t is a shortcut for the function) so the text can be translated whenever it's possible. Also use the functions \Alexya\Localization\Locale::formatNumber (fNumber as shortcut) and \Alexya\Locale\Localization::formatDate (fDate as shortcut) for formatting numbers and dates.

cms's People

Contributors

manulaiko avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.