| File was renamed from proxy.php | 
 |  |  | 
 |  |  | <?php | 
 |  |  | if(!isset($base_proxy)) { | 
 |  |  |    echo 'This script is for inclusion only.'; | 
 |  |  |    die(); | 
 |  |  | } | 
 |  |  |  | 
 |  |  | function is_number($str) { | 
 |  |  |    $str = (string)$str; | 
 |  |  |  | 
 |  |  | 
 |  |  |       ); | 
 |  |  | } | 
 |  |  |  | 
 |  |  | $base_proxy = 'http://www.ttss.krakow.pl/internetservice'; | 
 |  |  | $method = [ | 
 |  |  |    '/services/lookup/autocomplete/json' => [ | 
 |  |  |       'query' => function() { return TRUE; }, | 
 |  |  | 
 |  |  |    ], | 
 |  |  |    '/geoserviceDispatcher/services/vehicleinfo/vehicles' => [ | 
 |  |  |       'lastUpdate' => 'ctype_digit', | 
 |  |  |       'positionType' => function($type) { return in_array($type, ['RAW', 'CORRECTED']); }, | 
 |  |  |       'positionType' => function($type) { return in_array($type, ['CORRECTED', 'RAW']); }, | 
 |  |  |       'colorType' => function($type) { return in_array($type, ['ROUTE_BASED']); }, | 
 |  |  |    ], | 
 |  |  | ]; |