diff options
author | root | 2014-12-29 22:36:28 +0100 |
---|---|---|
committer | root | 2014-12-29 22:36:28 +0100 |
commit | 66dcbb4b66baf59ead741e4c5ffd3465b6997baf (patch) | |
tree | 2726df476dd39a585f19d468e72ac9129245bf8e /lib/program.php | |
parent | 77b38e07ca0790f890a75831949bd48970efee6a (diff) |
use fahrplan mirror
Diffstat (limited to '')
-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) |