<?php
/************************************************************************
- * MXChange v0.2.1 Start: 08/25/2003 *
- * =============== Last change: 05/29/2004 *
+ * Mailer v0.2.1-FINAL Start: 08/25/2003 *
+ * =================== Last change: 05/29/2004 *
* *
* -------------------------------------------------------------------- *
* File : databases.php *
* -------------------------------------------------------------------- *
* Kurzbeschreibung : Definitionen und Datenfelder (hart-codertiert) *
* -------------------------------------------------------------------- *
- * $Revision:: 856 $ *
- * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009) $ *
+ * $Revision:: $ *
+ * $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
- * $Author:: stelzi $ *
- * Needs to be in all Files and every File needs "svn propset *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
+ * $Author:: $ *
* -------------------------------------------------------------------- *
- * Copyright (c) 2003 - 2008 by Roland Haeder *
+ * Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// Some security stuff...
if (!defined('__SECURITY')) {
- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
- require($INC);
+ die();
} // END - if
// System-wide return codes
-addCode('WRONG_PASS' , 0x001);
-addCode('WRONG_ID' , 0x002);
-addCode('ID_LOCKED' , 0x003);
-addCode('ID_UNCONFIRMED' , 0x004);
-addCode('UNKNOWN_STATUS' , 0x005);
-addCode('NO_COOKIES' , 0x006);
-addCode('CNTR_FAILED' , 0x008);
-addCode('LOGOUT_DONE' , 0x008);
-addCode('LOGOUT_FAILED' , 0x009);
-addCode('URL_TLOCK' , 0x00a);
-addCode('URL_FOUND' , 0x00b);
-addCode('OVERLENGTH' , 0x00c);
-addCode('SUBJ_URL' , 0x00d);
-addCode('BLIST_URL' , 0x00e);
-addCode('NO_RECS_LEFT' , 0x00f);
-addCode('INVALID_TAGS' , 0x010);
-addCode('MORE_POINTS' , 0x011);
-addCode('COOKIES_DISABLED' , 0x012);
-addCode('DATA_INVALID' , 0x013);
-addCode('POSSIBLE_INVALID' , 0x014);
-addCode('ACCOUNT_LOCKED' , 0x015);
-addCode('USER_404' , 0x016);
-addCode('STATS_404' , 0x017);
-addCode('ALREADY_CONFIRMED', 0x018);
-addCode('ERROR_MAILID' , 0x019);
-addCode('EXTENSION_PROBLEM', 0x01a);
-addCode('MORE_RECEIVERS1' , 0x01b);
-addCode('MORE_RECEIVERS2' , 0x01c);
-addCode('MORE_RECEIVERS3' , 0x01d);
-addCode('INVALID_URL' , 0x01e);
-addCode('MENU_NOT_VALID' , 0x01f);
-addCode('LOGIN_FAILED' , 0x020);
-addCode('BEG_SAME_AS_OWN' , 0x021);
-addCode('UNHANDLED_STATUS' , 0x022);
+addCode('WRONG_PASS' , 0x001);
+addCode('WRONG_ID' , 0x002);
+addCode('ACCOUNT_LOCKED' , 0x003);
+addCode('ACCOUNT_UNCONFIRMED', 0x004);
+addCode('UNKNOWN_STATUS' , 0x005);
+addCode('NO_MAIL_TYPE' , 0x006);
+addCode('CNTR_FAILED' , 0x007);
+addCode('LOGOUT_DONE' , 0x008);
+addCode('LOGOUT_FAILED' , 0x009);
+addCode('URL_TIME_LOCK' , 0x00a);
+addCode('URL_FOUND' , 0x00b);
+addCode('OVERLENGTH' , 0x00c);
+addCode('SUBJECT_URL' , 0x00d);
+addCode('BLIST_URL' , 0x00e);
+addCode('NO_RECS_LEFT' , 0x00f);
+addCode('INVALID_TAGS' , 0x010);
+addCode('MORE_POINTS' , 0x011);
+addCode('COOKIES_DISABLED' , 0x012);
+addCode('DATA_INVALID' , 0x013);
+addCode('POSSIBLE_INVALID' , 0x014);
+addCode('USER_404' , 0x015);
+addCode('STATS_404' , 0x016);
+addCode('ALREADY_CONFIRMED' , 0x017);
+addCode('ERROR_MAILID' , 0x018);
+addCode('EXTENSION_PROBLEM' , 0x019);
+addCode('MORE_RECEIVERS1' , 0x01a);
+addCode('MORE_RECEIVERS2' , 0x01b);
+addCode('MORE_RECEIVERS3' , 0x01c);
+addCode('INVALID_URL' , 0x01d);
+addCode('MENU_NOT_VALID' , 0x01e);
+addCode('LOGIN_FAILED' , 0x01f);
+addCode('BEG_SAME_AS_OWN' , 0x020);
+addCode('UNHANDLED_STATUS' , 0x021);
+addCode('MODULE_MEMBER_ONLY' , 0x022);
+addCode('UNKNOWN_ERROR' , 0x023);
+addCode('PROFILE_UPDATED' , 0x024);
-// Server-URL (DO NOT CHANGE THIS OR YOU CANNOT CHECK FOR UPDATES/EXTENSIONS!)
-define('SERVER_URL', "http://www.mxchange.org");
-
-// Full version string: /([0-9]){1}\.([0-9]){1}\.([0-9]){1}(-(alpha|beta|pre|rc([1-3]))([0-9]+))?/
-// If you understand regular expressions ^^^ you may know how I versionize... ;-)
-define('FULL_VERSION', getActualVersion('Tag'));
+// Full version
+setConfigEntry('FULL_VERSION', '0.2.1-FINAL');
-// Replacement strings
-$GLOBALS['replacer'] = array(
- 'userid' => "%uid%", // User-ID
- 'surname' => "%vorname%", // Surname
- 'family' => "%nachname%", // Family name
- 'gender' => "%anrede%", // Gender
-);
+// Server-URL (DO NOT CHANGE THIS OR YOU CANNOT CHECK FOR UPDATES/EXTENSIONS!)
+setConfigEntry('SERVER_URL', 'http://mxchange.org');
// One day
-setConfigEntry('one_day', (60*60*24));
-
-//
-// Timestamp for yesterday, today ... all at 00:00 am
-define('START_YDAY', MAKE_TIME(0, 0, 0, time() - getConfig('one_day')));
-define('START_TDAY', MAKE_TIME(0, 0, 0, time()));
-
-// Current SVN revision and date
-define('CURR_SVN_REVISION', getActualVersion('Revision'));
-define('CURR_SVN_DATE' , getActualVersion('Date'));
+setConfigEntry('ONE_DAY', (60*60*24));
-// Take a prime number which is long (if you know a longer one please try it out!)
-define('_PRIME', 591623);
+// HTTP-EOL
+setConfigEntry('HTTP_EOL', "\r\n");
-// Calculate "entropy" with the prime number (for code generation)
-define('_ADD', (constant('_PRIME') * constant('_PRIME') / (pi() * getConfig('code_length') + 1)));
+// CFG: DEBUG-SQL (if enabled and DEBUG_MODE is enabled all SQL queries will be logged to debug.log)
+setConfigEntry('DEBUG_SQL', 'N');
-// Random number for e.g. the "cache-buster" used in OpenX script
-define('CACHE_BUSTER', mt_rand(1000000, 9999999));
+// CFG: ENCRYPT-SEPERATOR
+setConfigEntry('ENCRYPT_SEPERATOR', ':');
// Extra title is empty by default
-$EXTRA_TITLE = "";
+setExtraTitle('');
-//
+// [EOF]
?>