예제 #1
0
    }
    article($id);
} else {
    if ($parts[1] == "json") {
        if ($parts[2] == "pmid") {
            article_json_pmid($parts[3]);
        } else {
            if ($parts[2] == "doi") {
                $doi = "";
                for ($i = 3; $i < count($parts); $i++) {
                    $doi .= $parts[$i];
                    if ($i < count($parts) - 1) {
                        $doi .= "/";
                    }
                }
                article_json_doi($doi);
            }
        }
    } else {
        if ($parts[1] == "search") {
            $parts = explode("=", $parts[2]);
            $q = urldecode($parts[1]);
            search_lucene($q);
        } else {
            if ($parts[1] == "list") {
                $parts = explode("=", $parts[2]);
                $q = json_encode($parts[1]);
                article_list($q);
                /*
                $getdata = http_build_query(array("query" => $q,'action' => 'article_list'));
                $opts = array('http' =>array('method'=>'POST','header'=>'Content-type: application/x-www-form-urlencoded'));
예제 #2
0
     user_register();
     break;
 case "remind":
     user_remind();
     break;
 case "logout":
     user_logout();
     break;
 case "article":
     article($_GET["PMID"]);
     break;
 case "article_json_pmid":
     article_json_pmid($_GET["PMID"]);
     break;
 case "article_json_doi":
     article_json_doi($_GET["PMID"]);
     break;
 case "search_lucene":
     search_lucene($_GET["query"]);
     break;
 case "article_list":
     article_list($_GET["query"]);
     break;
 case "index_lucene":
     index_lucene($_GET, 1);
     break;
 case "get_article":
     get_article($_GET);
     break;
 case "get_concept":
     get_concept($_GET);