www.pudn.com > cgi-web.rar > menus.c, change:2007-08-31,size:2544b


#include <stdio.h> 
#include <string.h> 
#include <stdlib.h> 
#include <fcntl.h> 
#include <getopt.h> 
#include <errno.h> 
#include <sys/ioctl.h> 
#include <linux/config.h> 
#include <netinet/in.h> 
#include <arpa/inet.h> 
 
#include "cgivars.h" 
#include "htmllib.h" 
#include "config_phase.h" 
#include "sysconf.h" 
 
char head[]="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd\">"; 
 
 
char html[]="<html> 
 
<HEAD> 
	<TITLE>menus</TITLE> 
	<META http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"> 
	<LINK href=\"menus_files/style.css\" type=text/css rel=stylesheet> 
	<STYLE type=text/css>BODY { 
		BACKGROUND-COLOR: #6699ff 
	} 
	.style1 { 
		FONT-WEIGHT: bold; FONT-SIZE: 10pt 
	} 
	</STYLE> 
 
	<META content=\"MSHTML 6.00.6000.16414\" name=GENERATOR> 
</HEAD> 
 
 
<BODY> 
<P> </P> 
<P class=style1>基本设置</P> 
<UL class=style1> 
  <LI>	<a target=\"mainFrame\" href=\"/sysinfo.cgi\">系统状态</a>  
  <LI>	<a target=\"mainFrame\" href=\"/system_ctl.cgi\">系统设置</a>  
  <LI>	<a target=\"mainFrame\" href=\"/user_manager.cgi\">用户管理</a>  
  <LI>	<a target=\"mainFrame\" href=\"/networking.cgi\">网络设置</a>  
  <LI>	<a target=\"mainFrame\" href=\"/video_setting.cgi\">视频设置</a> 
  <LI>	<a target=\"mainFrame\" href=\"/date.cgi\">日期时间</a></LI> 
</UL> 
 
<P class=style1>高级设置</P> 
<UL class=style1> 
  <LI> <a target=\"mainFrame\" href=\"/video_crypt.cgi\">视频加密</a>  
  <LI> <a target=\"mainFrame\" href=\"/ftp.cgi\">FTP服务</a>  
  <LI> <a target=\"mainFrame\" href=\"/mail.cgi\">邮件服务</a>  
  <LI> <a target=\"mainFrame\" href=\"/alert.cgi\">安防报警</a> 
  <LI> <a target=\"mainFrame\" href=\"/timing.cgi\">定时操作</a>  
  <LI> <a target=\"mainFrame\" href=\"/maintenance.cgi\">系统维护</a>  
  </LI> 
</UL> 
 
<P class=style1>其他</P> 
<UL class=style1> 
  <LI> <a target=\"mainFrame\" href=\"../help.htm\">使用帮助</a>  
  <LI> <a target=\"mainFrame\" href=\"../support.htm\">技术支持</a>  
  <LI> <a target=\"mainFrame\" href=\"../about.htm\">关于产品</a></LI> 
</UL> 
 
<P class=style1>链接</P> 
<UL class=style1> 
  <LI> <a target=\"mainFrame\" href=\"/rt_video.cgi\">查看视频</a>  
  <LI> <a target=\"_blank\" href=\"/hist_video.cgi\">历史视频</a>  
  <LI> <a target=\"_top\" href=\"../index.html\">返回首页</a></LI> 
</UL> 
</BODY> 
 
 
</HTML>"; 
 
 
int main(void) 
{ 
 //   printf("%s\n", head); 
 adminCheck(); 
    printf("%s\n", html); 
 
    //fflush(stdout); 
    exit(0); 
 
}  // end of main