mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
38 lines
789 B
PHP
38 lines
789 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Phraseanet
|
|
*
|
|
* (c) 2005-2012 Alchemy
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
/**
|
|
*
|
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
|
* @link www.phraseanet.com
|
|
*/
|
|
include(__DIR__ . '/../../lib/bootstrap.php');
|
|
$output = '';
|
|
|
|
$request = http_request::getInstance();
|
|
$parm = $request->get_parms('action', 'city');
|
|
|
|
$action = $parm['action'];
|
|
|
|
switch ($action) {
|
|
case 'FIND':
|
|
$geoname = new geonames();
|
|
$core = \bootstrap::getCore();
|
|
$twig = $core->getTwig();
|
|
|
|
$output = $twig->render('geonames/city_list.twig', array('geonames' => $geoname->find_city($parm['city'])));
|
|
break;
|
|
}
|
|
|
|
|
|
echo $output;
|
|
|