function ss_hmib_sum_apps($cmd = 'index', $arg1 = '', $arg2 = '') { if ($cmd == 'index') { $return_arr = ss_hmib_sum_apps_getnames(); for ($i = 0; $i < sizeof($return_arr); $i++) { print $return_arr[$i] . "\n"; } } elseif ($cmd == 'query') { $arr_index = ss_hmib_sum_apps_getnames(); $arr = ss_hmib_sum_apps_getinfo($arg1); for ($i = 0; $i < sizeof($arr_index); $i++) { if (isset($arr[$arr_index[$i]])) { print $arr_index[$i] . '!' . $arr[$arr_index[$i]] . "\n"; } else { print '0'; } } } elseif ($cmd == 'get') { $arg = $arg1; $index = $arg2; return ss_hmib_sum_apps_getvalue($index, $arg); } }
function ss_hmib_sum_apps($cmd = "index", $arg1 = "", $arg2 = "") { if ($cmd == "index") { $return_arr = ss_hmib_sum_apps_getnames(); for ($i = 0; $i < sizeof($return_arr); $i++) { print $return_arr[$i] . "\n"; } } elseif ($cmd == "query") { $arr_index = ss_hmib_sum_apps_getnames(); $arr = ss_hmib_sum_apps_getinfo($arg1); for ($i = 0; $i < sizeof($arr_index); $i++) { if (isset($arr[$arr_index[$i]])) { print $arr_index[$i] . "!" . $arr[$arr_index[$i]] . "\n"; } else { print "0"; } } } elseif ($cmd == "get") { $arg = $arg1; $index = $arg2; return ss_hmib_sum_apps_getvalue($index, $arg); } }