ip_setup_cgi.c

来自「C的cgi语言」· C语言 代码 · 共 34 行

C
34
字号
#ifndef _WAN_CGI_C_#define _WAN_CGI_C_#include "system.h"#include "h_var.h"#include "wan.h"int r2t_stat(char buf[CGI_BUF_LEN],char **buf1){	switch(system_conf.Connection){    case CONNECTION_DHCP:        if(dhcp_conf.dhcpc_type == 0)            strcpy(buf,"wan_auto.htm");        else            strcpy(buf,"wan_static.htm");        break;    case CONNECTION_SINGLE_PPPOE:        strcpy(buf,"wan_pppoe.htm");        break;    default:        break;    }    	return 0;}int wan_main(){	LIST *hd=NULL;    ReadSystemSettings(&system_conf);    ReadDHCPSettings(&dhcp_conf);  	return html_parser("ip_setup.htm",key_fun_tab);}#endif /* _WAN_CGI_C_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?