Ejemplo n.º 1
0
<?php

//error_reporting(E_ALL);
include_once '../config/symbini.php';
include_once $serverRoot . '/classes/DynamicChecklistManager.php';
header("Content-Type: text/html; charset=" . $charset);
$lat = $_POST["lat"];
$lng = $_POST["lng"];
$radius = $_POST["radius"];
$radiusunits = $_POST["radiusunits"];
$dynamicRadius = isset($dynChecklistRadius) ? $dynChecklistRadius : (isset($dynKeyRadius) ? $dynKeyRadius : 5);
$tid = $_POST["tid"];
$interface = $_POST["interface"];
$dynClManager = new DynamicChecklistManager();
if (is_numeric($radius)) {
    $dynClid = $dynClManager->createChecklist($lat, $lng, $radius, $radiusunits, $tid);
} else {
    $dynClid = $dynClManager->createDynamicChecklist($lat, $lng, $dynamicRadius, $tid);
}
if ($interface == "key") {
    header("Location: " . $clientRoot . "/ident/key.php?dynclid=" . $dynClid . "&taxon=All Species");
} else {
    header("Location: " . $clientRoot . "/checklists/checklist.php?dynclid=" . $dynClid);
}
ob_flush();
flush();
$dynClManager->removeOldChecklists();
Ejemplo n.º 2
0
<?php

include_once '../config/symbini.php';
include_once $serverRoot . '/classes/DynamicChecklistManager.php';
header("Content-Type: text/html; charset=" . $charset);
$tid = array_key_exists("tid", $_REQUEST) ? $_REQUEST["tid"] : 0;
$interface = array_key_exists("interface", $_REQUEST) && $_REQUEST["interface"] ? $_REQUEST["interface"] : "checklist";
$dynClManager = new DynamicChecklistManager();
$latCen = 41.0;
$longCen = -95.0;
$coorArr = explode(";", $mappingBoundaries);
if ($coorArr && count($coorArr) == 4) {
    $latCen = ($coorArr[0] + $coorArr[2]) / 2;
    $longCen = ($coorArr[1] + $coorArr[3]) / 2;
}
$coordRange = 50;
if ($coorArr && count($coorArr) == 4) {
    $coordRange = $coorArr[0] - $coorArr[2];
}
$zoomInt = 5;
if ($coordRange < 20) {
    $zoomInt = 6;
} elseif ($coordRange > 35 && $coordRange < 40) {
    $zoomInt = 4;
} elseif ($coordRange > 40) {
    $zoomInt = 3;
}
?>
<html>
<head>
	<title><?php