forked from 0xsky/xblog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxBlogBase.h
76 lines (54 loc) · 2.29 KB
/
xBlogBase.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* ----------------------------------------------------------------------------
* Copyright (c) 2012-2013, xSky <guozhw at gmail dot com>
* All rights reserved.
* Distributed under GPL license.
* ----------------------------------------------------------------------------
*/
#ifndef _BLOG_BASE_H_
#define _BLOG_BASE_H_
#ifndef O_BINARY
#define O_BINARY 0
#endif
const int MAX_FILE_SIZE = 1024 * 128;
const int SIZE_32 = 32;
const int SIZE_128 = 128;
const int SIZE_256 = 256;
const int SIZE_512 = 512;
const int SIZE_1024 = 1024;
#define K_DEFAULT "default"
#define V_DEFAULT "default.htm"
#define K_SINGLE "single"
#define V_SINGLE "single.htm"
#define K_GUESTBOOK "guestbook"
#define V_GUESTBOOK "guestbook.htm"
#define K_CATALOG "catalog"
#define V_CATALOG "catalog.htm"
#define K_ARTICLE_NVABAR "article_nvabar"
#define V_ARTICLE_NVABAR "article_nvabar.htm"
#define K_ARTICLE_SINGLE "article_single"
#define V_ARTICLE_SINGLE "article_single.htm"
#define K_ARTICLE_GUESTBOOK "article_guestbook"
#define V_ARTICLE_GUESTBOOK "article_guestbook.htm"
#define K_ARTICLE_COMMENTPOST "article_commentpost"
#define V_ARTICLE_COMMENTPOST "article_commentpost.htm"
#define K_POSTEDIT "postedit"
#define V_POSTEDIT "postedit.htm"
#define K_ARTICLE_MULTI "article_multi"
#define V_ARTICLE_MULTI "article_multi.htm"
#define K_ARTICLE_COMMENT "article_comment"
#define V_ARTICLE_COMMENT "article_comment.htm"
#define K_NAVBAR "CACHE_INCLUDE_NAVBAR"
#define V_NAVBAR "navbar.htm"
#define K_CACHE_CATALOG "CACHE_INCLUDE_CATALOG"
#define V_CACHE_CATALOG "catalog.htm"
#define K_MISC "CACHE_INCLUDE_MISC"
#define V_MISC "misc.htm"
#define K_ARCHIVES "CACHE_INCLUDE_ARCHIVES"
#define V_ARCHIVES "archives.htm"
#define K_LINKS "CACHE_INCLUDE_LINKS"
#define V_LINKS "link.htm"
#define LOGIN_PAGE "/admin/login.htm"
#define ADMIN_PAGE "/admin/admin.htm"
#define PAGE_404 "/admin/404.htm"
#endif