⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mymain.cpp

📁 管理系统
💻 CPP
字号:
#include "cgic.h"
#include <string.h>
#include <stdlib.h>

#include <direct.h>

extern void Add_Soft_Html();
extern void Add_Soft();
extern void User_Login_Html();
extern void User_Login();
extern void Change_Pass_Html();
extern void Change_Pass();
extern void EditSoft_InputID();
extern void Edit_Soft_Html();
extern void Edit_Soft();
extern void Del_Soft_InputID();
extern void Del_Soft_Html();
extern void Del_Soft();

extern void Make_Html();
extern void Edit_User();

extern void ReIndex_Soft();
extern void ReIndex_User();


char ExeWork_Dir[]="e:/ftp/users/mssoft/soft";

int cgiMain()
{
#if DEBUG
	/* Load a saved CGI scenario if we're debugging */
	cgiReadEnvironment("/home/boutell/public_html/capcgi.dat");
#endif
	char job[21];
	chdir(ExeWork_Dir);
	cgiFormString("job",job,21);
	if(stricmp(job,"AddSoftHtml")==0) {Add_Soft_Html(); return 0;}
	if(stricmp(job,"AddSoft")==0) {Add_Soft(); return 0;}
	if(stricmp(job,"UserLoginHtml")==0) {User_Login_Html(); return 0;}
	if(stricmp(job,"UserLogin")==0) {User_Login(); return 0;}
	if(stricmp(job,"ChangePassHtml")==0) {Change_Pass_Html(); return 0;}
	if(stricmp(job,"ChangePass")==0) {Change_Pass(); return 0;}
	if(stricmp(job,"EditSoftInputID")==0) {EditSoft_InputID(); return 0;}
	if(stricmp(job,"EditSoftHtml")==0) {Edit_Soft_Html(); return 0;}
	if(stricmp(job,"EditSoft")==0) {Edit_Soft(); return 0;}
	if(stricmp(job,"DelSoftInputID")==0) {Del_Soft_InputID(); return 0;}
	if(stricmp(job,"DelSoftHtml")==0) {Del_Soft_Html(); return 0;}
	if(stricmp(job,"DelSoft")==0) {Del_Soft(); return 0;}
	if(stricmp(job,"EditUser")==0) {Edit_User(); return 0;}
	
	if(stricmp(job,"ReIndexSoft")==0) {ReIndex_Soft(); return 0;}
	if(stricmp(job,"ReIndexUser")==0) {ReIndex_User(); return 0;}

  	cgiHeaderContentType("text/html");
	fprintf(cgiOut,"<font color=red>不知道你要干什么?</font>");
	return 0;
}

⌨️ 快捷键说明

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