88cde367dc26a14ecacc67306efc5671b94aedc0
[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  * $Revision::                                                        $ *
14  * $Date::                                                            $ *
15  * $Tag:: 0.2.1-FINAL                                                 $ *
16  * $Author::                                                          $ *
17  * Needs to be in all Files and every File needs "svn propset           *
18  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
19  * -------------------------------------------------------------------- *
20  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
21  * For more information visit: http://www.mxchange.org                  *
22  *                                                                      *
23  * This program is free software; you can redistribute it and/or modify *
24  * it under the terms of the GNU General Public License as published by *
25  * the Free Software Foundation; either version 2 of the License, or    *
26  * (at your option) any later version.                                  *
27  *                                                                      *
28  * This program is distributed in the hope that it will be useful,      *
29  * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
30  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
31  * GNU General Public License for more details.                         *
32  *                                                                      *
33  * You should have received a copy of the GNU General Public License    *
34  * along with this program; if not, write to the Free Software          *
35  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
36  * MA  02110-1301  USA                                                  *
37  ************************************************************************/
38
39 // Some security stuff...
40 if (!defined('__SECURITY')) {
41         die();
42 } // END - if
43
44 // System-wide return codes
45 addCode('WRONG_PASS'         , 0x001);
46 addCode('WRONG_ID'           , 0x002);
47 addCode('ACCOUNT_LOCKED'     , 0x003);
48 addCode('ACCOUNT_UNCONFIRMED', 0x004);
49 addCode('UNKNOWN_STATUS'     , 0x005);
50 addCode('CNTR_FAILED'        , 0x008);
51 addCode('LOGOUT_DONE'        , 0x008);
52 addCode('LOGOUT_FAILED'      , 0x009);
53 addCode('URL_TLOCK'          , 0x00a);
54 addCode('URL_FOUND'          , 0x00b);
55 addCode('OVERLENGTH'         , 0x00c);
56 addCode('SUBJ_URL'           , 0x00d);
57 addCode('BLIST_URL'          , 0x00e);
58 addCode('NO_RECS_LEFT'       , 0x00f);
59 addCode('INVALID_TAGS'       , 0x010);
60 addCode('MORE_POINTS'        , 0x011);
61 addCode('COOKIES_DISABLED'   , 0x012);
62 addCode('DATA_INVALID'       , 0x013);
63 addCode('POSSIBLE_INVALID'   , 0x014);
64 addCode('USER_404'           , 0x016);
65 addCode('STATS_404'          , 0x017);
66 addCode('ALREADY_CONFIRMED'  , 0x018);
67 addCode('ERROR_MAILID'       , 0x019);
68 addCode('EXTENSION_PROBLEM'  , 0x01a);
69 addCode('MORE_RECEIVERS1'    , 0x01b);
70 addCode('MORE_RECEIVERS2'    , 0x01c);
71 addCode('MORE_RECEIVERS3'    , 0x01d);
72 addCode('INVALID_URL'        , 0x01e);
73 addCode('MENU_NOT_VALID'     , 0x01f);
74 addCode('LOGIN_FAILED'       , 0x020);
75 addCode('BEG_SAME_AS_OWN'    , 0x021);
76 addCode('UNHANDLED_STATUS'   , 0x022);
77 addCode('MODULE_MEM_ONLY'    , 0x023);
78 addCode('UNKNOWN_ERROR'      , 0x024);
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/EXTENSIONS!)
84 setConfigEntry('SERVER_URL', 'http://www.mxchange.org');
85
86 // Replacement strings
87 $GLOBALS['replacer'] = array(
88         'userid'  => '%userid%',        // Member id
89         'surname' => '%vorname%',       // Surname
90         'family'  => '%nachname%',      // Family name
91         'gender'  => '%anrede%',        // Gender
92 );
93
94 // One day
95 setConfigEntry('ONE_DAY', (60*60*24));
96
97 // Current date
98 setConfigEntry('CURRENT_DATE', generateDateTime(time(), 3));
99
100 // Timestamp for yesterday, today ... all at 00:00 am
101 setConfigEntry('START_YDAY', makeTime(0, 0, 0, time() - getConfig('ONE_DAY')));
102 setConfigEntry('START_TDAY', makeTime(0, 0, 0, time()));
103
104 // HTTP-EOL
105 setConfigEntry('HTTP_EOL', "\r\n");
106
107 // CFG: DEBUG-SQL (if enabled and DEBUG_MODE is enabled all SQL queries will be logged to debug.log)
108 setConfigEntry('DEBUG_SQL', 'N');
109
110 // CFG: ENCRYPT-SEPERATOR
111 setConfigEntry('ENCRYPT_SEPERATOR', ':');
112
113 // Extra title is empty by default
114 setExtraTitle('');
115
116 // [EOF]
117 ?>