getProxy('vacation'); $VACCONFTXT = _("I will be away from until . For urgent matters you can contact ."); bindtextdomain('squirrelmail', SM_PATH . 'locale'); textdomain('squirrelmail'); $VACCONF = <<getDetails(); if ($vacation->checkVacation()) { bindtextdomain('postfixadmin', SM_PATH . 'plugins/postfixadmin/locale'); textdomain('postfixadmin'); $tMessage = _("You already have an auto response configured!"); bindtextdomain('squirrelmail', SM_PATH . 'locale'); textdomain('squirrelmail'); bindtextdomain('postfixadmin', SM_PATH . 'plugins/postfixadmin/locale'); textdomain('postfixadmin'); echo "
". _("Options") ." - ". _("Auto Response") ."

". _("Auto Response") ."\n
$tMessage

 

"; bindtextdomain('squirrelmail', SM_PATH . 'locale'); textdomain('squirrelmail'); } else { $tSubject = "Out of Office"; $tSubject = $details['subject']; $VACCONF = $details['body']; $tMessage = ''; bindtextdomain('postfixadmin', SM_PATH . 'plugins/postfixadmin/locale'); textdomain('postfixadmin'); echo "
". _("Options") ." - ". _("Auto Response") ."

" . _("Auto Response") ."\n
$tMessage
". _("Subject") .":\n      
". _("Body") .":\n     
     
 

"; bindtextdomain('squirrelmail', SM_PATH . 'locale'); textdomain('squirrelmail'); } } if ($_SERVER['REQUEST_METHOD'] == "POST") { $fBack = null; $fAway = null; foreach (array('fBack', 'fAway', 'fSubject', 'fBody') as $key) { $$key = null; if (isset($_POST[$key])) { $$key = $_POST[$key]; } } if (!empty($fBack)) { $success = $vacation->remove(); if (!$success) { bindtextdomain('postfixadmin', SM_PATH . 'plugins/postfixadmin/locale'); textdomain('postfixadmin'); $tMessage = _("Unable to update your auto response settings!"); echo "

This may signify an error; please contact support (1)

"; bindtextdomain('squirrelmail', SM_PATH . 'locale'); textdomain('squirrelmail'); } else { bindtextdomain('postfixadmin', SM_PATH . 'plugins/postfixadmin/locale'); textdomain('postfixadmin'); echo "

". _("Your auto response has been removed!") ."

"; bindtextdomain('squirrelmail', SM_PATH . 'locale'); textdomain('squirrelmail'); } } if (!empty($fAway)) { // add record into vacation $success = $vacation->setAway($fSubject, $fBody); if (!$success) { $error = 1; bindtextdomain('postfixadmin', SM_PATH . 'plugins/postfixadmin/locale'); textdomain('postfixadmin'); $tMessage = _("Unable to update your auto response settings!"); bindtextdomain('squirrelmail', SM_PATH . 'locale'); textdomain('squirrelmail'); } else { bindtextdomain('postfixadmin', SM_PATH . 'plugins/postfixadmin/locale'); textdomain('postfixadmin'); echo "

". _("Your auto response has been set!") ."

"; bindtextdomain('squirrelmail', SM_PATH . 'locale'); textdomain('squirrelmail'); } } }