コード例 #1
0
ファイル: evidence.php プロジェクト: jwssb90/get-evidence
function evidence_add_vote_tags($variant_id, $html)
{
    global $evidence_current_votes;
    $evidence_current_votes = evidence_get_web_votes($variant_id);
    return preg_replace_callback('{<A href="(.*?)">.*?</A>}si', create_function('$matches', "return evidence_add_vote_tag_callback({$variant_id}, \$matches);"), $html);
}
コード例 #2
0
ファイル: webvote.php プロジェクト: jwssb90/get-evidence
<?php

php;
include "lib/setup.php";
evidence_set_my_web_vote($_REQUEST["variant_id"], $_REQUEST["url"], $_REQUEST["score"]);
$myvotes =& evidence_get_my_web_vote($_REQUEST["variant_id"]);
$allvotes =& evidence_get_web_votes($_REQUEST["variant_id"]);
header("Content-type: application/json");
print json_encode(array("my" => $myvotes, "all" => $allvotes));