From 66dcbb4b66baf59ead741e4c5ffd3465b6997baf Mon Sep 17 00:00:00 2001 From: root Date: Mon, 29 Dec 2014 22:36:28 +0100 Subject: use fahrplan mirror --- lib/program.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/program.php') diff --git a/lib/program.php b/lib/program.php index 07e6077..e85143b 100644 --- a/lib/program.php +++ b/lib/program.php @@ -3,9 +3,9 @@ function program() { $program = array(); - $opts = array('http' => array('timeout' => 2)); + $opts = array('http' => array('timeout' => 2, 'user_agent' => 'Fahrplan')); $context = stream_context_create($opts); - $schedule = file_get_contents($GLOBALS['CONFIG']['SCHEDULE'], false, $context); + $schedule = file_get_contents('http://fahrplan-31c3.mkswap.net/fahrplan?a=1', false, $context); // loading failed, try tmp-file if(!$schedule) -- cgit v1.2.3