예제 #1
0
function TRSSPrevNextUninstall($self)
{
    $rss = trss::i();
    $rss->unbind($self);
    $urlmap = turlmap::i();
    $urlmap->clearcache();
}
 public function request($arg)
 {
     if (!litepublisher::$options->user) {
         return 403;
     }
     $result = '<?php turlmap::sendxml(); ?>';
     $rss = trss::i();
     $rss->domrss = new tdomrss();
     $this->dogetholdcomments($rss);
     $result .= $rss->domrss->GetStripedXML();
     return $result;
 }
예제 #3
0
 public function getautoform($name)
 {
     if (isset($this->_form)) {
         return $this->_form;
     }
     switch ($name) {
         case 'rss':
             $form = new tautoform(trss::i(), 'options', 'rssoptions');
             $form->add($form->feedburner, $form->feedburnercomments, $form->template('editor'));
             break;
         case 'ping':
             $form = new tautoform(tpinger::i(), 'options', 'optionsping');
             $form->add($form->enabled, $form->services('editor'));
             break;
         case 'notfound404':
             $form = new tautoform(tnotfound404::i(), 'options', 'edit404');
             $form->add($form->notify, $form->text('editor'));
             break;
         default:
             return false;
     }
     $this->_form = $form;
     return $form;
 }
예제 #4
0
function trssfilelistUninstall($self)
{
    $rss = trss::i();
    $rss->unbind($self);
    litepublisher::$urlmap->clearcache();
}