<?php require_once $_SERVER["DOCUMENT_ROOT"] . "/includes/autoload.php"; if ($_REQUEST["cmd"] == "get_emails") { $config = new Config(); $config->get_emails_contacto_json_prt(); exit; } if ($_REQUEST["cmd"] == "update_emails") { $config = new Config(); // $config->set_debug_mode();debug($_REQUEST); if ($config->actualiza_emails($_REQUEST)) { $config->response_json_prt("ok"); } else { $config->response_json_prt("error"); } exit; } debug($_REQUEST);