} else { require_once("api_".$conf['mod_plus_latest_api'].".inc"); $versionString = ""; $global['apiVersion'] = $conf['mod_plus_latest_api']; } // fix broken apache servers that don't default to index.php $fix = ""; if(($_SERVER['HTTP_HOST'] == "archivestage.nlm.nih.gov") || ($_SERVER['HTTP_HOST'] == "archivestage")) { $fix = "index.php"; } // init vars $serviceName = "plusWebServices"; $ns = null; // "urn:".$serviceName; //disabled...do we really need it? $endpoint = makeBaseUrl().$fix."?wsdl".$versionString; $server = new nusoap_server; $server->configureWSDL($serviceName, $ns, $endpoint, 'document'); $server->wsdl->schemaTargetNamespace = $ns; shn_plus_registerAll($ns); // if in safe mode, raw post data not set: if(!isset($HTTP_RAW_POST_DATA)) { $HTTP_RAW_POST_DATA = implode("\r\n", file('php://input')); } $server->service($HTTP_RAW_POST_DATA);
function gotoFourOhFour() {header("Location: ".makeBaseUrl()."index.php?mod=rez&act=default&page_id=-404");}