mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:00:13 +01:00
added option to suppress a header in the gui
This commit is contained in:
parent
f7bafa1932
commit
87ee036c59
@ -212,6 +212,7 @@ $config['DN_MAX_LEN'] = 255;
|
|||||||
$config['USE_EMAIL_AS_USERNAME'] = 1;
|
$config['USE_EMAIL_AS_USERNAME'] = 1;
|
||||||
$config['LDAP_IMPORT_MINIMUM_NUMBER_OF_USERS_TO_HEALTH_OK'] = 100;
|
$config['LDAP_IMPORT_MINIMUM_NUMBER_OF_USERS_TO_HEALTH_OK'] = 100;
|
||||||
|
|
||||||
|
$config['HEADER_LINE_TO_HIDE'] = 'X-Envelope-To:';
|
||||||
|
|
||||||
$config['PILER_LOGIN_HELPER_PLACEHOLDER'] = 'PILER_COMMENT_FOR_PROPER_LOGIN_SO_THIS_CAN_BE_ANYTHING_JUST_BE_IT_SOMETHING_LIKE_A_UNIQUE_VALUE';
|
$config['PILER_LOGIN_HELPER_PLACEHOLDER'] = 'PILER_COMMENT_FOR_PROPER_LOGIN_SO_THIS_CAN_BE_ANYTHING_JUST_BE_IT_SOMETHING_LIKE_A_UNIQUE_VALUE';
|
||||||
|
|
||||||
|
@ -189,6 +189,10 @@ class ModelSearchMessage extends Model {
|
|||||||
|
|
||||||
$has_journal = $this->remove_journal($msg);
|
$has_journal = $this->remove_journal($msg);
|
||||||
|
|
||||||
|
if(Registry::get('auditor_user') == 0 && HEADER_LINE_TO_HIDE) {
|
||||||
|
$msg = preg_replace("/" . HEADER_LINE_TO_HIDE . ".{1,}\n/i", "", $msg);
|
||||||
|
}
|
||||||
|
|
||||||
$pos = strpos($msg, "\n\r\n");
|
$pos = strpos($msg, "\n\r\n");
|
||||||
if($pos == false) {
|
if($pos == false) {
|
||||||
$pos = strpos($msg, "\n\n");
|
$pos = strpos($msg, "\n\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user