set_feed_url("http://blog.replicant.us/feed/"); $feed->set_cache_location("cache/"); $feed_init = $feed->init(); if ($feed->error() || !$feed_init) { print("\t\t\t\t\t
Loading RSS feed failed
\n"); } else { $count = 1; foreach ($feed->get_items() as $item) { print("\t\t\t\t\t

get_permalink()."\">".$item->get_title()."

Posted on ".$item->get_date("j F Y")." by ".$item->get_author()->get_name()."
\n"); print("\t\t\t\t\t

".$item->get_description()."

\n"); if ($count++ >= 10) break; } } ?>
    set_feed_url("http://redmine.replicant.us/projects/replicant/activity.atom?show_messages=1"); $feed->set_cache_location("cache/"); $feed_init = $feed->init(); if ($feed->error() || !$feed_init) { print("\t\t\t\t\t
  • Loading RSS feed failed
  • \n"); } else { $count = 1; foreach ($feed->get_items() as $item) { print("\t\t\t\t\t
  • get_permalink()."\">".$item->get_title()."
    Posted on ".$item->get_date("j F Y")." by ".$item->get_author()->get_name()."
  • \n"); if ($count++ >= 8) break; } } ?>
    set_feed_url("https://git.replicant.us/groups/replicant.atom"); $feed->set_cache_location("cache/"); $feed_init = $feed->init(); if ($feed->error() || !$feed_init) { print("\t\t\t\t\t
  • Loading RSS feed failed
  • \n"); } else { $count = 1; foreach ($feed->get_items() as $item) { preg_match("/git\.replicant\.us\/replicant\/([^\/]*)\//", $item->get_permalink(), $repo); if ($repo == null) continue; $repo_link = "https://git.replicant.us/replicant/".$repo[1]; preg_match("/pushed to project branch ([^ ]*) /", $item->get_title(), $branch); if ($branch == null) continue; $commits_contents = preg_grep("/

    /", explode("\n", $item->get_content())); if ($commits_contents == null) continue; print("\t\t\t\t\t

  • ".$repo[1]." (".$branch[1]."):
      "); foreach ($commits_contents as $commit_content) { preg_match("/

      (.*)<\/p>/", $commit_content, $commit); if ($commit == null) continue; print("

    • get_permalink()."\">".$commit[1]."
    • "); } print("
    Pushed on ".$item->get_date("j F Y")." by ".$item->get_author()->get_name()."
  • \n"); if ($count++ >= 8) break; } } ?>