40 Commits

Author SHA1 Message Date
Lu Fei
fbc7696ae8 Use json instead of serialize (#1624)
* Use json instead of serialize

* Fix Upgrade code

* add tree trait

* finish category tree trait

* support select fields

* fix select fields

* refactor admin trait

* fix draft status

* Add new contents type "revision"

* minor refactor

* add more tree view abstracts

* add tree trait to pages

* get ready for tree view pages

* improve page edit

* fix revision

* fix slug

* add router params delegate

* fix params delegate

* fix

* fix

* fix all

* fix all

* fix tree

* fix page link

* fix feed

* fix page

* fix permalink

* fix permalink input

* fix offset query

* Fix typo

* remove proxy methods

* remove unnecessary useage

---------

Co-authored-by: joyqi <joyqi@segmentfault.com>
Co-authored-by: joyqi <magike.net@gmail.com>
2023-12-06 15:52:19 +08:00
joyqi
e89b1bbcf6 Feat/tree pages (#1646)
* add tree trait

* finish category tree trait

* support select fields

* fix select fields

* refactor admin trait

* fix draft status

* Add new contents type "revision"

* minor refactor

* add more tree view abstracts

* add tree trait to pages

* get ready for tree view pages

* improve page edit

* fix revision

* fix slug

* add router params delegate

* fix params delegate

* fix

* fix

* fix all

* fix all

* fix tree

* fix page link

* fix feed

* fix page

* fix permalink

* fix permalink input

* fix offset query
2023-11-27 21:57:18 -08:00
joyqi
4c8c64c79e Feat/code refactor (#1626)
* remove all magic methods, add type for class properties

* refactor codes

* fix all

* refactor code

* fix type

* fix all

* fix request is method

* fix all

* fix router

* fix get page
2023-09-24 16:21:32 +08:00
joyqi
64b8e68688 fix #1178, change directory permission from 0777 to 0755 2021-09-15 14:59:08 +08:00
joyqi
bf2cb07e4b fix #1160 2021-09-09 18:20:30 +08:00
joyqi
4791cd978e fix bug 2021-09-02 16:13:32 +08:00
joyqi
7db5f3c873 change all 2021-09-01 18:27:03 +08:00
joyqi
e15c2966a9 still working on it 2021-08-30 14:52:52 +08:00
joyqi
93b5656109 fix action 2021-08-27 18:27:21 +08:00
joyqi
539ef5e111 still working on it 2021-08-27 18:06:57 +08:00
joyqi
3d0b5d5f6c reformat code 2021-08-18 22:29:34 +08:00
joyqi
7f3cd2b9e8 Remove isAppEngine detector 2021-08-18 11:41:52 +08:00
Atom Long
78e2dfbde8 fixed code indent, TAB --> 4 spaces 2020-05-12 17:29:41 +08:00
Atom Long
408cb56ce1 Fix #334: Support uploading pictures using Windows Live Writer or Open Live Writer. 2020-05-09 00:20:50 +08:00
joyqi
9884a2fc76 fix #628 2017-10-29 15:45:47 +08:00
祁宁
bcbb02b81e fix #347
修正多语言支持无法显示语言名称的bug
2015-01-19 14:09:14 +08:00
祁宁
4255076c44 change __TYPECHO_UPLOAD_PREFIX_URL__ to __TYPECHO_UPLOAD_URL__ 2014-04-21 13:36:01 +08:00
祁宁
e6d5d5e7de add __TYPECHO_UPLOAD_ROOT_DIR__, __TYPECHO_UPLOAD_PREFIX_URL__ constants 2014-04-20 18:03:44 +08:00
祁宁
a4f93e0231 为文件上传加入token保护
对文件名做更加严格的过滤
2014-03-11 15:20:54 +08:00
祁宁
0d30d33aa3 修正泄露路径的漏洞 2014-03-10 21:05:20 +08:00
joyqi
de7b57c2cb fix #197 2014-02-28 09:53:06 +08:00
joyqi
972e65d02b 全面增加security安全模块,保护免受跨站攻击 2014-02-27 23:13:09 +08:00
joyqi
502cd5f7ca 准备对各应用引擎的存储进行支持 2014-02-17 18:00:29 +08:00
joyqi
b6121f8b75 优化文件上传体验,可以上传多个文件,上传更加流畅 2014-02-17 14:38:13 +08:00
joyqi
4ddd293f3d fix #168 2014-01-11 23:29:06 +08:00
joyqi
db3bfaa08e 尝试修复 #168 2014-01-11 18:37:23 +08:00
joyqi
68c4f7b912 修改更为准确的字符串处理函数 2014-01-10 19:12:39 +08:00
joyqi
daf8e1ee57 尝试修正 #168 2014-01-09 17:04:10 +08:00
joyqi
64db5b53da fix #161
为何有这么多人没有json支持,我都不知道你们是怎么装的php,算了,还是加上这个库吧
2014-01-08 15:03:37 +08:00
joyqi
fd20c37c8f 使用兼容性更好的创建目录方式
当mkdir使用递归模式创建多层目录时,它的目录模式参数`mode`只会被设置在第一个目录上,为了保证兼容性,我们要手动设置所有创建的目录
2013-12-25 13:05:16 +08:00
joyqi
51dbbffc6d fixed #143
没有将上传路径的定义放到设置中,这是一个不常用的定义,放在config.inc.php里添加一行`define('__TYPECHO_UPLOAD_DIR__', 'xxxx');`即可
增加jpeg支持
2013-12-24 16:01:37 +08:00
joyqi
12c9df95d4 修正附件上传替换问题
更新创建目录函数
修正markdown组件中对php 5.2的支持问题
提高strip_tags效率
2013-11-26 10:17:12 +08:00
joyqi
6f2e5b8413 经过我的多方研究,你只需要这个接口即可实现第三方存储和本地存储的无缝转换 2013-10-21 22:25:18 +08:00
joyqi
f9e50dd7b4 修正上传bug 2013-10-18 22:27:18 +08:00
joyqi
99349b43e7 附件管理完善 2013-10-16 11:35:37 +08:00
joyqi
3ba9e2755e fix upload 2013-10-14 17:14:37 +08:00
joyqi
1b1da9bfd7 增加拖拽上传 2013-10-14 17:03:40 +08:00
joyqi
5cd89d8bcc fix upload 2013-10-14 15:32:46 +08:00
joyqi
815ec91c08 修正插入 2013-10-14 15:19:11 +08:00
joyqi
55379c90df 初始化
修改了上一个版本的一些错误,第一次提交
2013-07-17 13:13:57 +08:00