(at your option) any later version.

VCMS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with VCMS. If not, see <http://www.gnu.org/licenses/>.
*/
if (!is_object($libGlobal)) {
    exit;
}
$libDb->connect();
$calendarId = $libGlobal->getSiteUrlAuthority() . '_geburtstage_aktivitas_';
if (isset($_GET['user']) && $_GET['user'] == $libGenericStorage->loadValueInCurrentModule('userNameICalendar') && isset($_GET['pass']) && $_GET['pass'] == $libGenericStorage->loadValueInCurrentModule('passwordICalendar') && $libGenericStorage->loadValueInCurrentModule('userNameICalendar') != '' && $libGenericStorage->loadValueInCurrentModule('passwordICalendar') != '') {
    $calendar = new vcms\LibICalendar();
    $stmt = $libDb->prepare("SELECT id,datum_geburtstag FROM base_person WHERE gruppe = 'F' OR gruppe ='B' AND datum_geburtstag != '' AND datum_geburtstag != '0000-00-00' AND datum_geburtstag IS NOT NULL");
    $stmt->execute();
    while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
        $name = $libPerson->getNameString($row['id'], 0);
        $e = new vcms\LibICalendarEvent();
        $e->summary = $name;
        $e->setStartAndEndDateTime($row['datum_geburtstag'], '');
        $e->description = $name . ' - ' . $row['datum_geburtstag'];
        $e->uid = $calendarId . $row['id'];
        $e->rrule = 'FREQ=YEARLY';
        $calendar->addEvent($e);
    }
    $calendar->printCalendar();
}
Example #2
0
(at your option) any later version.

VCMS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with VCMS. If not, see <http://www.gnu.org/licenses/>.
*/
if (!is_object($libGlobal)) {
    exit;
}
$libDb->connect();
$calendarId = $libGlobal->getSiteUrlAuthority() . '_todestage_';
if (isset($_GET['user']) && $_GET['user'] == $libGenericStorage->loadValueInCurrentModule('userNameICalendar') && isset($_GET['pass']) && $_GET['pass'] == $libGenericStorage->loadValueInCurrentModule('passwordICalendar') && $libGenericStorage->loadValueInCurrentModule('userNameICalendar') != '' && $libGenericStorage->loadValueInCurrentModule('passwordICalendar') != '') {
    $calendar = new vcms\LibICalendar();
    $stmt = $libDb->prepare("SELECT id,tod_datum FROM base_person WHERE gruppe = 'T' AND tod_datum != '' AND tod_datum != '0000-00-00' AND tod_datum IS NOT NULL");
    $stmt->execute();
    while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
        $name = $libPerson->getNameString($row['id'], 0);
        $e = new vcms\LibICalendarEvent();
        $e->summary = $name;
        $e->setStartAndEndDateTime($row['tod_datum'], '');
        $e->description = $name . ' - ' . $row['tod_datum'];
        $e->uid = $calendarId . $row['id'];
        $e->rrule = 'FREQ=YEARLY';
        $calendar->addEvent($e);
    }
    $calendar->printCalendar();
}
Example #3
0
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with VCMS. If not, see <http://www.gnu.org/licenses/>.
*/
if (!is_object($libGlobal)) {
    exit;
}
$libDb->connect();
$calendarId = $libGlobal->getSiteUrlAuthority() . '_semesterprogramm_';
$calendar = new vcms\LibICalendar();
$stmt = $libDb->prepare('SELECT id, datum, datum_ende, titel, beschreibung, status, ort FROM base_veranstaltung WHERE datum >= CURDATE() ORDER BY datum DESC');
$stmt->execute();
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
    $e = new vcms\LibICalendarEvent();
    $e->summary = $row['titel'];
    $e->setStartAndEndDateTime($row['datum'], $row['datum_ende']);
    $e->description = $row['beschreibung'];
    $e->location = $row['ort'];
    $e->url = $libGlobal->getSiteUrl() . '/index.php?pid=event&id=' . $row['id'];
    $e->uid = $calendarId . $row['id'];
    $calendar->addEvent($e);
}
/*
$e = new LibICalendarEvent();
$e->summary = 'Der User-Agent ist: '.$_SERVER['HTTP_USER_AGENT'];
$e->setStartDateTime(date('Y-m-d'));
$e->description = 'Der User-Agent ist: '.$_SERVER['HTTP_USER_AGENT'];
$calendar->addEvent($e);
*/