Пример #1
0
function rpf_process_feeds()
{
    @set_time_limit(0);
    $feeds = rpf_get_feeds();
    if ($feeds) {
        rpf_log("<b>----------Processing all feeds-------------</b>");
        foreach ($feeds as $feed) {
            rpf_process_feed($feed);
        }
    } else {
        rpf_log("No feeds data found!");
    }
}
<?php

require_once dirname(__FILE__) . '/../../../wp-config.php';
require_once dirname(__FILE__) . '/RSSPoster.php';
if (!empty($_POST['feed_id'])) {
    $feed = rpf_get_feed($_POST['feed_id']);
    rpf_process_feed($feed);
}