Lines Matching refs:opt

32 $opt = rss_parseOptions();  variable
36 $key = join('', array_values($opt)).'$'.$_SERVER['REMOTE_USER'].'$'.$_SERVER['HTTP_HOST'].$_SERVE…
61 $rss->title = $conf['title'].(($opt['namespace']) ? ' '.$opt['namespace'] : '');
78 if(isset($modes[$opt['feed_mode']])) {
79 $data = $modes[$opt['feed_mode']]($opt);
82 'opt' => &$opt,
87 echo sprintf('<error>Unknown feed mode %s</error>', hsc($opt['feed_mode']));
93 rss_buildItems($rss, $data, $opt);
94 $feed = $rss->createFeed($opt['feed_type']);
113 $opt = array();
146 $opt[$name] = $INPUT->{$val[0]}($val[1], $val[2], true);
149 $opt['items'] = max(0, (int) $opt['items']);
150 $opt['show_minor'] = (bool) $opt['show_minor'];
151 $opt['only_new'] = (bool) $opt['only_new'];
152 $opt['sort'] = valid_input_set('sort', array('default' => 'natural', 'date'), $opt);
154 $opt['guardmail'] = ($conf['mailguard'] != '' && $conf['mailguard'] != 'none');
163 $opt['feed_type'] = 'RSS0.91';
164 $opt['mime_type'] = 'text/xml';
167 $opt['feed_type'] = 'RSS2.0';
168 $opt['mime_type'] = 'text/xml';
171 $opt['feed_type'] = 'ATOM0.3';
172 $opt['mime_type'] = 'application/xml';
175 $opt['feed_type'] = 'ATOM1.0';
176 $opt['mime_type'] = 'application/atom+xml';
179 $opt['feed_type'] = 'RSS1.0';
180 $opt['mime_type'] = 'application/xml';
184 'opt' => &$opt,
187 return $opt;
196 * @param array $opt the feed options
198 function rss_buildItems(&$rss, &$data, $opt) { argument
207 'opt' => &$opt,
250 switch($opt['link_to']) {
308 switch($opt['item_content']) {
350 if($opt['item_content'] == 'htmldiff') {
451 'opt' => &$opt,
470 function rssRecentChanges($opt) { argument
474 if(!$opt['show_minor']) $flags += RECENTS_SKIP_MINORS;
475 if($opt['only_new']) $flags += RECENTS_ONLY_CREATION;
476 if($opt['content_type'] == 'media' && $conf['mediarevisions']) $flags += RECENTS_MEDIA_CHANGES;
477 … if($opt['content_type'] == 'both' && $conf['mediarevisions']) $flags += RECENTS_MEDIA_PAGES_MIXED;
479 $recents = getRecents(0, $opt['items'], $opt['namespace'], $flags);
488 function rssListNamespace($opt) { argument
492 $ns = ':'.cleanID($opt['namespace']);
501 search($data, $conf['datadir'], 'search_universal', $search_opts, $ns, $lvl = 1, $opt['sort']);
511 function rssSearch($opt) { argument
512 if(!$opt['search_query']) return array();
515 $data = ft_pageSearch($opt['search_query'], $poswords);