📄 ip_setup_cgi.c
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -