Projet

Général

Profil

« Précédent | Suivant » 

Révision 5bfbdfb4

ID5bfbdfb45ad1621ad2117905cd0264a9f22d6aef
Parent 3b5b7963
Enfant 6bf61e20

Ajouté par Jocelyn Dealande il y a environ 9 ans

changed code so that we can concatenate one or more ref_points files to ref_points.local.php

Fichiers

  • ajouté
  • modifié
  • copié
  • renommé
  • supprimé

Voir les différences

Révisions

ajax/all_points.php
5 5

  
6 6
function get_ref_points() {
7 7
	if (file_exists(REF_POINTS_PATH)) {
8
		$ref_points = array();
8 9
		include REF_POINTS_PATH;
9 10
		return $ref_points;
10 11
	} else {
class/RefPoint.class.php
31 31
  public static function load_if_needed() {
32 32
    if (!isset(self::$all_ref_points_cache)) {
33 33
      if (file_exists(REF_POINTS_PATH)) {
34
        $ref_points = array();
34 35
        require(REF_POINTS_PATH);
35 36
        self::$all_ref_points_cache = $ref_points;
36 37
        return $ref_points;
ref_points/ref_points-compiegne-rhizome.php
1 1
<?php
2
$ref_points = array (
2
$ref_points += array (
3 3
  "Église saint-germain" => array(49.413518,2.815479, 37+15),
4 4
  "Mairie de Compiègne" => array(49.417842,2.826045, 42+24),
5 5
  "Pylône TDF mont-ganelon" => array(49.444393,2.852277, 135+49),
ref_points/ref_points-nantes-fma.php
1 1
<?php
2
$ref_points = array (
2
$ref_points += array (
3 3
                     'Tour de bretagne' => array(47.217611, -1.558167, 120+19.000),
4 4
                     'Sillon de bretagne' => array(47.244444, -1.608222, 85+49.000),
5 5
                     'Ecole archi' => array(47.207, -1.557361, 30+6.000),
ref_points/ref_points-toulouse-ttnn.php
1 1
<?php
2
$ref_points = array (
2
$ref_points += array (
3 3
                     'Marc' => array(43.60570, 1.42846, 170),
4 4
                     'FF2' => array(43.67737, 1.45077, 140),
5 5
		     'Clocher de Saint-Sernin' => array(43.6085, 1.4424, 214),