📄 index-sample.cgi.c
字号:
/* index-sample.cgi.c - sample index.cgi program Will determine whether the browser accepts images or not and sends the appropriate page. Eugene Kim, eekim@fas.harvard.edu $Id: index-sample.cgi.c,v 1.2 1998/05/05 19:42:58 edb Exp $ Copyright (C) 1995 Eugene Eric Kim All Rights Reserved*/#include <stdio.h>#include "cgi-lib.h"#include "html-lib.h"#define TEXT_PAGE "/index-txt.html" /* text HTML home page */#define IMAGE_PAGE "/index-img.html" /* graphical HTML home page */int main() { if (accept_image()) show_html_page(TEXT_PAGE); else show_html_page(IMAGE_PAGE); exit(0);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -