Initial commit
This commit is contained in:
commit
f893821ec3
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
if (!defined("_ECRIRE_INC_VERSION")) return; #securite
|
||||
|
||||
function balise_LOTISSEMENTS_JSON() {
|
||||
$lotissements = array();
|
||||
$result = spip_query("SELECT titre FROM lotis_rubriques WHERE id_parent=1");
|
||||
while ($row = spip_fetch_array($result))
|
||||
array_push($lotissements, $row['titre']);
|
||||
return json_encode($lotissements);
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
#CACHE{0}
|
||||
#HTTP_HEADER{Content-Type: application/json; charset=utf-8}
|
||||
#HTTP_HEADER{"Cache-Control: no-store, no-cache, must-revalidate"}
|
||||
#HTTP_HEADER{Pragma: no-cache}
|
||||
#LOTISSEMENTS_JSON
|
|
@ -0,0 +1,20 @@
|
|||
<paquet
|
||||
prefix="lotissements"
|
||||
categorie="squelette"
|
||||
version="0.1"
|
||||
etat="dev"
|
||||
compatibilite="[3.0.0;3.1.*]"
|
||||
schema="201504101125"
|
||||
>
|
||||
|
||||
<nom>LotissementsWCS</nom>
|
||||
|
||||
<auteur lien="jschneider@entrouvert.com">Jérôme Schneider</auteur>
|
||||
|
||||
<copyright>2014-2015</copyright>
|
||||
|
||||
<licence lien="http://www.gnu.org/licenses/gpl-3.0.html">GPL 3</licence>
|
||||
|
||||
<traduire module="lotissements" reference="fr" gestionnaire="salvatore" />
|
||||
|
||||
</paquet>
|
Reference in New Issue