Ejemplo n.º 1
0
     $pical_meta_description = $cal->event->start_datetime_str . " - ";
     $pical_meta_description .= $cal->event->end_datetime_str . " : ";
     $pical_meta_description .= htmlspecialchars(strip_tags($cal->event->description), ENT_QUOTES);
     $pical_meta_description = preg_replace('/(\\r\\n|\\n\\r|\\n|\\r|\\t)/i', '', mb_substr($pical_meta_description, 0, 250, _CHARSET));
     $xoopsTpl->assign('xoops_meta_description', $pical_meta_description);
     $HTTP_GET_VARS['event_id'] = $_GET['event_id'] = $cal->original_id;
     include XOOPS_ROOT_PATH . '/include/comment_view.php';
     // patch for commentAny
     $commentany = $xoopsTpl->get_template_vars("commentany");
     if (!empty($commentany['com_itemid'])) {
         $commentany['com_itemid'] = $cal->original_id;
         $xoopsTpl->assign("commentany", $commentany);
     }
 } else {
     if (isset($_POST['output_ics_confirm']) && !empty($_POST['ids']) && is_array($_POST['ids'])) {
         echo $cal->output_ics_confirm("{$mod_url}/");
     } else {
         switch ($smode) {
             case 'Yearly':
                 echo $cal->get_yearly();
                 break;
             case 'Weekly':
                 echo $cal->get_weekly();
                 break;
             case 'Daily':
                 echo $cal->get_daily();
                 break;
             case 'List':
                 $cal->assign_event_list($xoopsTpl);
                 break;
             case 'Monthly':
Ejemplo n.º 2
0
                $mes = urlencode("{$records} " . _AM_MES_EVENTLINKTOCAT);
            } else {
                $mes = urlencode("{$records} " . _AM_MES_EVENTUNLINKED);
            }
            $cal->redirect("cid={$old_cid}&num={$num}&tz={$tz}&done=moved&mes={$mes}");
            exit;
        } else {
            if (isset($_POST['output_ics_confirm']) && !empty($_POST['ids']) && is_array($_POST['ids'])) {
                // Ticket Check
                if (!$xoopsGTicket->check()) {
                    redirect_header(XOOPS_URL . '/', 3, $xoopsGTicket->getErrors());
                }
                // iCalendarバッチ出力プラットフォーム確認
                xoops_cp_header();
                include './mymenu.php';
                echo $cal->output_ics_confirm("{$mod_url}/", '_blank');
                xoops_cp_footer();
                exit;
            }
        }
    }
}
// カテゴリー指定
if ($cid > 0) {
    $cid4sql = sprintf("%05d,", $cid);
    $whr_cid = "categories like '%{$cid4sql}%'";
} else {
    if ($cid == -1) {
        $whr_cid = "categories=''";
    } else {
        $whr_cid = '1';