summaryrefslogtreecommitdiffstats
path: root/refresh.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-06-07 02:35:36 +0800
committertrasher <trasher@x-tnd.be>2010-06-08 01:57:54 +0800
commitd1c15227b18177ff0d3a33ce8f8ee2c563a5cf4d (patch)
tree7a8156779c8b66e0b363719d0543fa8191845408 /refresh.php
parente2d95ce49a85b3e0d3c0ede1ce3b215eb1cc2566 (diff)
Introduce CommonTable, TableIterator, TablePearRepo classes (and use it in refresh)
Diffstat (limited to 'refresh.php')
-rw-r--r--refresh.php15
1 files changed, 3 insertions, 12 deletions
diff --git a/refresh.php b/refresh.php
index 3be354f..cc56e84 100644
--- a/refresh.php
+++ b/refresh.php
@@ -44,6 +44,7 @@ if (isset($_SERVER["SERVER_NAME"])) {
die("This script is launched twice a day, be patient");
}
require "config.inc.php";
+require "class/CommonTable.php";
/**
* To document
@@ -306,18 +307,8 @@ try {
// -------------------------------------------------------------------
if ($_SERVER['argc']==1 || in_array('pear', $_SERVER['argv'])) {
echo date("r : ") . "PEAR reading channels\n";
- $channels=array(
- "pear" => "pear.php.net"
- ,"doctrine" => "pear.phpdoctrine.org"
- ,"ezc" => "components.ez.no"
- ,"pdepend" => "pear.pdepend.org"
- ,"phing" => "pear.phing.info"
- ,"phpdb" => "pear.phpdb.org"
- ,"phpmd" => "pear.phpmd.org"
- ,"phpunit" => "pear.phpunit.de"
- ,"swift" => "pear.swiftmailer.org"
- ,"symphony" => "pear.symfony-project.com"
- );
+ $pear = new TablePearRepo($db);
+ $channels = $pear->getAllRepo();
try {
$nbtot=0;