<?php require_once "../includes/class.contactanos_info.php"; require_once "../includes/class.contactanos.php"; require_once "../includes/class.contactanos_xml.php"; if ($_REQUEST["cmd"] == "listado") { /* $galerias = new Galerias(new DB()); $galerias->get_listado_xml_prt(); */ $contactanos = new Contactanos_XML($_REQUEST, new DB()); // $contactanos->set_debug_mode(); $contactanos->get_listado_xml_prt(); exit; } if ($_REQUEST[$_REQUEST["ids"] . "_!nativeeditor_status"] == "deleted") { $contactanos = new Contactanos(new DB()); // $galeria->set_debug_mode();debug($_REQUEST); if ($contactanos->elimina($_REQUEST["ids"])) { $contactanos->response_xml_prt(); } else { $contactanos->response_xml("error", "error"); } exit; } if ($_REQUEST["cmd"] == "info_json") { $contactanos = new Contactanos_info($_REQUEST["id_contacto"], new DB()); $contactanos->get_campos_json_prt("con_nombre,con_telefono,con_email,con_comentario,con_enviado_a,con_fallo,con_fecha_creado"); exit; }