Opps, not all elements for sprintf() has been set.
[mailer.git] / inc / databases.php
1 <?php
2 /************************************************************************
3  * Mailer v0.2.1-FINAL                                Start: 08/25/2003 *
4  * ===================                          Last change: 05/29/2004 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              : databases.php                                    *
8  * -------------------------------------------------------------------- *
9  * Short description : Definitions and arrays (hard-coded databases)    *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  : Definitionen und Datenfelder (hart-codertiert)   *
12  * -------------------------------------------------------------------- *
13  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
14  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
15  * For more information visit: http://mxchange.org                      *
16  *                                                                      *
17  * This program is free software; you can redistribute it and/or modify *
18  * it under the terms of the GNU General Public License as published by *
19  * the Free Software Foundation; either version 2 of the License, or    *
20  * (at your option) any later version.                                  *
21  *                                                                      *
22  * This program is distributed in the hope that it will be useful,      *
23  * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
25  * GNU General Public License for more details.                         *
26  *                                                                      *
27  * You should have received a copy of the GNU General Public License    *
28  * along with this program; if not, write to the Free Software          *
29  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
30  * MA  02110-1301  USA                                                  *
31  ************************************************************************/
32
33 // Some security stuff...
34 if (!defined('__SECURITY')) {
35         die();
36 } // END - if
37
38 // System-wide return codes
39 addCode('WRONG_PASS'          , 0x001);
40 addCode('WRONG_ID'            , 0x002);
41 addCode('ACCOUNT_LOCKED'      , 0x003);
42 addCode('ACCOUNT_UNCONFIRMED' , 0x004);
43 addCode('ACCOUNT_UNKNOWN'     , 0x005);
44 addCode('UNKNOWN_STATUS'      , 0x006);
45 addCode('NO_MAIL_TYPE'        , 0x007);
46 addCode('CNTR_FAILED'         , 0x008);
47 addCode('LOGOUT_DONE'         , 0x009);
48 addCode('LOGOUT_FAILED'       , 0x00a);
49 addCode('URL_TIME_LOCK'       , 0x00b);
50 addCode('URL_FOUND'           , 0x00c);
51 addCode('OVERLENGTH'          , 0x00d);
52 addCode('SUBJECT_URL'         , 0x00e);
53 addCode('BLIST_URL'           , 0x00f);
54 addCode('NO_RECS_LEFT'        , 0x010);
55 addCode('INVALID_TAGS'        , 0x011);
56 addCode('MORE_POINTS'         , 0x012);
57 addCode('COOKIES_DISABLED'    , 0x013);
58 addCode('DATA_INVALID'        , 0x014);
59 addCode('POSSIBLE_INVALID'    , 0x015);
60 addCode('USER_404'            , 0x016);
61 addCode('STATS_404'           , 0x017);
62 addCode('ALREADY_CONFIRMED'   , 0x018);
63 addCode('ERROR_MAILID'        , 0x019);
64 addCode('EXTENSION_PROBLEM'   , 0x01a);
65 addCode('MORE_RECEIVERS1'     , 0x01b);
66 addCode('MORE_RECEIVERS2'     , 0x01c);
67 addCode('MORE_RECEIVERS3'     , 0x01d);
68 addCode('INVALID_URL'         , 0x01e);
69 addCode('MENU_NOT_VALID'      , 0x01f);
70 addCode('LOGIN_FAILED'        , 0x020);
71 addCode('BEG_SAME_AS_OWN'     , 0x021);
72 addCode('UNHANDLED_STATUS'    , 0x022);
73 addCode('MODULE_MEMBER_ONLY'  , 0x023);
74 addCode('UNKNOWN_ERROR'       , 0x024);
75 addCode('PROFILE_UPDATED'     , 0x025);
76 addCode('UNKNOWN_REDIRECT'    , 0x026);
77 addCode('LOGIN_EMPTY_ID'      , 0x027);
78 addCode('LOGIN_EMPTY_PASSWORD', 0x028);
79
80 // Full version
81 setConfigEntry('FULL_VERSION', '0.2.1-FINAL');
82
83 // Server-URL (DO NOT CHANGE THIS OR YOU CANNOT CHECK FOR UPDATES!)
84 setConfigEntry('SERVER_URL', 'http://mxchange.org');
85
86 // One day
87 setConfigEntry('ONE_DAY', (60*60*24));
88
89 // HTTP-EOL
90 setConfigEntry('HTTP_EOL', "\r\n");
91
92 // CFG: DEBUG-SQL (if enabled and DEBUG_MODE is enabled all SQL queries will be logged to debug.log)
93 setConfigEntry('DEBUG_SQL', 'N');
94
95 // CFG: ENCRYPT-SEPARATOR
96 setConfigEntry('ENCRYPT_SEPARATOR', ':');
97
98 // Extra title is empty by default
99 setExtraTitle('');
100
101 // Time unit translations
102 $GLOBALS['time_units'] = array(
103         // Data value -> string-representation
104         'Y' => 'YEAR',
105         'M' => 'MONTH',
106         'W' => 'WEEK',
107         'D' => 'DAY',
108         'h' => 'HOUR',
109         'm' => 'MINUTE',
110         's' => 'SECOND',
111 );
112
113 // [EOF]
114 ?>