X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fdatabases.php;h=7ec82ef9ff4079bff89c233f926a6585c27f1985;hp=3f211dc09848bde239a5ad0c6b1e7df0548dcb46;hb=15e0995f7a4a4b2c9b1b1a9273f785cf13605829;hpb=039203d5428c9c6a3bed61fb3a9a16958c6fd44c diff --git a/inc/databases.php b/inc/databases.php index 3f211dc098..7ec82ef9ff 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -14,11 +14,10 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2013 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -42,73 +41,79 @@ if (!defined('__SECURITY')) { } // END - if // System-wide return codes -addCode('WRONG_PASS' , 0x001); -addCode('WRONG_ID' , 0x002); -addCode('ACCOUNT_LOCKED' , 0x003); -addCode('ACCOUNT_UNCONFIRMED', 0x004); -addCode('UNKNOWN_STATUS' , 0x005); -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('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('MODULE_MEM_ONLY' , 0x023); -addCode('UNKNOWN_ERROR' , 0x024); +addCode('WRONG_PASS' , 0x001); +addCode('WRONG_ID' , 0x002); +addCode('ACCOUNT_LOCKED' , 0x003); +addCode('ACCOUNT_UNCONFIRMED' , 0x004); +addCode('ACCOUNT_UNKNOWN' , 0x005); +addCode('UNKNOWN_STATUS' , 0x006); +addCode('NO_MAIL_TYPE' , 0x007); +addCode('CNTR_FAILED' , 0x008); +addCode('LOGOUT_DONE' , 0x009); +addCode('LOGOUT_FAILED' , 0x00a); +addCode('URL_TIME_LOCK' , 0x00b); +addCode('URL_FOUND' , 0x00c); +addCode('OVERLENGTH' , 0x00d); +addCode('SUBJECT_URL' , 0x00e); +addCode('BLIST_URL' , 0x00f); +addCode('NO_RECS_LEFT' , 0x010); +addCode('INVALID_TAGS' , 0x011); +addCode('MORE_POINTS' , 0x012); +addCode('COOKIES_DISABLED' , 0x013); +addCode('DATA_INVALID' , 0x014); +addCode('POSSIBLE_INVALID' , 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('MODULE_MEMBER_ONLY' , 0x023); +addCode('UNKNOWN_ERROR' , 0x024); +addCode('PROFILE_UPDATED' , 0x025); +addCode('UNKNOWN_REDIRECT' , 0x026); +addCode('LOGIN_EMPTY_ID' , 0x027); +addCode('LOGIN_EMPTY_PASSWORD', 0x028); -// Server-URL (DO NOT CHANGE THIS OR YOU CANNOT CHECK FOR UPDATES/EXTENSIONS!) -setConfigEntry('SERVER_URL', 'http://www.mxchange.org'); +// Full version +setConfigEntry('FULL_VERSION', '0.2.1-FINAL'); -// Replacement strings -$GLOBALS['replacer'] = array( - 'userid' => '%userid%', // Member id - 'surname' => '%vorname%', // Surname - 'family' => '%nachname%', // Family name - 'gender' => '%anrede%', // Gender -); +// Server-URL (DO NOT CHANGE THIS OR YOU CANNOT CHECK FOR UPDATES!) +setConfigEntry('SERVER_URL', 'http://mxchange.org'); // One day setConfigEntry('ONE_DAY', (60*60*24)); -// Current date -setConfigEntry('CURRENT_DATE', generateDateTime(time(), 3)); - -// Timestamp for yesterday, today ... all at 00:00 am -setConfigEntry('START_YDAY', makeTime(0, 0, 0, time() - getConfig('ONE_DAY'))); -setConfigEntry('START_TDAY', makeTime(0, 0, 0, time())); - // HTTP-EOL setConfigEntry('HTTP_EOL', "\r\n"); // CFG: DEBUG-SQL (if enabled and DEBUG_MODE is enabled all SQL queries will be logged to debug.log) setConfigEntry('DEBUG_SQL', 'N'); -// CFG: ENCRYPT-SEPERATOR -setConfigEntry('ENCRYPT_SEPERATOR', ':'); +// CFG: ENCRYPT-SEPARATOR +setConfigEntry('ENCRYPT_SEPARATOR', ':'); // Extra title is empty by default setExtraTitle(''); +// Time unit translations +$GLOBALS['time_units'] = array( + // Data value -> string-representation + 'Y' => 'YEAR', + 'M' => 'MONTH', + 'W' => 'WEEK', + 'D' => 'DAY', + 'h' => 'HOUR', + 'm' => 'MINUTE', + 's' => 'SECOND', +); + // [EOF] ?>