array($ctype1 => $point1, $ctype2 => $point2), $uid2 => array()) return array */ function uc_credit_add($credit, $isAdd = true) { return uc_data_request('credit', 'add', array($credit, $isAdd)); } function uc_credit_get($uid) { return uc_data_request('credit', 'get', array($uid)); } function uc_data_request($class,$method,$args = array()) { static $uc = null; if (empty($uc)) { require_once UC_CLIENT_ROOT . 'class_core.php'; $uc = new UC(); } $class = $uc->control($class); if (method_exists($class, $method)) { return call_user_func_array(array(&$class, $method), $args); } else { return 'error'; } } ?>