/**************************************************************************************************
INIT VALUES
**************************************************************************************************
*/
//This is the base address that reach LIS labs in infoscience db
$baseurl = "http://infoscience.epfl.ch/export.py?style=";
$collection = "&c=" . urlencode("Infoscience/Research/IC/LTHC");
$years = "&p=" . urlencode("year:2005->2006");
//output format
$format = "&fm=html&charset=latin-1&headings=1";
if (empty($_REQUEST['OrderBy'])) $OrderBy = "LIS_year";
if (empty($_REQUEST['SearchIn'])) $SearchIn = "title";
/**************************************************************************************************
ACTIONS
**************************************************************************************************
*/
$query = "&p=";
if (!empty($_REQUEST['SearchText'])) {
$query .= urlencode($_REQUEST['SearchIn'] . ":" . $_REQUEST['SearchText']);
}
$url = $baseurl . $OrderBy . $collection . $query . $format . $years;
/**************************************************************************************************
HTML FORM
**************************************************************************************************
*/
?>
';print_r($handle);exit;
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
}
print($contents);
?>