示例#1
0
 function cronjobs()
 {
     ob_clean();
     header("Content-Type: text/plain; charset=UTF-8");
     $grbber = new rss_grabber_model();
     $what = $grbber->processNumberOfFeeds(1);
     if ($what == false) {
         CI::model('content')->content_pingServersWithNewContent();
         //sleep ( 5 );
         //CI::model('content')->content_cleanUpGarbageFromRss ();
         //sleep ( 5 );
         //CI::model('content')->content_RemapExternalLinkFromRssWithInternal ();
     }
 }
示例#2
0
?>
 >Yes</option>
                <option value="n" <?php 
if ($search_by_with_comments == 'n') {
    ?>
 selected="selected" <?php 
}
?>
>No</option>
              </select>
              <div class="d"></div>
              <?php 
if ($this->core_model->plugins_isPluginLoaded('rss_grabber') == true) {
    ?>
              <?php 
    $grabber = new rss_grabber_model();
    $feeds = $grabber->getActiveFeeds();
    //var_dump($search_by_is_from_rss );
    ?>
              <?php 
    if (!empty($feeds)) {
        ?>
              <label class="ico"><img src="<?php 
        print_the_static_files_url();
        ?>
/icons/feed__arrow.png" alt=" " border="0">From RSS?</label>
              <select name="is_from_rss">
                <optgroup label="From RSS feeds">
                <option value=""  <?php 
        if ($search_by_is_from_rss == '') {
            ?>
示例#3
0
<?php

$this->load->vars($this->template);
$rss_grabber = new rss_grabber_model();
$primarycontent = false;
$this->template['rss_grabber'] = $rss_grabber;
$test = $rss_grabber->test();
$this->template['plugintest'] = $test;
$this->load->vars($this->template);
$action = $this->uri->segment(5);
if (!$action) {
    $action = 'index';
}
switch ($action) {
    case 'edit':
        $this->template['plugin_action'] = 'add';
        if ($_POST) {
            $rss_grabber->saveFeed($_POST);
            //exit(THIS_PLUGIN_URL.'index');
            $go = THIS_PLUGIN_URL . 'index';
            header("Location: {$go}");
            exit;
            //redirect (  );
        }
        $id = $this->core_model->getParamFromURL('id');
        if ($id != 0) {
            $data = array();
            $data['id'] = $id;
            $form_values = $rss_grabber->getFeeds($data);
            $form_values = $form_values[0];
            //$data ['content_type'] = 'page';