1 | <?php |
||
2 | |||
3 | /** |
||
4 | * messages.php |
||
5 | * Handles internal message system |
||
6 | * |
||
7 | * @package messages |
||
8 | * @version 3.0 |
||
9 | * |
||
10 | * Revision History |
||
11 | * ================ |
||
12 | * |
||
13 | * 3.0 - copyright (c) 2010-2011 by Gorlum for http://supernova.ws |
||
14 | * [!] Full rewrite |
||
15 | * |
||
16 | * 2.0 - copyright (c) 2010 by Gorlum for http://supernova.ws |
||
17 | * [!] Fully rewrote MessPageMode = 'show' part |
||
18 | * [~] All HTML code from 'show' part moved to messages.tpl |
||
19 | * [~] Tweaks and optimizations |
||
20 | * |
||
21 | * 1.5 - copyright (c) 2010 by Gorlum for http://supernova.ws |
||
22 | * [~] Replaced table 'galaxy' with table 'planets' |
||
23 | * |
||
24 | * 1.4 - copyright (c) 2010 by Gorlum for http://supernova.ws |
||
25 | * [~] Security checked & verified for SQL-injection by Gorlum for http://supernova.ws |
||
26 | * |
||
27 | * 1.3 - copyright (c) 2010 by Gorlum for http://supernova.ws |
||
28 | * [+] "Outbox" added |
||
29 | * |
||
30 | * 1.2 - copyright 2008 by Chlorel for XNova |
||
31 | * [+] Regroupage des 2 fichiers vers 1 seul plus simple a mettre en oeuvre et a gerer ! |
||
32 | * |
||
33 | * 1.1 - Mise a plat, linearisation, suppression des doublons / triplons / 'n'gnions dans le code (Chlorel) |
||
34 | * |
||
35 | * 1.0 - Version originelle (Tom1991) |
||
36 | * |
||
37 | */ |
||
38 | |||
39 | include('common.' . substr(strrchr(__FILE__, '.'), 1)); |
||
40 | |||
41 | global $sn_message_class_list, $user, $lang; |
||
0 ignored issues
–
show
|
|||
42 | |||
43 | lng_include('messages'); |
||
44 | |||
45 | $messagePage = new \Pages\Deprecated\PageMessage(); |
||
46 | $messagePage->route(); |
||
47 |
Instead of relying on
global
state, we recommend one of these alternatives:1. Pass all data via parameters
2. Create a class that maintains your state