commit | author | age
|
dba282
|
1 |
<?php |
B |
2 |
/** |
|
3 |
* [WeEngine System] Copyright (c) 2014 WE7.CC |
|
4 |
* WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details. |
|
5 |
*/ |
|
6 |
|
|
7 |
defined('IN_IA') or exit('Access Denied'); |
|
8 |
|
|
9 |
define('REGULAR_EMAIL', '/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/i'); |
|
10 |
define('REGULAR_MOBILE', '/^\d{6,15}$/'); |
|
11 |
define('REGULAR_USERNAME', '/^[\x{4e00}-\x{9fa5}a-z\d_\.]{3,30}$/iu'); |
|
12 |
|
|
13 |
define('TEMPLATE_DISPLAY', 0); |
|
14 |
define('TEMPLATE_FETCH', 1); |
|
15 |
define('TEMPLATE_INCLUDEPATH', 2); |
|
16 |
|
|
17 |
define('ACCOUNT_SUBSCRIPTION', 1); |
|
18 |
define('ACCOUNT_SUBSCRIPTION_VERIFY', 3); |
|
19 |
define('ACCOUNT_SERVICE', 2); |
|
20 |
define('ACCOUNT_SERVICE_VERIFY', 4); |
|
21 |
define('ACCOUNT_TYPE_OFFCIAL_NORMAL', 1); |
|
22 |
define('ACCOUNT_TYPE_OFFCIAL_AUTH', 3); |
|
23 |
define('ACCOUNT_TYPE_APP_NORMAL', 4); |
|
24 |
define('ACCOUNT_TYPE_WEBAPP_NORMAL', 5); |
|
25 |
define('ACCOUNT_TYPE_PHONEAPP_NORMAL', 6); |
|
26 |
define('ACCOUNT_TYPE_APP_AUTH', 7); |
|
27 |
define('ACCOUNT_TYPE_WXAPP_WORK', 8); |
|
28 |
define('ACCOUNT_TYPE_XZAPP_NORMAL', 9); |
|
29 |
define('ACCOUNT_TYPE_XZAPP_AUTH', 10); |
|
30 |
define('ACCOUNT_TYPE_ALIAPP_NORMAL', 11); |
|
31 |
define('ACCOUNT_TYPE_SIGN', 'account'); |
|
32 |
define('WXAPP_TYPE_SIGN', 'wxapp'); |
|
33 |
define('WEBAPP_TYPE_SIGN', 'webapp'); |
|
34 |
define('PHONEAPP_TYPE_SIGN', 'phoneapp'); |
|
35 |
define('WELCOMESYSTEM_TYPE_SIGN', 'welcome'); |
|
36 |
define('XZAPP_TYPE_SIGN', 'xzapp'); |
|
37 |
define('ALIAPP_TYPE_SIGN', 'aliapp'); |
|
38 |
|
|
39 |
|
|
40 |
define('ACCOUNT_OAUTH_LOGIN', 3); |
|
41 |
define('ACCOUNT_NORMAL_LOGIN', 1); |
|
42 |
|
|
43 |
define('WEIXIN_ROOT', 'https://mp.weixin.qq.com'); |
|
44 |
|
|
45 |
define('ACCOUNT_OPERATE_ONLINE', 1); |
|
46 |
define('ACCOUNT_OPERATE_MANAGER', 2); |
|
47 |
define('ACCOUNT_OPERATE_CLERK', 3); |
|
48 |
|
|
49 |
define('ACCOUNT_MANAGE_NAME_CLERK', 'clerk'); |
|
50 |
define('ACCOUNT_MANAGE_TYPE_OPERATOR', 1); |
|
51 |
define('ACCOUNT_MANAGE_NAME_OPERATOR', 'operator'); |
|
52 |
define('ACCOUNT_MANAGE_TYPE_MANAGER', 2); |
|
53 |
define('ACCOUNT_MANAGE_NAME_MANAGER', 'manager'); |
|
54 |
define('ACCOUNT_MANAGE_TYPE_OWNER', 3); |
|
55 |
define('ACCOUNT_MANAGE_NAME_OWNER', 'owner'); |
|
56 |
define('ACCOUNT_MANAGE_NAME_FOUNDER', 'founder'); |
|
57 |
define('ACCOUNT_MANAGE_GROUP_FOUNDER', 1); |
|
58 |
define('ACCOUNT_MANAGE_TYPE_VICE_FOUNDER', 4); |
|
59 |
define('ACCOUNT_MANAGE_NAME_VICE_FOUNDER', 'vice_founder'); |
|
60 |
define('ACCOUNT_MANAGE_GROUP_VICE_FOUNDER', 2); |
|
61 |
define('ACCOUNT_MANAGE_GROUP_GENERAL', 0); |
|
62 |
define('ACCOUNT_MANAGE_NAME_UNBIND_USER', 'unbind_user'); |
|
63 |
define('ACCOUNT_NO_OWNER_UID', 0); |
|
64 |
define('ACCOUNT_MANAGE_NAME_EXPIRED', 'expired'); |
|
65 |
|
|
66 |
define('SYSTEM_COUPON', 1); |
|
67 |
define('WECHAT_COUPON', 2); |
|
68 |
define('COUPON_TYPE_DISCOUNT', '1');define('COUPON_TYPE_CASH', '2');define('COUPON_TYPE_GROUPON', '3');define('COUPON_TYPE_GIFT', '4');define('COUPON_TYPE_GENERAL', '5');define('COUPON_TYPE_MEMBER', '6');define('COUPON_TYPE_SCENIC', '7');define('COUPON_TYPE_MOVIE', '8');define('COUPON_TYPE_BOARDINGPASS', '9');define('COUPON_TYPE_MEETING', '10');define('COUPON_TYPE_BUS', '11'); |
|
69 |
define('ATTACH_FTP', 1);define('ATTACH_OSS', 2);define('ATTACH_QINIU', 3);define('ATTACH_COS', 4); |
|
70 |
define('ATTACH_TYPE_IMAGE', 1); |
|
71 |
define('ATTACH_TYPE_VOICE', 2); |
|
72 |
define('ATTACH_TYPE_VEDIO', 3); |
|
73 |
define('ATTACH_TYPE_NEWS', 4); |
|
74 |
|
|
75 |
define('ATTACHMENT_IMAGE', 'image'); |
|
76 |
|
|
77 |
define('ATTACH_SAVE_TYPE_FIXED', 1); |
|
78 |
define('ATTACH_SAVE_TYPE_TEMP', 2); |
|
79 |
|
|
80 |
define('STATUS_OFF', 0); define('STATUS_ON', 1); define('STATUS_SUCCESS', 0); |
|
81 |
define('CACHE_EXPIRE_SHORT', 60); |
|
82 |
define('CACHE_EXPIRE_MIDDLE', 300); |
|
83 |
define('CACHE_EXPIRE_LONG', 3600); |
|
84 |
define('CACHE_KEY_LENGTH', 100); |
|
85 |
define('MODULE_SUPPORT_WXAPP', 2); |
|
86 |
define('MODULE_NONSUPPORT_WXAPP', 1); |
|
87 |
define('MODULE_SUPPORT_ACCOUNT', 2); |
|
88 |
define('MODULE_NONSUPPORT_ACCOUNT', 1); |
|
89 |
define('MODULE_NOSUPPORT_WEBAPP', 1); |
|
90 |
define('MODULE_SUPPORT_WEBAPP', 2); |
|
91 |
define('MODULE_NOSUPPORT_PHONEAPP', 1); |
|
92 |
define('MODULE_SUPPORT_PHONEAPP', 2); |
|
93 |
define('MODULE_SUPPORT_SYSTEMWELCOME', 2); |
|
94 |
define('MODULE_NONSUPPORT_SYSTEMWELCOME', 1); |
|
95 |
define('MODULE_NOSUPPORT_ANDROID', 1); |
|
96 |
define('MODULE_SUPPORT_ANDROID', 2); |
|
97 |
define('MODULE_NOSUPPORT_IOS', 1); |
|
98 |
define('MODULE_SUPPORT_IOS', 2); |
|
99 |
define('MODULE_SUPPORT_XZAPP', 2); |
|
100 |
define('MODULE_NOSUPPORT_XZAPP', 1); |
|
101 |
define('MODULE_SUPPORT_ALIAPP', 2); |
|
102 |
define('MODULE_NOSUPPORT_ALIAPP', 1); |
|
103 |
|
|
104 |
define('MODULE_SUPPORT_WXAPP_NAME', 'wxapp_support'); |
|
105 |
define('MODULE_SUPPORT_ACCOUNT_NAME', 'account_support'); |
|
106 |
define('MODULE_SUPPORT_WEBAPP_NAME', 'webapp_support'); |
|
107 |
define('MODULE_SUPPORT_PHONEAPP_NAME', 'phoneapp_support'); |
|
108 |
define('MODULE_SUPPORT_SYSTEMWELCOME_NAME', 'welcome_support'); |
|
109 |
define('MODULE_SUPPORT_XZAPP_NAME', 'xzapp_support'); |
|
110 |
define('MODULE_SUPPORT_ALIAPP_NAME', 'aliapp_support'); |
|
111 |
|
|
112 |
define('MODULE_LOCAL_INSTALL', '1'); |
|
113 |
define('MODULE_LOCAL_UNINSTALL', '2'); |
|
114 |
define('MODULE_CLOUD_INSTALL', '3'); |
|
115 |
define('MODULE_CLOUD_UNINSTALL', '4'); |
|
116 |
define('MODULE_RECYCLE_INSTALL_DISABLED', '1'); |
|
117 |
define('MODULE_RECYCLE_UNINSTALL_IGNORE', '2'); |
|
118 |
|
|
119 |
define('PERMISSION_ACCOUNT', 'system'); |
|
120 |
define('PERMISSION_WXAPP', 'wxapp'); |
|
121 |
define('PERMISSION_SYSTEM', 'site'); |
|
122 |
|
|
123 |
define('PAYMENT_WECHAT_TYPE_NORMAL', 1);define('PAYMENT_WECHAT_TYPE_BORROW', 2);define('PAYMENT_WECHAT_TYPE_SERVICE', 3);define('PAYMENT_WECHAT_TYPE_CLOSE', 4); |
|
124 |
|
|
125 |
define('FANS_CHATS_FROM_SYSTEM', 1); |
|
126 |
|
|
127 |
define('WXAPP_STATISTICS_DAILYVISITTREND', 2); |
|
128 |
define('WXAPP_DIY', 1); |
|
129 |
define('WXAPP_TEMPLATE', 2); |
|
130 |
define('WXAPP_MODULE', 3); |
|
131 |
define('WXAPP_CREATE_MODULE', 1); |
|
132 |
define('WXAPP_CREATE_MUTI_MODULE', 2); |
|
133 |
define('WXAPP_CREATE_DEFAULT', 0); |
|
134 |
|
|
135 |
define('MATERIAL_LOCAL', 'local');define('MATERIAL_WEXIN', 'perm'); |
|
136 |
define('MENU_CURRENTSELF', 1); |
|
137 |
define('MENU_HISTORY', 2); |
|
138 |
define('MENU_CONDITIONAL', 3); |
|
139 |
|
|
140 |
define('USER_STATUS_CHECK', 1); |
|
141 |
define('USER_STATUS_NORMAL', 2); |
|
142 |
define('USER_STATUS_BAN', 3); |
|
143 |
|
|
144 |
define('USER_TYPE_COMMON', 1); |
|
145 |
define('USER_TYPE_CLERK', 3); |
|
146 |
|
|
147 |
define('PERSONAL_BASE_TYPE', 1); |
|
148 |
define('PERSONAL_AUTH_TYPE', 2); |
|
149 |
define('PERSONAL_LIST_TYPE', 3); |
|
150 |
|
|
151 |
define('STORE_TYPE_MODULE', 1); |
|
152 |
define('STORE_TYPE_ACCOUNT', 2); |
|
153 |
define('STORE_TYPE_WXAPP', 3); |
|
154 |
define('STORE_TYPE_WXAPP_MODULE', 4); |
|
155 |
define('STORE_TYPE_PACKAGE', 5); |
|
156 |
define('STORE_TYPE_API', 6); |
|
157 |
define('STORE_TYPE_ACCOUNT_RENEW', 7); |
|
158 |
define('STORE_TYPE_WXAPP_RENEW', 8); |
|
159 |
define('STORE_TYPE_USER_PACKAGE', 9); |
|
160 |
define('STORE_ORDER_PLACE', 1); |
|
161 |
define('STORE_ORDER_DELETE', 2); |
|
162 |
define('STORE_ORDER_FINISH', 3); |
|
163 |
define('STORE_ORDER_DEACTIVATE', 4); |
|
164 |
define('STORE_GOODS_STATUS_OFFlINE', 0); |
|
165 |
define('STORE_GOODS_STATUS_ONLINE', 1); |
|
166 |
define('STORE_GOODS_STATUS_DELETE', 2); |
|
167 |
|
|
168 |
define('ARTICLE_PCATE', 0); |
|
169 |
define('ARTICLE_CCATE', 0); |
|
170 |
|
|
171 |
define('USER_REGISTER_TYPE_QQ', 1); |
|
172 |
define('USER_REGISTER_TYPE_WECHAT', 2); |
|
173 |
define('USER_REGISTER_TYPE_MOBILE', 3); |
|
174 |
|
|
175 |
define('MESSAGE_ORDER_TYPE', 1); |
|
176 |
define('MESSAGE_ORDER_PAY_TYPE', 9); |
|
177 |
define('MESSAGE_ACCOUNT_EXPIRE_TYPE', 2); |
|
178 |
define('MESSAGE_WECHAT_EXPIRE_TYPE', 5); |
|
179 |
define('MESSAGE_WEBAPP_EXPIRE_TYPE', 6); |
|
180 |
define('MESSAGE_WORKORDER_TYPE', 3); |
|
181 |
define('MESSAGE_REGISTER_TYPE', 4); |
|
182 |
define('MESSAGE_USER_EXPIRE_TYPE', 7); |
|
183 |
define('MESSAGE_WXAPP_MODULE_UPGRADE', 8); |
|
184 |
define('MESSAGE_SYSTEM_UPGRADE', 10); |
|
185 |
define('MESSAGE_OFFICIAL_DYNAMICS', 11); |
|
186 |
|
|
187 |
define('MESSAGE_ENABLE', 1); |
|
188 |
define('MESSAGE_DISABLE', 2); |
|
189 |
|
|
190 |
define('MESSAGE_NOREAD', 1); |
|
191 |
define('MESSAGE_READ', 2); |
|
192 |
|
|
193 |
define('FILE_NO_UNIACID', -1); |
|
194 |
|
|
195 |
define('OAUTH_TYPE_BASE', 1); |
|
196 |
define('OAUTH_TYPE_USERINFO', 2); |
|
197 |
|
|
198 |
define('ARTICLE_COMMENT_DEFAULT', 0); |
|
199 |
define('ARTICLE_NOCOMMENT', 1); |
|
200 |
define('ARTICLE_COMMENT', 2); |
|
201 |
define('ARTICLE_COMMENT_NOREAD', 1); |
|
202 |
define('ARTICLE_COMMENT_READ', 2); |
|
203 |
|
|
204 |
define('COMMENT_STATUS_OFF', 0); |
|
205 |
define('COMMENT_STATUS_ON', 1); |
|
206 |
|
|
207 |
define('WELCOME_DISPLAY_TYPE', 9); |
|
208 |
define('LASTVISIT_DISPLAY_TYPE', 1); |
|
209 |
define('ACCOUNT_DISPLAY_TYPE', 2); |
|
210 |
define('WXAPP_DISPLAY_TYPE', 3); |
|
211 |
define('WEBAPP_DISPLAY_TYPE', 4); |
|
212 |
define('PHONEAPP_DISPLAY_TYPE', 5); |
|
213 |
define('PLATFORM_DISPLAY_TYPE', 6); |
|
214 |
define('MODULE_DISPLAY_TYPE', 7); |
|
215 |
|
|
216 |
define('PASSWORD_STRONG_STATE', '至少8-16个字符,至少1个大写字母,1个小写字母和1个数字,其他可以是任意字符'); |
|
217 |
define('PASSWORD_STRONG_REGULAR', '/(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,30}/'); |