private function ucApipost($module, $action, $args = array()) { $options = $this->getOptions(); $s = $sep = ''; foreach ($args as $k => $v) { $k = urlencode($k); if (is_array($v)) { $s2 = $sep2 = ''; foreach ($v as $k2 => $v2) { $k2 = urlencode($k2); $s2 .= "{$sep2}{$k}[{$k2}]=" . urlencode($this->ucStripslashes($v2)); $sep2 = '&'; } $s .= $sep . $s2; } else { $s .= "{$sep}{$k}=" . urlencode($this->ucStripslashes($v)); } $sep = '&'; } $postdata = $this->ucApiRequestdata($module, $action, $s); return Plugin\Utils::ucFopen2($options->getUcApi() . '/index.php', 500000, $postdata, '', TRUE, $options->getUcIp(), 20); }