function HTTP_GET() { $pCore_AddressBook = new core_AddressBook(); $image = $pCore_AddressBook->getContactImage($this->_idNumero, $this->_thumbnail); if ($image === FALSE) { $json = new paloSantoJSON(); $error = $pCore_AddressBook->getError(); if ($error["fc"] == "DBERROR") { header("HTTP/1.1 500 Internal Server Error"); } else { header("HTTP/1.1 400 Bad Request"); } $json->set_status("ERROR"); $json->set_error($error); return $json->createJSON(); } else { return $image; } }