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