function process($source_id) { global $base_path; foreach ($this->sources as $source) { if ($source->id == $source_id) { if ($source->config['mode'] == "requeteur") { $str = $HTTP_RAW_POST_DATA; if (!$str) { $str = str_replace('source_id=' . $source_id . '&', "", $_SERVER['QUERY_STRING']); } openurl_transport::unserialize($str); } else { foreach ($_POST as $key => $value) { global ${$key}; ${$key} = $value; } foreach ($_GET as $key => $value) { global ${$key}; ${$key} = $value; } require $base_path . "/admin/connecteurs/in/openurl/openurl.class.php"; $conn = new openurl("openurl"); header('Content-type: text/txt'); print $conn->getByRefContent($in_id, $notice_id, $uri, $entity); } } } return; }
function openurl_transport_inline($url) { parent::openurl_transport($url); }