Changeset 6430
- Timestamp:
- 06/06/12 09:27:11 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r6333 r6430 1670 1670 1671 1671 case 'REPLY': 1672 include_once(dirname(__FILE__).'/../../header.inc.php');1673 include_once(dirname(__FILE__).'/../../calendar/inc/class.boicalendar.inc.php');1674 $boicalendar = new boicalendar();1675 1676 $ical = $icalService->getComponent('vevent');1677 $content.= '<b>'.$this->functions->getLang('Event Calendar').'</b><br /><br />';1678 $content.= '<span style="font-size: 12" >';1679 $notExist = false;1680 1681 foreach ($ical['attendee'] as $attendee)1682 {1683 if($attendee['params']['PARTSTAT'] == 'ACCEPTED')1684 {1685 if($boicalendar->updateExParticipantState($ical['uid']['value'],$attendee['value'],'ACCEPTED',$attendee['params']['CN']))1686 {1687 $content.= $this->functions->getLang('User').' ';1688 if($attendee['params']['CN'])1689 $content.= '<b>'.$attendee['params']['CN'].'</b> ';1690 else1691 $content.= '<b>'.$attendee['value'].'</b> ';1692 1693 $content.= $this->functions->getLang('accepted your event');1694 }1695 else1696 $notExist = true;1697 }1698 1699 if($attendee['params']['PARTSTAT'] == 'TENTATIVE')1700 {1701 if($boicalendar->updateExParticipantState($ical['uid']['value'],$attendee['value'],'TENTATIVE',$attendee['params']['CN']))1702 {1703 $content.= $this->functions->getLang('User').' ';1704 if($attendee['params']['CN'])1705 $content.= '<b>'.$attendee['params']['CN'].'</b> ';1706 else1707 $content.= '<b>'.$attendee['value'].'</b> ';1708 1709 if($ical['description']['value'])1710 $content.= ' <br /> '.str_replace('\n','<br />',nl2br($ical['description']['value']));1711 else1712 $content.= $this->functions->getLang('provisionally accepted you event');1713 }1714 else1715 $notExist = true;1716 }1717 1718 if($attendee['params']['PARTSTAT'] == 'DECLINED')1719 {1720 if($boicalendar->updateExParticipantState($ical['uid']['value'],$attendee['value'],'DECLINED',$attendee['params']['CN']))1721 {1722 $content.= $this->functions->getLang('User').' ';1723 if($attendee['params']['CN'])1724 $content.= '<b>'.$attendee['params']['CN'].'</b> ';1725 else1726 $content.= '<b>'.$attendee['value'].'</b> ';1727 1728 if($ical['description']['value'])1729 $content.= ' <br /> '.str_replace('\n','<br />',nl2br($ical['description']['value']));1730 else1731 $content.= $this->functions->getLang('provisionally decline you event');1732 }1733 else1734 $notExist = true;1735 }1736 }1737 if($notExist)1738 $content.= '<b><span style="color:red">'.$this->functions->getLang('This event does not exist on its agenda').'.</span></b>';1739 $content.= '</span><br /><br />';1740 1741 1672 break; 1742 1673 1743 1674 case 'CANCEL': 1744 1675 1745 1676 $ical = $icalService->getComponent('vevent');
Note: See TracChangeset
for help on using the changeset viewer.