{source}
<?php

/*
  echo "POST ==–><br />";
  echo print_r($_POST)."<br />";
  echo "============<br />";
  echo "GET ==<br />";
  echo print_r($_GET)."<br />";
  echo "============<br />";
 */
if(isset($_GET['id_fiche'])&&$_GET['id_fiche']!="")
{

    try
    {
$highlight="";
if(isset($_GET['highlight'])&&$_GET['highlight']!="")
{
$highlight="&highlight=".urlencode($_GET['highlight']);
}
        $page=file_get_contents("https://www.efa.gr/script/publications/publications.php?id_fiche=".$_GET['id_fiche'].$highlight);
        if($page!==false)
        {
            echo $page;
        }
    }
    catch(Exception $e)
    {
        
    }
}
else
{
    try
    {
        $postdata=http_build_query($_POST);
        /*
          $postdata = http_build_query(
          array(
          'var1' => 'value 1',
          'var2' => 'value 2'
          )
          );
         */
        $opts=array('http'=>
            array(
                'method' =>'POST',
                'header' =>"Content-type: application/x-www-form-urlencoded\r\n"
                ."Content-Length: ".strlen($postdata)."\r\n",
                'content'=>$postdata
            ),
        );

        $context=stream_context_create($opts);

        $page=file_get_contents("https://www.efa.gr/script/publications/catalogue_publications.php",false,$context);
        if($page===false)
        {
            // Handle the error
        }
        else
        {

            echo $page;
        }
    }
    catch(Exception $e)
    {
        // Handle exception
    }
}

?>
{/source}