-
大小: 350KB文件類型: .zip金幣: 2下載: 1 次發布日期: 2021-05-17
- 語言: Html/CSS
- 標簽: htmlcgiweb??
資源簡介
b/s架構的web端代碼和cgi程序。包括cgi源程序和編譯好的程序,基于linux。在web端有查看攝像頭圖片的頁面,有控制led的頁面,有設置開發板時間的頁面。代碼簡單,一看就懂。

代碼片段和文件信息
/*?cgicTempDir?is?the?only?setting?you?are?likely?to?need
to?change?in?this?file.?*/
/*?Used?only?in?Unix?environments?in?conjunction?with?mkstemp().?
Elsewhere?(Windows)?temporary?files?go?where?the?tmpnam()?
function?suggests.?If?this?behavior?does?not?work?for?you?
modify?the?getTempFileName()?function?to?suit?your?needs.?*/
#define?cgicTempDir?“/tmp“
#if?CGICDEBUG
#define?CGICDEBUGSTART?\
{?\
FILE?*dout;?\
dout?=?fopen(“/home/boutell/public_html/debug“?“a“);?\
#define?CGICDEBUGEND?\
fclose(dout);?\
}
#else?/*?CGICDEBUG?*/
#define?CGICDEBUGSTART
#define?CGICDEBUGEND
#endif?/*?CGICDEBUG?*/
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#ifdef?WIN32
#include?
/*?cgic?2.01?*/
#include?
#else
#include?
#endif?/*?WIN32?*/
#include?“cgic.h“
#define?cgiStrEq(a?b)?(!strcmp((a)?(b)))
char?*cgiServerSoftware;
char?*cgiServerName;
char?*cgiGatewayInterface;
char?*cgiServerProtocol;
char?*cgiServerPort;
char?*cgiRequestMethod;
char?*cgiPathInfo;
char?*cgiPathTranslated;
char?*cgiscriptName;
char?*cgiQueryString;
char?*cgiRemoteHost;
char?*cgiRemoteAddr;
char?*cgiAuthType;
char?*cgiRemoteUser;
char?*cgiRemoteIdent;
char?cgiContentTypeData[1024];
char?*cgiContentType?=?cgiContentTypeData;
char?*cgiMultipartBoundary;
char?*cgiCookie;
int?cgiContentLength;
char?*cgiAccept;
char?*cgiUserAgent;
char?*cgiReferrer;
FILE?*cgiIn;
FILE?*cgiOut;
/*?True?if?CGI?environment?was?restored?from?a?file.?*/
static?int?cgiRestored?=?0;
static?void?cgiGetenv(char?**s?char?*var);
typedef?enum?{
cgiParseSuccess
cgiParseMemory
cgiParseIO
}?cgiParseResultType;
/*?One?form?entry?consisting?of?an?attribute-value?pair
and?an?optional?filename?and?content?type.?All?of
these?are?guaranteed?to?be?valid?null-terminated?strings
which?will?be?of?length?zero?in?the?event?that?the
field?is?not?present?with?the?exception?of?tfileName
which?will?be?null?when?‘in‘?is?null.?DO?NOT?MODIFY?THESE?
VALUES.?Make?local?copies?if?modifications?are?desired.?*/
typedef?struct?cgiFormEntryStruct?{
????????char?*attr;
/*?value?is?populated?for?regular?form?fields?only.
For?file?uploads?it?points?to?an?empty?string?and?file
upload?data?should?be?read?from?the?file?tfileName.?*/?
char?*value;
/*?When?fileName?is?not?an?empty?string?tfileName?is?not?null
and?‘value‘?points?to?an?empty?string.?*/
/*?Valid?for?both?files?and?regular?fields;?does?not?include
terminating?null?of?regular?fields.?*/
int?valueLength;
char?*fileName;
char?*contentType;
/*?Temporary?file?name?for?working?storage?of?file?uploads.?*/
char?*tfileName;
????????struct?cgiFormEntryStruct?*next;
}?cgiFormEntry;
/*?The?first?form?entry.?*/
static?cgiFormEntry?*cgiFormEntryFirst;
static?cgiParseResultType?cgiParseGetFormInput();
static?cgiParseResultType?cgiParsePostFormInput();
static?cgiParseResultType?cgiParsePostMultipartInput();
static?cgiParseRes
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-06-04?13:47??web+cgi\
?????目錄???????????0??2013-06-04?13:46??web+cgi\cgi程序\
?????文件???????55295??2011-12-12?15:05??web+cgi\cgi程序\cgic.c
?????文件????????7403??2011-12-12?15:05??web+cgi\cgi程序\cgic.h
?????文件????????5077??2013-05-20?15:24??web+cgi\cgi程序\led.c
?????文件????????1953??2013-05-20?08:57??web+cgi\cgi程序\set_time_cgi.c
?????目錄???????????0??2013-06-04?13:46??web+cgi\web端htlm源碼\
?????目錄???????????0??2013-06-04?13:46??web+cgi\web端htlm源碼\moban_muzhi\
?????目錄???????????0??2013-06-04?13:46??web+cgi\web端htlm源碼\moban_muzhi\images\
?????文件???????10819??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\ajax-loader.gif
?????文件?????????897??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\arrow-left.gif
?????文件?????????100??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\arrow-right.gif
?????文件?????????136??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\body-bg.png
?????文件???????56787??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\templatemo_content_bg.jpg
?????文件???????78750??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\templatemo_content_bg_wrapper.jpg
?????文件???????20746??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\templatemo_footer_bg.jpg
?????文件???????25917??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\templatemo_footer_bg_wrapper.jpg
?????文件???????18120??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\templatemo_header_bg.jpg
?????文件???????22067??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\templatemo_header_bg_wrapper.jpg
?????文件???????10474??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\templatemo_image_01.jpg
?????文件????????5150??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\templatemo_image_02.jpg
?????文件????????5074??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\templatemo_image_03.jpg
?????文件????????6024??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\templatemo_image_04.jpg
?????文件????????5657??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\templatemo_image_05.jpg
?????文件????????7253??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\templatemo_image_06.jpg
?????文件????????1192??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\templatemo_menu_button.png
?????文件????????3093??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\templatemo_menu_button_hover.png
?????文件????????5505??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\images\twitter_icon.png
?????文件???????10025??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\index.html
?????目錄???????????0??2013-06-04?13:46??web+cgi\web端htlm源碼\moban_muzhi\js\
?????文件????????5992??2013-05-22?14:55??web+cgi\web端htlm源碼\moban_muzhi\js\coda-slider.1.1.1.js
............此處省略10個文件信息
- 上一篇:郵件系統html靜態網頁模版
- 下一篇:微信小程序多圖上傳/朋友圈傳圖效果
評論
共有 條評論