Skip to content

Commit 7efe66f

Browse files
committed
新创建phpwind代码
1 parent b24e139 commit 7efe66f

File tree

2,916 files changed

+496701
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,916 files changed

+496701
-0
lines changed

AUTHORS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This is the official list of people who have contributed to phpwind
2+
# Names should be added to this file as
3+
# Name or Organization <email address>
4+
# The email address is not required for organizations.
5+
6+
# Please keep the list sorted.
7+
8+
Zerol Lin <[email protected]>

LICENSE

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
phpwind 软件使用协议
2+
3+
版权所有(c)2003-2103,phpwind.com保留所有权力。
4+
5+
感谢您选择 phpwind board 建站系统, 希望我们的产品能够帮您把网站发展的更快、更好、更强!
6+
7+
phpwind board 建站系统由phpwind.com(以下简称本公司或phpwind官方)独立开发,全部核心技术归属 phpwind dev team(phpwind board 在中国国家版权局著作权登记号为:2004SR06082)。
8+
官方网站为 http://www.phpwind.com,官方论坛为 http://www.phpwind.net
9+
10+
本授权协议适用于 phpwind 任何版本,本公司拥有对本授权协议的最终解释权和修改权。
11+
12+
phpwind board 建站系统(以下简称 phpwind)使用限制
13+
1、您在使用 phpwind 时应遵守中华人民共和国相关法律法规、您所在国家或地区之法令及相关国际惯例,不将 phpwind 用于任何非法目的,也不以任何非法方式使用 phpwind。
14+
2、phpwind 著作权已在中华人民共和国国家版权局注册,著作权登记号为:2004SR06082 并受到法律和国际公约保护。如果您需要采用 phpwind 系统的部分程序构架其他程序系统,请务必取得我们的同意。否则我们将追究责任!修改后的代码,未经书面许可,严禁公开发布,更不得利用其从事盈利业务。
15+
3、所有用户均可查看 phpwind 的全部源代码,也可以根据自己的需要对其进行修改!但无论如何,既无论用途如何、是否经过修改或美化、修改程度如何,只要您使用 phpwind 的任何整体或部分程序算法,都必须保留页脚处的本公司下属网站(http://www.phpwind.com,http://www.phpwind.net)链接地址,不能清除或修改。
16+
4、未经商业授权,不得将本软件用于商业用途(企业网站或以盈利为目的经营性网站),否则我们将保留追究的权力。有关 phpwind 授权包含的服务范围,技术支持等,请参看 http://www.phpwind.com
17+
5、phpwind 中集成交易或支付接口,通过交易或支付接口产生的交易行为与本公司无关,您不得利用本服务从事侵害他人合法权益之行为,否则应承担所有相关法律责任,您应承担赔偿责任。上述行为包括但不限于:
18+
a、侵害他人名誉权、隐私权、商业秘密、商标权、著作权、专利权等合法权益。
19+
b、从事不法交易行为,如贩卖枪支、毒品、禁药、盗版软件、黄色淫秽物品、其他本公司认为不得使用本服务进行交易的物品等。
20+
c、提供赌博资讯或以任何方式引诱他人参与非法博弈。
21+
d、从事任何可能含有电脑病毒或是可能侵害本服务系统、资料之行为。
22+
e、其他本公司有正当理由认为不适当之行为。
23+
24+
phpwind 免责声明
25+
1、利用 phpwind 构建的网站的任何信息内容以及导致的任何版权纠纷和法律争议及后果,phpwind 官方不承担任何责任。
26+
2、phpwind 损坏包括程序的使用(或无法再使用)中所有一般化、特殊化、偶然性的或必然性的损坏(包括但不限于数据的丢失,自己或第三方所维护数据的不正确修改,和其他程序协作过程中程序的崩溃等),phpwind 官方不承担任何责任。
27+
28+
电子文本形式的授权协议如同双方书面签署的协议一样,具有完全的和等同的法律效力。您一旦安装使用phpwind,即被视为完全理解并接受本协议的各项条款,在享有上述条款授予的权力的同时,受到相关的约束和限制。协议许可范围以外的行为,将直接违反本授权协议并构成侵权,本公司有权随时终止授权,责令停止损害,并保留追究相关责任的权力。

conf/application/default.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
defined('WEKIT_VERSION') or exit(403);
3+
/**
4+
* 全局产品级应用 配置
5+
*/
6+
return array(
7+
//'isclosed' => '1',
8+
9+
'components' => array('resource' => 'CONF:components.php'),
10+
'web-apps' => array(
11+
'default' => array(
12+
'charset' => 'utf-8'
13+
)
14+
)
15+
);

conf/application/inform.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
defined('WEKIT_VERSION') or exit(403);
3+
4+
return array(
5+
'web-apps' => array(
6+
'inform' => array(
7+
'root-path' => 'APPS:inform',
8+
'modules' => array(
9+
'default' => array(
10+
'controller-path' => 'APPS:inform.controller',
11+
'controller-suffix' => 'Controller',
12+
'template-path' => 'TPL:inform',
13+
'compile-path' => 'DATA:compile.template.inform',
14+
)
15+
)
16+
)
17+
)
18+
);

conf/application/install.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
defined('WEKIT_VERSION') or exit(403);
3+
/**
4+
* 应用安装配置
5+
*/
6+
7+
8+
return array(
9+
'components' => array(
10+
'windView' => array(
11+
'properties' => array(
12+
'viewResolver' => array('path' => 'WIND:viewer.resolver.WindNormalViewerResolver'))),
13+
'router' => array()),
14+
15+
'web-apps' => array(
16+
'install' => array(
17+
'root-path' => 'APPS:install',
18+
'modules' => array(
19+
'default' => array(
20+
'controller-path' => 'INSTALL:controller',
21+
'controller-suffix' => 'Controller',
22+
'template-path' => 'TPL:install',
23+
'compile-path' => 'DATA:compile.template.install',
24+
'error-handler' => 'INSTALL:controller.MessageController',
25+
'theme-package' => 'THEMES:'
26+
)
27+
)
28+
)
29+
)
30+
);

conf/application/phpwind.php

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
defined('WEKIT_VERSION') or exit(403);
3+
/**
4+
* 全局产品级应用 配置
5+
*/
6+
return array(
7+
8+
/**=====配置开始于此=====**/
9+
'web-apps' => array(
10+
'phpwind' => array(
11+
'root-path' => 'APPS:bbs',
12+
'filters' => array(
13+
'global' => array('class' => 'LIB:filter.PwFilter'),
14+
'csrf' => array(
15+
'class' => 'LIB:filter.PwCsrfTokenFilter',
16+
'pattern' => '~(bbs/upload/*|windid/uploadAvatar/*|app/upload/run)'),
17+
'register' => array(
18+
'class' => 'APPS:u.controller.filter.UserRegisterFilter',
19+
'pattern' => 'u/register/*')),
20+
'modules' => array(
21+
'pattern' => array(
22+
'controller-path' => 'APPS:{m}.controller',
23+
'template-path' => 'TPL:{m}',
24+
'compile-path' => 'DATA:compile.template'),
25+
'default' => array(
26+
'controller-path' => 'APPS:bbs.controller',
27+
'controller-suffix' => 'Controller',
28+
'error-handler' => 'LIB:base.PwErrorController',
29+
'template-path' => 'TPL:bbs',
30+
'compile-path' => 'DATA:compile.template.bbs',
31+
'theme-package' => 'THEMES:'),
32+
'admin' => array(
33+
'controller-path' => 'APPS:bbs.controller',
34+
'controller-suffix' => 'Controller',
35+
'error-handler' => 'LIB:base.PwErrorController',
36+
'template-path' => 'TPL:bbs',
37+
'compile-path' => 'DATA:compile.template.bbs',
38+
'theme-package' => 'THEMES:'),
39+
'app' => array(
40+
'controller-path' => 'SRC:extensions.{app}.controller',
41+
'template-path' => 'SRC:extensions.{app}.template',
42+
'compile-path' => 'DATA:compile.template.{app}')
43+
)
44+
)
45+
)
46+
);

conf/application/pwadmin.php

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
defined('WEKIT_VERSION') or exit(403);
3+
/**
4+
* pw后台应用配置
5+
*/
6+
7+
return array(
8+
'web-apps' => array(
9+
'pwadmin' => array(
10+
'root-path' => 'APPS:admin',
11+
'filters' => array(
12+
'global' => array('class' => 'LIB:filter.PwFilter'),
13+
'default' => array(
14+
'class' => 'ADMIN:controller.filter.AdminDefaultFilter',
15+
'pattern' => '~(appcenter/app/upload)'),
16+
'csrf' => array(
17+
'class' => 'LIB:filter.PwCsrfTokenFilter',
18+
'pattern' => '~(appcenter/app/upload)')),
19+
'modules' => array(
20+
'pattern' => array(
21+
'controller-path' => 'APPS:{m}.admin',
22+
'template-path' => 'TPL:{m}.admin',
23+
'compile-path' => 'DATA:compile.template'),
24+
'pwadmin' => array(
25+
'controller-path' => 'APPS:pwadmin',
26+
'template-path' => 'TPL:pwadmin',
27+
'compile-path' => 'DATA:compile.template'),
28+
'default' => array(
29+
'controller-path' => 'ADMIN:controller',
30+
'controller-suffix' => 'Controller',
31+
'error-handler' => 'ADMIN:controller.MessageController',
32+
'template-path' => 'TPL:admin',
33+
'compile-path' => 'DATA:compile.template.admin',
34+
'theme-package' => 'THEMES:'),
35+
'app' => array(
36+
'controller-path' => 'SRC:extensions.{app}.admin',
37+
'template-path' => 'SRC:extensions.{app}.template.admin',
38+
'compile-path' => 'DATA:compile.template.{app}')
39+
)
40+
)
41+
)
42+
);

conf/application/server.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
defined('WEKIT_VERSION') or exit(403);
3+
/**
4+
*
5+
*/
6+
7+
return array(
8+
'web-apps' => array(
9+
'server' => array(
10+
'root-path' => 'APPS:server',
11+
'modules' => array(
12+
'default' => array(
13+
'controller-path' => 'APPS:server.controller',
14+
'controller-suffix' => 'Controller',
15+
'template-path' => 'TPL:server',
16+
'compile-path' => 'DATA:compile.template.server',
17+
)
18+
)
19+
)
20+
)
21+
);

conf/application/windid.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
defined('WEKIT_VERSION') or exit(403);
3+
/**
4+
* windid
5+
*/
6+
7+
return array(
8+
'web-apps' => array(
9+
'windid' => array(
10+
'root-path' => 'APPS:windid',
11+
'modules' => array(
12+
'default' => array(
13+
'controller-path' => 'APPS:windid.controller',
14+
'controller-suffix' => 'Controller',
15+
'template-path' => 'TPL:windid',
16+
'compile-path' => 'DATA:compile.template.windid',
17+
),
18+
'api' => array(
19+
'controller-path' => 'APPS:windid.api',
20+
'controller-suffix' => 'Controller',
21+
'template-path' => 'TPL:windid.api',
22+
'compile-path' => 'DATA:compile.template.windid.api',
23+
),
24+
'queue' => array(
25+
'controller-path' => 'APPS:windid.queue',
26+
'controller-suffix' => 'Controller',
27+
'template-path' => 'TPL:windid.queue',
28+
'compile-path' => 'DATA:compile.template.windid.queue',
29+
),
30+
),
31+
)
32+
)
33+
);

conf/application/windidadmin.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
defined('WEKIT_VERSION') or exit(403);
3+
/**
4+
*
5+
*/
6+
7+
return array(
8+
'web-apps' => array(
9+
'windidadmin' => array(
10+
'root-path' => 'APPS:admin',
11+
'modules' => array(
12+
'pattern' => array(
13+
'controller-path' => 'APPS:windid.{m}.admin',
14+
'template-path' => 'TPL:windid.{m}.admin',
15+
'compile-path' => 'DATA:compile.template'),
16+
'default' => array(
17+
'controller-path' => 'ADMIN:controller',
18+
'controller-suffix' => 'Controller',
19+
'error-handler' => 'ADMIN:controller.MessageController',
20+
'template-path' => 'TPL:admin',
21+
'compile-path' => 'DATA:compile.template.admin',
22+
'theme-package' => 'THEMES:')
23+
)
24+
)
25+
)
26+
);

conf/baseconfig.php

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<?php
2+
defined('WEKIT_VERSION') or exit(403);
3+
/**
4+
* 全局配置
5+
*/
6+
return array(
7+
8+
/**=====配置开始于此=====**/
9+
10+
/*-----通用缓存开启-----*/
11+
12+
'mem.isopen' => 0, //开启memcache缓存,请确保服务器上已安装 memcache 服务,并已作好相应配置
13+
'mem.server' => 'Memcache', //memcache服务名,有Memcache和Memcached两种,看当前php扩展安装的是哪个
14+
'mem.servers' => array(
15+
'default' => array(
16+
array(
17+
'host' => 'localhost',
18+
'port' => 11211,
19+
'pconn' => false,
20+
'weight' => 1,
21+
'timeout' => 15,
22+
'retry' => 15,
23+
'status' => true,
24+
'fcallback' => null,
25+
),
26+
),
27+
),
28+
29+
30+
'redis.isopen' => 0, //开启redis缓存,请确保服务器上已安装 redis 服务,并已作好相应配置
31+
'redis.servers' => array(
32+
'default' => array(
33+
array(
34+
'host' => '127.0.0.1',
35+
'port' => 6379,
36+
'pconn' => false,
37+
'timeout' => 0,
38+
),
39+
),
40+
),
41+
'apc.isopen' => 0, //开启apc缓存,请确保服务器上已安装 apc 服务
42+
43+
44+
/*-----预设缓存键值-----*/
45+
46+
'precache' => array(
47+
'default/index/run' => array(
48+
array('hot_tags', array(0, 10)), 'medal_auto', 'medal_all'
49+
),
50+
'bbs/index/run' => array(
51+
array('hot_tags', array(0, 10)), 'medal_auto', 'medal_all'
52+
),
53+
'bbs/forum/run' => array(
54+
array('hot_tags', array(0, 10))
55+
),
56+
'bbs/thread/run' => array(
57+
array('hot_tags', array(0, 10)), 'medal_auto', 'medal_all'
58+
),
59+
'bbs/read/run' => array('level', 'group_right', 'medal_all'),
60+
),
61+
62+
63+
/*-----预设钩子键值-----*/
64+
65+
'prehook' => array(
66+
'bbs/read/run' => array('c_read_run', 'm_PwThreadDisplay', 's_PwThreadType', 's_PwUbbCode_convert', 's_PwThreadsHitsDao_add'),
67+
'bbs/post/doadd' => array('c_post_doadd', 'm_PwTopicPost', 's_PwThreadsDao_add', 's_PwThreadsIndexDao_add', 's_PwThreadsCateIndexDao_add', 's_PwThreadsContentDao_add', 's_PwForumStatisticsDao_update', 's_PwForumStatisticsDao_batchUpdate', 's_PwTagRecordDao_add', 's_PwTagRelationDao_add', 's_PwTagDao_update', 's_PwTagDao_add', 's_PwThreadsContentDao_update', 's_PwFreshDao_add', 's_PwUserDataDao_update', 's_PwUser_update', 's_PwAttachDao_update', 's_PwThreadAttachDao_update', 's_PwCreditOperationConfig'),
68+
'bbs/post/doreply' => array('c_post_doreply', 'm_PwReplyPost', 's_PwPostsDao_add', 's_PwForumStatisticsDao_update', 's_PwForumStatisticsDao_batchUpdate', 's_PwThreadsDao_update', 's_PwThreadsIndexDao_update', 's_PwThreadsCateIndexDao_update', 's_PwThreadsDigestIndexDao_update', 's_PwUserDataDao_update', 's_PwUser_update', 's_PwCreditOperationConfig'),
69+
'u/login/dorun' => array('c_login_dorun', 's_PwUserDataDao_update', 's_PwUser_update'),
70+
'u/login/welcome' => array('s_PwUserDataDao_update', 's_PwUser_update', 'm_login_welcome', 's_PwCronDao_update'),
71+
),
72+
73+
/**=====配置结束于此=====**/
74+
);

conf/cacheService.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
defined('WEKIT_VERSION') or exit(403);
3+
4+
/**
5+
* 缓存服务配置
6+
*/
7+
return array(
8+
'PwUser' => 'user.cache.PwUserDbCache',
9+
'PwForum' => 'forum.cache.PwForumDbCache',
10+
'PwThread' => 'forum.cache.PwThreadDbCache',
11+
'forum.dao.PwPostsDao' => 'forum.cache.PwPostDbCache'
12+
);

0 commit comments

Comments
 (0)