Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions forks/monkey.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

class MonkeyFork {
public function get_gyms($swLat, $swLng, $neLat, $neLng, $tstamp = 0, $oSwLat = 0, $oSwLng = 0, $oNeLat = 0, $oNeLng = 0) {
$gyms = array();
return $gyms;
}
}
14 changes: 13 additions & 1 deletion raw_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
include('config/config.php');


if ($map == "monocle" && $fork == "monkey") {
include('forks/monkey.php');
$adapter = new MonkeyFork;
} else {
$adapter = NULL;
}

$now = new DateTime();

$d = array();
Expand Down Expand Up @@ -693,6 +700,11 @@ function get_stops($swLat, $swLng, $neLat, $neLng, $tstamp = 0, $oSwLat = 0, $oS

function get_gyms($swLat, $swLng, $neLat, $neLng, $tstamp = 0, $oSwLat = 0, $oSwLng = 0, $oNeLat = 0, $oNeLng = 0)
{
global $adapter;

if (!is_null($adapter)) {
return $adapter->get_gyms($swLat, $swLng, $neLat, $neLng, $tstamp, $oSwLat, $oSwLng, $oNeLat, $oNeLng);
}

global $db;

Expand Down Expand Up @@ -1546,4 +1558,4 @@ function get_recent($swLat, $swLng, $neLat, $neLng, $tstamp = 0, $oSwLat = 0, $o
}

return $recent;
}
}