} } else { echo application_getMessage(msg_exists); } } //msg_deletepoi if ($action == msg_deletepoi) { if ($pof->deletePoi($usr->getUid(), $poiid)) { echo application_getMessage(msg_delok); } else { echo application_getMessage(msg_failed); } } //msg_getpois if ($action == msg_getpois) { $lst1 = $pof->getPois($usr->getUid()); if ($lst1 != null) { $pc = new PoiContainer(); for ($i = 0; $i < count($lst1); $i++) { $poi = $lst1[$i]; $pc->addPoi($poi); } echo application_getMessage($pc); //echo application_getMessage($lst1); } else { echo msg_empty; } } //msg_getpoi if ($action == msg_getpoi) { $lst1 = array();