mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-06 06:39:27 +00:00
9f919e6e7b
- Added library MailLib to manage the sending of the email - Changed configuration file mail.php - Changed configuration file message.php - Changed library MessageLib to get a better separation between the messaging system and sending e-mail
47 lines
1.3 KiB
PHP
47 lines
1.3 KiB
PHP
<?php
|
|
|
|
if (! defined("BASEPATH")) exit("No direct script access allowed");
|
|
|
|
$config["msg_delivery"] = true;
|
|
$config["send_immediately"] = false; // If the message should be sent immediately
|
|
|
|
define("EMAIL_KONTAKT_TYPE", "email"); // Email kontakt type
|
|
define("SENT_INFO_NEWLINE", "\n"); // tbl_msg_recipient->sentInfo separator
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Constants for Messaging System
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Statuses
|
|
| Priority
|
|
| Return Codes
|
|
|
|
|
*/
|
|
// message statuses
|
|
define("MSG_STATUS_UNREAD", 0);
|
|
define("MSG_STATUS_READ", 1);
|
|
define("MSG_STATUS_ARCHIVED", 2);
|
|
define("MSG_STATUS_DELETED", 3);
|
|
|
|
// priority
|
|
define("PRIORITY_LOW", 1);
|
|
define("PRIORITY_NORMAL", 2);
|
|
define("PRIORITY_HIGH", 3);
|
|
define("PRIORITY_URGENT", 4);
|
|
|
|
// status return message codes
|
|
define("MSG_SUCCESS", 0);
|
|
define("MSG_ERROR", 1);
|
|
define("MSG_ERR_INVALID_USER_ID", 2);
|
|
define("MSG_ERR_INVALID_MSG_ID", 3);
|
|
define("MSG_ERR_INVALID_THREAD_ID", 4);
|
|
define("MSG_ERR_INVALID_STATUS_ID", 5);
|
|
define("MSG_ERR_INVALID_SENDER_ID", 6);
|
|
define("MSG_ERR_INVALID_RECIPIENTS", 7);
|
|
define("MSG_MESSAGE_SENT", 8);
|
|
define("MSG_STATUS_UPDATE", 9);
|
|
define("MSG_PARTICIPANT_ADDED", 10);
|
|
define("MSG_ERR_PARTICIPANT_EXISTS", 11);
|
|
define("MSG_ERR_PARTICIPANT_NONSYSTEM", 12);
|
|
define("MSG_PARTICIPANT_REMOVED", 13); |