diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/program.php | 4 |
1 files changed, 2 insertions, 2 deletions
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) |