示例#1
0
        //Unbuffered
    }
    echo $myUser, ' ';
    //Buffered
    $_GET['c'] = 'feed';
    $_GET['a'] = 'actualize';
    $_GET['ajax'] = 1;
    $_GET['force'] = true;
    $_SERVER['HTTP_HOST'] = '';
    $freshRSS = new FreshRSS();
    $freshRSS->_useOb(false);
    Minz_Configuration::_authType('none');
    Minz_Session::init('FreshRSS');
    Minz_Session::_param('currentUser', $myUser);
    $freshRSS->init();
    $freshRSS->run();
    if (!invalidateHttpCache()) {
        syslog(LOG_NOTICE, 'FreshRSS write access problem in ' . LOG_PATH . '/*.log!');
        if (defined('STDERR')) {
            fwrite(STDERR, 'Write access problem in ' . LOG_PATH . '/*.log!' . "\n");
        }
    }
    Minz_Session::unset_session(true);
    Minz_ModelPdo::clean();
}
syslog(LOG_INFO, 'FreshRSS actualize done.');
if (defined('STDOUT')) {
    fwrite(STDOUT, 'Done.' . "\n");
}
echo 'End.', "\n";
ob_end_flush();