|
|
@ -24,22 +24,29 @@
|
|
|
|
if ($subop == "getLabelCounters") {
|
|
|
|
if ($subop == "getLabelCounters") {
|
|
|
|
$aid = $_GET["aid"];
|
|
|
|
$aid = $_GET["aid"];
|
|
|
|
print "<rpc-reply>";
|
|
|
|
print "<rpc-reply>";
|
|
|
|
|
|
|
|
print "<counters>";
|
|
|
|
getLabelCounters($link);
|
|
|
|
getLabelCounters($link);
|
|
|
|
if ($aid) {
|
|
|
|
if ($aid) {
|
|
|
|
getFeedCounter($link, $aid);
|
|
|
|
getFeedCounter($link, $aid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
print "</counters>";
|
|
|
|
print "</rpc-reply>";
|
|
|
|
print "</rpc-reply>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($subop == "getFeedCounters") {
|
|
|
|
if ($subop == "getFeedCounters") {
|
|
|
|
print "<rpc-reply>";
|
|
|
|
print "<rpc-reply>";
|
|
|
|
|
|
|
|
print "<counters>";
|
|
|
|
getFeedCounters($link);
|
|
|
|
getFeedCounters($link);
|
|
|
|
|
|
|
|
print "</counters>";
|
|
|
|
print "</rpc-reply>";
|
|
|
|
print "</rpc-reply>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($subop == "getAllCounters") {
|
|
|
|
if ($subop == "getAllCounters") {
|
|
|
|
print "<rpc-reply>";
|
|
|
|
print "<rpc-reply>";
|
|
|
|
|
|
|
|
print "<counters>";
|
|
|
|
getAllCounters($link);
|
|
|
|
getAllCounters($link);
|
|
|
|
|
|
|
|
print "</counters>";
|
|
|
|
|
|
|
|
print_runtime_info($link);
|
|
|
|
print "</rpc-reply>";
|
|
|
|
print "</rpc-reply>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -72,7 +79,9 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
print "<rpc-reply>";
|
|
|
|
print "<rpc-reply>";
|
|
|
|
|
|
|
|
print "<counters>";
|
|
|
|
getFeedCounter($link, $feed_id);
|
|
|
|
getFeedCounter($link, $feed_id);
|
|
|
|
|
|
|
|
print "</counters>";
|
|
|
|
print "</rpc-reply>";
|
|
|
|
print "</rpc-reply>";
|
|
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -108,6 +117,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
print "<rpc-reply>";
|
|
|
|
print "<rpc-reply>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print "<counters>";
|
|
|
|
|
|
|
|
|
|
|
|
if ($global_unread_caller != $global_unread) {
|
|
|
|
if ($global_unread_caller != $global_unread) {
|
|
|
|
|
|
|
|
|
|
|
|
$omode = $_GET["omode"];
|
|
|
|
$omode = $_GET["omode"];
|
|
|
@ -126,6 +137,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
getGlobalCounters($link, $global_unread);
|
|
|
|
getGlobalCounters($link, $global_unread);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print "</counters>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print_runtime_info($link);
|
|
|
|
|
|
|
|
|
|
|
|
print "</rpc-reply>";
|
|
|
|
print "</rpc-reply>";
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -154,7 +169,10 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
print "<rpc-reply>";
|
|
|
|
print "<rpc-reply>";
|
|
|
|
|
|
|
|
print "<counters>";
|
|
|
|
getAllCounters($link);
|
|
|
|
getAllCounters($link);
|
|
|
|
|
|
|
|
print "</counters>";
|
|
|
|
|
|
|
|
print_runtime_info($link);
|
|
|
|
print "</rpc-reply>";
|
|
|
|
print "</rpc-reply>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -181,7 +199,10 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
print "<rpc-reply>";
|
|
|
|
print "<rpc-reply>";
|
|
|
|
|
|
|
|
print "<counters>";
|
|
|
|
getAllCounters($link);
|
|
|
|
getAllCounters($link);
|
|
|
|
|
|
|
|
print "</counters>";
|
|
|
|
|
|
|
|
print_runtime_info($link);
|
|
|
|
print "</rpc-reply>";
|
|
|
|
print "</rpc-reply>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -190,6 +211,7 @@
|
|
|
|
if (sanity_check($link)) {
|
|
|
|
if (sanity_check($link)) {
|
|
|
|
print "<error error-code=\"0\"/>";
|
|
|
|
print "<error error-code=\"0\"/>";
|
|
|
|
print_init_params($link);
|
|
|
|
print_init_params($link);
|
|
|
|
|
|
|
|
print_runtime_info($link);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
print "</rpc-reply>";
|
|
|
|
print "</rpc-reply>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|