From eb238ae9cfef34b6b847e42b57bcbc28f5a7b68a Mon Sep 17 00:00:00 2001 From: dean Date: Fri, 22 Jul 2022 16:43:50 +0800 Subject: [PATCH 01/15] =?UTF-8?q?6.0.8=E5=BC=80=E5=B7=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ee5a94534..6c41316c0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ -ThinkCMF 6.0.7 让你更自由地飞 +ThinkCMF 6.0.8 开发版 =============== -欢迎入坑,有问题请及时提交issue! +**`6.0.8`正在紧张开发中,请不要用于正式环境!实际项目请下载最新正式版`6.0.7`** + ### 主要特性 * 框架协议依旧为`MIT`,让你更自由地飞 @@ -120,6 +121,9 @@ https://gitee.com/thinkcmf/docker 5. `composer update` ### 更新日志 +#### 6.0.8 coding~ +* ... + #### 6.0.7 * 升级到`tp6.0.13` * 增加安装时检查API配置 -- Gitee From 3546f042dd2a2235cab97ef1ef79b63dba053c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=94=E4=BA=94?= <15093565100@163.com> Date: Sun, 24 Jul 2022 00:37:24 +0800 Subject: [PATCH 02/15] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dgithub=20issues=20#722?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/admin/controller/UserController.php | 17 ++++++++++++++++- .../cmf-app/src/admin/logic/UserLogic.php | 10 ++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 vendor/thinkcmf/cmf-app/src/admin/logic/UserLogic.php diff --git a/vendor/thinkcmf/cmf-app/src/admin/controller/UserController.php b/vendor/thinkcmf/cmf-app/src/admin/controller/UserController.php index 18f8d6682..2a6b06ac3 100644 --- a/vendor/thinkcmf/cmf-app/src/admin/controller/UserController.php +++ b/vendor/thinkcmf/cmf-app/src/admin/controller/UserController.php @@ -10,6 +10,7 @@ // +---------------------------------------------------------------------- namespace app\admin\controller; +use app\admin\logic\UserLogic; use app\admin\model\RoleModel; use app\admin\model\RoleUserModel; use app\admin\model\UserModel; @@ -177,7 +178,9 @@ class UserController extends AdminBaseController if (!empty($content)) { return $content; } - + if(!UserLogic::isCreator()){ + $this->error('为了网站的安全,非网站创建者不可访问编辑页面'); + } $id = $this->request->param('id', 0, 'intval'); $roles = RoleModel::where('status', 1)->order("id DESC")->select(); $this->assign("roles", $roles); @@ -205,6 +208,9 @@ class UserController extends AdminBaseController public function editPost() { if ($this->request->isPost()) { + if(!UserLogic::isCreator()){ + $this->error('为了网站的安全,非网站创建者不可编辑'); + } $roleIds = $this->request->param('role_id/a'); if (!empty($roleIds) && is_array($roleIds)) { $data = $this->request->param(); @@ -308,6 +314,9 @@ class UserController extends AdminBaseController { if ($this->request->isPost()) { $id = $this->request->param('id', 0, 'intval'); + if(!UserLogic::isCreator()){ + $this->error('为了网站的安全,非网站创建者不可删除'); + } if ($id == 1) { $this->error("最高管理员不能删除!"); } @@ -339,6 +348,9 @@ class UserController extends AdminBaseController if ($this->request->isPost()) { $id = $this->request->param('id', 0, 'intval'); if (!empty($id)) { + if(!UserLogic::isCreator()){ + $this->error('为了网站的安全,非网站创建者不可拉黑'); + } $result = UserModel::where(['id' => $id, 'user_type' => 1])->update(['user_status' => '0']); if ($result !== false) { $this->success('管理员停用成功!', url('User/index')); @@ -369,6 +381,9 @@ class UserController extends AdminBaseController if ($this->request->isPost()) { $id = $this->request->param('id', 0, 'intval'); if (!empty($id)) { + if(!UserLogic::isCreator()){ + $this->error('为了网站的安全,非网站创建者不可启用'); + } $result = UserModel::where(['id' => $id, 'user_type' => 1])->update(['user_status' => '1']); if ($result !== false) { $this->success('管理员启用成功!', url('User/index')); diff --git a/vendor/thinkcmf/cmf-app/src/admin/logic/UserLogic.php b/vendor/thinkcmf/cmf-app/src/admin/logic/UserLogic.php new file mode 100644 index 000000000..9546a9a81 --- /dev/null +++ b/vendor/thinkcmf/cmf-app/src/admin/logic/UserLogic.php @@ -0,0 +1,10 @@ + Date: Sun, 24 Jul 2022 23:39:37 +0800 Subject: [PATCH 03/15] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B9=BB=E7=81=AF?= =?UTF-8?q?=E7=89=87=E9=A1=B5=E9=9D=A2=E8=AF=AD=E8=A8=80=E5=8C=85=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/thinkcmf/cmf-app/src/admin/lang/en-us/admin_menu.php | 3 +++ vendor/thinkcmf/cmf-app/src/admin/lang/zh-cn/admin_menu.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/vendor/thinkcmf/cmf-app/src/admin/lang/en-us/admin_menu.php b/vendor/thinkcmf/cmf-app/src/admin/lang/en-us/admin_menu.php index 8242e2e01..28b38683a 100644 --- a/vendor/thinkcmf/cmf-app/src/admin/lang/en-us/admin_menu.php +++ b/vendor/thinkcmf/cmf-app/src/admin/lang/en-us/admin_menu.php @@ -82,6 +82,9 @@ return [ 'ADMIN_SLIDECAT_ADD_POST' => '提交添加', 'ADMIN_SLIDECAT_EDIT_POST' => '提交编辑', 'ADMIN_SLIDECAT_INDEX' => '幻灯片分类', + 'ADMIN_SLIDEITEM_INDEX' => '幻灯片页面管理', + 'ADMIN_SLIDEITEM_ADD' => '幻灯片页面添加', + 'ADMIN_SLIDEITEM_EDIT' => '幻灯片页面编辑', 'ADMIN_STORAGE_INDEX' => '文件存储', 'ADMIN_STORAGE_SETTING_POST' => '文件存储设置提交', 'ADMIN_USER_ADD_POST' => '添加提交', diff --git a/vendor/thinkcmf/cmf-app/src/admin/lang/zh-cn/admin_menu.php b/vendor/thinkcmf/cmf-app/src/admin/lang/zh-cn/admin_menu.php index e6ed12aa0..d7afb0874 100644 --- a/vendor/thinkcmf/cmf-app/src/admin/lang/zh-cn/admin_menu.php +++ b/vendor/thinkcmf/cmf-app/src/admin/lang/zh-cn/admin_menu.php @@ -78,6 +78,9 @@ return [ 'ADMIN_SLIDE_TOGGLE' => '幻灯片显示切换', 'ADMIN_SLIDECAT_ADD_POST' => '提交添加', 'ADMIN_SLIDECAT_EDIT_POST' => '提交编辑', + 'ADMIN_SLIDEITEM_INDEX' => '幻灯片页面管理', + 'ADMIN_SLIDEITEM_ADD' => '幻灯片页面添加', + 'ADMIN_SLIDEITEM_EDIT' => '幻灯片页面编辑', 'ADMIN_SLIDECAT_INDEX' => '幻灯片分类', 'ADMIN_STORAGE_INDEX' => '文件存储', 'ADMIN_STORAGE_SETTING_POST' => '文件存储设置提交', -- Gitee From cc84f5095eeecabe0874c134f61ae1184355f5e5 Mon Sep 17 00:00:00 2001 From: dean Date: Tue, 26 Jul 2022 14:07:22 +0800 Subject: [PATCH 04/15] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/thinkcmf/cmf-app/src/admin/lang/zh-cn.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/thinkcmf/cmf-app/src/admin/lang/zh-cn.php b/vendor/thinkcmf/cmf-app/src/admin/lang/zh-cn.php index dcee96f15..c8ba4190f 100644 --- a/vendor/thinkcmf/cmf-app/src/admin/lang/zh-cn.php +++ b/vendor/thinkcmf/cmf-app/src/admin/lang/zh-cn.php @@ -128,7 +128,7 @@ return [ 'Sub Navigations' => '菜单管理', 'Parent' => '上级', 'Full Url' => '原始网址', - 'Short Url' => '原始网址', + 'Short Url' => '显示网址', 'SHORT_URL_HELP_BLOCK_TEXT' => 'url格式一般为list/:param1/:param2或 list-<param1>-<param2>', 'Image' => '图片', 'Installed successfully' => '安装成功!', -- Gitee From 33834c11077b878cd755fb6cc460092fb38f3b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=94=E4=BA=94?= <15093565100@163.com> Date: Sun, 31 Jul 2022 00:31:41 +0800 Subject: [PATCH 05/15] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20=E6=97=B6=E9=97=B4=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cmf-app/src/admin/controller/UserController.php | 6 ++++-- vendor/thinkcmf/cmf-app/src/admin/model/UserModel.php | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/vendor/thinkcmf/cmf-app/src/admin/controller/UserController.php b/vendor/thinkcmf/cmf-app/src/admin/controller/UserController.php index 2a6b06ac3..31ce308f7 100644 --- a/vendor/thinkcmf/cmf-app/src/admin/controller/UserController.php +++ b/vendor/thinkcmf/cmf-app/src/admin/controller/UserController.php @@ -136,7 +136,9 @@ class UserController extends AdminBaseController if ($result !== true) { $this->error($result); } else { - $data['user_pass'] = cmf_password($data['user_pass']); + $data['user_pass'] = cmf_password($data['user_pass']); + $data['create_time'] = time(); + $data['last_login_time'] = $data['create_time']; $userId = UserModel::strict(false)->insertGetId($data); if ($userId !== false) { //$role_user_model=M("RoleUser"); @@ -226,7 +228,7 @@ class UserController extends AdminBaseController $this->error($result); } else { $userId = $this->request->param('id', 0, 'intval'); - $result = UserModel::strict(false)->where('id', $userId)->update($data); + $result = UserModel::strict(false)->where('id', $userId)->save($data); if ($result !== false) { RoleUserModel::where("user_id", $userId)->delete(); foreach ($roleIds as $roleId) { diff --git a/vendor/thinkcmf/cmf-app/src/admin/model/UserModel.php b/vendor/thinkcmf/cmf-app/src/admin/model/UserModel.php index 9767816f7..96f806c46 100644 --- a/vendor/thinkcmf/cmf-app/src/admin/model/UserModel.php +++ b/vendor/thinkcmf/cmf-app/src/admin/model/UserModel.php @@ -24,4 +24,5 @@ class UserModel extends Model 'more' => 'array', ]; + protected $autoWriteTimestamp = true; } -- Gitee From a916603f60564d2bd96974c0f174fe2b81749b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=94=E4=BA=94?= <15093565100@163.com> Date: Sun, 31 Jul 2022 00:37:24 +0800 Subject: [PATCH 06/15] =?UTF-8?q?=E6=9C=AC=E7=AB=99=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=93=8D=E4=BD=9C=E5=90=AF=E7=94=A8=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cmf-app/src/user/controller/AdminIndexController.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vendor/thinkcmf/cmf-app/src/user/controller/AdminIndexController.php b/vendor/thinkcmf/cmf-app/src/user/controller/AdminIndexController.php index 74994e8a1..194b042ce 100644 --- a/vendor/thinkcmf/cmf-app/src/user/controller/AdminIndexController.php +++ b/vendor/thinkcmf/cmf-app/src/user/controller/AdminIndexController.php @@ -129,8 +129,12 @@ class AdminIndexController extends AdminBaseController { $id = $this->request->param('id', 0, 'intval'); if ($id) { - UserModel::where(["id" => $id, "user_type" => 2])->update(['user_status' => 1]); - $this->success("会员启用成功!", ''); + $result = UserModel::where(["id" => $id, "user_type" => 2])->update(['user_status' => 1]); + if ($result) { + $this->success("会员启用成功!", "adminIndex/index"); + } else { + $this->error('会员启用失败,会员不存在,或者是管理员!'); + } } else { $this->error('数据传入失败!'); } -- Gitee From 4101cb0bbbf6bfcdba752d8964a00c4cf414645d Mon Sep 17 00:00:00 2001 From: dean Date: Wed, 3 Aug 2022 02:08:43 +0800 Subject: [PATCH 07/15] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8A=A0`cmf=5Ftogethe?= =?UTF-8?q?r`=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/composer/autoload_psr4.php | 4 ++-- vendor/composer/autoload_static.php | 12 ++++++------ vendor/services.php | 2 +- vendor/thinkcmf/cmf/src/common.php | 12 +++++++++++- 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php index 0ca6556dc..2ec2895e0 100644 --- a/vendor/composer/autoload_psr4.php +++ b/vendor/composer/autoload_psr4.php @@ -11,7 +11,7 @@ return array( 'think\\trace\\' => array($vendorDir . '/topthink/think-trace/src'), 'think\\migration\\' => array($vendorDir . '/xia/migration/src'), 'think\\captcha\\' => array($vendorDir . '/thinkcmf/cmf-captcha/src'), - 'think\\' => array($vendorDir . '/topthink/framework/src/think', $vendorDir . '/topthink/think-helper/src', $vendorDir . '/topthink/think-orm/src', $vendorDir . '/thinkcmf/cmf/think'), + 'think\\' => array($vendorDir . '/thinkcmf/cmf/think', $vendorDir . '/topthink/framework/src/think', $vendorDir . '/topthink/think-helper/src', $vendorDir . '/topthink/think-orm/src'), 'themes\\' => array($baseDir . '/public/themes'), 'plugins\\' => array($baseDir . '/public/plugins'), 'mindplay\\annotations\\' => array($vendorDir . '/mindplay/annotations/src/annotations'), @@ -19,7 +19,7 @@ return array( 'cmf\\composer\\' => array($vendorDir . '/thinkcmf/cmf-root/src'), 'cmf\\' => array($vendorDir . '/thinkcmf/cmf/src'), 'app\\admin\\' => array($vendorDir . '/thinkcmf/cmf-appstore/src'), - 'app\\' => array($baseDir . '/app', $vendorDir . '/thinkcmf/cmf-install/src', $vendorDir . '/thinkcmf/cmf-app/src'), + 'app\\' => array($baseDir . '/app', $vendorDir . '/thinkcmf/cmf-app/src', $vendorDir . '/thinkcmf/cmf-install/src'), 'api\\' => array($baseDir . '/api', $vendorDir . '/thinkcmf/cmf-api/src'), 'Psr\\SimpleCache\\' => array($vendorDir . '/psr/simple-cache/src'), 'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'), diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 78cceef37..fa8c7c88d 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -91,10 +91,10 @@ class ComposerStaticInit409e436a19c882513f3c7d0ffdfd059f ), 'think\\' => array ( - 0 => __DIR__ . '/..' . '/topthink/framework/src/think', - 1 => __DIR__ . '/..' . '/topthink/think-helper/src', - 2 => __DIR__ . '/..' . '/topthink/think-orm/src', - 3 => __DIR__ . '/..' . '/thinkcmf/cmf/think', + 0 => __DIR__ . '/..' . '/thinkcmf/cmf/think', + 1 => __DIR__ . '/..' . '/topthink/framework/src/think', + 2 => __DIR__ . '/..' . '/topthink/think-helper/src', + 3 => __DIR__ . '/..' . '/topthink/think-orm/src', ), 'themes\\' => array ( @@ -127,8 +127,8 @@ class ComposerStaticInit409e436a19c882513f3c7d0ffdfd059f 'app\\' => array ( 0 => __DIR__ . '/../..' . '/app', - 1 => __DIR__ . '/..' . '/thinkcmf/cmf-install/src', - 2 => __DIR__ . '/..' . '/thinkcmf/cmf-app/src', + 1 => __DIR__ . '/..' . '/thinkcmf/cmf-app/src', + 2 => __DIR__ . '/..' . '/thinkcmf/cmf-install/src', ), 'api\\' => array ( diff --git a/vendor/services.php b/vendor/services.php index fbcbf1389..f568dc424 100644 --- a/vendor/services.php +++ b/vendor/services.php @@ -1,5 +1,5 @@ 'app\\admin\\AppStoreService', diff --git a/vendor/thinkcmf/cmf/src/common.php b/vendor/thinkcmf/cmf/src/common.php index 31c2f06ee..8431a49fa 100644 --- a/vendor/thinkcmf/cmf/src/common.php +++ b/vendor/thinkcmf/cmf/src/common.php @@ -2306,7 +2306,7 @@ function str_to_arr($string) */ function cmf_is_cli() { - return PHP_SAPI === 'cli' || defined('STDIN'); + return PHP_SAPI === 'cli' || defined('STDIN'); } /** @@ -2333,3 +2333,13 @@ function cmf_mobile_mask($mobile) { return substr($mobile, 0, 3) . '****' . substr($mobile, -4, 4); } + +/** + * 吾辈当自强 + * @param string $dayDayUp + * @return string + */ +function cmf_together(string $dayDayUp = '2022-08-03 01:58') +{ + return "吾辈当自强!\n$dayDayUp"; +} -- Gitee From 8ccec68230a8171a8c00a0b522656d7814553e1f Mon Sep 17 00:00:00 2001 From: dean Date: Fri, 5 Aug 2022 23:05:43 +0800 Subject: [PATCH 08/15] phpquery --- composer.lock | 104 ++++++++-------- vendor/composer/autoload_classmap.php | 38 +++--- vendor/composer/autoload_psr4.php | 2 +- vendor/composer/autoload_static.php | 46 +++---- vendor/composer/installed.json | 112 +++++++++--------- vendor/composer/installed.php | 24 ++-- .../phpquery/README.md | 7 +- .../api-reference/classtrees_phpQuery.html | 0 .../phpquery/api-reference/elementindex.html | 0 .../api-reference/elementindex_phpQuery.html | 0 .../phpquery/api-reference/errors.html | 0 .../phpquery/api-reference/index.html | 0 .../phpquery/api-reference/li_phpQuery.html | 0 .../api-reference/media/background.png | Bin .../phpquery/api-reference/media/empty.png | Bin .../phpquery/api-reference/media/style.css | 0 .../api-reference/phpQuery/Callback.html | 0 .../api-reference/phpQuery/CallbackParam.html | 0 .../phpQuery/CallbackReference.html | 0 .../phpQuery/DOMDocumentWrapper.html | 0 .../api-reference/phpQuery/DOMEvent.html | 0 .../api-reference/phpQuery/_Callback.php.html | 0 .../phpQuery/_DOMDocumentWrapper.php.html | 0 .../api-reference/phpQuery/_DOMEvent.php.html | 0 .../api-reference/phpQuery/_phpQuery.php.html | 0 .../phpQuery/_phpQueryEvents.php.html | 0 .../phpQuery/_phpQueryObject.php.html | 0 .../api-reference/phpQuery/phpQuery.html | 0 .../phpQuery/phpQueryEvents.html | 0 .../phpQuery/phpQueryObject.html | 0 .../phpQuery/phpQueryPlugins.html | 0 .../phpquery/api-reference/todolist.html | 0 .../phpquery/cli/phpquery | 0 .../phpquery/composer.json | 8 +- .../phpquery/demo.php | 0 .../phpquery/phpQuery/phpQuery.php | 0 .../phpquery/phpQuery/phpQuery/Callback.php | 0 .../phpQuery/phpQuery/DOMDocumentWrapper.php | 4 +- .../phpquery/phpQuery/phpQuery/DOMEvent.php | 0 .../phpQuery/phpQuery/bootstrap.example.php | 0 .../phpQuery/phpQuery/compat/mbstring.php | 0 .../phpQuery/phpQuery/phpQueryEvents.php | 0 .../phpQuery/phpQuery/phpQueryObject.php | 95 ++++++++------- .../phpQuery/phpQuery/plugins/Scripts.php | 0 .../plugins/Scripts/__config.example.php | 0 .../phpQuery/plugins/Scripts/example.php | 0 .../phpQuery/plugins/Scripts/fix_webroot.php | 0 .../phpQuery/plugins/Scripts/google_login.php | 0 .../phpQuery/plugins/Scripts/print_source.php | 0 .../plugins/Scripts/print_websafe.php | 0 .../phpQuery/phpQuery/plugins/WebBrowser.php | 12 +- .../phpQuery/phpQuery/plugins/example.php | 0 .../document-fragment-utf8.html | 0 .../document-fragment-utf8.xhtml | 0 .../document-types/document-fragment-utf8.xml | 0 .../document-iso88592-nocharset.html | 0 .../document-iso88592-nocharset.xhtml | 0 .../document-iso88592-nocharset.xml | 0 .../document-types/document-iso88592.html | 0 .../document-types/document-iso88592.xhtml | 0 .../document-types/document-iso88592.xml | 0 .../document-utf8-nocharset.html | 0 .../document-utf8-nocharset.xhtml | 0 .../document-utf8-nocharset.xml | 0 .../document-types/document-utf8.html | 0 .../document-types/document-utf8.php | 2 +- .../document-types/document-utf8.xhtml | 0 .../document-types/document-utf8.xml | 0 .../phpquery/test-cases/document_types.php | 0 .../phpquery/test-cases/run.php | 0 .../phpquery/test-cases/test.html | 0 .../phpquery/test-cases/test_2.php | 0 .../phpquery/test-cases/test_4.php | 0 .../phpquery/test-cases/test_5.php | 0 .../phpquery/test-cases/test_ajax.php | 0 .../phpquery/test-cases/test_ajax_data_1 | 0 .../phpquery/test-cases/test_arrayaccess.php | 0 .../phpquery/test-cases/test_attr.php | 0 .../phpquery/test-cases/test_callback.php | 0 .../phpquery/test-cases/test_charset.php | 0 .../phpquery/test-cases/test_document.php | 0 .../phpquery/test-cases/test_events.php | 0 .../phpquery/test-cases/test_insert.php | 0 .../phpquery/test-cases/test_manipulation.php | 0 .../phpquery/test-cases/test_manual.php | 0 .../phpquery/test-cases/test_multidoc.php | 0 .../phpquery/test-cases/test_php.php | 0 .../phpquery/test-cases/test_replace.php | 0 .../phpquery/test-cases/test_scripts.php | 0 .../phpquery/test-cases/test_selectors.php | 0 .../phpquery/test-cases/test_webbrowser.php | 0 .../phpquery/test-cases/test_wrap.php | 0 .../phpquery/test-cases/xpath.php | 0 .../phpquery/unit-tests/test.html | 0 .../phpquery/unit-tests/test.php | 0 vendor/services.php | 2 +- vendor/thinkcmf/cmf/README.md | 3 + vendor/thinkcmf/cmf/composer.json | 2 +- 98 files changed, 244 insertions(+), 217 deletions(-) rename vendor/{electrolinux => obsoletepackage}/phpquery/README.md (90%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/classtrees_phpQuery.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/elementindex.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/elementindex_phpQuery.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/errors.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/index.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/li_phpQuery.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/media/background.png (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/media/empty.png (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/media/style.css (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/phpQuery/Callback.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/phpQuery/CallbackParam.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/phpQuery/CallbackReference.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/phpQuery/DOMDocumentWrapper.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/phpQuery/DOMEvent.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/phpQuery/_Callback.php.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/phpQuery/_DOMDocumentWrapper.php.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/phpQuery/_DOMEvent.php.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/phpQuery/_phpQuery.php.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/phpQuery/_phpQueryEvents.php.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/phpQuery/_phpQueryObject.php.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/phpQuery/phpQuery.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/phpQuery/phpQueryEvents.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/phpQuery/phpQueryObject.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/phpQuery/phpQueryPlugins.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/api-reference/todolist.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/cli/phpquery (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/composer.json (77%) rename vendor/{electrolinux => obsoletepackage}/phpquery/demo.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/phpQuery/phpQuery.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/phpQuery/phpQuery/Callback.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/phpQuery/phpQuery/DOMDocumentWrapper.php (99%) rename vendor/{electrolinux => obsoletepackage}/phpquery/phpQuery/phpQuery/DOMEvent.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/phpQuery/phpQuery/bootstrap.example.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/phpQuery/phpQuery/compat/mbstring.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/phpQuery/phpQuery/phpQueryEvents.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/phpQuery/phpQuery/phpQueryObject.php (98%) rename vendor/{electrolinux => obsoletepackage}/phpquery/phpQuery/phpQuery/plugins/Scripts.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/phpQuery/phpQuery/plugins/Scripts/__config.example.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/phpQuery/phpQuery/plugins/Scripts/example.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/phpQuery/phpQuery/plugins/Scripts/fix_webroot.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/phpQuery/phpQuery/plugins/Scripts/google_login.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/phpQuery/phpQuery/plugins/Scripts/print_source.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/phpQuery/phpQuery/plugins/Scripts/print_websafe.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/phpQuery/phpQuery/plugins/WebBrowser.php (99%) rename vendor/{electrolinux => obsoletepackage}/phpquery/phpQuery/phpQuery/plugins/example.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/document-types/document-fragment-utf8.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/document-types/document-fragment-utf8.xhtml (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/document-types/document-fragment-utf8.xml (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/document-types/document-iso88592-nocharset.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/document-types/document-iso88592-nocharset.xhtml (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/document-types/document-iso88592-nocharset.xml (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/document-types/document-iso88592.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/document-types/document-iso88592.xhtml (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/document-types/document-iso88592.xml (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/document-types/document-utf8-nocharset.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/document-types/document-utf8-nocharset.xhtml (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/document-types/document-utf8-nocharset.xml (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/document-types/document-utf8.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/document-types/document-utf8.php (85%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/document-types/document-utf8.xhtml (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/document-types/document-utf8.xml (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/document_types.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/run.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_2.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_4.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_5.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_ajax.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_ajax_data_1 (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_arrayaccess.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_attr.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_callback.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_charset.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_document.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_events.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_insert.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_manipulation.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_manual.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_multidoc.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_php.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_replace.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_scripts.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_selectors.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_webbrowser.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/test_wrap.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/test-cases/xpath.php (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/unit-tests/test.html (100%) rename vendor/{electrolinux => obsoletepackage}/phpquery/unit-tests/test.php (100%) diff --git a/composer.lock b/composer.lock index 053cb14f5..872d93749 100644 --- a/composer.lock +++ b/composer.lock @@ -50,49 +50,6 @@ }, "time": "2017-11-28T22:14:11+00:00" }, - { - "name": "electrolinux/phpquery", - "version": "0.9.6", - "source": { - "type": "git", - "url": "https://github.com/electrolinux/phpquery.git", - "reference": "6cb8afcfe8cd4ce45f2f8c27d561383037c27a3a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/electrolinux/phpquery/zipball/6cb8afcfe8cd4ce45f2f8c27d561383037c27a3a", - "reference": "6cb8afcfe8cd4ce45f2f8c27d561383037c27a3a", - "shasum": "" - }, - "type": "library", - "autoload": { - "classmap": [ - "phpQuery/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Tobiasz Cudnik", - "email": "tobiasz.cudnik@gmail.com", - "homepage": "https://github.com/TobiaszCudnik", - "role": "Developer" - }, - { - "name": "didier Belot", - "role": "Packager" - } - ], - "description": "phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library", - "homepage": "http://code.google.com/p/phpquery/", - "support": { - "source": "https://github.com/electrolinux/phpquery/tree/0.9.6" - }, - "time": "2013-03-21T12:39:33+00:00" - }, { "name": "ezyang/htmlpurifier", "version": "v4.14.0", @@ -399,6 +356,53 @@ }, "time": "2022-07-16T15:11:03+00:00" }, + { + "name": "obsoletepackage/phpquery", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/ObsoletePackage/phpquery.git", + "reference": "de1935ee2cc26c4d61c53c916ee9a8ea697edd9c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ObsoletePackage/phpquery/zipball/de1935ee2cc26c4d61c53c916ee9a8ea697edd9c", + "reference": "de1935ee2cc26c4d61c53c916ee9a8ea697edd9c", + "shasum": "" + }, + "type": "library", + "autoload": { + "classmap": [ + "phpQuery/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Tobiasz Cudnik", + "email": "tobiasz.cudnik@gmail.com", + "homepage": "https://github.com/TobiaszCudnik", + "role": "Developer" + }, + { + "name": "didier Belot", + "role": "Packager" + }, + { + "name": "obsolete package", + "homepage": "https://github.com/ObsoletePackage" + } + ], + "description": "phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library", + "homepage": "http://code.google.com/p/phpquery/", + "support": { + "source": "https://github.com/ObsoletePackage/phpquery/tree/1.0.1" + }, + "time": "2022-08-05T12:44:45+00:00" + }, { "name": "phpmailer/phpmailer", "version": "v6.6.3", @@ -730,22 +734,22 @@ }, { "name": "thinkcmf/cmf", - "version": "v6.0.16", + "version": "v6.0.17", "source": { "type": "git", "url": "https://github.com/thinkcmf/cmf-core.git", - "reference": "bb02d518e7ee8c19442ddd88a45abcbc8cfb00a8" + "reference": "97681cdb9a205ab6c4fca0cfcca1b26b1c185712" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thinkcmf/cmf-core/zipball/bb02d518e7ee8c19442ddd88a45abcbc8cfb00a8", - "reference": "bb02d518e7ee8c19442ddd88a45abcbc8cfb00a8", + "url": "https://api.github.com/repos/thinkcmf/cmf-core/zipball/97681cdb9a205ab6c4fca0cfcca1b26b1c185712", + "reference": "97681cdb9a205ab6c4fca0cfcca1b26b1c185712", "shasum": "" }, "require": { - "electrolinux/phpquery": "^0.9.6", "ezyang/htmlpurifier": "^4.9", "mindplay/annotations": "^1.3", + "obsoletepackage/phpquery": "^1.0.1", "phpmailer/phpmailer": "~6.0", "thinkcmf/cmf-captcha": "^3.0", "thinkcmf/cmf-extend": "~5.1.0", @@ -787,9 +791,9 @@ "description": "The ThinkCMF Core Package", "support": { "issues": "https://github.com/thinkcmf/cmf-core/issues", - "source": "https://github.com/thinkcmf/cmf-core/tree/v6.0.16" + "source": "https://github.com/thinkcmf/cmf-core/tree/v6.0.17" }, - "time": "2022-07-22T02:27:15+00:00" + "time": "2022-08-05T14:59:02+00:00" }, { "name": "thinkcmf/cmf-api", diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index 761901c43..34890dae2 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -6,27 +6,27 @@ $vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( - 'Callback' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', - 'CallbackBody' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', - 'CallbackParam' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', - 'CallbackParameterToReference' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', - 'CallbackReturnReference' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', - 'CallbackReturnValue' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', + 'Callback' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery/Callback.php', + 'CallbackBody' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery/Callback.php', + 'CallbackParam' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery/Callback.php', + 'CallbackParameterToReference' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery/Callback.php', + 'CallbackReturnReference' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery/Callback.php', + 'CallbackReturnValue' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery/Callback.php', 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', - 'DOMDocumentWrapper' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery/DOMDocumentWrapper.php', - 'DOMEvent' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery/DOMEvent.php', - 'ICallbackNamed' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', + 'DOMDocumentWrapper' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery/DOMDocumentWrapper.php', + 'DOMEvent' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery/DOMEvent.php', + 'ICallbackNamed' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery/Callback.php', 'PclZip' => $vendorDir . '/chamilo/pclzip/pclzip.lib.php', - 'phpQuery' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery.php', - 'phpQueryEvents' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery/phpQueryEvents.php', - 'phpQueryObject' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery/phpQueryObject.php', - 'phpQueryObjectPlugin_Scripts' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts.php', - 'phpQueryObjectPlugin_WebBrowser' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery/plugins/WebBrowser.php', - 'phpQueryObjectPlugin_example' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery/plugins/example.php', - 'phpQueryPlugin_Scripts' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts.php', - 'phpQueryPlugin_WebBrowser' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery/plugins/WebBrowser.php', - 'phpQueryPlugin_example' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery/plugins/example.php', - 'phpQueryPlugins' => $vendorDir . '/electrolinux/phpquery/phpQuery/phpQuery.php', + 'phpQuery' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery.php', + 'phpQueryEvents' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery/phpQueryEvents.php', + 'phpQueryObject' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery/phpQueryObject.php', + 'phpQueryObjectPlugin_Scripts' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/Scripts.php', + 'phpQueryObjectPlugin_WebBrowser' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/WebBrowser.php', + 'phpQueryObjectPlugin_example' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/example.php', + 'phpQueryPlugin_Scripts' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/Scripts.php', + 'phpQueryPlugin_WebBrowser' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/WebBrowser.php', + 'phpQueryPlugin_example' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/example.php', + 'phpQueryPlugins' => $vendorDir . '/obsoletepackage/phpquery/phpQuery/phpQuery.php', 'think\\App' => $vendorDir . '/thinkcmf/cmf/think/App.php', 'think\\Console' => $vendorDir . '/thinkcmf/cmf/think/Console.php', 'think\\Http' => $vendorDir . '/thinkcmf/cmf/think/Http.php', diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php index 2ec2895e0..ba7b03ab4 100644 --- a/vendor/composer/autoload_psr4.php +++ b/vendor/composer/autoload_psr4.php @@ -11,7 +11,7 @@ return array( 'think\\trace\\' => array($vendorDir . '/topthink/think-trace/src'), 'think\\migration\\' => array($vendorDir . '/xia/migration/src'), 'think\\captcha\\' => array($vendorDir . '/thinkcmf/cmf-captcha/src'), - 'think\\' => array($vendorDir . '/thinkcmf/cmf/think', $vendorDir . '/topthink/framework/src/think', $vendorDir . '/topthink/think-helper/src', $vendorDir . '/topthink/think-orm/src'), + 'think\\' => array($vendorDir . '/topthink/framework/src/think', $vendorDir . '/topthink/think-helper/src', $vendorDir . '/topthink/think-orm/src', $vendorDir . '/thinkcmf/cmf/think'), 'themes\\' => array($baseDir . '/public/themes'), 'plugins\\' => array($baseDir . '/public/plugins'), 'mindplay\\annotations\\' => array($vendorDir . '/mindplay/annotations/src/annotations'), diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index fa8c7c88d..62db49d25 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -91,10 +91,10 @@ class ComposerStaticInit409e436a19c882513f3c7d0ffdfd059f ), 'think\\' => array ( - 0 => __DIR__ . '/..' . '/thinkcmf/cmf/think', - 1 => __DIR__ . '/..' . '/topthink/framework/src/think', - 2 => __DIR__ . '/..' . '/topthink/think-helper/src', - 3 => __DIR__ . '/..' . '/topthink/think-orm/src', + 0 => __DIR__ . '/..' . '/topthink/framework/src/think', + 1 => __DIR__ . '/..' . '/topthink/think-helper/src', + 2 => __DIR__ . '/..' . '/topthink/think-orm/src', + 3 => __DIR__ . '/..' . '/thinkcmf/cmf/think', ), 'themes\\' => array ( @@ -192,27 +192,27 @@ class ComposerStaticInit409e436a19c882513f3c7d0ffdfd059f ); public static $classMap = array ( - 'Callback' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', - 'CallbackBody' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', - 'CallbackParam' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', - 'CallbackParameterToReference' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', - 'CallbackReturnReference' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', - 'CallbackReturnValue' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', + 'Callback' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery/Callback.php', + 'CallbackBody' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery/Callback.php', + 'CallbackParam' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery/Callback.php', + 'CallbackParameterToReference' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery/Callback.php', + 'CallbackReturnReference' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery/Callback.php', + 'CallbackReturnValue' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery/Callback.php', 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', - 'DOMDocumentWrapper' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/DOMDocumentWrapper.php', - 'DOMEvent' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/DOMEvent.php', - 'ICallbackNamed' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', + 'DOMDocumentWrapper' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery/DOMDocumentWrapper.php', + 'DOMEvent' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery/DOMEvent.php', + 'ICallbackNamed' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery/Callback.php', 'PclZip' => __DIR__ . '/..' . '/chamilo/pclzip/pclzip.lib.php', - 'phpQuery' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery.php', - 'phpQueryEvents' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/phpQueryEvents.php', - 'phpQueryObject' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/phpQueryObject.php', - 'phpQueryObjectPlugin_Scripts' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts.php', - 'phpQueryObjectPlugin_WebBrowser' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/plugins/WebBrowser.php', - 'phpQueryObjectPlugin_example' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/plugins/example.php', - 'phpQueryPlugin_Scripts' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts.php', - 'phpQueryPlugin_WebBrowser' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/plugins/WebBrowser.php', - 'phpQueryPlugin_example' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/plugins/example.php', - 'phpQueryPlugins' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery.php', + 'phpQuery' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery.php', + 'phpQueryEvents' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery/phpQueryEvents.php', + 'phpQueryObject' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery/phpQueryObject.php', + 'phpQueryObjectPlugin_Scripts' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/Scripts.php', + 'phpQueryObjectPlugin_WebBrowser' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/WebBrowser.php', + 'phpQueryObjectPlugin_example' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/example.php', + 'phpQueryPlugin_Scripts' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/Scripts.php', + 'phpQueryPlugin_WebBrowser' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/WebBrowser.php', + 'phpQueryPlugin_example' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/example.php', + 'phpQueryPlugins' => __DIR__ . '/..' . '/obsoletepackage/phpquery/phpQuery/phpQuery.php', 'think\\App' => __DIR__ . '/..' . '/thinkcmf/cmf/think/App.php', 'think\\Console' => __DIR__ . '/..' . '/thinkcmf/cmf/think/Console.php', 'think\\Http' => __DIR__ . '/..' . '/thinkcmf/cmf/think/Http.php', diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index dcf0ef7c2..0d71d0198 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -47,52 +47,6 @@ }, "install-path": "../chamilo/pclzip" }, - { - "name": "electrolinux/phpquery", - "version": "0.9.6", - "version_normalized": "0.9.6.0", - "source": { - "type": "git", - "url": "https://github.com/electrolinux/phpquery.git", - "reference": "6cb8afcfe8cd4ce45f2f8c27d561383037c27a3a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/electrolinux/phpquery/zipball/6cb8afcfe8cd4ce45f2f8c27d561383037c27a3a", - "reference": "6cb8afcfe8cd4ce45f2f8c27d561383037c27a3a", - "shasum": "" - }, - "time": "2013-03-21T12:39:33+00:00", - "type": "library", - "installation-source": "dist", - "autoload": { - "classmap": [ - "phpQuery/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Tobiasz Cudnik", - "email": "tobiasz.cudnik@gmail.com", - "homepage": "https://github.com/TobiaszCudnik", - "role": "Developer" - }, - { - "name": "didier Belot", - "role": "Packager" - } - ], - "description": "phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library", - "homepage": "http://code.google.com/p/phpquery/", - "support": { - "source": "https://github.com/electrolinux/phpquery/tree/0.9.6" - }, - "install-path": "../electrolinux/phpquery" - }, { "name": "ezyang/htmlpurifier", "version": "v4.14.0", @@ -414,6 +368,56 @@ }, "install-path": "../mindplay/annotations" }, + { + "name": "obsoletepackage/phpquery", + "version": "1.0.1", + "version_normalized": "1.0.1.0", + "source": { + "type": "git", + "url": "https://github.com/ObsoletePackage/phpquery.git", + "reference": "de1935ee2cc26c4d61c53c916ee9a8ea697edd9c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ObsoletePackage/phpquery/zipball/de1935ee2cc26c4d61c53c916ee9a8ea697edd9c", + "reference": "de1935ee2cc26c4d61c53c916ee9a8ea697edd9c", + "shasum": "" + }, + "time": "2022-08-05T12:44:45+00:00", + "type": "library", + "installation-source": "dist", + "autoload": { + "classmap": [ + "phpQuery/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Tobiasz Cudnik", + "email": "tobiasz.cudnik@gmail.com", + "homepage": "https://github.com/TobiaszCudnik", + "role": "Developer" + }, + { + "name": "didier Belot", + "role": "Packager" + }, + { + "name": "obsolete package", + "homepage": "https://github.com/ObsoletePackage" + } + ], + "description": "phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library", + "homepage": "http://code.google.com/p/phpquery/", + "support": { + "source": "https://github.com/ObsoletePackage/phpquery/tree/1.0.1" + }, + "install-path": "../obsoletepackage/phpquery" + }, { "name": "phpmailer/phpmailer", "version": "v6.6.3", @@ -763,23 +767,23 @@ }, { "name": "thinkcmf/cmf", - "version": "v6.0.16", - "version_normalized": "6.0.16.0", + "version": "v6.0.17", + "version_normalized": "6.0.17.0", "source": { "type": "git", "url": "https://github.com/thinkcmf/cmf-core.git", - "reference": "bb02d518e7ee8c19442ddd88a45abcbc8cfb00a8" + "reference": "97681cdb9a205ab6c4fca0cfcca1b26b1c185712" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thinkcmf/cmf-core/zipball/bb02d518e7ee8c19442ddd88a45abcbc8cfb00a8", - "reference": "bb02d518e7ee8c19442ddd88a45abcbc8cfb00a8", + "url": "https://api.github.com/repos/thinkcmf/cmf-core/zipball/97681cdb9a205ab6c4fca0cfcca1b26b1c185712", + "reference": "97681cdb9a205ab6c4fca0cfcca1b26b1c185712", "shasum": "" }, "require": { - "electrolinux/phpquery": "^0.9.6", "ezyang/htmlpurifier": "^4.9", "mindplay/annotations": "^1.3", + "obsoletepackage/phpquery": "^1.0.1", "phpmailer/phpmailer": "~6.0", "thinkcmf/cmf-captcha": "^3.0", "thinkcmf/cmf-extend": "~5.1.0", @@ -787,7 +791,7 @@ "topthink/think-orm": "^2.0", "xia/migration": "^6.0" }, - "time": "2022-07-22T02:27:15+00:00", + "time": "2022-08-05T14:59:02+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -823,7 +827,7 @@ "description": "The ThinkCMF Core Package", "support": { "issues": "https://github.com/thinkcmf/cmf-core/issues", - "source": "https://github.com/thinkcmf/cmf-core/tree/v6.0.16" + "source": "https://github.com/thinkcmf/cmf-core/tree/v6.0.17" }, "install-path": "../thinkcmf/cmf" }, diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index f259b79a6..634ec4360 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -19,15 +19,6 @@ 'reference' => 'b94b7a190e186a31bd37f21be3a83a48c7d6b49a', 'dev_requirement' => false, ), - 'electrolinux/phpquery' => array( - 'pretty_version' => '0.9.6', - 'version' => '0.9.6.0', - 'type' => 'library', - 'install_path' => __DIR__ . '/../electrolinux/phpquery', - 'aliases' => array(), - 'reference' => '6cb8afcfe8cd4ce45f2f8c27d561383037c27a3a', - 'dev_requirement' => false, - ), 'ezyang/htmlpurifier' => array( 'pretty_version' => 'v4.14.0', 'version' => '4.14.0.0', @@ -73,6 +64,15 @@ 'reference' => 'd314832b338b88299c4108361c858b0590798d2c', 'dev_requirement' => false, ), + 'obsoletepackage/phpquery' => array( + 'pretty_version' => '1.0.1', + 'version' => '1.0.1.0', + 'type' => 'library', + 'install_path' => __DIR__ . '/../obsoletepackage/phpquery', + 'aliases' => array(), + 'reference' => 'de1935ee2cc26c4d61c53c916ee9a8ea697edd9c', + 'dev_requirement' => false, + ), 'pclzip/pclzip' => array( 'dev_requirement' => false, 'replaced' => array( @@ -134,12 +134,12 @@ 'dev_requirement' => false, ), 'thinkcmf/cmf' => array( - 'pretty_version' => 'v6.0.16', - 'version' => '6.0.16.0', + 'pretty_version' => 'v6.0.17', + 'version' => '6.0.17.0', 'type' => 'library', 'install_path' => __DIR__ . '/../thinkcmf/cmf', 'aliases' => array(), - 'reference' => 'bb02d518e7ee8c19442ddd88a45abcbc8cfb00a8', + 'reference' => '97681cdb9a205ab6c4fca0cfcca1b26b1c185712', 'dev_requirement' => false, ), 'thinkcmf/cmf-api' => array( diff --git a/vendor/electrolinux/phpquery/README.md b/vendor/obsoletepackage/phpquery/README.md similarity index 90% rename from vendor/electrolinux/phpquery/README.md rename to vendor/obsoletepackage/phpquery/README.md index 63b68700f..304616937 100644 --- a/vendor/electrolinux/phpquery/README.md +++ b/vendor/obsoletepackage/phpquery/README.md @@ -1,5 +1,7 @@ ## phpQuery, one more fork! +**Note:** _I haven't used this package since many years, and just recently looked at the code: this is scary, buggy and unfinished. Please don't use it on any production server!_ + My intent is to have it easily integrated in differents projects, so available on packagist. I've gathered some fix and new features here and there, as will keep looking for new stuff on github about phpQuery @@ -12,7 +14,6 @@ I've gathered some fix and new features here and there, as will keep looking for ### github repos i've looked at: * https://github.com/denis-isaev/phpquery -* https://github.com/fmorrow/pQuery--PHPQuery- (big project so far) * https://github.com/r-sal/phpquery * https://github.com/damien-list/phpquery-1 * https://github.com/nev3rm0re/phpquery @@ -20,6 +21,10 @@ I've gathered some fix and new features here and there, as will keep looking for * https://github.com/kevee/phpquery (include php-css-parser) * https://github.com/lucassouza1/phpquery +## Manual + +* [Manual](wiki/README.md) imported from http://code.google.com/p/phpquery/wiki + ## Extracts from fmorrow README.md: ### Whats phpQuery? diff --git a/vendor/electrolinux/phpquery/api-reference/classtrees_phpQuery.html b/vendor/obsoletepackage/phpquery/api-reference/classtrees_phpQuery.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/classtrees_phpQuery.html rename to vendor/obsoletepackage/phpquery/api-reference/classtrees_phpQuery.html diff --git a/vendor/electrolinux/phpquery/api-reference/elementindex.html b/vendor/obsoletepackage/phpquery/api-reference/elementindex.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/elementindex.html rename to vendor/obsoletepackage/phpquery/api-reference/elementindex.html diff --git a/vendor/electrolinux/phpquery/api-reference/elementindex_phpQuery.html b/vendor/obsoletepackage/phpquery/api-reference/elementindex_phpQuery.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/elementindex_phpQuery.html rename to vendor/obsoletepackage/phpquery/api-reference/elementindex_phpQuery.html diff --git a/vendor/electrolinux/phpquery/api-reference/errors.html b/vendor/obsoletepackage/phpquery/api-reference/errors.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/errors.html rename to vendor/obsoletepackage/phpquery/api-reference/errors.html diff --git a/vendor/electrolinux/phpquery/api-reference/index.html b/vendor/obsoletepackage/phpquery/api-reference/index.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/index.html rename to vendor/obsoletepackage/phpquery/api-reference/index.html diff --git a/vendor/electrolinux/phpquery/api-reference/li_phpQuery.html b/vendor/obsoletepackage/phpquery/api-reference/li_phpQuery.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/li_phpQuery.html rename to vendor/obsoletepackage/phpquery/api-reference/li_phpQuery.html diff --git a/vendor/electrolinux/phpquery/api-reference/media/background.png b/vendor/obsoletepackage/phpquery/api-reference/media/background.png similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/media/background.png rename to vendor/obsoletepackage/phpquery/api-reference/media/background.png diff --git a/vendor/electrolinux/phpquery/api-reference/media/empty.png b/vendor/obsoletepackage/phpquery/api-reference/media/empty.png similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/media/empty.png rename to vendor/obsoletepackage/phpquery/api-reference/media/empty.png diff --git a/vendor/electrolinux/phpquery/api-reference/media/style.css b/vendor/obsoletepackage/phpquery/api-reference/media/style.css similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/media/style.css rename to vendor/obsoletepackage/phpquery/api-reference/media/style.css diff --git a/vendor/electrolinux/phpquery/api-reference/phpQuery/Callback.html b/vendor/obsoletepackage/phpquery/api-reference/phpQuery/Callback.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/phpQuery/Callback.html rename to vendor/obsoletepackage/phpquery/api-reference/phpQuery/Callback.html diff --git a/vendor/electrolinux/phpquery/api-reference/phpQuery/CallbackParam.html b/vendor/obsoletepackage/phpquery/api-reference/phpQuery/CallbackParam.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/phpQuery/CallbackParam.html rename to vendor/obsoletepackage/phpquery/api-reference/phpQuery/CallbackParam.html diff --git a/vendor/electrolinux/phpquery/api-reference/phpQuery/CallbackReference.html b/vendor/obsoletepackage/phpquery/api-reference/phpQuery/CallbackReference.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/phpQuery/CallbackReference.html rename to vendor/obsoletepackage/phpquery/api-reference/phpQuery/CallbackReference.html diff --git a/vendor/electrolinux/phpquery/api-reference/phpQuery/DOMDocumentWrapper.html b/vendor/obsoletepackage/phpquery/api-reference/phpQuery/DOMDocumentWrapper.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/phpQuery/DOMDocumentWrapper.html rename to vendor/obsoletepackage/phpquery/api-reference/phpQuery/DOMDocumentWrapper.html diff --git a/vendor/electrolinux/phpquery/api-reference/phpQuery/DOMEvent.html b/vendor/obsoletepackage/phpquery/api-reference/phpQuery/DOMEvent.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/phpQuery/DOMEvent.html rename to vendor/obsoletepackage/phpquery/api-reference/phpQuery/DOMEvent.html diff --git a/vendor/electrolinux/phpquery/api-reference/phpQuery/_Callback.php.html b/vendor/obsoletepackage/phpquery/api-reference/phpQuery/_Callback.php.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/phpQuery/_Callback.php.html rename to vendor/obsoletepackage/phpquery/api-reference/phpQuery/_Callback.php.html diff --git a/vendor/electrolinux/phpquery/api-reference/phpQuery/_DOMDocumentWrapper.php.html b/vendor/obsoletepackage/phpquery/api-reference/phpQuery/_DOMDocumentWrapper.php.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/phpQuery/_DOMDocumentWrapper.php.html rename to vendor/obsoletepackage/phpquery/api-reference/phpQuery/_DOMDocumentWrapper.php.html diff --git a/vendor/electrolinux/phpquery/api-reference/phpQuery/_DOMEvent.php.html b/vendor/obsoletepackage/phpquery/api-reference/phpQuery/_DOMEvent.php.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/phpQuery/_DOMEvent.php.html rename to vendor/obsoletepackage/phpquery/api-reference/phpQuery/_DOMEvent.php.html diff --git a/vendor/electrolinux/phpquery/api-reference/phpQuery/_phpQuery.php.html b/vendor/obsoletepackage/phpquery/api-reference/phpQuery/_phpQuery.php.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/phpQuery/_phpQuery.php.html rename to vendor/obsoletepackage/phpquery/api-reference/phpQuery/_phpQuery.php.html diff --git a/vendor/electrolinux/phpquery/api-reference/phpQuery/_phpQueryEvents.php.html b/vendor/obsoletepackage/phpquery/api-reference/phpQuery/_phpQueryEvents.php.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/phpQuery/_phpQueryEvents.php.html rename to vendor/obsoletepackage/phpquery/api-reference/phpQuery/_phpQueryEvents.php.html diff --git a/vendor/electrolinux/phpquery/api-reference/phpQuery/_phpQueryObject.php.html b/vendor/obsoletepackage/phpquery/api-reference/phpQuery/_phpQueryObject.php.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/phpQuery/_phpQueryObject.php.html rename to vendor/obsoletepackage/phpquery/api-reference/phpQuery/_phpQueryObject.php.html diff --git a/vendor/electrolinux/phpquery/api-reference/phpQuery/phpQuery.html b/vendor/obsoletepackage/phpquery/api-reference/phpQuery/phpQuery.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/phpQuery/phpQuery.html rename to vendor/obsoletepackage/phpquery/api-reference/phpQuery/phpQuery.html diff --git a/vendor/electrolinux/phpquery/api-reference/phpQuery/phpQueryEvents.html b/vendor/obsoletepackage/phpquery/api-reference/phpQuery/phpQueryEvents.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/phpQuery/phpQueryEvents.html rename to vendor/obsoletepackage/phpquery/api-reference/phpQuery/phpQueryEvents.html diff --git a/vendor/electrolinux/phpquery/api-reference/phpQuery/phpQueryObject.html b/vendor/obsoletepackage/phpquery/api-reference/phpQuery/phpQueryObject.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/phpQuery/phpQueryObject.html rename to vendor/obsoletepackage/phpquery/api-reference/phpQuery/phpQueryObject.html diff --git a/vendor/electrolinux/phpquery/api-reference/phpQuery/phpQueryPlugins.html b/vendor/obsoletepackage/phpquery/api-reference/phpQuery/phpQueryPlugins.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/phpQuery/phpQueryPlugins.html rename to vendor/obsoletepackage/phpquery/api-reference/phpQuery/phpQueryPlugins.html diff --git a/vendor/electrolinux/phpquery/api-reference/todolist.html b/vendor/obsoletepackage/phpquery/api-reference/todolist.html similarity index 100% rename from vendor/electrolinux/phpquery/api-reference/todolist.html rename to vendor/obsoletepackage/phpquery/api-reference/todolist.html diff --git a/vendor/electrolinux/phpquery/cli/phpquery b/vendor/obsoletepackage/phpquery/cli/phpquery similarity index 100% rename from vendor/electrolinux/phpquery/cli/phpquery rename to vendor/obsoletepackage/phpquery/cli/phpquery diff --git a/vendor/electrolinux/phpquery/composer.json b/vendor/obsoletepackage/phpquery/composer.json similarity index 77% rename from vendor/electrolinux/phpquery/composer.json rename to vendor/obsoletepackage/phpquery/composer.json index 2ea5d6663..c9c784721 100644 --- a/vendor/electrolinux/phpquery/composer.json +++ b/vendor/obsoletepackage/phpquery/composer.json @@ -1,8 +1,8 @@ { - "name": "electrolinux/phpquery" + "name": "obsoletepackage/phpquery" ,"type": "library" ,"description": "phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library" - ,"version": "0.9.6" + ,"version": "1.0.1" ,"keywords": [] ,"homepage": "http://code.google.com/p/phpquery/" ,"license": "MIT" @@ -17,6 +17,10 @@ "name": "didier Belot" ,"role": "Packager" } + ,{ + "name": "obsolete package" + ,"homepage": "https://github.com/ObsoletePackage" + } ], "autoload": { "classmap": ["phpQuery/"] diff --git a/vendor/electrolinux/phpquery/demo.php b/vendor/obsoletepackage/phpquery/demo.php similarity index 100% rename from vendor/electrolinux/phpquery/demo.php rename to vendor/obsoletepackage/phpquery/demo.php diff --git a/vendor/electrolinux/phpquery/phpQuery/phpQuery.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery.php similarity index 100% rename from vendor/electrolinux/phpquery/phpQuery/phpQuery.php rename to vendor/obsoletepackage/phpquery/phpQuery/phpQuery.php diff --git a/vendor/electrolinux/phpquery/phpQuery/phpQuery/Callback.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/Callback.php similarity index 100% rename from vendor/electrolinux/phpquery/phpQuery/phpQuery/Callback.php rename to vendor/obsoletepackage/phpquery/phpQuery/phpQuery/Callback.php diff --git a/vendor/electrolinux/phpquery/phpQuery/phpQuery/DOMDocumentWrapper.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/DOMDocumentWrapper.php similarity index 99% rename from vendor/electrolinux/phpquery/phpQuery/phpQuery/DOMDocumentWrapper.php rename to vendor/obsoletepackage/phpquery/phpQuery/phpQuery/DOMDocumentWrapper.php index a58b1f316..aae5ee0b6 100644 --- a/vendor/electrolinux/phpquery/phpQuery/phpQuery/DOMDocumentWrapper.php +++ b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/DOMDocumentWrapper.php @@ -314,8 +314,6 @@ class DOMDocumentWrapper { } protected function contentTypeToArray($contentType) { - $test = null; - $test = $matches = explode(';', trim(strtolower($contentType))); if (isset($matches[1])) { $matches[1] = explode('=', $matches[1]); @@ -351,7 +349,7 @@ class DOMDocumentWrapper { return $contentType[1]; } protected function charsetFromXML($markup) { - $matches; + $matches = array(); // find declaration preg_match('@<'.'?xml[^>]+encoding\\s*=\\s*(["|\'])(.*?)\\1@i', $markup, $matches diff --git a/vendor/electrolinux/phpquery/phpQuery/phpQuery/DOMEvent.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/DOMEvent.php similarity index 100% rename from vendor/electrolinux/phpquery/phpQuery/phpQuery/DOMEvent.php rename to vendor/obsoletepackage/phpquery/phpQuery/phpQuery/DOMEvent.php diff --git a/vendor/electrolinux/phpquery/phpQuery/phpQuery/bootstrap.example.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/bootstrap.example.php similarity index 100% rename from vendor/electrolinux/phpquery/phpQuery/phpQuery/bootstrap.example.php rename to vendor/obsoletepackage/phpquery/phpQuery/phpQuery/bootstrap.example.php diff --git a/vendor/electrolinux/phpquery/phpQuery/phpQuery/compat/mbstring.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/compat/mbstring.php similarity index 100% rename from vendor/electrolinux/phpquery/phpQuery/phpQuery/compat/mbstring.php rename to vendor/obsoletepackage/phpquery/phpQuery/phpQuery/compat/mbstring.php diff --git a/vendor/electrolinux/phpquery/phpQuery/phpQuery/phpQueryEvents.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/phpQueryEvents.php similarity index 100% rename from vendor/electrolinux/phpquery/phpQuery/phpQuery/phpQueryEvents.php rename to vendor/obsoletepackage/phpquery/phpQuery/phpQuery/phpQueryEvents.php diff --git a/vendor/electrolinux/phpquery/phpQuery/phpQuery/phpQueryObject.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/phpQueryObject.php similarity index 98% rename from vendor/electrolinux/phpquery/phpQuery/phpQuery/phpQueryObject.php rename to vendor/obsoletepackage/phpquery/phpQuery/phpQuery/phpQueryObject.php index 8ec8c91e8..be31e6576 100644 --- a/vendor/electrolinux/phpquery/phpQuery/phpQuery/phpQueryObject.php +++ b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/phpQueryObject.php @@ -502,7 +502,7 @@ class phpQueryObject * @todo maybe other name... */ public function getString($index = null, $callback1 = null, $callback2 = null, $callback3 = null) { - if ($index) + if (!is_null($index) && is_int($index)) $return = $this->eq($index)->text(); else { $return = array(); @@ -529,7 +529,7 @@ class phpQueryObject * @todo maybe other name... */ public function getStrings($index = null, $callback1 = null, $callback2 = null, $callback3 = null) { - if ($index) + if (!is_null($index) && is_int($index)) $return = $this->eq($index)->text(); else { $return = array(); @@ -587,7 +587,7 @@ class phpQueryObject if ( mb_strpos($class, '.', 1)) { $classes = explode('.', substr($class, 1)); $classesCount = count( $classes ); - $nodeClasses = explode(' ', $node->getAttribute('class') ); + $nodeClasses = preg_split("/[\s\t\r\n]+/", $node->getAttribute('class'),-1, PREG_SPLIT_NO_EMPTY); $nodeClassesCount = count( $nodeClasses ); if ( $classesCount > $nodeClassesCount ) return false; @@ -605,7 +605,7 @@ class phpQueryObject // strip leading dot from class name substr($class, 1), // get classes for element as array - explode(' ', $node->getAttribute('class') ) + preg_split("/[\s\t\r\n]+/", $node->getAttribute('class'),-1, PREG_SPLIT_NO_EMPTY) ); } } @@ -967,16 +967,18 @@ class phpQueryObject break; case 'parent': $this->elements = $this->map( - create_function('$node', ' + function ($node) { return $node instanceof DOMELEMENT && $node->childNodes->length - ? $node : null;') + ? $node : null; + } )->elements; break; case 'empty': $this->elements = $this->map( - create_function('$node', ' + function ($node) { return $node instanceof DOMELEMENT && $node->childNodes->length - ? null : $node;') + ? null : $node; + } )->elements; break; case 'disabled': @@ -989,19 +991,21 @@ class phpQueryObject break; case 'enabled': $this->elements = $this->map( - create_function('$node', ' - return pq($node)->not(":disabled") ? $node : null;') + function ($node) { + return pq($node)->not(":disabled") ? $node : null; + } )->elements; break; case 'header': $this->elements = $this->map( - create_function('$node', - '$isHeader = isset($node->tagName) && in_array($node->tagName, array( + function ($node) { + $isHeader = isset($node->tagName) && in_array($node->tagName, array( "h1", "h2", "h3", "h4", "h5", "h6", "h7" )); return $isHeader ? $node - : null;') + : null; + } )->elements; // $this->elements = $this->map( // create_function('$node', '$node = pq($node); @@ -1018,18 +1022,19 @@ class phpQueryObject break; case 'only-child': $this->elements = $this->map( - create_function('$node', - 'return pq($node)->siblings()->size() == 0 ? $node : null;') + function ($node) { + return pq($node)->siblings()->size() == 0 ? $node : null; + } )->elements; break; case 'first-child': $this->elements = $this->map( - create_function('$node', 'return pq($node)->prevAll()->size() == 0 ? $node : null;') + function ($node) { return pq($node)->prevAll()->size() == 0 ? $node : null; } )->elements; break; case 'last-child': $this->elements = $this->map( - create_function('$node', 'return pq($node)->nextAll()->size() == 0 ? $node : null;') + function ($node) { return pq($node)->nextAll()->size() == 0 ? $node : null; } )->elements; break; case 'nth-child': @@ -1037,33 +1042,36 @@ class phpQueryObject if (! $param) break; // nth-child(n+b) to nth-child(1n+b) - if ($param[0] == 'n') + if (substr($param, 0, 1) == 'n') $param = '1'.$param; // :nth-child(index/even/odd/equation) if ($param == 'even' || $param == 'odd') $mapped = $this->map( - create_function('$node, $param', - '$index = pq($node)->prevAll()->size()+1; + function ($node, $param) { + $index = pq($node)->prevAll()->size()+1; if ($param == "even" && ($index%2) == 0) return $node; else if ($param == "odd" && $index%2 == 1) return $node; else - return null;'), + return null; + }, new CallbackParam(), $param ); - else if (mb_strlen($param) > 1 && $param[1] == 'n') + else if (mb_strlen($param) > 1 && preg_match('/^(\d*)n([-+]?)(\d*)/', $param) === 1) // an+b $mapped = $this->map( - create_function('$node, $param', - '$prevs = pq($node)->prevAll()->size(); + function ($node, $param) { + $prevs = pq($node)->prevAll()->size(); $index = 1+$prevs; - $b = mb_strlen($param) > 3 - ? $param{3} - : 0; - $a = $param{0}; - if ($b && $param{2} == "-") - $b = -$b; + + preg_match("/^(\d*)n([-+]?)(\d*)/", $param, $matches); + $a = intval($matches[1]); + $b = intval($matches[3]); + if( $matches[2] === "-" ) { + $b = -$b; + } + if ($a > 0) { return ($index-$b)%$a == 0 ? $node @@ -1089,20 +1097,21 @@ class phpQueryObject // return ($index-$b)%$a == 0 // ? $node // : null; - '), + }, new CallbackParam(), $param ); else // index $mapped = $this->map( - create_function('$node, $index', - '$prevs = pq($node)->prevAll()->size(); + function ($node, $index) { + $prevs = pq($node)->prevAll()->size(); if ($prevs && $prevs == $index-1) return $node; else if (! $prevs && $index == 1) return $node; else - return null;'), + return null; + }, new CallbackParam(), $param ); $this->elements = $mapped->elements; @@ -1878,7 +1887,7 @@ class phpQueryObject } /** * Enter description here... - * + * * @param $code * @return unknown_type */ @@ -1889,7 +1898,7 @@ class phpQueryObject } /** * Enter description here... - * + * * @param $code * @return unknown_type */ @@ -2264,7 +2273,7 @@ class phpQueryObject } return $return; } - + /** * @return The text content of each matching element, like * text() but returns an array with one entry per matched element. @@ -2277,7 +2286,7 @@ class phpQueryObject } return $results; } - + /** * Enter description here... * @@ -2645,7 +2654,7 @@ class phpQueryObject return is_null($value) ? '' : $this; } - + /** * @return The same attribute of each matching element, like * attr() but returns an array with one entry per matched element. @@ -2949,7 +2958,7 @@ class phpQueryObject } /** * Enter description here... - * + * * @param $key * @param $value */ @@ -2966,7 +2975,7 @@ class phpQueryObject } /** * Enter description here... - * + * * @param $key */ public function removeData($key) { @@ -3099,7 +3108,7 @@ class phpQueryObject : "{$node->tagName}[{$i}]"; $node = $node->parentNode; } - $xpath = join('/', array_reverse($xpath)); + $xpath = implode('/', array_reverse($xpath)); $return[] = '/'.$xpath; } return $oneNode @@ -3121,7 +3130,7 @@ class phpQueryObject .($node->getAttribute('id') ? '#'.$node->getAttribute('id'):'') .($node->getAttribute('class') - ? '.'.join('.', split(' ', $node->getAttribute('class'))):'') + ? '.'.implode('.', explode(' ', $node->getAttribute('class'))):'') .($node->getAttribute('name') ? '[name="'.$node->getAttribute('name').'"]':'') .($node->getAttribute('value') && strpos($node->getAttribute('value'), '<'.'?php') === false diff --git a/vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/Scripts.php similarity index 100% rename from vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts.php rename to vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/Scripts.php diff --git a/vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts/__config.example.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/Scripts/__config.example.php similarity index 100% rename from vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts/__config.example.php rename to vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/Scripts/__config.example.php diff --git a/vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts/example.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/Scripts/example.php similarity index 100% rename from vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts/example.php rename to vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/Scripts/example.php diff --git a/vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts/fix_webroot.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/Scripts/fix_webroot.php similarity index 100% rename from vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts/fix_webroot.php rename to vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/Scripts/fix_webroot.php diff --git a/vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts/google_login.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/Scripts/google_login.php similarity index 100% rename from vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts/google_login.php rename to vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/Scripts/google_login.php diff --git a/vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts/print_source.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/Scripts/print_source.php similarity index 100% rename from vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts/print_source.php rename to vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/Scripts/print_source.php diff --git a/vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts/print_websafe.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/Scripts/print_websafe.php similarity index 100% rename from vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts/print_websafe.php rename to vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/Scripts/print_websafe.php diff --git a/vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/WebBrowser.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/WebBrowser.php similarity index 99% rename from vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/WebBrowser.php rename to vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/WebBrowser.php index e5e83d0e1..7cc886e35 100644 --- a/vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/WebBrowser.php +++ b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/WebBrowser.php @@ -84,8 +84,8 @@ class phpQueryObjectPlugin_WebBrowser { } return $return; } - - + + public static function download($self, $url = null) { $xhr = isset($self->document->xhr) ? $self->document->xhr @@ -266,7 +266,7 @@ class phpQueryPlugin_WebBrowser { } else return $pq; } - + /** * @param Zend_Http_Client $xhr */ @@ -278,7 +278,7 @@ class phpQueryPlugin_WebBrowser { return $body; } /** - * + * * @param $e * @param $callback * @return unknown_type @@ -385,7 +385,7 @@ function resolve_url($base, $url) { // Step 3 if (preg_match('!^[a-z]+:!i', $url)) return $url; $base = parse_url($base); - if ($url{0} == "#") { + if (substr($url, 0, 1) == "#") { // Step 2 (fragment) $base['fragment'] = substr($url, 1); return unparse_url($base); @@ -398,7 +398,7 @@ function resolve_url($base, $url) { 'scheme'=>$base['scheme'], 'path'=>substr($url,2), )); - } else if ($url{0} == "/") { + } else if (substr($url, 0, 1) == "/") { // Step 5 $base['path'] = $url; } else { diff --git a/vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/example.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/example.php similarity index 100% rename from vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/example.php rename to vendor/obsoletepackage/phpquery/phpQuery/phpQuery/plugins/example.php diff --git a/vendor/electrolinux/phpquery/test-cases/document-types/document-fragment-utf8.html b/vendor/obsoletepackage/phpquery/test-cases/document-types/document-fragment-utf8.html similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/document-types/document-fragment-utf8.html rename to vendor/obsoletepackage/phpquery/test-cases/document-types/document-fragment-utf8.html diff --git a/vendor/electrolinux/phpquery/test-cases/document-types/document-fragment-utf8.xhtml b/vendor/obsoletepackage/phpquery/test-cases/document-types/document-fragment-utf8.xhtml similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/document-types/document-fragment-utf8.xhtml rename to vendor/obsoletepackage/phpquery/test-cases/document-types/document-fragment-utf8.xhtml diff --git a/vendor/electrolinux/phpquery/test-cases/document-types/document-fragment-utf8.xml b/vendor/obsoletepackage/phpquery/test-cases/document-types/document-fragment-utf8.xml similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/document-types/document-fragment-utf8.xml rename to vendor/obsoletepackage/phpquery/test-cases/document-types/document-fragment-utf8.xml diff --git a/vendor/electrolinux/phpquery/test-cases/document-types/document-iso88592-nocharset.html b/vendor/obsoletepackage/phpquery/test-cases/document-types/document-iso88592-nocharset.html similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/document-types/document-iso88592-nocharset.html rename to vendor/obsoletepackage/phpquery/test-cases/document-types/document-iso88592-nocharset.html diff --git a/vendor/electrolinux/phpquery/test-cases/document-types/document-iso88592-nocharset.xhtml b/vendor/obsoletepackage/phpquery/test-cases/document-types/document-iso88592-nocharset.xhtml similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/document-types/document-iso88592-nocharset.xhtml rename to vendor/obsoletepackage/phpquery/test-cases/document-types/document-iso88592-nocharset.xhtml diff --git a/vendor/electrolinux/phpquery/test-cases/document-types/document-iso88592-nocharset.xml b/vendor/obsoletepackage/phpquery/test-cases/document-types/document-iso88592-nocharset.xml similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/document-types/document-iso88592-nocharset.xml rename to vendor/obsoletepackage/phpquery/test-cases/document-types/document-iso88592-nocharset.xml diff --git a/vendor/electrolinux/phpquery/test-cases/document-types/document-iso88592.html b/vendor/obsoletepackage/phpquery/test-cases/document-types/document-iso88592.html similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/document-types/document-iso88592.html rename to vendor/obsoletepackage/phpquery/test-cases/document-types/document-iso88592.html diff --git a/vendor/electrolinux/phpquery/test-cases/document-types/document-iso88592.xhtml b/vendor/obsoletepackage/phpquery/test-cases/document-types/document-iso88592.xhtml similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/document-types/document-iso88592.xhtml rename to vendor/obsoletepackage/phpquery/test-cases/document-types/document-iso88592.xhtml diff --git a/vendor/electrolinux/phpquery/test-cases/document-types/document-iso88592.xml b/vendor/obsoletepackage/phpquery/test-cases/document-types/document-iso88592.xml similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/document-types/document-iso88592.xml rename to vendor/obsoletepackage/phpquery/test-cases/document-types/document-iso88592.xml diff --git a/vendor/electrolinux/phpquery/test-cases/document-types/document-utf8-nocharset.html b/vendor/obsoletepackage/phpquery/test-cases/document-types/document-utf8-nocharset.html similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/document-types/document-utf8-nocharset.html rename to vendor/obsoletepackage/phpquery/test-cases/document-types/document-utf8-nocharset.html diff --git a/vendor/electrolinux/phpquery/test-cases/document-types/document-utf8-nocharset.xhtml b/vendor/obsoletepackage/phpquery/test-cases/document-types/document-utf8-nocharset.xhtml similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/document-types/document-utf8-nocharset.xhtml rename to vendor/obsoletepackage/phpquery/test-cases/document-types/document-utf8-nocharset.xhtml diff --git a/vendor/electrolinux/phpquery/test-cases/document-types/document-utf8-nocharset.xml b/vendor/obsoletepackage/phpquery/test-cases/document-types/document-utf8-nocharset.xml similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/document-types/document-utf8-nocharset.xml rename to vendor/obsoletepackage/phpquery/test-cases/document-types/document-utf8-nocharset.xml diff --git a/vendor/electrolinux/phpquery/test-cases/document-types/document-utf8.html b/vendor/obsoletepackage/phpquery/test-cases/document-types/document-utf8.html similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/document-types/document-utf8.html rename to vendor/obsoletepackage/phpquery/test-cases/document-types/document-utf8.html diff --git a/vendor/electrolinux/phpquery/test-cases/document-types/document-utf8.php b/vendor/obsoletepackage/phpquery/test-cases/document-types/document-utf8.php similarity index 85% rename from vendor/electrolinux/phpquery/test-cases/document-types/document-utf8.php rename to vendor/obsoletepackage/phpquery/test-cases/document-types/document-utf8.php index 35353c74c..b6e2893c9 100644 --- a/vendor/electrolinux/phpquery/test-cases/document-types/document-utf8.php +++ b/vendor/obsoletepackage/phpquery/test-cases/document-types/document-utf8.php @@ -8,6 +8,6 @@ Hello World! ąśżźć - '>Attr test + '>Attr test diff --git a/vendor/electrolinux/phpquery/test-cases/document-types/document-utf8.xhtml b/vendor/obsoletepackage/phpquery/test-cases/document-types/document-utf8.xhtml similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/document-types/document-utf8.xhtml rename to vendor/obsoletepackage/phpquery/test-cases/document-types/document-utf8.xhtml diff --git a/vendor/electrolinux/phpquery/test-cases/document-types/document-utf8.xml b/vendor/obsoletepackage/phpquery/test-cases/document-types/document-utf8.xml similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/document-types/document-utf8.xml rename to vendor/obsoletepackage/phpquery/test-cases/document-types/document-utf8.xml diff --git a/vendor/electrolinux/phpquery/test-cases/document_types.php b/vendor/obsoletepackage/phpquery/test-cases/document_types.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/document_types.php rename to vendor/obsoletepackage/phpquery/test-cases/document_types.php diff --git a/vendor/electrolinux/phpquery/test-cases/run.php b/vendor/obsoletepackage/phpquery/test-cases/run.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/run.php rename to vendor/obsoletepackage/phpquery/test-cases/run.php diff --git a/vendor/electrolinux/phpquery/test-cases/test.html b/vendor/obsoletepackage/phpquery/test-cases/test.html similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test.html rename to vendor/obsoletepackage/phpquery/test-cases/test.html diff --git a/vendor/electrolinux/phpquery/test-cases/test_2.php b/vendor/obsoletepackage/phpquery/test-cases/test_2.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_2.php rename to vendor/obsoletepackage/phpquery/test-cases/test_2.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_4.php b/vendor/obsoletepackage/phpquery/test-cases/test_4.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_4.php rename to vendor/obsoletepackage/phpquery/test-cases/test_4.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_5.php b/vendor/obsoletepackage/phpquery/test-cases/test_5.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_5.php rename to vendor/obsoletepackage/phpquery/test-cases/test_5.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_ajax.php b/vendor/obsoletepackage/phpquery/test-cases/test_ajax.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_ajax.php rename to vendor/obsoletepackage/phpquery/test-cases/test_ajax.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_ajax_data_1 b/vendor/obsoletepackage/phpquery/test-cases/test_ajax_data_1 similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_ajax_data_1 rename to vendor/obsoletepackage/phpquery/test-cases/test_ajax_data_1 diff --git a/vendor/electrolinux/phpquery/test-cases/test_arrayaccess.php b/vendor/obsoletepackage/phpquery/test-cases/test_arrayaccess.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_arrayaccess.php rename to vendor/obsoletepackage/phpquery/test-cases/test_arrayaccess.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_attr.php b/vendor/obsoletepackage/phpquery/test-cases/test_attr.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_attr.php rename to vendor/obsoletepackage/phpquery/test-cases/test_attr.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_callback.php b/vendor/obsoletepackage/phpquery/test-cases/test_callback.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_callback.php rename to vendor/obsoletepackage/phpquery/test-cases/test_callback.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_charset.php b/vendor/obsoletepackage/phpquery/test-cases/test_charset.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_charset.php rename to vendor/obsoletepackage/phpquery/test-cases/test_charset.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_document.php b/vendor/obsoletepackage/phpquery/test-cases/test_document.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_document.php rename to vendor/obsoletepackage/phpquery/test-cases/test_document.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_events.php b/vendor/obsoletepackage/phpquery/test-cases/test_events.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_events.php rename to vendor/obsoletepackage/phpquery/test-cases/test_events.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_insert.php b/vendor/obsoletepackage/phpquery/test-cases/test_insert.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_insert.php rename to vendor/obsoletepackage/phpquery/test-cases/test_insert.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_manipulation.php b/vendor/obsoletepackage/phpquery/test-cases/test_manipulation.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_manipulation.php rename to vendor/obsoletepackage/phpquery/test-cases/test_manipulation.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_manual.php b/vendor/obsoletepackage/phpquery/test-cases/test_manual.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_manual.php rename to vendor/obsoletepackage/phpquery/test-cases/test_manual.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_multidoc.php b/vendor/obsoletepackage/phpquery/test-cases/test_multidoc.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_multidoc.php rename to vendor/obsoletepackage/phpquery/test-cases/test_multidoc.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_php.php b/vendor/obsoletepackage/phpquery/test-cases/test_php.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_php.php rename to vendor/obsoletepackage/phpquery/test-cases/test_php.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_replace.php b/vendor/obsoletepackage/phpquery/test-cases/test_replace.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_replace.php rename to vendor/obsoletepackage/phpquery/test-cases/test_replace.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_scripts.php b/vendor/obsoletepackage/phpquery/test-cases/test_scripts.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_scripts.php rename to vendor/obsoletepackage/phpquery/test-cases/test_scripts.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_selectors.php b/vendor/obsoletepackage/phpquery/test-cases/test_selectors.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_selectors.php rename to vendor/obsoletepackage/phpquery/test-cases/test_selectors.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_webbrowser.php b/vendor/obsoletepackage/phpquery/test-cases/test_webbrowser.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_webbrowser.php rename to vendor/obsoletepackage/phpquery/test-cases/test_webbrowser.php diff --git a/vendor/electrolinux/phpquery/test-cases/test_wrap.php b/vendor/obsoletepackage/phpquery/test-cases/test_wrap.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/test_wrap.php rename to vendor/obsoletepackage/phpquery/test-cases/test_wrap.php diff --git a/vendor/electrolinux/phpquery/test-cases/xpath.php b/vendor/obsoletepackage/phpquery/test-cases/xpath.php similarity index 100% rename from vendor/electrolinux/phpquery/test-cases/xpath.php rename to vendor/obsoletepackage/phpquery/test-cases/xpath.php diff --git a/vendor/electrolinux/phpquery/unit-tests/test.html b/vendor/obsoletepackage/phpquery/unit-tests/test.html similarity index 100% rename from vendor/electrolinux/phpquery/unit-tests/test.html rename to vendor/obsoletepackage/phpquery/unit-tests/test.html diff --git a/vendor/electrolinux/phpquery/unit-tests/test.php b/vendor/obsoletepackage/phpquery/unit-tests/test.php similarity index 100% rename from vendor/electrolinux/phpquery/unit-tests/test.php rename to vendor/obsoletepackage/phpquery/unit-tests/test.php diff --git a/vendor/services.php b/vendor/services.php index f568dc424..962436523 100644 --- a/vendor/services.php +++ b/vendor/services.php @@ -1,5 +1,5 @@ 'app\\admin\\AppStoreService', diff --git a/vendor/thinkcmf/cmf/README.md b/vendor/thinkcmf/cmf/README.md index ddc1fb3b5..6432939b3 100644 --- a/vendor/thinkcmf/cmf/README.md +++ b/vendor/thinkcmf/cmf/README.md @@ -1,6 +1,9 @@ # ThinkCMF核心包 ## 更新日志 +### v6.0.17 +* 替换`phpquery`包 + ### v6.0.16 * 修复qrcode库php8.0及以上报错 * 优化语言包加载 diff --git a/vendor/thinkcmf/cmf/composer.json b/vendor/thinkcmf/cmf/composer.json index 5d3106a64..eeb1b8766 100644 --- a/vendor/thinkcmf/cmf/composer.json +++ b/vendor/thinkcmf/cmf/composer.json @@ -13,7 +13,7 @@ "phpmailer/phpmailer": "~6.0", "mindplay/annotations": "^1.3", "ezyang/htmlpurifier": "^4.9", - "electrolinux/phpquery": "^0.9.6", + "obsoletepackage/phpquery": "^1.0.1", "thinkcmf/cmf-extend": "~5.1.0", "topthink/think-orm": "^2.0", "xia/migration": "^6.0", -- Gitee From 755d58b256515eedea8b90d6aae2ca288be1d3fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=94=E4=BA=94?= <15093565100@163.com> Date: Wed, 17 Aug 2022 14:18:41 +0000 Subject: [PATCH 09/15] fix #I5MRC5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 五五 <15093565100@163.com> --- vendor/thinkcmf/cmf/src/controller/RestBaseController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/thinkcmf/cmf/src/controller/RestBaseController.php b/vendor/thinkcmf/cmf/src/controller/RestBaseController.php index 174cf3cb7..90f975e83 100755 --- a/vendor/thinkcmf/cmf/src/controller/RestBaseController.php +++ b/vendor/thinkcmf/cmf/src/controller/RestBaseController.php @@ -93,7 +93,7 @@ class RestBaseController private function _initUser() { - $token = $this->request->header('Authorization'); + $token = $this->request->header('Authorization',''); if (substr($token, 0, 7) === 'Bearer ') { $token = substr($token, 7); } -- Gitee From baff3edb4900c654a19b1d0840da16aa7fb8718d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=B1-=E5=90=8E=E4=B8=96=E4=BB=8A=E7=94=9F?= Date: Mon, 5 Sep 2022 04:28:40 +0000 Subject: [PATCH 10/15] !34 update vendor/thinkcmf/cmf-app/src/admin/model/SlideItemModel.php. * update vendor/thinkcmf/cmf-app/src/admin/model/SlideItemModel.php. --- vendor/thinkcmf/cmf-app/src/admin/model/SlideItemModel.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vendor/thinkcmf/cmf-app/src/admin/model/SlideItemModel.php b/vendor/thinkcmf/cmf-app/src/admin/model/SlideItemModel.php index 07f2673e6..f17d290ea 100644 --- a/vendor/thinkcmf/cmf-app/src/admin/model/SlideItemModel.php +++ b/vendor/thinkcmf/cmf-app/src/admin/model/SlideItemModel.php @@ -19,4 +19,8 @@ class SlideItemModel extends Model * @var string */ protected $name = 'slide_item'; + + protected $type = [ + 'more' => 'array' + ]; } -- Gitee From 1a8d1c4035e145115c116a70786165d9b1920edb Mon Sep 17 00:00:00 2001 From: dean Date: Wed, 14 Sep 2022 14:33:06 +0800 Subject: [PATCH 11/15] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=A0=81=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../thinkcmf/cmf-app/src/admin/controller/IndexController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/thinkcmf/cmf-app/src/admin/controller/IndexController.php b/vendor/thinkcmf/cmf-app/src/admin/controller/IndexController.php index 80fa89ef3..1d1a932aa 100644 --- a/vendor/thinkcmf/cmf-app/src/admin/controller/IndexController.php +++ b/vendor/thinkcmf/cmf-app/src/admin/controller/IndexController.php @@ -21,7 +21,7 @@ class IndexController extends AdminBaseController public function initialize() { $adminSettings = cmf_get_option('admin_settings'); - if (empty($adminSettings['admin_password']) || $this->request->pathinfo() == $adminSettings['admin_password'] || true) { + if (empty($adminSettings['admin_password']) || $this->request->pathinfo() == $adminSettings['admin_password']) { $adminId = cmf_get_current_admin_id(); if (empty($adminId)) { session("__LOGIN_BY_CMF_ADMIN_PW__", 1);//设置后台登录加密码 -- Gitee From d1f3e795eb7ce1a28c0a4d2f378ed5edddc02b36 Mon Sep 17 00:00:00 2001 From: dean Date: Wed, 14 Sep 2022 14:35:24 +0800 Subject: [PATCH 12/15] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.lock | 36 ++++++++-------- vendor/chamilo/pclzip/pclzip.lib.php | 8 +++- vendor/composer/autoload_psr4.php | 2 +- vendor/composer/autoload_static.php | 8 ++-- vendor/composer/installed.json | 42 +++++++++---------- vendor/composer/installed.php | 18 ++++---- vendor/obsoletepackage/phpquery/composer.json | 2 +- .../phpquery/phpQuery/phpQuery.php | 2 +- .../phpQuery/phpQuery/DOMDocumentWrapper.php | 10 ++--- .../phpQuery/phpQuery/phpQueryObject.php | 18 +++++++- vendor/phpmailer/phpmailer/README.md | 1 + vendor/phpmailer/phpmailer/VERSION | 2 +- .../phpmailer/language/phpmailer.lang-el.php | 41 ++++++++++-------- vendor/phpmailer/phpmailer/src/PHPMailer.php | 20 ++++++--- vendor/phpmailer/phpmailer/src/POP3.php | 2 +- vendor/phpmailer/phpmailer/src/SMTP.php | 2 +- vendor/services.php | 2 +- 17 files changed, 127 insertions(+), 89 deletions(-) diff --git a/composer.lock b/composer.lock index 872d93749..e3ba31c32 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "chamilo/pclzip", - "version": "v2.8.4", + "version": "v2.8.5", "source": { "type": "git", "url": "https://github.com/chamilo/pclzip.git", - "reference": "b94b7a190e186a31bd37f21be3a83a48c7d6b49a" + "reference": "af10d07a39922b0789bf761524a22ecefc01d405" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/chamilo/pclzip/zipball/b94b7a190e186a31bd37f21be3a83a48c7d6b49a", - "reference": "b94b7a190e186a31bd37f21be3a83a48c7d6b49a", + "url": "https://api.github.com/repos/chamilo/pclzip/zipball/af10d07a39922b0789bf761524a22ecefc01d405", + "reference": "af10d07a39922b0789bf761524a22ecefc01d405", "shasum": "" }, "replace": { @@ -46,9 +46,9 @@ ], "support": { "issues": "https://github.com/chamilo/pclzip/issues", - "source": "https://github.com/chamilo/pclzip/tree/v2.8.4" + "source": "https://github.com/chamilo/pclzip/tree/v2.8.5" }, - "time": "2017-11-28T22:14:11+00:00" + "time": "2022-09-06T21:41:44+00:00" }, { "name": "ezyang/htmlpurifier", @@ -358,16 +358,16 @@ }, { "name": "obsoletepackage/phpquery", - "version": "1.0.1", + "version": "1.0.2", "source": { "type": "git", "url": "https://github.com/ObsoletePackage/phpquery.git", - "reference": "de1935ee2cc26c4d61c53c916ee9a8ea697edd9c" + "reference": "ebe03fabd3286fdad18a0148a5f23f6dcc0443fb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ObsoletePackage/phpquery/zipball/de1935ee2cc26c4d61c53c916ee9a8ea697edd9c", - "reference": "de1935ee2cc26c4d61c53c916ee9a8ea697edd9c", + "url": "https://api.github.com/repos/ObsoletePackage/phpquery/zipball/ebe03fabd3286fdad18a0148a5f23f6dcc0443fb", + "reference": "ebe03fabd3286fdad18a0148a5f23f6dcc0443fb", "shasum": "" }, "type": "library", @@ -399,22 +399,22 @@ "description": "phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library", "homepage": "http://code.google.com/p/phpquery/", "support": { - "source": "https://github.com/ObsoletePackage/phpquery/tree/1.0.1" + "source": "https://github.com/ObsoletePackage/phpquery/tree/1.0.2" }, - "time": "2022-08-05T12:44:45+00:00" + "time": "2022-08-21T10:51:36+00:00" }, { "name": "phpmailer/phpmailer", - "version": "v6.6.3", + "version": "v6.6.4", "source": { "type": "git", "url": "https://github.com/PHPMailer/PHPMailer.git", - "reference": "9400f305a898f194caff5521f64e5dfa926626f3" + "reference": "a94fdebaea6bd17f51be0c2373ab80d3d681269b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/9400f305a898f194caff5521f64e5dfa926626f3", - "reference": "9400f305a898f194caff5521f64e5dfa926626f3", + "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/a94fdebaea6bd17f51be0c2373ab80d3d681269b", + "reference": "a94fdebaea6bd17f51be0c2373ab80d3d681269b", "shasum": "" }, "require": { @@ -471,7 +471,7 @@ "description": "PHPMailer is a full-featured email creation and transfer class for PHP", "support": { "issues": "https://github.com/PHPMailer/PHPMailer/issues", - "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.6.3" + "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.6.4" }, "funding": [ { @@ -479,7 +479,7 @@ "type": "github" } ], - "time": "2022-06-20T09:21:02+00:00" + "time": "2022-08-22T09:22:00+00:00" }, { "name": "psr/cache", diff --git a/vendor/chamilo/pclzip/pclzip.lib.php b/vendor/chamilo/pclzip/pclzip.lib.php index 976a92558..869a9435f 100644 --- a/vendor/chamilo/pclzip/pclzip.lib.php +++ b/vendor/chamilo/pclzip/pclzip.lib.php @@ -1,6 +1,6 @@ array($vendorDir . '/topthink/think-trace/src'), 'think\\migration\\' => array($vendorDir . '/xia/migration/src'), 'think\\captcha\\' => array($vendorDir . '/thinkcmf/cmf-captcha/src'), - 'think\\' => array($vendorDir . '/topthink/framework/src/think', $vendorDir . '/topthink/think-helper/src', $vendorDir . '/topthink/think-orm/src', $vendorDir . '/thinkcmf/cmf/think'), + 'think\\' => array($vendorDir . '/thinkcmf/cmf/think', $vendorDir . '/topthink/framework/src/think', $vendorDir . '/topthink/think-helper/src', $vendorDir . '/topthink/think-orm/src'), 'themes\\' => array($baseDir . '/public/themes'), 'plugins\\' => array($baseDir . '/public/plugins'), 'mindplay\\annotations\\' => array($vendorDir . '/mindplay/annotations/src/annotations'), diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 62db49d25..016fc2359 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -91,10 +91,10 @@ class ComposerStaticInit409e436a19c882513f3c7d0ffdfd059f ), 'think\\' => array ( - 0 => __DIR__ . '/..' . '/topthink/framework/src/think', - 1 => __DIR__ . '/..' . '/topthink/think-helper/src', - 2 => __DIR__ . '/..' . '/topthink/think-orm/src', - 3 => __DIR__ . '/..' . '/thinkcmf/cmf/think', + 0 => __DIR__ . '/..' . '/thinkcmf/cmf/think', + 1 => __DIR__ . '/..' . '/topthink/framework/src/think', + 2 => __DIR__ . '/..' . '/topthink/think-helper/src', + 3 => __DIR__ . '/..' . '/topthink/think-orm/src', ), 'themes\\' => array ( diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 0d71d0198..7e4f44971 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -2,23 +2,23 @@ "packages": [ { "name": "chamilo/pclzip", - "version": "v2.8.4", - "version_normalized": "2.8.4.0", + "version": "v2.8.5", + "version_normalized": "2.8.5.0", "source": { "type": "git", "url": "https://github.com/chamilo/pclzip.git", - "reference": "b94b7a190e186a31bd37f21be3a83a48c7d6b49a" + "reference": "af10d07a39922b0789bf761524a22ecefc01d405" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/chamilo/pclzip/zipball/b94b7a190e186a31bd37f21be3a83a48c7d6b49a", - "reference": "b94b7a190e186a31bd37f21be3a83a48c7d6b49a", + "url": "https://api.github.com/repos/chamilo/pclzip/zipball/af10d07a39922b0789bf761524a22ecefc01d405", + "reference": "af10d07a39922b0789bf761524a22ecefc01d405", "shasum": "" }, "replace": { "pclzip/pclzip": "^2.8" }, - "time": "2017-11-28T22:14:11+00:00", + "time": "2022-09-06T21:41:44+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -43,7 +43,7 @@ ], "support": { "issues": "https://github.com/chamilo/pclzip/issues", - "source": "https://github.com/chamilo/pclzip/tree/v2.8.4" + "source": "https://github.com/chamilo/pclzip/tree/v2.8.5" }, "install-path": "../chamilo/pclzip" }, @@ -370,20 +370,20 @@ }, { "name": "obsoletepackage/phpquery", - "version": "1.0.1", - "version_normalized": "1.0.1.0", + "version": "1.0.2", + "version_normalized": "1.0.2.0", "source": { "type": "git", "url": "https://github.com/ObsoletePackage/phpquery.git", - "reference": "de1935ee2cc26c4d61c53c916ee9a8ea697edd9c" + "reference": "ebe03fabd3286fdad18a0148a5f23f6dcc0443fb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ObsoletePackage/phpquery/zipball/de1935ee2cc26c4d61c53c916ee9a8ea697edd9c", - "reference": "de1935ee2cc26c4d61c53c916ee9a8ea697edd9c", + "url": "https://api.github.com/repos/ObsoletePackage/phpquery/zipball/ebe03fabd3286fdad18a0148a5f23f6dcc0443fb", + "reference": "ebe03fabd3286fdad18a0148a5f23f6dcc0443fb", "shasum": "" }, - "time": "2022-08-05T12:44:45+00:00", + "time": "2022-08-21T10:51:36+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -414,23 +414,23 @@ "description": "phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library", "homepage": "http://code.google.com/p/phpquery/", "support": { - "source": "https://github.com/ObsoletePackage/phpquery/tree/1.0.1" + "source": "https://github.com/ObsoletePackage/phpquery/tree/1.0.2" }, "install-path": "../obsoletepackage/phpquery" }, { "name": "phpmailer/phpmailer", - "version": "v6.6.3", - "version_normalized": "6.6.3.0", + "version": "v6.6.4", + "version_normalized": "6.6.4.0", "source": { "type": "git", "url": "https://github.com/PHPMailer/PHPMailer.git", - "reference": "9400f305a898f194caff5521f64e5dfa926626f3" + "reference": "a94fdebaea6bd17f51be0c2373ab80d3d681269b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/9400f305a898f194caff5521f64e5dfa926626f3", - "reference": "9400f305a898f194caff5521f64e5dfa926626f3", + "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/a94fdebaea6bd17f51be0c2373ab80d3d681269b", + "reference": "a94fdebaea6bd17f51be0c2373ab80d3d681269b", "shasum": "" }, "require": { @@ -457,7 +457,7 @@ "stevenmaguire/oauth2-microsoft": "Needed for Microsoft XOAUTH2 authentication", "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)" }, - "time": "2022-06-20T09:21:02+00:00", + "time": "2022-08-22T09:22:00+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -489,7 +489,7 @@ "description": "PHPMailer is a full-featured email creation and transfer class for PHP", "support": { "issues": "https://github.com/PHPMailer/PHPMailer/issues", - "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.6.3" + "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.6.4" }, "funding": [ { diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 634ec4360..92bab3216 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -11,12 +11,12 @@ ), 'versions' => array( 'chamilo/pclzip' => array( - 'pretty_version' => 'v2.8.4', - 'version' => '2.8.4.0', + 'pretty_version' => 'v2.8.5', + 'version' => '2.8.5.0', 'type' => 'library', 'install_path' => __DIR__ . '/../chamilo/pclzip', 'aliases' => array(), - 'reference' => 'b94b7a190e186a31bd37f21be3a83a48c7d6b49a', + 'reference' => 'af10d07a39922b0789bf761524a22ecefc01d405', 'dev_requirement' => false, ), 'ezyang/htmlpurifier' => array( @@ -65,12 +65,12 @@ 'dev_requirement' => false, ), 'obsoletepackage/phpquery' => array( - 'pretty_version' => '1.0.1', - 'version' => '1.0.1.0', + 'pretty_version' => '1.0.2', + 'version' => '1.0.2.0', 'type' => 'library', 'install_path' => __DIR__ . '/../obsoletepackage/phpquery', 'aliases' => array(), - 'reference' => 'de1935ee2cc26c4d61c53c916ee9a8ea697edd9c', + 'reference' => 'ebe03fabd3286fdad18a0148a5f23f6dcc0443fb', 'dev_requirement' => false, ), 'pclzip/pclzip' => array( @@ -80,12 +80,12 @@ ), ), 'phpmailer/phpmailer' => array( - 'pretty_version' => 'v6.6.3', - 'version' => '6.6.3.0', + 'pretty_version' => 'v6.6.4', + 'version' => '6.6.4.0', 'type' => 'library', 'install_path' => __DIR__ . '/../phpmailer/phpmailer', 'aliases' => array(), - 'reference' => '9400f305a898f194caff5521f64e5dfa926626f3', + 'reference' => 'a94fdebaea6bd17f51be0c2373ab80d3d681269b', 'dev_requirement' => false, ), 'psr/cache' => array( diff --git a/vendor/obsoletepackage/phpquery/composer.json b/vendor/obsoletepackage/phpquery/composer.json index c9c784721..2522be436 100644 --- a/vendor/obsoletepackage/phpquery/composer.json +++ b/vendor/obsoletepackage/phpquery/composer.json @@ -2,7 +2,7 @@ "name": "obsoletepackage/phpquery" ,"type": "library" ,"description": "phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library" - ,"version": "1.0.1" + ,"version": "1.0.2" ,"keywords": [] ,"homepage": "http://code.google.com/p/phpquery/" ,"license": "MIT" diff --git a/vendor/obsoletepackage/phpquery/phpQuery/phpQuery.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery.php index 08f22fc1b..a6c008f68 100644 --- a/vendor/obsoletepackage/phpquery/phpQuery/phpQuery.php +++ b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery.php @@ -647,7 +647,7 @@ abstract class phpQuery { * @todo still used ? */ public static function isMarkup($input) { - return ! is_array($input) && substr(trim($input), 0, 1) == '<'; + return ! is_array($input) && substr(trim((string)$input), 0, 1) == '<'; } public static function debug($text) { if (self::$debug) diff --git a/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/DOMDocumentWrapper.php b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/DOMDocumentWrapper.php index aae5ee0b6..4d5eade9f 100644 --- a/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/DOMDocumentWrapper.php +++ b/vendor/obsoletepackage/phpquery/phpQuery/phpQuery/DOMDocumentWrapper.php @@ -131,7 +131,7 @@ class DOMDocumentWrapper { $this->document->formatOutput = true; $this->document->preserveWhiteSpace = true; } - protected function loadMarkupHTML($markup, $requestedCharset = null) { + protected function loadMarkupHTML($markup,$requestedCharset = '') { if (phpQuery::$debug) phpQuery::debug('Full markup load (HTML): '.substr($markup, 0, 250)); $this->loadMarkupReset(); @@ -157,7 +157,7 @@ class DOMDocumentWrapper { } // Should be careful here, still need 'magic encoding detection' since lots of pages have other 'default encoding' // Worse, some pages can have mixed encodings... we'll try not to worry about that - $requestedCharset = strtoupper($requestedCharset); + $requestedCharset = strtoupper((string)$requestedCharset); $documentCharset = strtoupper($documentCharset); phpQuery::debug("DOC: $documentCharset REQ: $requestedCharset"); if ($requestedCharset && $documentCharset && $requestedCharset !== $documentCharset) { @@ -322,7 +322,7 @@ class DOMDocumentWrapper { ? $matches[1][1] : $matches[1][0]; } else - $matches[1] = null; + $matches[1] = ''; return $matches; } /** @@ -510,7 +510,7 @@ class DOMDocumentWrapper { * @param $markup * @return $document */ - private function documentFragmentLoadMarkup($fragment, $charset, $markup = null) { + private function documentFragmentLoadMarkup($fragment, $charset, $markup = '') { // TODO error handling // TODO copy doctype // tempolary turn off @@ -530,7 +530,7 @@ class DOMDocumentWrapper { } else { $markup2 = phpQuery::$defaultDoctype.''; - $noBody = strpos($markup, '|\\+|~)\s*@', '\\1', $query) + preg_replace('@\s*(>|\\+|~)\s*@', '\\1', (string)$query) ) ); $queries = array(array()); @@ -1663,6 +1663,8 @@ class phpQueryObject * * @return phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery */ + + #[\ReturnTypeWillChange] public function size() { return count($this->elements); } @@ -1672,9 +1674,12 @@ class phpQueryObject * @return phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery * @deprecated Use length as attribute */ + #[\ReturnTypeWillChange] public function length() { return $this->size(); } + + #[\ReturnTypeWillChange] public function count() { return $this->size(); } @@ -1684,6 +1689,8 @@ class phpQueryObject * @return phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery * @todo $level */ + + #[\ReturnTypeWillChange] public function end($level = 1) { // $this->elements = array_pop( $this->history ); // return $this; @@ -2989,6 +2996,7 @@ class phpQueryObject /** * @access private */ + #[\ReturnTypeWillChange] public function rewind(){ $this->debug('iterating foreach'); // phpQuery::selectDocument($this->getDocumentID()); @@ -3004,12 +3012,14 @@ class phpQueryObject /** * @access private */ + #[\ReturnTypeWillChange] public function current(){ return $this->elementsInterator[ $this->current ]; } /** * @access private */ + #[\ReturnTypeWillChange] public function key(){ return $this->current; } @@ -3024,6 +3034,7 @@ class phpQueryObject * @see phpQueryObject::_next() * @return phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery */ + #[\ReturnTypeWillChange] public function next($cssSelector = null){ // if ($cssSelector || $this->valid) // return $this->_next($cssSelector); @@ -3041,6 +3052,7 @@ class phpQueryObject /** * @access private */ + #[\ReturnTypeWillChange] public function valid(){ return $this->valid; } @@ -3049,18 +3061,21 @@ class phpQueryObject /** * @access private */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return $this->find($offset)->size() > 0; } /** * @access private */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->find($offset); } /** * @access private */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { // $this->find($offset)->replaceWith($value); $this->find($offset)->html($value); @@ -3068,6 +3083,7 @@ class phpQueryObject /** * @access private */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { // empty throw new Exception("Can't do unset, use array interface only for calling queries and replacing HTML."); diff --git a/vendor/phpmailer/phpmailer/README.md b/vendor/phpmailer/phpmailer/README.md index 3a1a05b26..56f971a49 100644 --- a/vendor/phpmailer/phpmailer/README.md +++ b/vendor/phpmailer/phpmailer/README.md @@ -10,6 +10,7 @@ [![Total Downloads](https://poser.pugx.org/phpmailer/phpmailer/downloads)](https://packagist.org/packages/phpmailer/phpmailer) [![License](https://poser.pugx.org/phpmailer/phpmailer/license.svg)](https://packagist.org/packages/phpmailer/phpmailer) [![API Docs](https://github.com/phpmailer/phpmailer/workflows/Docs/badge.svg)](https://phpmailer.github.io/PHPMailer/) +[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/PHPMailer/PHPMailer/badge)](https://api.securityscorecards.dev/projects/github.com/PHPMailer/PHPMailer) ## Features - Probably the world's most popular code for sending email from PHP! diff --git a/vendor/phpmailer/phpmailer/VERSION b/vendor/phpmailer/phpmailer/VERSION index a45cc0adf..a08b5f1e8 100644 --- a/vendor/phpmailer/phpmailer/VERSION +++ b/vendor/phpmailer/phpmailer/VERSION @@ -1 +1 @@ -6.6.3 \ No newline at end of file +6.6.4 \ No newline at end of file diff --git a/vendor/phpmailer/phpmailer/language/phpmailer.lang-el.php b/vendor/phpmailer/phpmailer/language/phpmailer.lang-el.php index b3d5ca94b..339ee5753 100644 --- a/vendor/phpmailer/phpmailer/language/phpmailer.lang-el.php +++ b/vendor/phpmailer/phpmailer/language/phpmailer.lang-el.php @@ -5,22 +5,29 @@ * @package PHPMailer */ -$PHPMAILER_LANG['authenticate'] = 'SMTP Σφάλμα: Αδυναμία πιστοποίησης (authentication).'; -$PHPMAILER_LANG['connect_host'] = 'SMTP Σφάλμα: Αδυναμία σύνδεσης στον SMTP-Host.'; -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Σφάλμα: Τα δεδομένα δεν έγιναν αποδεκτά.'; -$PHPMAILER_LANG['empty_message'] = 'Το E-Mail δεν έχει περιεχόμενο .'; -$PHPMAILER_LANG['encoding'] = 'Αγνωστο Encoding-Format: '; -$PHPMAILER_LANG['execute'] = 'Αδυναμία εκτέλεσης ακόλουθης εντολής: '; -$PHPMAILER_LANG['file_access'] = 'Αδυναμία προσπέλασης του αρχείου: '; -$PHPMAILER_LANG['file_open'] = 'Σφάλμα Αρχείου: Δεν είναι δυνατό το άνοιγμα του ακόλουθου αρχείου: '; -$PHPMAILER_LANG['from_failed'] = 'Η παρακάτω διεύθυνση αποστολέα δεν είναι σωστή: '; -$PHPMAILER_LANG['instantiate'] = 'Αδυναμία εκκίνησης Mail function.'; -$PHPMAILER_LANG['invalid_address'] = 'Το μήνυμα δεν εστάλη, η διεύθυνση δεν είναι έγκυρη: '; +$PHPMAILER_LANG['authenticate'] = 'Σφάλμα SMTP: Αδυναμία πιστοποίησης.'; +$PHPMAILER_LANG['buggy_php'] = 'Η έκδοση PHP που χρησιμοποιείτε παρουσιάζει σφάλμα που μπορεί να έχει ως αποτέλεσμα κατεστραμένα μηνύματα. Για να το διορθώσετε, αλλάξτε τον τρόπο αποστολής σε SMTP, απενεργοποιήστε την επιλογή mail.add_x_header στο αρχείο php.ini, αλλάξτε λειτουργικό σε MacOS ή Linux ή αναβαθμίστε την PHP σε έκδοση 7.0.17+ ή 7.1.3+.'; +$PHPMAILER_LANG['connect_host'] = 'Σφάλμα SMTP: Αδυναμία σύνδεσης με τον φιλοξενητή SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Σφάλμα SMTP: Μη αποδεκτά δεδομένα.'; +$PHPMAILER_LANG['empty_message'] = 'Η ηλεκτρονική επιστολή δεν έχει περιεχόμενο.'; +$PHPMAILER_LANG['encoding'] = 'Άγνωστη μορφή κωδικοποίησης: '; +$PHPMAILER_LANG['execute'] = 'Αδυναμία εκτέλεσης: '; +$PHPMAILER_LANG['extension_missing'] = 'Απουσία επέκτασης: '; +$PHPMAILER_LANG['file_access'] = 'Αδυναμία πρόσβασης στο αρχείο: '; +$PHPMAILER_LANG['file_open'] = 'Σφάλμα Αρχείου: Αδυναμία ανοίγματος αρχείου: '; +$PHPMAILER_LANG['from_failed'] = 'Η ακόλουθη διεύθυνση αποστολέα δεν είναι σωστή: '; +$PHPMAILER_LANG['instantiate'] = 'Αδυναμία εκκίνησης συνάρτησης Mail.'; +$PHPMAILER_LANG['invalid_address'] = 'Μη έγκυρη διεύθυνση: '; +$PHPMAILER_LANG['invalid_header'] = 'Μη έγκυρο όνομα κεφαλίδας ή τιμή'; +$PHPMAILER_LANG['invalid_hostentry'] = 'Μη έγκυρη εισαγωγή φιλοξενητή: '; +$PHPMAILER_LANG['invalid_host'] = 'Μη έγκυρος φιλοξενητής: '; $PHPMAILER_LANG['mailer_not_supported'] = ' mailer δεν υποστηρίζεται.'; -$PHPMAILER_LANG['provide_address'] = 'Παρακαλούμε δώστε τουλάχιστον μια e-mail διεύθυνση παραλήπτη.'; -$PHPMAILER_LANG['recipients_failed'] = 'SMTP Σφάλμα: Οι παρακάτω διευθύνσεις παραλήπτη δεν είναι έγκυρες: '; +$PHPMAILER_LANG['provide_address'] = 'Δώστε τουλάχιστον μια ηλεκτρονική διεύθυνση παραλήπτη.'; +$PHPMAILER_LANG['recipients_failed'] = 'Σφάλμα SMTP: Οι παρακάτω διευθύνσεις παραλήπτη δεν είναι έγκυρες: '; $PHPMAILER_LANG['signing'] = 'Σφάλμα υπογραφής: '; -$PHPMAILER_LANG['smtp_connect_failed'] = 'Αποτυχία σύνδεσης στον SMTP Server.'; -$PHPMAILER_LANG['smtp_error'] = 'Σφάλμα από τον SMTP Server: '; -$PHPMAILER_LANG['variable_set'] = 'Αδυναμία ορισμού ή αρχικοποίησης μεταβλητής: '; -//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; +$PHPMAILER_LANG['smtp_code'] = 'Κώδικάς SMTP: '; +$PHPMAILER_LANG['smtp_code_ex'] = 'Πρόσθετες πληροφορίες SMTP: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Αποτυχία σύνδεσης SMTP.'; +$PHPMAILER_LANG['smtp_detail'] = 'Λεπτομέρεια: '; +$PHPMAILER_LANG['smtp_error'] = 'Σφάλμα με τον διακομιστή SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'Αδυναμία ορισμού ή επαναφοράς μεταβλητής: '; diff --git a/vendor/phpmailer/phpmailer/src/PHPMailer.php b/vendor/phpmailer/phpmailer/src/PHPMailer.php index 6590a0ef3..62424545a 100644 --- a/vendor/phpmailer/phpmailer/src/PHPMailer.php +++ b/vendor/phpmailer/phpmailer/src/PHPMailer.php @@ -350,8 +350,8 @@ class PHPMailer public $Password = ''; /** - * SMTP auth type. - * Options are CRAM-MD5, LOGIN, PLAIN, XOAUTH2, attempted in that order if not specified. + * SMTP authentication type. Options are CRAM-MD5, LOGIN, PLAIN, XOAUTH2. + * If not specified, the first one from that list that the server supports will be selected. * * @var string */ @@ -750,7 +750,7 @@ class PHPMailer * * @var string */ - const VERSION = '6.6.3'; + const VERSION = '6.6.4'; /** * Error severity: message only, continue processing. @@ -1096,7 +1096,7 @@ class PHPMailer return false; } - if ($name !== null) { + if ($name !== null && is_string($name)) { $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim } else { $name = ''; @@ -1288,7 +1288,7 @@ class PHPMailer */ public function setFrom($address, $name = '', $auto = true) { - $address = trim($address); + $address = trim((string)$address); $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim //Don't validate now addresses with IDN. Will be done in send(). $pos = strrpos($address, '@'); @@ -1891,7 +1891,14 @@ class PHPMailer foreach ($this->to as $toaddr) { $toArr[] = $this->addrFormat($toaddr); } - $to = implode(', ', $toArr); + $to = trim(implode(', ', $toArr)); + + //If there are no To-addresses (e.g. when sending only to BCC-addresses) + //the following should be added to get a correct DKIM-signature. + //Compare with $this->preSend() + if ($to === '') { + $to = 'undisclosed-recipients:;'; + } $params = null; //This sets the SMTP envelope sender which gets turned into a return-path header by the receiver @@ -4470,6 +4477,7 @@ class PHPMailer 'ics' => 'text/calendar', 'xml' => 'text/xml', 'xsl' => 'text/xml', + 'csv' => 'text/csv', 'wmv' => 'video/x-ms-wmv', 'mpeg' => 'video/mpeg', 'mpe' => 'video/mpeg', diff --git a/vendor/phpmailer/phpmailer/src/POP3.php b/vendor/phpmailer/phpmailer/src/POP3.php index a7cc39112..78e91e49a 100644 --- a/vendor/phpmailer/phpmailer/src/POP3.php +++ b/vendor/phpmailer/phpmailer/src/POP3.php @@ -46,7 +46,7 @@ class POP3 * * @var string */ - const VERSION = '6.6.3'; + const VERSION = '6.6.4'; /** * Default POP3 port number. diff --git a/vendor/phpmailer/phpmailer/src/SMTP.php b/vendor/phpmailer/phpmailer/src/SMTP.php index c439a888b..cc1711d2e 100644 --- a/vendor/phpmailer/phpmailer/src/SMTP.php +++ b/vendor/phpmailer/phpmailer/src/SMTP.php @@ -35,7 +35,7 @@ class SMTP * * @var string */ - const VERSION = '6.6.3'; + const VERSION = '6.6.4'; /** * SMTP line break constant. diff --git a/vendor/services.php b/vendor/services.php index 962436523..f3de1be1e 100644 --- a/vendor/services.php +++ b/vendor/services.php @@ -1,5 +1,5 @@ 'app\\admin\\AppStoreService', -- Gitee From aba1f52bbf6c9515c545e046cec8416cbaefa496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=94=E4=BA=94?= <15093565100@163.com> Date: Sat, 17 Sep 2022 18:02:17 +0800 Subject: [PATCH 13/15] fix github (#737) --- .../thinkcmf/cmf-app/src/admin/controller/SlideController.php | 4 ++-- .../cmf-app/src/admin/controller/SlideItemController.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vendor/thinkcmf/cmf-app/src/admin/controller/SlideController.php b/vendor/thinkcmf/cmf-app/src/admin/controller/SlideController.php index d766c28b6..0e5d8e535 100644 --- a/vendor/thinkcmf/cmf-app/src/admin/controller/SlideController.php +++ b/vendor/thinkcmf/cmf-app/src/admin/controller/SlideController.php @@ -83,7 +83,7 @@ class SlideController extends AdminBaseController public function addPost() { if ($this->request->isPost()) { - $data = $this->request->param(); + $data = $this->request->param('',null,'strip_tags'); $slidePostModel = new SlideModel(); $result = $this->validate($data, 'Slide'); if ($result !== true) { @@ -133,7 +133,7 @@ class SlideController extends AdminBaseController public function editPost() { if ($this->request->isPost()) { - $data = $this->request->param(); + $data = $this->request->param('',null,'strip_tags'); $result = $this->validate($data, 'Slide'); if ($result !== true) { $this->error($result); diff --git a/vendor/thinkcmf/cmf-app/src/admin/controller/SlideItemController.php b/vendor/thinkcmf/cmf-app/src/admin/controller/SlideItemController.php index b61f295d9..677d90a57 100644 --- a/vendor/thinkcmf/cmf-app/src/admin/controller/SlideItemController.php +++ b/vendor/thinkcmf/cmf-app/src/admin/controller/SlideItemController.php @@ -91,7 +91,7 @@ class SlideItemController extends AdminBaseController public function addPost() { if ($this->request->isPost()) { - $data = $this->request->param(); + $data = $this->request->param('',null,'strip_tags'); SlideItemModel::insert($data['post']); $this->success(lang('ADD_SUCCESS'), url('SlideItem/index', ['slide_id' => $data['post']['slide_id']])); } @@ -142,7 +142,7 @@ class SlideItemController extends AdminBaseController public function editPost() { if ($this->request->isPost()) { - $data = $this->request->param(); + $data = $this->request->param('',null,'strip_tags'); $data['post']['image'] = cmf_asset_relative_url($data['post']['image']); -- Gitee From 321faa20865e74540e5f0a63e4c3f4ea75093d59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=94=E4=BA=94?= <15093565100@163.com> Date: Sat, 17 Sep 2022 18:18:52 +0800 Subject: [PATCH 14/15] fix github (#736) --- public/themes/admin_simpleboot3/admin/user/add.html | 1 + public/themes/admin_simpleboot3/admin/user/edit.html | 1 + vendor/thinkcmf/cmf-app/src/admin/controller/UserController.php | 2 +- vendor/thinkcmf/cmf-app/src/admin/validate/UserValidate.php | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public/themes/admin_simpleboot3/admin/user/add.html b/public/themes/admin_simpleboot3/admin/user/add.html index a29c960d5..baa40fd0c 100755 --- a/public/themes/admin_simpleboot3/admin/user/add.html +++ b/public/themes/admin_simpleboot3/admin/user/add.html @@ -37,6 +37,7 @@
+
diff --git a/public/themes/admin_simpleboot3/admin/user/edit.html b/public/themes/admin_simpleboot3/admin/user/edit.html index 82478fb5d..215a314ee 100755 --- a/public/themes/admin_simpleboot3/admin/user/edit.html +++ b/public/themes/admin_simpleboot3/admin/user/edit.html @@ -40,6 +40,7 @@
+ {:lang('BACK')}
diff --git a/vendor/thinkcmf/cmf-app/src/admin/controller/UserController.php b/vendor/thinkcmf/cmf-app/src/admin/controller/UserController.php index 31ce308f7..5d7eb8c41 100644 --- a/vendor/thinkcmf/cmf-app/src/admin/controller/UserController.php +++ b/vendor/thinkcmf/cmf-app/src/admin/controller/UserController.php @@ -132,7 +132,7 @@ class UserController extends AdminBaseController $roleIds = $this->request->param('role_id/a'); if (!empty($roleIds) && is_array($roleIds)) { $data = $this->request->param(); - $result = $this->validate($data, 'User'); + $result = $this->validate($data, 'User.add'); if ($result !== true) { $this->error($result); } else { diff --git a/vendor/thinkcmf/cmf-app/src/admin/validate/UserValidate.php b/vendor/thinkcmf/cmf-app/src/admin/validate/UserValidate.php index 77b9b7a57..e82a369fd 100644 --- a/vendor/thinkcmf/cmf-app/src/admin/validate/UserValidate.php +++ b/vendor/thinkcmf/cmf-app/src/admin/validate/UserValidate.php @@ -15,7 +15,7 @@ use think\Validate; class UserValidate extends Validate { protected $rule = [ - 'user_login' => 'require|unique:user,user_login', + 'user_login' => 'require|unique:user,user_login|token', 'user_pass' => 'require', 'user_email' => 'require|email|unique:user,user_email', ]; -- Gitee From dbe1f2a0516b17712acc62d7c8cac745383a2f48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=94=E4=BA=94?= <15093565100@163.com> Date: Fri, 21 Oct 2022 03:33:01 +0000 Subject: [PATCH 15/15] =?UTF-8?q?!37=20=E5=90=8C=E6=AD=A5=20*=20fix=20#I5W?= =?UTF-8?q?LAC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/thinkcmf/cmf/src/lib/Upload.php | 3 +++ vendor/thinkcmf/cmf/think/Template.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/vendor/thinkcmf/cmf/src/lib/Upload.php b/vendor/thinkcmf/cmf/src/lib/Upload.php index 679478544..9dcc84f67 100644 --- a/vendor/thinkcmf/cmf/src/lib/Upload.php +++ b/vendor/thinkcmf/cmf/src/lib/Upload.php @@ -122,6 +122,9 @@ class Upload if (empty($userId)) { $token = $this->request->header('Authorization'); + if (substr($token, 0, 7) === 'Bearer ') { + $token = substr($token, 7); + } if (empty($token)) { $token = $this->request->header('XX-Token'); } diff --git a/vendor/thinkcmf/cmf/think/Template.php b/vendor/thinkcmf/cmf/think/Template.php index 0914d1683..6ad073424 100644 --- a/vendor/thinkcmf/cmf/think/Template.php +++ b/vendor/thinkcmf/cmf/think/Template.php @@ -1412,7 +1412,7 @@ hello; $module = isset($module) ? $module : app()->http->getName(); $path = $this->config['view_base'] . ($module ? $module . DIRECTORY_SEPARATOR : ''); } else { - $path = isset($module) ? $this->app->getAppPath() . $module . DIRECTORY_SEPARATOR . basename($this->config['view_path']) . DIRECTORY_SEPARATOR : $this->config['view_path']; + $path = isset($module) ? app()->getAppPath() . $module . DIRECTORY_SEPARATOR . basename($this->config['view_path']) . DIRECTORY_SEPARATOR : $this->config['view_path']; } $template = $path . $template . '.' . ltrim($this->config['view_suffix'], '.'); } -- Gitee