protected function getBoxStatus($data) { // get box status $this->WwoData['Status'] = 1; if (WBBCore::getUser()->userID) { $this->WwoData['Status'] = intval(WBBCore::getUser()->todayonlinebox); } else { if (WBBCore::getSession()->getVar('todayonlinebox') != false) { $this->WwoData['Status'] = WBBCore::getSession()->getVar('todayonlinebox'); } } }
protected function getBoxStatus($data) { // get box status $this->TopData['Status'] = 1; if (WBBCore::getUser()->userID) { $this->TopData['Status'] = intval(WBBCore::getUser()->topthanksgivingposts); } else { if (WBBCore::getSession()->getVar('topthanksgivingposts') != false) { $this->TopData['Status'] = WBBCore::getSession()->getVar('topthanksgivingposts'); } } }
protected function getBoxStatus($data) { // get box status $this->BoxData['Status'] = 1; if (WBBCore::getUser()->userID) { $this->BoxData['Status'] = intval(WBBCore::getUser()->wbb3addonsBox01); } else { if (WBBCore::getSession()->getVar('wbb3addonsBox01') != false) { $this->BoxData['Status'] = WBBCore::getSession()->getVar('wbb3addonsBox01'); } } }
protected function getBoxStatus($data) { // get box status $this->threadLastPostsBoxData['Status'] = 1; if (WBBCore::getUser()->userID) { $this->threadLastPostsBoxData['Status'] = intval(WBBCore::getUser()->threadlastpostsbox); } else { if (WBBCore::getSession()->getVar('threadlastpostsbox') != false) { $this->threadLastPostsBoxData['Status'] = WBBCore::getSession()->getVar('threadlastpostsbox'); } } }
protected function getBoxStatus($data) { // get box status $this->StickyTopicsData['Status'] = 1; if (WBBCore::getUser()->userID) { $this->StickyTopicsData['Status'] = intval(WBBCore::getUser()->stickyTopicsBox); } else { if (WBBCore::getSession()->getVar('stickyTopicsBox') != false) { $this->StickyTopicsData['Status'] = WBBCore::getSession()->getVar('stickyTopicsBox'); } } }
protected function getBoxStatus($data) { // get box status $this->BoxData['Status'] = 1; if (WBBCore::getUser()->userID) { $this->BoxData['Status'] = intval(WBBCore::getUser()->profileLastVisitorsBox); } else { if (WBBCore::getSession()->getVar('profileLastVisitorsBox') != false) { $this->BoxData['Status'] = WBBCore::getSession()->getVar('profileLastVisitorsBox'); } } }
protected function getBoxStatus($data) { // get box status $this->BoxData['Status'] = 1; if (WBBCore::getUser()->userID) { $this->BoxData['Status'] = intval(WBBCore::getUser()->downloadDatabaseBox); } else { if (WBBCore::getSession()->getVar('downloadDatabaseBox') != false) { $this->BoxData['Status'] = WBBCore::getSession()->getVar('downloadDatabaseBox'); } } }
protected function getBoxStatus($data) { // get box status $this->BoardlistData['Status'] = 1; if (WBBCore::getUser()->userID) { $this->BoardlistData['Status'] = intval(WBBCore::getUser()->listboards); } else { if (WBBCore::getSession()->getVar('listboards') != false) { $this->BoardlistData['Status'] = WBBCore::getSession()->getVar('listboards'); } } }
public function getAppointments($y, $m) { $ret = array(); $i = 0; $month = intval($m); $sTimestamp = gmmktime(0, 0, 0, $m, 1, $y); $eTimestamp = gmmktime(0, 0, 0, $m + 1, 0, $y); $userID = intval(WCF::getUser()->userID); $showPublic = intval(WBBCore::getUser()->monthlyCalendarBox_showPublicAppointments); if (empty($userID)) { $showPublic = 1; } if (WBBCore::getUser()->getPermission('user.calendar.canUseCalendar')) { require_once WCF_DIR . 'lib/util/CalendarUtil.class.php'; require_once WCF_DIR . 'lib/data/calendar/event/EventList.class.php'; $cals = Calendar::getEnabledCalendars(); $events = new EventList($sTimestamp, $eTimestamp, $cals); $events->readEvents(); $myEvents = $events->getEvents(1000); foreach ($myEvents as $event) { if (!$event->eventID) { continue; } $dd = date('j', $event->startTime); if (isset($ret[$dd])) { $ret[$dd] .= ", "; } else { $ret[$dd] = ''; } $ret[$dd] .= StringUtil::encodeHTML($event->subject); $i++; } } else { if (WBBCore::getUser()->getPermission('user.calendar.canEnter')) { $sql = "SELECT cem.subject AS subject, ce.eventTime AS startTime" . "\n FROM wcf" . WCF_N . "_calendar_event ce" . "\n LEFT JOIN wcf" . WCF_N . "_calendar_event_message cem ON (cem.eventID = ce.eventID)" . "\n WHERE ce.eventTime >= " . $sTimestamp . "\n AND ce.eventTime <= " . $eTimestamp; if (!empty($userID) && empty($showPublic)) { $sql .= "\n AND cem.userID = " . $userID; } $result = WBBCore::getDB()->sendQuery($sql); while ($row = WBBCore::getDB()->fetchArray($result)) { $dd = date('j', $row['startTime']); if (isset($ret[$dd])) { $ret[$dd] .= ", "; } else { $ret[$dd] = ''; } $ret[$dd] .= StringUtil::encodeHTML($row['subject']); } } } return $ret; }
protected function getBoxStatus($data) { // get box status $this->BoxData['Status'] = 1; if (WBBCore::getUser()->userID) { $this->BoxData['Status'] = intval(WBBCore::getUser()->monthlyCalendarBox); } else { if (WBBCore::getSession()->getVar('monthlyCalendarBox') != false) { $this->BoxData['Status'] = WBBCore::getSession()->getVar('monthlyCalendarBox'); } } }
protected function getBoxStatus($data) { // get box status $this->spnrbData['Status'] = 1; if (WBBCore::getUser()->userID) { $this->spnrbData['Status'] = intval(WBBCore::getUser()->simplePieNewsreaderBox); } else { if (WBBCore::getSession()->getVar('simplePieNewsreaderBox') != false) { $this->spnrbData['Status'] = WBBCore::getSession()->getVar('simplePieNewsreaderBox'); } } }