Project

General

Profile

Bug #19365 » bug_9407_trunk.diff

Administrator Admin, 2010-10-01 10:15

View differences:

t3lib/config_default.php (working copy)
'createGroup' => '', // Group for newly created files and folders (Unix only). Group ownership can be changed on Unix file systems (see above). Set this if you want to change the group ownership of created files/folders to a specific group. This makes sense in all cases where the webserver is running with a different user/group as you do. Create a new group on your system and add you and the webserver user to the group. Now you can safely set the last bit in fileCreateMask/folderCreateMask to 0 (e.g. 770). Important: The user who is running your webserver needs to be a member of the group you specify here! Otherwise you might get some error messages.
'warning_email_addr' => '', // Email address that will receive notification whenever an attempt to login to the Install Tool is made and that will also receive warnings whenever more than 3 failed backend login attempts (regardless of user) are detected within an hour.
'warning_mode' => '', // Bit 1: If set, warning_email_addr will be notified every time a backend user logs in. Bit 2: If set, warning_email_addr will be notified every time an ADMIN backend user logs in. Other bits are reserved for future options.
'notify_email_header' => 'From: TYPO3 Login notify <no_reply@no_reply.no_reply>', // Set the email header for the notification mail from the backend
'lockIP' => 4, // Integer (0-4). Session IP locking for backend users. See <a href="#FE-lockIP">[FE][lockIP]</a> for details. Default is 4 (which is locking the FULL IP address to session).
'sessionTimeout' => 3600, // Integer: seconds. Session time out for backend users. Default is 3600 seconds = 1 hour.
'IPmaskList' => '', // String: Lets you define a list of IP-numbers (with *-wildcards) that are the ONLY ones allowed access to ANY backend activity. On error an error header is sent and the script exits. Works like IP masking for users configurable through TSconfig. See syntax for that (or look up syntax for the function t3lib_div::cmpIP())
......
$ACCESS_TIME = $EXEC_TIME - ($EXEC_TIME % 60); // $ACCESS_TIME is a common time in minutes for access control
$SIM_ACCESS_TIME = $ACCESS_TIME; // if $SIM_EXEC_TIME is changed this value must be set accordingly
?>
?>
t3lib/class.t3lib_beuserauth.php (working copy)
*/
function emailAtLogin() {
if ($this->loginSessionStarted) {
/*
* make the notify header configureable
*/
if(!empty($GLOBALS['TYPO3_CONF_VARS']['BE']['notify_email_header'])) {
$this->notifyHeader = $GLOBALS['TYPO3_CONF_VARS']['BE']['notify_email_header'];
}
// Send notify-mail
$subject = 'At "'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'].'"'.
' from '.t3lib_div::getIndpEnv('REMOTE_ADDR').
(3-3/4)