Пример #1
0
function getDeCSTree($tree_id = '')
{
    $decsWs = "http://decs.ws.bvsalud.org/";
    $request = "<decsws_request>" . "\t<service>getTree</service>" . "\t<parameters>" . "\t\t<tree_id>" . $tree_id . "</tree_id>" . "\t</parameters>" . "</decsws_request>";
    $wsUrl = $decsWs . "main.php?decsws_parameters=" . $request;
    $response = postIt($wsUrl);
    return trim($response);
}
Пример #2
0
function getDeCSTreeVmx($tree_id = '')
{
    global $checked;
    $server = "http://decs.bvs.br/";
    $service = "/cgi-bin/mx/cgi=@vmx/decs";
    $request = "?tree_id=" . $tree_id . "&lang=" . $checked["lang"];
    $decsWS = $server . $service . $request;
    $response = postIt($decsWS);
    return trim($response);
}
Пример #3
0
<?php

require "../php/include.php";
require "common.inc.php";
header("Content-type: text/xml");
$expression = stripslashes($_REQUEST['expression']);
$metaiahServerUrl = "http://" . $def['SERVER'] . "/metaiahServer/search?expression=" . $expression . "&bvs=" . $def['SERVERNAME'] . "&timeout=" . $def['TIMEOUT'] . "&lang=" . $lang . "&engine=metacollexis";
$ajax = postIt($metaiahServerUrl);
die($ajax);
?>

Пример #4
0
<?php

require "../php/include.php";
require "../php/common.php";
header("Content-type: text/xml");
$expression = trim($_REQUEST['expression']);
$expression = replace_accents($expression);
$expression = str_replace("\$", "*", $expression);
$serviceUrl = "http://" . $def["SERVER"] . "/decsQuickTerm/search?query=" . $expression . "&lang=" . $checked["lang"];
$serviceResponse = postIt($serviceUrl);
echo $serviceResponse;
Пример #5
0
    $mode = $_GET['page'];
}
include_once "views/head.html";
switch ($mode) {
    case 'register':
        register();
        break;
    case 'login':
        login();
        break;
    case "logout":
        $_SESSION = array();
        session_destroy();
        header("Location: ?");
        // Pealehele
        break;
    case 'postit':
        postIt();
        break;
    case "post":
        getPost();
        break;
    case "usersPosts":
        getUsersPosts();
        break;
    default:
        $allPosts = getAllPosts();
        include "views/main.html";
        break;
}
include_once "views/foot.html";
Пример #6
0
<html>
	<head>
		<?php 
include $DirNameLocal . "../php/head.php";
?>
	
<?php 
if ($engine == 'server' && $mode != "form" && $form != 'advanced') {
    $metaServerUrl = "http://" . $def['SERVER'] . "/metaiahServer/search?bvs=" . $def['SERVERNAME'] . "&lang=" . $lang . "&timeout=" . $def['TIMEOUT'];
    if ($topic != '') {
        $metaServerUrl .= "&topic=" . $topic;
    } else {
        $boolean = insertDefaultConnector($expression, $connector);
        $metaServerUrl .= "&expression=" . $boolean;
    }
    $xml = postIt($metaServerUrl);
} else {
    inprocess('', 'init');
    //init progress window
    /* extrai nó do topico selecionado ou search na estrutura treeNode */
    if ($topic) {
        $target_node = extractXMLFragment($defineXml, "topic", $topic);
    } else {
        $boolean = insertDefaultConnector($expression, $connector);
        $target_node = extractXMLFragment($defineXml, "search");
    }
    /* Adiciona nó do search ou topico selecionado no xml final */
    $target_node->printOut($nodeXmlStr);
    /* extrai nó sourceList na estrutura treeNode */
    $sourceListNode = extractXMLFragment($defineXml, "sourceList");
    $sourceListNode->printOut($nodeSource);
Пример #7
0
            if (array_key_exists('expires', $p2cookies)) {
                // 期限切れなら破棄
                if (time() > strtotime($p2cookies['expires'])) {
                    CookieDataStore::delete($cookie_key);
                    $p2cookies = null;
                }
            }
        } else {
            CookieDataStore::delete($cookie_key);
            $p2cookies = null;
        }
    } else {
        $p2cookies = null;
    }
    // 直接書き込み
    $posted = postIt($host, $bbs, $key, $post);
    // cookie 保存
    if ($p2cookies) {
        CookieDataStore::set($cookie_key, $p2cookies);
    }
}
// 投稿失敗記録を削除
if ($posted) {
    PostDataStore::delete($post_backup_key);
}
//=============================================
// スレ立て成功なら、subjectからkeyを取得
//=============================================
if (!empty($_POST['newthread']) && $posted) {
    sleep(1);
    $key = getKeyInSubject();