if (($brisk->cds->cmd_cls_register($tor_chk_cls)) == FALSE) {
fprintf(STDERR, "MAIN: 'tor_chk_cls' registration failed\n");
return (FALSE);
}
if (($brisk->cds->cmd_cls_register($tor_chk_cls)) == FALSE) {
fprintf(STDERR, "MAIN: 'tor_chk_cls' registration failed\n");
return (FALSE);
}
if (($brisk->cds->cmd_cls_register($proxy_chk_cls)) == FALSE) {
fprintf(STDERR, "MAIN: 'proxy_chk_cls' registration failed\n");
return (FALSE);
if (($brisk->cds->cmd_cls_register($proxy_chk_cls)) == FALSE) {
fprintf(STDERR, "MAIN: 'proxy_chk_cls' registration failed\n");
return (FALSE);
function create($cds, $ctx, $user_idx, $user_sess, $conn_ip, $is_auth)
{
if ($cds->dbg_get() > 0) {
function create($cds, $ctx, $user_idx, $user_sess, $conn_ip, $is_auth)
{
if ($cds->dbg_get() > 0) {
function process($cmd, $ret)
{
if ($this->dbg_get() > 2) {
function process($cmd, $ret)
{
if ($this->dbg_get() > 2) {
- printf("CURL: 'tor_chk' process: curl_multi_getcontent\n");
- print_r($ret);
+ fprintf(STDERR, "CURL: 'tor_chk' process: curl_multi_getcontent\n");
+ fprintf(STDERR, "%s", print_r($ret, TRUE));
$is_tor = TRUE;
}
else if (mb_strpos($content,
"The IP Address you entered is NOT an active Tor server",
0, "UTF-8") === FALSE) {
$is_tor = TRUE;
}
else if (mb_strpos($content,
"The IP Address you entered is NOT an active Tor server",
0, "UTF-8") === FALSE) {
function process($cmd, $ret)
{
if ($this->dbg_get() > 2) {
function process($cmd, $ret)
{
if ($this->dbg_get() > 2) {
- printf("CURL: 'proxy_chk' process: curl_multi_getcontent\n");
- print_r($ret);
+ fprintf(STDERR, "CURL: 'proxy_chk' process: curl_multi_getcontent\n");
+ fprintf(STDERR, "%s", print_r($ret, TRUE));
$is_proxy = FALSE;
if (mb_strpos($content, "is_proxy=true", 0, "UTF-8") !== FALSE) {
$is_proxy = FALSE;
if (mb_strpos($content, "is_proxy=true", 0, "UTF-8") !== FALSE) {
$is_proxy = TRUE;
}
else if (mb_strpos($content, "is_proxy=false", 0, "UTF-8") === FALSE) {
$is_proxy = TRUE;
}
else if (mb_strpos($content, "is_proxy=false", 0, "UTF-8") === FALSE) {