$visible = true; } } else { $visible = $tiki_p_view_calendar == 'y'; } } } if ($visible) { $calendars[] = $cal['calendarId']; } } $maxCalEntries = $prefs['max_rss_calendar']; $cur_time = explode(',', $tikilib->date_format('%Y,%m,%d,%H,%M,%S', $publishDate)); $items = $calendarlib->list_raw_items($calendars, "", $tikilib->now, $tikilib->make_time($cur_time[3], $cur_time[4], $cur_time[5], $cur_time[1], $cur_time[2], $cur_time[0] + 1), 0, $maxCalEntries); require_once "lib/smarty_tiki/modifier.tiki_short_datetime.php"; require_once "lib/smarty_tiki/modifier.tiki_long_datetime.php"; require_once "lib/smarty_tiki/modifier.compactisodate.php"; for ($i = 0; $i < sizeof($items); $i++) { $start_d = smarty_modifier_compactisodate($items[$i]["start"]); $end_d = smarty_modifier_compactisodate($items[$i]["end"]); $items[$i]["body"] = "<div class=\"vevent\"> <span class=\"summary\">" . $items[$i]["name"] . "</span>" . "<br />\n"; $items[$i]["body"] .= "<abbr class=\"dtstart\" title=\"" . $start_d . "\">" . tra("Start:") . " " . smarty_modifier_tiki_long_datetime($items[$i]["start"]) . "</abbr>" . "<br />\n"; $items[$i]["body"] .= "<abbr class=\"dtend\" title=\"" . $end_d . "\">" . tra("End:") . " " . smarty_modifier_tiki_long_datetime($items[$i]["end"]) . "</abbr>" . "<br />\n"; $items[$i]["body"] .= "<span class=\"descprition\">" . $items[$i]["description"] . "</span>" . "</div>"; } $changes = array('data' => $items); unset($items); $output = $rsslib->generate_feed($feed, $uniqueid, '', $changes, $readrepl, '', $id, $title, $titleId, $desc, $descId, $dateId, $authorId); } header("Content-type: " . $output["content-type"]); print $output["data"];
unset($_smarty_tpl_vars); ?> <?php } if ($this->_tpl_vars['lastup']) { ?> <div class="cvsup" style="font-size:x-small;text-align:center;color:#999;"><?php $this->_tag_stack[] = array('tr', array()); $_block_repeat = true; smarty_block_tr($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start(); ?> Last update from CVS<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat = false; echo smarty_block_tr($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?> : <?php echo is_array($_tmp = $this->_tpl_vars['lastup']) ? $this->_run_mod_handler('tiki_long_datetime', true, $_tmp) : smarty_modifier_tiki_long_datetime($_tmp); ?> </div> <?php } ?> </body> </html>
$this->_sections['ix']['last'] = $this->_sections['ix']['iteration'] == $this->_sections['ix']['total']; ?> <tr class="<?php echo smarty_function_cycle(array(), $this); ?> "> <td><?php echo $this->_tpl_vars['list'][$this->_sections['ix']['index']]['logId']; ?> </td> <td><?php echo $this->_tpl_vars['list'][$this->_sections['ix']['index']]['logtype']; ?> </td> <td><span title="<?php echo is_array($_tmp = $this->_tpl_vars['list'][$this->_sections['ix']['index']]['logtime']) ? $this->_run_mod_handler('tiki_long_datetime', true, $_tmp) : smarty_modifier_tiki_long_datetime($_tmp); ?> "><?php echo is_array($_tmp = $this->_tpl_vars['list'][$this->_sections['ix']['index']]['logtime']) ? $this->_run_mod_handler('tiki_short_time', true, $_tmp) : smarty_modifier_tiki_short_time($_tmp); ?> </span></td> <td><?php echo $this->_tpl_vars['list'][$this->_sections['ix']['index']]['loguser']; ?> </td> <td title="<?php echo is_array($_tmp = $this->_tpl_vars['list'][$this->_sections['ix']['index']]['logmessage']) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'); ?> "><?php echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['list'][$this->_sections['ix']['index']]['logmessage']) ? $this->_run_mod_handler('truncate', true, $_tmp, 60) : smarty_modifier_truncate($_tmp, 60)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html'); ?>
if ($cal["personal"] == "y") { if ($user) { $visible = true; } } else { if ($userlib->object_has_one_permission($cal['calendarId'], 'calendar')) { if ($userlib->object_has_permission($user, $cal['calendarId'], 'calendar', 'tiki_p_view_calendar')) { $visible = true; } } else { $visible = $tiki_p_view_calendar == 'y'; } } } if ($visible) { $calendars[] = $cal['calendarId']; } } $maxCalEntries = $tikilib->get_preference("max_rss_calendar", $maxRecords); $items = $calendarlib->list_raw_items($calendars, "", $now, $now + 365 * 24 * 60 * 60, 0, $maxCalEntries); require_once "lib/smarty_tiki/modifier.tiki_long_datetime.php"; for ($i = 0; $i < sizeof($items); $i++) { $items[$i]["body"] = tra("Start:") . " " . smarty_modifier_tiki_long_datetime($items[$i]["start"]) . "<br />\n"; $items[$i]["body"] .= tra("End:") . " " . smarty_modifier_tiki_long_datetime($items[$i]["end"]) . "<br />\n"; $items[$i]["body"] .= $tikilib->parse_data($items[$i]["description"]); } $changes = array('data' => $items); unset($items); $output = $rsslib->generate_feed($feed, $uniqueid, '', $changes, $readrepl, '', $id, $title, $titleId, $desc, $descId, $dateId, $authorId); header("Content-type: " . $output["content-type"]); print $output["data"];
?> )</td><td class="form" align="left"><a class="link" href="<?php echo $this->_tpl_vars['rankings'][$this->_sections['ix']['index']]['data'][$this->_sections['xi']['index']]['href']; ?> "><?php if ($this->_tpl_vars['rankings'][$this->_sections['ix']['index']]['data'][$this->_sections['xi']['index']]['name'] == "") { ?> -<?php } else { echo $this->_tpl_vars['rankings'][$this->_sections['ix']['index']]['data'][$this->_sections['xi']['index']]['name']; } ?> </a></td><td class="form" align="right"><?php if ($this->_tpl_vars['rankings'][$this->_sections['ix']['index']]['type'] == 'nb') { echo $this->_tpl_vars['rankings'][$this->_sections['ix']['index']]['data'][$this->_sections['xi']['index']]['hits']; } else { echo is_array($_tmp = $this->_tpl_vars['rankings'][$this->_sections['ix']['index']]['data'][$this->_sections['xi']['index']]['hits']) ? $this->_run_mod_handler('tiki_long_datetime', true, $_tmp) : smarty_modifier_tiki_long_datetime($_tmp); } ?> </td></tr> <?php } } ?> </table> </div> </div> <br /> <?php } }