$rtypes[15] = 'MBOXFW'; $rtypes[16] = 'CURL'; $rtypes[17] = 'LOC'; } /************* * Includes * *************/ require_once "i18n.inc.php"; require_once "error.inc.php"; require_once "auth.inc.php"; require_once "users.inc.php"; require_once "dns.inc.php"; require_once "record.inc.php"; require_once "templates.inc.php"; $db = dbConnect(); doAuthenticate(); /************* * Functions * *************/ /* * Display the page option: [1] [2] .. [n] */ function show_pages($amount, $rowamount, $id = '') { if ($amount > $rowamount) { if (!isset($_GET["start"])) { $_GET["start"] = 1; } echo _('Show page') . ":<br>"; for ($i = 1; $i <= ceil($amount / $rowamount); $i++) { if ($_GET["start"] == $i) {
<?php require_once 'clases/controlador/Citas.php'; require_once 'clases/lib/nusoap.php'; require_once 'clases/modelo/dao/LogDao.php'; require_once 'funciones.php'; $debug = 1; $server = new soap_server(); $header = $server->requestHeaders; $flag = doAuthenticate(); if ($flag == FALSE) { $server->fault(401, 'Authentication failed!'); } $file = basename($_SERVER['PHP_SELF']); $ns = "http://{$_SERVER['HTTP_HOST']}/ws/{$file}"; $server->configureWSDL("Web Service MPPRE-MPPEUCT", $ns); #$server->soap_defencoding = 'UTF-8'; #$server->decode_utf8 = false; #$server->encode_utf8 = true; // Include con los Metodos y Tipos de Datos del WS require_once 'wsdl.php'; $obj = new Citas(); $log = new LogDao(); // Creamos un Log de Acceso $log->register($header); // Creamos un Log de Credenciales erradas if ($flag == FALSE) { $log->registerBadLogin(); } //Establecer servicio if (isset($HTTP_RAW_POST_DATA)) {