Files
@ r41:0152e8091f0c
Branch filter:
Location: public/ws-vacation/lib/config.php
r41:0152e8091f0c
4.2 KiB
text/x-php
unconditional $FOOTER implemented via $VACATION_MSG_IN_FILE. $SUDO_CMD debugging.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | <?php // -*- php -*-
// Copyright (C) 2012, Wolfgang Scherer, <Wolfgang.Scherer at gmx.de>
// Sponsored by WIEDENMANN SEILE GMBH, http://www.wiedenmannseile.de
//
// This file is part of Wiedenmann Vacation.
//
// 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 the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>,
// or write to <Wolfgang.Scherer at gmx.de>
// $_REQUEST['_DEBUG_'] = 1;
// --------------------------------------------------
// |||:sec:||| CONFIGURATION
// --------------------------------------------------
// All users in $PASSWD_FILE, whose user ID >= $USER_ID_MIN and <=
// $USER_ID_MAX are considered:
// 1. If the user appears in $ALLOWED_USERS, he is always included
// 2. If the HOME directory does not start with $HOME_PFX, the user is ignored
// 3. If the user appears in $INVALID_USERS, he is ignored
// 4. The user is authorized.
// Alle Benutzer in $PASSWD_FILE, deren User ID >= $USER_ID_MIN und <=
// $USER_ID_MAX werden in Betracht gezogen:
// 1. Falls der Benutzer in $ALLOWED_USERS angegeben ist, wird er immer zugelassen.
// 2. Wenn das HOME-Verzeichnis nicht mit $HOME_PFX beginnnt, wird der Benutzer nicht zugelasssen.
// 3. Wenn der Benutzer in $INVALID_USERS angegeben ist, wird er nicht zugelasssen.
// 4. Der Benutzer wird zugelassen.
$DOMAIN_SUFFIX = '@ws-gruppe.de';
// User which are always allowed.
// If the user appears in $PASSWD_FILE, he is always enabled.
$ALLOWED_USERS = Array(
);
// Administrators can modify the settings of all users.
$ADMIN_USERS = Array(
'sw',
);
// User aliases for vacation
$USER_ALIASES = Array(
// auto-generated |:conf:| /etc/srvconfig/mail/userdb-user-for-mx.sh --php-alias
'admin' => 'ws.admin',
// |:conf:| end
);
// Invalid users.
// These users are always ignored.
$INVALID_USERS = Array(
'clamav',
'postman',
'vmail',
// auto-generated |:conf:| /etc/srvconfig/mail/userdb-user-for-mx.sh x | sed "s,^, ',;s/$/',/"
'bn',
// |:conf:| end
);
$LANGUAGE = 'en';
$LANGUAGE = 'de';
$PASSWD_FILE = '/etc/passwd';
$SHADOW_FILE = '/etc/shadow';
$HTPASSWD_FILE = '.htpasswd';
$HOME_PFX = '/home/';
$USER_ID_MIN = 1000;
$USER_ID_MAX = 60000;
$SUDO_CMD = '/usr/bin/sudo';
$SUDO_OPT_H = ' -H';
$TEST_CMD = dirname(__FILE__) . '/test_readable.sh';
$RM_CMD = '/bin/rm -f';
$CAT_CMD = '/bin/cat';
$WRITE_TO_CMD = dirname(__FILE__) . '/write_to.sh';
$FORMAIL_CMD = '/usr/bin/formail';
$VACATION_CMD = '/usr/bin/vacation';
$VACATION_MSG_FILE = '.vacation.msg';
$VACATION_MSG_IN_FILE = '.vacation.msg.in';
$VACATION_DB_FILE = '.vacation.db';
$VACATION_INIT_OPTS = '-i -r 1';
$VACATION_EXLCUDE_OPTS = '-x';
$VACATION_FORWARD_ENTRY = sprintf('"| %s -c | %s %%s"', $FORMAIL_CMD, $VACATION_CMD); // use sprintf($VFE, $user);
$FORWARD_FILE = '.forward';
$VACATION_FORWARD_EXT_ENTRY = '"| /usr/bin/formail -c | /etc/postfix/dovecot-deliver.sh"';
$FORWARD_EXTENSIONS = Array('+sent', '+drafts', '+trash');
$EXPERT_ENABLED = True;
$HEADER_REMOVE = Array(
'bcc',
'cc',
'date',
'delivered-to',
'message-id',
'received',
'return-path',
'to',
'user-agent',
'references',
'in-reply-to',
);
$FOOTER = trim('
');
//
// :ide-menu: Emacs IDE Menu - Buffer @BUFFER@
// . M-x `eIDE-menu' ()(eIDE-menu "z")
// :ide: COMPILE: PHP _DEBUG_=2 _DEBUG_TEST_=2
// . (compile (concat "php " (file-name-nondirectory (buffer-file-name)) " _DEBUG_=2 _DEBUG_TEST_=2"))
// :ide: QUO: $this->
// . (insert "$this->" )
// :ide: COMPILE: PHP w/o args
// . (compile (concat "php " (file-name-nondirectory (buffer-file-name)) ""))
// :ide: COMPILE: PHP _DEBUG_=1 _DEBUG_TEST_=1
// . (compile (concat "php " (file-name-nondirectory (buffer-file-name)) " _DEBUG_=1 _DEBUG_TEST_=1"))
//
// Local Variables:
// mode: php
// End:
?>
|