remove()) { $error = 1; } } //Set the vacation data for $fUsername if (!empty ($fChange)) { if(!$vh->set_away($fSubject, $fBody, $tActiveFrom, $tActiveUntil)) { $error = 1; } } } if($error == 0) { if(!empty ($fBack)) { $tMessage = $PALANG['pVacation_result_removed']; } if(!empty($fChange)) { $tMessage= $PALANG['pVacation_result_added']; } } else { $tMessage = $PALANG['pVacation_result_error']; } if (empty ($tActiveFrom)) $tActiveFrom = date ("Y-m-d"); if (empty ($tActiveUntil)) $tActiveUntil = date ("Y-m-d"); $smarty->assign ('tUseremail', $tUseremail); $smarty->assign ('tSubject', $tSubject); $smarty->assign ('tBody', $tBody ,false); $smarty->assign ('tMessage', $tMessage, false); $smarty->assign ('tActiveFrom', date ("d.m.Y", strtotime ($tActiveFrom))); $smarty->assign ('tActiveUntil', date ("d.m.Y", strtotime ($tActiveUntil))); $smarty->assign ('fCanceltarget', $fCanceltarget); $smarty->assign ('smarty_template', 'edit-vacation'); $smarty->display ('index.tpl'); /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?>