Magic Smoke Concepts Documentation
MagicSmoke consists of two main components: the server and the client. The server stores all events, tickets, orders, etc. The client provides access to it.
There are two main lanes of access to the server - one for customers through a web browser and one for the theater itself through the specialized client.
|MagicSmoke Server / Apache / Database|
Events and Tickets
Selling seats for events is what MagicSmoke was created for. In terms of MagicSmoke an event has the following properties:
Tickets belong to a specific event and enable the owner to enter the audience of an event. A Ticket has these properties:
- a title that tells the audience what the programme is called
- an artist who performs it
- a room in which it is performed
- a start and end time and date, that tells us when it is performed
- a capacity that tells us how many tickets can be sold for the event, initially this is copied from the room's settings, but can be changed for each event
- a description that is shown to customers on the web page
- prices that tell us the price of tickets and how many of each category can be sold
The amount of tickets for an event is limited by several factors:
- the event it belongs to
- the price category it belongs to
- its price, which is normally copied from the category, but can be changed by privileged users
- a ticket ID that uniquely identifies the ticket
- the order in which it was sold (see below)
- the capacity of the event is the absolute upper limit, no more than this can be sold
- the capacity of the ticket's price category
Orders and Vouchers
MagicSmoke stores customers with names and potentially many addresses. Customers can be created from the client or by the customer him/herself through the web interface.
An order is generated whenever tickets are ordered, sold, or given away for free. The order connects tickets with customers and tracks the payment of those. The difference between an order and a straight sale is that the "order" is not paid and shipped when created, while the "sale" is paid and shipped right from the start.
Vouchers can be bought by customers and in return they can be used to pay for orders. Like tickets, each voucher has a unique ID that identifies it.
Templates and Printing
Templates are the base of everything that can be stored in OpenOffice files or that can be printed.
MagicSmoke has two ways of printing: tickets and vouchers are printed directly from the client. Other documents are created in OpenDocument format and then stored, opened with OpenOffice, or printed through OpenOffice.
Login, Users, Hosts, and Profiles
MagicSmoke uses the multi-layer login. It authenticates both the client host and the user. This is to make sure that users only connect from hosts that belong to the correct theater, it is also possible to restrict some users to fewer hosts.
The login process performs the following checks:
If any of those checks fails the login is denied.
- the client authenticates the server using the SSL certificate
- the server authenticates the client using its host name and key
- the server authenticates the user by name and password
- the server checks that the user is allowed to log in from that host
Profiles are used by the client to link a specific server together with a specific host setting and other settings to be used with this server.