12 lines
350 B
PHP
12 lines
350 B
PHP
<?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);
|
|
}
|