int sysinfo_req(void) { INPUT *input = CGI_INIT(); INPUT *tmp; if ((tmp = CGI_Find_Parameter(input, "appsjson"))) { FCGI_LOG("appsjson = %s\n", tmp->val); } if ((tmp = CGI_Find_Parameter(input, "sid"))) FCGI_LOG("sid = %s\n", tmp->val); Sysinfo_To_JSON(2); CGI_RELEASE(input); return 0; }
int qsync_prepare(INPUT *input) { INPUT *tmp; if ((tmp=CGI_Find_Parameter(input, "func"))!=NULL){ /* Here we do about other feature if( _session_auth(input) == -1) return -1; if (!strcmp(tmp->val, "qbox_get_max_log")){ Start_JSON(); op_qbox_get_max_log(input); } */ }else if((tmp=CGI_Find_Parameter(input, "user")) != NULL){ // Start_JSON(); op_qbox_get_nas_uid(input); } CGI_RELEASE(input); return 0; }