Ejemplo n.º 1
0
 function __construct()
 {
     self::$con = new PDO(GlobalConfig::db_pdo_connect_string, GlobalConfig::db_username, GlobalConfig::db_password);
     self::$con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
     self::$userDAO = new UserDAO();
     self::$securityService = new SecurityService();
     self::$dayDAO = new DayDAO();
 }
Ejemplo n.º 2
0
    ?>
"</div><br/>
			 <div style="font-size: 0.8em; text-align: right;"><?php 
    echo $statusUpdateTime;
    ?>
</div>
		</div>
		
		<?php 
}
?>
			
		
		<!--GEO LOCATIONS -->
		<?php 
$locationDAO = new LocationDAO();
$geoLocations = $locationDAO->getLocationsForDay($dayToDisplay);
$url = "http://maps.googleapis.com/maps/api/staticmap?size=480x480&sensor=true&path=";
$count = 0;
foreach ($geoLocations as $location) {
    if ($count > 0) {
        $url .= "|";
    }
    $url .= $location->latitude . "," . $location->longitude;
    $count++;
}
$onlyMarkFirstAndLastPoints = false;
$numOfPoints = sizeof($geoLocations);
if ($numOfPoints > 26) {
    $onlyMarkFirstAndLastPoints = true;
}