summaryrefslogtreecommitdiffstats
path: root/refresh.php
diff options
context:
space:
mode:
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"]);