2008-11-01 08:16:18 +02:00
|
|
|
<?php
|
|
|
|
/*-------------------------------------------------------
|
|
|
|
*
|
|
|
|
* LiveStreet Engine Social Networking
|
|
|
|
* Copyright © 2008 Mzhelskiy Maxim
|
|
|
|
*
|
|
|
|
*--------------------------------------------------------
|
|
|
|
*
|
|
|
|
* Official site: www.livestreet.ru
|
|
|
|
* Contact e-mail: rus.engine@gmail.com
|
|
|
|
*
|
|
|
|
* GNU General Public License, version 2:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
*
|
|
|
|
---------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Автоподстановка города
|
|
|
|
*/
|
|
|
|
|
|
|
|
set_include_path(get_include_path().PATH_SEPARATOR.dirname(dirname(dirname(__FILE__))));
|
2009-03-21 15:48:00 +02:00
|
|
|
$sDirRoot=dirname(dirname(dirname(__FILE__)));
|
|
|
|
require_once($sDirRoot."/config/config.ajax.php");
|
2008-11-01 08:16:18 +02:00
|
|
|
|
|
|
|
header('Content-Type: text/html; charset=utf-8');
|
|
|
|
|
2009-10-17 21:04:22 +03:00
|
|
|
if (!$sCity=getRequest('value',null,'post')) {
|
2008-11-01 08:16:18 +02:00
|
|
|
exit();
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($sCity!='') {
|
|
|
|
$aCity=$oEngine->User_GetCityByNameLike($sCity,10);
|
|
|
|
foreach ($aCity as $oCity) {
|
|
|
|
echo('<li>'.$oCity->getName().'</li>');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|