piler/config.php.in

518 lines
17 KiB
PHP
Raw Normal View History

2012-02-08 23:14:28 +01:00
<?php
ini_set('session.cookie_httponly', true);
ini_set('session.use_strict_mode', 1);
ini_set('session.use_only_cookies', 1);
define('NORMAL', 1);
define('DEBUG', 5);
2013-10-25 12:17:51 +02:00
$config = array();
2012-02-08 23:14:28 +01:00
/*
* you can override any of these values by putting the
* variable to be overridden in config-site.php
*/
2012-02-08 23:14:28 +01:00
$config['BRANDING_TEXT'] = '';
$config['BRANDING_URL'] = '';
2013-07-18 17:13:49 +02:00
$config['BRANDING_LOGO'] = '';
2013-08-09 22:11:16 +02:00
$config['BRANDING_BACKGROUND_COLOUR'] = '';
$config['BRANDING_TEXT_COLOUR'] = '';
2013-09-17 13:36:47 +02:00
$config['BRANDING_FAVICON'] = '/view/theme/default/assets/ico/favicon.png';
2013-07-16 07:36:48 +02:00
$config['SUPPORT_LINK'] = '';
2013-08-11 11:44:49 +02:00
$config['TITLE_PREFIX'] = '';
2012-02-08 23:14:28 +01:00
$config['CUSTOM_PRE_AUTH_FUNCTION'] = '';
2015-01-15 23:29:48 +01:00
$config['CUSTOM_EMAIL_QUERY_FUNCTION'] = '';
2013-07-31 23:52:51 +02:00
$config['BOOTSTRAP_THEME'] = '-cosmo';
$config['DEFAULT_LANG'] = 'en';
2012-02-08 23:14:28 +01:00
$config['THEME'] = 'default';
2012-02-08 23:14:28 +01:00
$config['SITE_NAME'] = 'piler.yourdomain.com';
$config['SITE_URL'] = 'http://piler.yourdomain.com/';
2012-02-08 23:14:28 +01:00
$config['EXTERNAL_DASHBOARD_URL'] = '';
$config['SESSION_EXPIRY'] = 3600;
$config['DELTA_INDEXER_PERIOD'] = 1800;
2013-07-08 11:31:17 +02:00
$config['ENABLE_SAAS'] = 0;
2013-08-30 15:18:59 +02:00
$config['CAPTCHA_FAILED_LOGIN_COUNT'] = 0;
2013-09-30 16:40:01 +02:00
$config['ENABLE_REFERENCES'] = 1;
$config['ENABLE_DOWNLOADING_ALL_SEARCH_HITS'] = 0;
2015-10-23 20:40:07 +02:00
$config['EML_NAME_BASED_ON_SUBJECT'] = 1;
2013-09-30 16:40:01 +02:00
2013-08-22 11:24:54 +02:00
$config['ENABLE_TABLE_RESIZE'] = 0;
$config['DEMO_MODE'] = 0;
2013-07-08 11:31:17 +02:00
2014-09-15 10:39:24 +02:00
$config['SHOW_MENU_FOR_OUTLOOK'] = 0;
2015-06-02 13:17:27 +02:00
$config['SEARCH_QUERY_QUOTING'] = 0;
$config['LOCALIZE_MESSAGE_HEADERS_IN_PREVIEW'] = 1;
2013-04-03 22:45:27 +02:00
$config['TIMEZONE'] = 'Europe/Budapest';
2013-04-05 11:16:07 +02:00
$config['PROVIDED_BY'] = 'www.mailpiler.org';
$config['SITE_KEYWORDS'] = 'piler email archiver';
$config['SITE_DESCRIPTION'] = 'piler email archiver';
2013-04-03 22:45:27 +02:00
2013-08-09 10:13:54 +02:00
$config['INDEXER_BEACON'] = '/var/piler/stat/indexer';
2013-08-11 09:22:03 +02:00
$config['PURGE_BEACON'] = '/var/piler/stat/purge';
2013-04-03 22:45:27 +02:00
$config['ENABLE_PDF_DOWNLOAD'] = 0;
// You may need to run "Xvfb :1 -screen 0 1024x768x16"
// In this case specify WKHTMLTOPDF_COMMAND = "DISPLAY=:1.0 wkhtmltopdf";
$config['WKHTMLTOPDF_COMMAND'] = "wkhtmltopdf";
2013-04-03 22:45:27 +02:00
// authentication against an ldap directory (disabled by default)
$config['ENABLE_LDAP_AUTH'] = 0;
2013-08-04 12:33:34 +02:00
$config['LDAP_HOST'] = 'ldap.yourdomain.com';
$config['LDAP_PORT'] = 389;
2013-08-04 12:33:34 +02:00
$config['LDAP_HELPER_DN'] = 'cn=....';
2013-04-03 22:45:27 +02:00
$config['LDAP_HELPER_PASSWORD'] = 'xxxxxxx';
$config['LDAP_MAIL_ATTR'] = 'mail';
2013-05-03 09:48:32 +02:00
$config['LDAP_AUDITOR_MEMBER_DN'] = '';
$config['LDAP_ADMIN_MEMBER_DN'] = '';
2013-08-04 12:33:34 +02:00
$config['LDAP_BASE_DN'] = '';
// AD specific settings
//
2013-08-04 12:33:34 +02:00
$config['LDAP_ACCOUNT_OBJECTCLASS'] = 'user';
$config['LDAP_DISTRIBUTIONLIST_OBJECTCLASS'] = 'group';
$config['LDAP_DISTRIBUTIONLIST_ATTR'] = 'member';
$config['LDAP_MAIL_ATTR'] = 'proxyAddresses';
2013-08-04 12:33:34 +02:00
// zimbra specific settings
//$config['LDAP_HELPER_DN'] = 'uid=zimbra,cn=admins,cn=zimbra';
//$config['LDAP_ACCOUNT_OBJECTCLASS'] = 'zimbraAccount';
//$config['LDAP_DISTRIBUTIONLIST_OBJECTCLASS'] = 'zimbraDistributionList';
//$config['LDAP_DISTRIBUTIONLIST_ATTR'] = 'zimbraMailForwardingAddress';
//$config['LDAP_MAIL_ATTR'] = 'mail';
2013-04-03 22:45:27 +02:00
// Lotus Notes specific settings for ldap authentication
//
//$config['LDAP_ACCOUNT_OBJECTCLASS'] = 'dominoPerson';
//$config['LDAP_DISTRIBUTIONLIST_OBJECTCLASS'] = 'dominoGroup');
//$config['LDAP_DISTRIBUTIONLIST_ATTR'] = 'mail';
//$config['LDAP_MAIL_ATTR'] = 'mail';
2013-04-03 22:45:27 +02:00
2013-06-18 09:51:30 +02:00
// iredmail specific settings
//$config['LDAP_HELPER_DN'] = 'cn=vmailadmin,dc=yourdomain,dc=com';
//$config['LDAP_ACCOUNT_OBJECTCLASS'] = 'mailUser';
//$config['LDAP_BASE_DN'] = 'o=domains,dc=yourdomain,dc=com';
//$config['LDAP_DISTRIBUTIONLIST_OBJECTCLASS'] = 'mailList';
//$config['LDAP_DISTRIBUTIONLIST_ATTR'] = 'memberOfGroup';
//$config['LDAP_MAIL_ATTR'] = 'mail';
2013-06-18 09:51:30 +02:00
2013-08-04 12:33:34 +02:00
2013-05-01 17:37:27 +02:00
// enable single sign-on (disabled by default)
$config['ENABLE_SSO_LOGIN'] = 0;
2013-04-03 22:45:27 +02:00
2015-01-15 23:29:48 +01:00
$config['STRIP_DOMAIN_NAME_FROM_USERNAME'] = 0;
2013-04-03 22:45:27 +02:00
// enable authentication against an imap server (disabled by default)
$config['ENABLE_IMAP_AUTH'] = 0;
2014-06-05 13:32:22 +02:00
$config['RESTORE_OVER_IMAP'] = 0;
$config['IMAP_RESTORE_FOLDER_INBOX'] = 'INBOX';
$config['IMAP_RESTORE_FOLDER_SENT'] = 'Sent';
2013-04-03 22:45:27 +02:00
$config['IMAP_HOST'] = 'mail.yourdomain.com';
$config['IMAP_PORT'] = 993;
$config['IMAP_SSL'] = true;
2013-09-30 21:43:41 +02:00
// enable authentication against a pop3 server (disabled by default)
$config['ENABLE_POP3_AUTH'] = 0;
$config['POP3_HOST'] = 'mail.yourdomain.com';
$config['POP3_PORT'] = 995;
$config['POP3_SSL'] = true;
2013-04-03 22:45:27 +02:00
$config['ENABLE_GOOGLE_AUTHENTICATOR'] = 1;
2013-04-03 22:45:27 +02:00
// enable authentication against google (disabled by default)
// see http://www.mailpiler.org/en/google-apps-free.html for details
$config['ENABLE_GOOGLE_LOGIN'] = 0;
$config['GOOGLE_CLIENT_ID'] = 'xxxxxxxxxxx';
$config['GOOGLE_CLIENT_SECRET'] = 'xxxxxxxxxxxxx';
$config['GOOGLE_DEVELOPER_KEY'] = 'xxxxxxxxxxxx';
$config['GOOGLE_APPLICATION_NAME'] = 'piler enterprise email archiver';
$config['GOOGLE_ALL_MAIL'] = '[Gmail]/All Mail';
2013-04-03 22:45:27 +02:00
$config['SITE_LOGO_LG'] = '/view/theme/default/assets/images/archive-logo-lg.png';
$config['SITE_LOGO_SM'] = '/view/theme/default/assets/images/archive-logo-sm.png';
2013-04-05 10:16:33 +02:00
$config['COMPATIBILITY'] = 'Which browsers are supported, etc';
2013-04-03 22:45:27 +02:00
$config['ENABLE_AUDIT'] = 1;
$config['MEMCACHED_ENABLED'] = 0;
$config['PASSWORD_CHANGE_ENABLED'] = 0;
$config['ENABLE_STATISTICS'] = 1;
$config['ENABLE_HISTORY'] = 1;
2015-07-07 14:12:35 +02:00
$config['ENABLE_DELETE'] = 0;
$config['NEED_TO_APPROVE_DELETE'] = 0;
$config['ENABLE_REMOTE_IMAGES'] = '0';
2014-02-18 10:46:23 +01:00
$config['ENABLE_ON_THE_FLY_VERIFICATION'] = 0;
$config['ENABLE_LDAP_IMPORT_FEATURE'] = 0;
$config['ENABLE_FOLDER_RESTRICTIONS'] = 0;
$config['SEARCH_RESULT_CHECKBOX_CHECKED'] = 0;
$config['HELPER_URL'] = '';
$config['LOG_LEVEL'] = NORMAL;
$config['REWRITE_MESSAGE_ID'] = 0;
$config['RESTORE_EMAILS_AS_ATTACHMENT'] = 0;
$config['RESTRICTED_AUDITOR'] = 0;
2012-02-08 23:14:28 +01:00
2013-07-12 11:14:09 +02:00
$config['SHOW_ENVELOPE_JOURNAL'] = 0;
$config['BULK_DOWNLOAD_FOR_USERS'] = 1;
$config['MAX_DOWNLOAD_PER_HOUR'] = 0;
$config['MAX_RESTORE_PER_HOUR'] = 0;
2013-07-12 11:14:09 +02:00
$config['MAX_CGI_FROM_SUBJ_LEN'] = 48;
$config['PAGE_LEN'] = 20;
$config['MAX_NUMBER_OF_FROM_ITEMS'] = 5;
$config['MAX_SEARCH_HITS'] = 1000;
2012-02-08 23:14:28 +01:00
$config['SPHINX_MAIN_INDEX_THRESHOLD'] = 2000000000;
$config['DEFAULT_RETENTION'] = 0;
$config['LOCALHOST'] = '127.0.0.1';
2016-01-04 12:38:53 +01:00
$config['PILER_HOST'] = '0.0.0.0';
$config['PILER_PORT'] = 25;
2016-01-04 12:38:53 +01:00
$config['SMARTHOST'] = '';
$config['SMARTHOST_PORT'] = 25;
$config['SMTP_DOMAIN'] = 'yourdomain.com';
$config['SMTP_FROMADDR'] = 'no-reply@yourdomain.com';
$config['ADMIN_EMAIL'] = 'admin@yourdomain.com';
2012-02-08 23:14:28 +01:00
$config['PILER_HEADER_FIELD'] = 'X-piler-id: ';
$config['DEFAULT_POLICY'] = 'default_policy';
$config['DIR_BASE'] = '/var/piler/www/';
2013-02-16 12:33:25 +01:00
$config['DIR_SPHINX'] = '/var/piler/sphinx/';
$config['DIR_STAT'] = '/var/piler/stat';
$config['DIR_IMAP'] = '/var/piler/imap';
$config['DIR_TMP'] = '/var/piler/tmp';
$config['DECRYPT_BINARY'] = '/usr/local/bin/pilerget';
$config['DECRYPT_ATTACHMENT_BINARY'] = '/usr/local/bin/pileraget';
$config['DECRYPT_BUFFER_LENGTH'] = 65536;
2015-04-22 12:26:04 +02:00
$config['OPENSSL_BINARY'] = '/usr/bin/openssl';
$config['TSA_URL'] = '';
$config['TSA_PUBLIC_KEY_FILE'] = '';
$config['TSA_START_ID'] = 1;
$config['TSA_STAMP_REQUEST_UNIT_SIZE'] = 10000;
$config['DB_DRIVER'] = 'mysql';
$config['DB_PREFIX'] = '';
$config['DB_HOSTNAME'] = 'localhost';
$config['DB_USERNAME'] = 'piler';
$config['DB_PASSWORD'] = 'piler';
$config['DB_DATABASE'] = 'piler';
$config['DB_CHARSET'] = 'utf8mb4';
$config['SPHINX_DRIVER'] = 'sphinx';
$config['SPHINX_DATABASE'] = 'sphinx';
$config['SPHINX_HOSTNAME'] = '127.0.0.1:9306';
$config['SPHINX_MAIN_INDEX'] = 'main1,dailydelta1,delta1';
2015-04-13 16:23:52 +02:00
$config['SPHINX_ATTACHMENT_INDEX'] = 'att1';
$config['SPHINX_TAG_INDEX'] = 'tag1';
$config['SPHINX_NOTE_INDEX'] = 'note1';
$config['RELOAD_COMMAND'] = 'sudo -n /etc/init.d/rc.piler reload';
2014-04-24 10:18:29 +02:00
$config['PILERIMPORT_IMAP_COMMAND'] = '/usr/local/bin/pilerimport -d /var/piler/imap -q -r';
2015-02-18 15:51:38 +01:00
$config['CPU_USAGE_COMMAND'] = "LC_ALL=C mpstat | tail -1 | rev | awk '{ print $1 }' | rev";
2015-03-18 15:22:53 +01:00
$config['PILER_BINARY'] = "/usr/local/sbin/piler";
$config['LDAP_IMPORT_CONFIG_FILE'] = '/usr/local/etc/ldap-import.cfg';
$config['DN_MAX_LEN'] = 255;
$config['USE_EMAIL_AS_USERNAME'] = 1;
$config['LDAP_IMPORT_MINIMUM_NUMBER_OF_USERS_TO_HEALTH_OK'] = 100;
$config['HEADER_LINE_TO_HIDE'] = 'X-Envelope-To:';
2013-07-26 21:24:18 +02:00
$config['PILER_LOGIN_HELPER_PLACEHOLDER'] = 'PILER_COMMENT_FOR_PROPER_LOGIN_SO_THIS_CAN_BE_ANYTHING_JUST_BE_IT_SOMETHING_LIKE_A_UNIQUE_VALUE';
2013-04-22 16:52:02 +02:00
$config['SIZE_X'] = 430;
$config['SIZE_Y'] = 250;
$config['DATE_TEMPLATE'] = 'Y.m.d';
$config['DATE_FORMAT'] = 'YYYY-MM-DD';
$config['JQUERY_DATE_FORMAT'] = 'yy-mm-dd';
$config['FROM_LENGTH_TO_SHOW'] = 28;
$config['HISTORY_REFRESH'] = 60;
2014-05-01 12:23:54 +02:00
$config['HEALTH_REFRESH'] = 300;
$config['HEALTH_RATIO'] = 80;
$config['MAX_AUDIT_HITS'] = 1000;
$config['MIN_PASSWORD_LENGTH'] = 6;
2015-01-23 10:03:44 +01:00
$config['MIN_PREFIX_LEN'] = 5;
2015-02-11 11:35:36 +01:00
$config['ADMIN_CAN_POWER_SEARCH'] = 0;
2015-02-20 12:58:36 +01:00
$config['FOUR_EYES_LOGIN_FOR_AUDITOR'] = 0;
2015-02-11 11:35:36 +01:00
$config['MEMCACHED_PREFIX'] = '_piler:';
$config['MEMCACHED_TTL'] = 900;
$config['JS_CODE'] = '
<script src="//code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<script src="//code.jquery.com/ui/1.12.1/jquery-ui.min.js" integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" crossorigin="anonymous"></script>
<script src="//stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
<script type="text/javascript" src="/view/javascript/rc-splitter.js"></script>
<script type="text/javascript" src="/view/javascript/piler.js"></script>
';
$config['CSS_CODE'] = '
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
<link rel="stylesheet" href="/view/theme/default/assets/css/piler.css" />
';
$SUPPRESS_RECIPIENTS = array();
$memcached_servers = array(
array('127.0.0.1', 11211)
);
2014-09-17 15:51:35 +02:00
$partitions_to_monitor = array('/', '/home', '/var', '/var/piler', '/tmp');
2013-02-16 12:33:25 +01:00
$config['DATA_PARTITION'] = '/var';
2013-08-02 16:33:14 +02:00
$config['DELIMITER'] = "\t";
2013-09-26 16:15:03 +02:00
$config['TRACKING_CODE'] = '';
$langs = array(
'cz',
2013-08-30 15:21:19 +02:00
'de',
'en',
2013-08-30 15:21:19 +02:00
'es',
2014-09-10 11:12:50 +02:00
'fr',
2013-08-30 15:21:19 +02:00
'hu',
'pl',
'pt',
'ru',
'tr'
);
$themes = array(
2013-04-05 10:16:33 +02:00
'default',
);
2013-11-15 22:04:26 +01:00
$paging = array(
10,
20,
30,
50
);
2014-01-23 21:39:47 +01:00
$automated_search_recipients = array();
2013-11-15 22:04:26 +01:00
$letters = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');
define('NOW', time());
/*
* normally you don't have to change anything below
*/
require_once 'SYSCONFDIR/piler/config-site.php';
ini_set('session.cookie_lifetime', $config['SESSION_EXPIRY']);
2013-11-18 19:24:33 +01:00
require($config['DIR_BASE'] . "/system/registry.php");
require($config['DIR_BASE'] . "/system/request.php");
$session = new Session();
Registry::set("session", $session);
if($session->get("theme") && preg_match("/^([a-zA-Z0-9\-\_]+)$/", $session->get("theme"))) { $config['THEME'] = $session->get("theme"); }
2013-07-12 11:14:09 +02:00
2013-08-06 11:35:25 +02:00
include("system/helper/detectmobilebrowser.php");
2013-08-06 11:32:02 +02:00
$config['ENABLE_MOBILE_PREVIEW'] = 0;
2013-07-12 11:14:09 +02:00
// make sure auditors are restricted in a saas environment
2013-07-12 15:02:50 +02:00
if($config['ENABLE_SAAS'] == 1) { $config['RESTRICTED_AUDITOR'] = 1; }
2014-01-23 21:39:47 +01:00
if($session->get("username") == 'auditor@local' || isset($_SERVER['argv'][2]) ) { $config['RESTRICTED_AUDITOR'] = 0; }
2013-07-12 15:02:50 +02:00
2013-04-05 10:16:33 +02:00
foreach ($config as $k => $v) {
define($k, $v);
}
2012-02-08 23:14:28 +01:00
define('TABLE_USER', 'user');
2012-06-22 12:30:55 +02:00
define('TABLE_GROUP', 'group');
define('TABLE_GROUP_USER', 'group_user');
2012-06-22 12:30:55 +02:00
define('TABLE_GROUP_EMAIL', 'group_email');
2012-09-06 15:27:20 +02:00
define('TABLE_FOLDER', 'folder');
define('TABLE_FOLDER_USER', 'folder_user');
define('TABLE_FOLDER_EXTRA', 'folder_extra');
define('TABLE_FOLDER_MESSAGE', 'folder_message');
2012-02-08 23:14:28 +01:00
define('TABLE_EMAIL', 'email');
define('TABLE_META', 'metadata');
2013-01-14 14:46:34 +01:00
define('TABLE_RCPT', 'rcpt');
2012-02-08 23:14:28 +01:00
define('TABLE_ATTACHMENT', 'attachment');
define('TABLE_SEARCH', 'search');
define('TABLE_EMAIL_LIST', 'email_groups');
define('TABLE_TAG', 'tag');
2012-09-02 23:21:41 +02:00
define('TABLE_NOTE', '`note`');
2012-02-08 23:14:28 +01:00
define('TABLE_USER_SETTINGS', 'user_settings');
define('TABLE_REMOTE', 'remote');
define('TABLE_DOMAIN', 'domain');
2013-01-05 16:42:36 +01:00
define('TABLE_DOMAIN_USER', 'domain_user');
2012-02-08 23:14:28 +01:00
define('TABLE_COUNTER', 'counter');
2013-02-16 12:33:25 +01:00
define('TABLE_COUNTER_MSG', 'counter_messages');
define('TABLE_STAT_COUNTER', 'counter_stats');
2012-02-08 23:14:28 +01:00
define('TABLE_AUDIT', 'audit');
define('TABLE_ARCHIVING_RULE', 'archiving_rule');
2015-09-03 14:41:52 +02:00
define('TABLE_FOLDER_RULE', 'folder_rule');
2012-02-19 22:59:47 +01:00
define('TABLE_RETENTION_RULE', 'retention_rule');
2012-04-27 14:39:10 +02:00
define('TABLE_OPTION', 'option');
2013-07-08 11:31:17 +02:00
define('TABLE_LDAP', 'ldap');
2013-07-16 07:36:48 +02:00
define('TABLE_CUSTOMER_SETTINGS', 'customer_settings');
2013-07-24 22:14:05 +02:00
define('TABLE_ONLINE', 'online');
2013-08-23 13:02:51 +02:00
define('TABLE_IMPORT', 'import');
define('TABLE_GOOGLE', 'google');
define('TABLE_GOOGLE_IMAP', 'google_imap');
define('TABLE_AUTOSEARCH', 'autosearch');
2015-03-29 16:27:44 +02:00
define('TABLE_LEGAL_HOLD', 'legal_hold');
2015-04-22 12:26:04 +02:00
define('TABLE_TIMESTAMP', 'timestamp');
2016-02-10 14:57:30 +01:00
define('TABLE_PRIVATE', 'private');
define('TABLE_DELETED', 'deleted');
2012-04-27 14:39:10 +02:00
define('VIEW_MESSAGES', 'v_messages');
2012-02-08 23:14:28 +01:00
define('EOL', "\n");
2012-02-08 23:14:28 +01:00
define('DIR_SYSTEM', DIR_BASE . 'system/');
define('DIR_MODEL', DIR_BASE . 'model/');
define('DIR_DATABASE', DIR_BASE . 'system/database/');
define('DIR_IMAGE', DIR_BASE . 'image/');
define('DIR_LANGUAGE', DIR_BASE . 'language/');
define('DIR_APPLICATION', DIR_BASE . 'controller/');
define('DIR_THEME', DIR_BASE . 'view/theme/');
define('DIR_REPORT', DIR_BASE . 'reports/');
define('DIR_LOG', DIR_BASE . 'log/');
2012-02-08 23:14:28 +01:00
define('REMOTE_IMAGE_REPLACEMENT', '/view/theme/' . THEME . '/images/remote.gif');
define('ICON_ARROW_UP', '/view/theme/' . THEME . '/images/arrowup.gif');
define('ICON_ARROW_DOWN', '/view/theme/' . THEME . '/images/arrowdown.gif');
define('ICON_ATTACHMENT', '/view/theme/' . THEME . '/images/attachment_icon.png');
define('ICON_TAG', '/view/theme/' . THEME . '/images/tag_blue.png');
define('ICON_GREEN_OK', '/view/theme/' . THEME . '/images/green_ok.png');
define('ICON_RED_X', '/view/theme/' . THEME . '/images/red_x.png');
define('ICON_DOWNLOAD', '/view/theme/' . THEME . '/images/download_icon.jpg');
define('ICON_NOTES', '/view/theme/' . THEME . '/images/notes.png');
define('ICON_PLUS', '/view/theme/' . THEME . '/images/plus.gif');
define('ICON_MINUS', '/view/theme/' . THEME . '/images/minus.gif');
define('ICON_EMPTY', '/view/theme/' . THEME . '/images/1x1.gif');
2012-02-08 23:14:28 +01:00
define('QSHAPE_ACTIVE_INCOMING', DIR_STAT . '/active+incoming');
define('QSHAPE_ACTIVE_INCOMING_SENDER', DIR_STAT . '/active+incoming-sender');
define('QSHAPE_DEFERRED', DIR_STAT . '/deferred');
define('QSHAPE_DEFERRED_SENDER', DIR_STAT . '/deferred-sender');
2012-02-08 23:14:28 +01:00
define('CPUSTAT', DIR_STAT . '/cpu.stat');
define('AD_SYNC_STAT', DIR_STAT . '/adsync.stat');
define('ARCHIVE_SIZE', DIR_STAT . '/archive.size');
define('SPHINX_MAIN_INDEX_SIZE', DIR_STAT . '/main_index_size');
define('LOCK_FILE', DIR_LOG . 'lock');
2012-02-08 23:14:28 +01:00
define('SEARCH_HELPER_URL', SITE_URL . 'search-helper.php');
define('AUDIT_HELPER_URL', SITE_URL . 'audit-helper.php');
2012-05-07 09:38:47 +02:00
define('BULK_RESTORE_URL', SITE_URL . 'bulkrestore.php');
2012-02-08 23:14:28 +01:00
define('SAVE_SEARCH_URL', SITE_URL . 'index.php?route=search/save');
2012-09-16 17:02:38 +02:00
define('LOAD_SAVED_SEARCH_URL', SITE_URL . 'index.php?route=search/load');
2012-03-10 14:52:50 +01:00
define('SEARCH_TAG_URL', SITE_URL . 'index.php?route=search/tag');
define('MESSAGE_NOTE_URL', SITE_URL . 'index.php?route=message/note');
define('GOOGLE_REDIRECT_URL', SITE_URL . 'google.php');
2012-04-27 14:39:10 +02:00
define('HEALTH_URL', SITE_URL . 'index.php?route=health/health');
2012-02-08 23:14:28 +01:00
define('HEALTH_WORKER_URL', SITE_URL . 'index.php?route=health/worker');
2012-06-27 11:17:23 +02:00
2014-01-15 14:47:30 +01:00
define('LDAP_TYPE_GENERIC', 'generic_ldap');
2012-02-08 23:14:28 +01:00
define('ACTION_ALL', 0);
define('ACTION_UNKNOWN', 1);
define('ACTION_LOGIN', 2);
define('ACTION_LOGIN_FAILED', 3);
define('ACTION_LOGOUT', 4);
define('ACTION_VIEW_MESSAGE', 5);
define('ACTION_VIEW_HEADER', 6);
define('ACTION_UNAUTHORIZED_VIEW_MESSAGE', 7);
define('ACTION_RESTORE_MESSAGE', 8);
define('ACTION_DOWNLOAD_MESSAGE', 9);
define('ACTION_SEARCH', 10);
define('ACTION_SAVE_SEARCH', 11);
define('ACTION_CHANGE_USER_SETTINGS', 12);
define('ACTION_REMOVE_MESSAGE', 13);
define('ACTION_UNAUTHORIZED_REMOVE_MESSAGE', 14);
define('ACTION_DOWNLOAD_ATTACHMENT', 15);
define('ACTION_UNAUTHORIZED_DOWNLOAD_ATTACHMENT', 16);
2013-07-23 22:44:34 +02:00
define('ACTION_VIEW_JOURNAL', 17);
2014-01-16 12:57:29 +01:00
define('ACTION_NOT_SPAM', 18);
2016-02-10 14:57:30 +01:00
define('ACTION_MARK_AS_PRIVATE', 19);
define('ACTION_MARK_MESSAGE_FOR_REMOVAL', 20);
2012-02-08 23:14:28 +01:00
$actions = array(
'unknown' => 1,
'login' => 2,
'loginfailed' => 3,
'logout' => 4,
'view' => 5,
'view_header' => 6,
'restore' => 8,
'download' => 9,
'search' => 10,
'save_search' => 11,
2013-07-23 22:44:34 +02:00
'download_attachment' => 15,
2016-02-10 14:57:30 +01:00
'journal' => 17,
'private' => 19
);
2012-02-08 23:14:28 +01:00
2013-08-23 13:02:51 +02:00
$import_status = array(
0 => 'PENDING',
1 => 'RUNNING',
2013-08-23 13:46:27 +02:00
2 => 'FINISHED',
3 => 'ERROR'
2013-08-23 13:02:51 +02:00
);
$counters = array(MEMCACHED_PREFIX . 'rcvd', MEMCACHED_PREFIX . 'virus', MEMCACHED_PREFIX . 'duplicate', MEMCACHED_PREFIX . 'ignore', MEMCACHED_PREFIX . 'counters_last_update');
2012-02-08 23:14:28 +01:00
2013-04-30 10:01:38 +02:00
if(!isset($health_smtp_servers)) {
$health_smtp_servers = array( array(PILER_HOST, PILER_PORT, "piler"), array(SMARTHOST, SMARTHOST_PORT, "smarthost") );
}
2012-02-08 23:14:28 +01:00
2012-02-08 23:14:28 +01:00
?>