Fixed: FS#1681 - Out-of-Office too early
Fixed: FS#1801 - german specialchars making trouble in logs
| | |
| | | stop; |
| | | } |
| | | |
| | | if allof(currentdate :value "ge" "date" "<tmpl_var name='start_date'>", currentdate :value "le" "date" "<tmpl_var name='end_date'>") { |
| | | if allof(currentdate :value "ge" "iso8601" "<tmpl_var name='start_date'>", currentdate :value "le" "iso8601" "<tmpl_var name='end_date'>") { |
| | | vacation :days 1 |
| | | :subject "Out of office reply" |
| | | <tmpl_var name='addresses'> |
| | |
| | | $state = 'no_state'; |
| | | $data['output'] = ''; |
| | | } |
| | | |
| | | //* Encode data |
| | | $data['output'] = htmlentities($data['output']); |
| | | |
| | | /* |
| | | * Return the Result |
| | |
| | | * First we get the Monitoring-data from the tools |
| | | */ |
| | | $res = $this->_tools->monitorSystemUpdate(); |
| | | |
| | | //* Ensure that output is encoded so that it does not break the serialize |
| | | $res['data']['output'] = htmlentities($res['data']['output']); |
| | | |
| | | /* |
| | | * Insert the data into the database |
| | |
| | | * First we get the Monitoring-data from the tools |
| | | */ |
| | | $res = $this->_tools->monitorISPCCronLog(); |
| | | |
| | | //* Ensure that output is encoded so that it does not break the serialize |
| | | $res['data']['output'] = htmlentities($res['data']['output']); |
| | | |
| | | /* |
| | | * Insert the data into the database |
| | |
| | | $tpl->setVar('move_junk',$data["new"]["move_junk"]); |
| | | |
| | | // Set autoresponder start date |
| | | $data["new"]["autoresponder_start_date"] = str_replace (" ", "T", $data["new"]["autoresponder_start_date"]); |
| | | $tpl->setVar('start_date',$data["new"]["autoresponder_start_date"]); |
| | | |
| | | // Set autoresponder end date |
| | | $data["new"]["autoresponder_end_date"] = str_replace (" ", "T", $data["new"]["autoresponder_end_date"]); |
| | | $tpl->setVar('end_date',$data["new"]["autoresponder_end_date"]); |
| | | |
| | | // Autoresponder |