msg["no_configuration_required"]; return $result; } public function update_config_from_form() { return; } public function instantiate_source_class($source_id) { return new openurl_out_source($this, $source_id, $this->msg); } //On chargera nous même les messages si on en a besoin public function need_global_messages() { return false; } public function process($source_id) { global $base_path; foreach($this->sources as $source){ if($source->id == $source_id){ if($source->config['mode'] == "requeteur"){ $str = file_get_contents("php://input"); 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; } } class openurl_out_source extends connecteur_out_source { public function __construct($connector, $id, $msg) { parent::__construct($connector, $id, $msg); } public function get_config_form() { global $charset; $result = parent::get_config_form(); //Adresse d'utilisation $result .= "