summaryrefslogtreecommitdiffstats
path: root/refresh.php
diff options
context:
space:
mode:
authorJohan "Papa" Cwiklinski <trasher@odysseus.(none)>2010-08-01 09:10:38 +0200
committerJohan "Papa" Cwiklinski <trasher@odysseus.(none)>2010-08-01 09:10:38 +0200
commitb8307ab30e45b55d403f56ddf0a6715c00dd8d20 (patch)
tree146b7d1c713d9dbfdcfeaa98358a47cb0b99b775 /refresh.php
parent12b1b6ecf7c8cc0e6ff418443787d7c247aa413a (diff)
parent6e6d59bf0677c6b2d5b92a6abdab15a7ecaf9947 (diff)
Report Remi's modifications
Diffstat (limited to 'refresh.php')
-rw-r--r--refresh.php45
1 files changed, 4 insertions, 41 deletions
diff --git a/refresh.php b/refresh.php
index cc56e84..e839e93 100644
--- a/refresh.php
+++ b/refresh.php
@@ -43,7 +43,7 @@ if (isset($_SERVER["SERVER_NAME"])) {
die("This script is launched twice a day, be patient");
}
-require "config.inc.php";
+require "include/main.php";
require "class/CommonTable.php";
/**
@@ -508,47 +508,10 @@ try {
// -------------------------------------------------------------------
if ($_SERVER['argc']==1 || in_array('R', $_SERVER['argv'])) {
-
- $repos = array(
- array(
- "name" => "R",
- "state" => "stable",
- "url" => "http://cran.at.r-project.org/src/contrib/PACKAGES"
- ),
- //array("name"=>"R-forge","state"=>"unstable", "url" => "http://r-forge.r-project.org/src/contrib/PACKAGES"),
- array(
- "name" => "biocp",
- "state" => "stable",
- "url" => "http://www.bioconductor.org/packages/release/bioc/src/contrib/PACKAGES"
- ),
- array(
- "name" => "biocp",
- "state" => "unstable",
- "url" => "http://www.bioconductor.org/packages/devel/bioc/src/contrib/PACKAGES"
- ),
- array(
- "name" => "bioca",
- "state" => "stable",
- "url" => "http://www.bioconductor.org/packages/release/data/annotation/src/contrib/PACKAGES"
- ),
- array(
- "name" => "bioca",
- "state" => "unstable",
- "url" => "http://www.bioconductor.org/packages/devel/data/annotation/src/contrib/PACKAGES"
- ),
- array(
- "name" => "bioce",
- "state" => "stable",
- "url" => "http://www.bioconductor.org/packages/release/data/experiment/src/contrib/PACKAGES"
- ),
- array(
- "name" => "bioce",
- "state" => "unstable",
- "url" => "http://www.bioconductor.org/packages/devel/data/experiment/src/contrib/PACKAGES"
- )
- );
+//
$tottot=0;
- foreach ($repos as $repo) {
+ $rrepo = new TableRRepo($db);
+ foreach ($rrepo->request() as $repo) {
echo date("r : ") . "Reading " . $repo["name"] . " (" .
$repo["state"] . ")\n";
$index = @file_get_contents($repo["url"]);