예제 #1
0
파일: oms_xml.php 프로젝트: bireme/proethos
//
// ProEthos is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
// PARTICULAR PURPOSE. See the ProEthos License for more details.
//
// You should have received a copy of the ProEthos License along with the ProEthos
// Software. If not, see
// https://raw.githubusercontent.com/bireme/proethos/master/LICENSE.txt
/**
 * XML OMS
 * @author Rene Faustino Gabriel Junior  (Analista-Desenvolvedor)
 * @copyright Copyright (c) 2013 - sisDOC.com.br
 * @access public
 * @version v.0.13.46
 * @package Proethos
 * @subpackage XML
 */
require "db.php";
header("Content-Type:text/xml");
require "_class/_class_cep.php";
$cep = new cep();
$id = round($dd[0]);
$dx = $dd[90];
if (checkpost($id) == $dx) {
    $cep->le($id);
    require "_class/_class_oms.php";
    $oms = new oms();
    echo $oms->xml($cep);
} else {
    echo 'post error';
}