* * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ use EDTB\Bookmarks\PoiBm; if (isset($_GET["do"])) { /** @require config */ require_once $_SERVER["DOCUMENT_ROOT"] . "/source/config.inc.php"; /** @require functions */ require_once $_SERVER["DOCUMENT_ROOT"] . "/source/functions.php"; /** @require PoiBm class */ require_once "PoiBm.php"; $data = json_decode($_REQUEST["input"]); $AddPoi = new PoiBm(); $AddPoi->add_poi($data); exit; } ?> <div class="input" id="addPoi" style="text-align:center"> <form method="post" id="poi_form" action="/Bookmarks"> <div class="input-inner"> <div class="suggestions" id="suggestions_33" style="margin-top:79px;margin-left:12px"></div> <table> <tr> <td class="heading" colspan="2">Add/edit Point of Interest <span class="right"> <a href="javascript:void(0)" onclick="tofront('addPoi')" title="Close form"> <img class="icon" src="/style/img/close.png" alt="X" /> </a> </span>