root/trunk/index.php

Revision 3, 308 bytes (checked in by olly, 6 months ago)

Renaming files to .php extension.

Line 
1 <?
2
3 function getData($url) {
4     // caching goes here
5     return file_get_contents($url);
6 }
7
8 $baseurl = "http://mybustracker.co.uk/";
9 $method = $_GET['method'];
10
11 switch ($method) {
12 case "bustracker.departures.getNext":
13     include("bustracker.departures.getNext.php");
14     break;
15 default:
16     include("default.php");
17 }
18
19 ?>
20
Note: See TracBrowser for help on using the browser.