$jourid = 21;
$key1=urlencode($_GET['key1']);
$key2=urlencode($_GET['key2']);
$key3=urlencode($_GET['key3']);
if (($_GET['key1'] || $_GET['key2'] || $_GET['key3']) && !$_GET['seq']) {
echo file_get_contents("http://www.cheric.org/research/tech/kiche/list.php?jourid=$jourid&item1=".$_GET['item1']."&key1=".$key1."&link1=".$_GET['link1']."&item2=".$_GET['item2']."&key2=".$key2."&link2=".$_GET['link2']."&item3=".$_GET['item3']."&key3=".$key3."&syear=".$_GET['syear']."&eyear=".$_GET['eyear']."&sortby=".$_GET['sortby']."&start=".$_GET['start']);
} elseif ($_GET['seq']) {
$content = file_get_contents("http://www.cheric.org/research/tech/kiche/view.php?jourid=$jourid&seq=".$_GET['seq']."&item1=".$_GET['item1']."&key1=".$key1."&link1=".$_GET['link1']."&item2=".$_GET['item2']."&key2=".$key2."&link2=".$_GET['link2']."&item3=".$_GET['item3']."&key3=".$key3."&syear=".$_GET['syear']."&eyear=".$_GET['eyear']."&sortby=".$_GET['sortby']."&start=".$_GET['start']);
$pdficon = '
';
//if(!$loginid) $content = str_replace($pdficon,"", $content);
echo $content;
} elseif ($_GET['searchby'] == "volumes") {
echo file_get_contents("http://www.cheric.org/research/tech/kiche/volumes.php?jourid=$jourid&seq=".$_GET['seq']."&item1=".$_GET['item1']."&key1=".$key1."&link1=".$_GET['link1']."&item2=".$_GET['item2']."&key2=".$key2."&link2=".$_GET['link2']."&item3=".$_GET['item3']."&key3=".$key3."&syear=".$_GET['syear']."&eyear=".$_GET['eyear']."&sortby=".$_GET['sortby']."&start=".$_GET['start']);
} elseif ($_GET['searchby'] == "years") {
echo file_get_contents("http://www.cheric.org/research/tech/kiche/years.php?jourid=$jourid&seq=".$_GET['seq']."&item1=".$_GET['item1']."&key1=".$key1."&link1=".$_GET['link1']."&item2=".$_GET['item2']."&key2=".$key2."&link2=".$_GET['link2']."&item3=".$_GET['item3']."&key3=".$key3."&syear=".$_GET['syear']."&eyear=".$_GET['eyear']."&sortby=".$_GET['sortby']."&start=".$_GET['start']);
} elseif ($_GET['searchby'] == "toc") {
echo file_get_contents("http://www.cheric.org/research/tech/kiche/toc.php?jourid=$jourid&vol=".$_GET['vol']."&num=".$_GET['num']."&key1=".$key1."&link1=".$_GET['link1']."&item2=".$_GET['item2']."&key2=".$key2."&link2=".$_GET['link2']."&item3=".$_GET['item3']."&key3=".$key3."&syear=".$_GET['syear']."&eyear=".$_GET['eyear']."&sortby=".$_GET['sortby']."&start=".$_GET['start']);
} else {
include_once "./search/search.php";
}
?>