Accueil/modules/blogs/includes/blogs.php

12 lines
344 B
PHP
Raw Normal View History

<?php
2010-09-14 23:38:29 +02:00
require('blogs_last_post.php');
$opts = array(CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_TIMEOUT => 10, CURLOPT_CONNECTTIMEOUT => 10);
2010-09-14 23:38:29 +02:00
$blogs = new Blogs_last_post();
foreach($blogs->getLinks() as $link)
{
$blogs->addSession($link['url'], $opts);
}
echo $blogs->getEverything();
$blogs->clear();