From 91c46336c6fc3788509ffba3fb4b61c619ac6d26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <2449271624@qq.com> Date: Thu, 28 Sep 2023 19:10:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=AF=8C=E6=96=87=E6=9C=AC40?= =?UTF-8?q?4=E5=9B=BE=E6=A0=87=E7=BC=BA=E5=A4=B1=EF=BC=8C=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E7=BB=86=E8=8A=82=EF=BC=8C=E4=BC=98=E5=8C=96=E4=BC=9A?= =?UTF-8?q?=E5=91=98=E8=B5=84=E6=96=99=E4=BF=AE=E6=94=B9=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/css/albumupload.min.css | 2 +- src/admin/css/login.min.css | 2 +- src/admin/dialog/select_mimages.php | 2 +- src/admin/templets/ad_add.htm | 2 +- src/install/install.html | 2 +- src/static/ckeditor/contents.css | 4 +- .../plugins/codesnippetgeshi/plugin.js | 10 --- .../magicline/images/hidpi/icon-rtl.png | Bin 0 -> 176 bytes .../plugins/magicline/images/hidpi/icon.png | Bin 0 -> 199 bytes .../plugins/magicline/images/icon-rtl.png | Bin 0 -> 138 bytes .../plugins/magicline/images/icon.png | Bin 0 -> 133 bytes .../ckeditor/plugins/widget/images/handle.png | Bin 0 -> 220 bytes src/system/common.func.php | 2 +- src/system/helpers/code.helper.php | 2 +- src/system/inc/inc_fun_funAdmin.php | 2 +- src/user/edit_baseinfo.php | 11 --- src/user/templets/edit_baseinfo.htm | 66 +++++------------- src/user/templets/pm-main.htm | 2 +- src/user/templets/resetpassword.htm | 2 +- src/user/templets/widget_litpic.htm | 8 +-- tools/resetpwd.php | 3 +- 21 files changed, 35 insertions(+), 87 deletions(-) delete mode 100755 src/static/ckeditor/plugins/codesnippetgeshi/plugin.js create mode 100644 src/static/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png create mode 100644 src/static/ckeditor/plugins/magicline/images/hidpi/icon.png create mode 100644 src/static/ckeditor/plugins/magicline/images/icon-rtl.png create mode 100644 src/static/ckeditor/plugins/magicline/images/icon.png create mode 100644 src/static/ckeditor/plugins/widget/images/handle.png diff --git a/src/admin/css/albumupload.min.css b/src/admin/css/albumupload.min.css index 5d30ef5e..9618e0bb 100644 --- a/src/admin/css/albumupload.min.css +++ b/src/admin/css/albumupload.min.css @@ -1 +1 @@ -#btnsubmit{margin:0px 0px 0px 150px}.swfupload{vertical-align:top}.message{margin:10px 0;padding:10px 20px;background:rgb(255,255,204);border:1px solid rgb(255,221,153);overflow:hidden}.picinfo{margin:10px 0;height:30px;line-height:30px}.atlas{float:left;margin-right:10px;margin-bottom:10px;width:220px;height:auto;background:#f5f5f5;text-align:center;border-radius:.5rem}.atlas-head{height:120px}.atlas-head img{margin:0;max-width:220px;max-height:120px;border-radius:.5rem .5rem 0 0!important}.atlas-input{width:220px}.atlas-box{margin:.5rem 0}.atlas-foot input[type=text]{border-radius:0 0 .5rem .5rem!important} \ No newline at end of file +#btnsubmit{margin:0px 0px 0px 150px}.swfupload{vertical-align:top}.message{margin:10px 0;padding:10px 20px;background:rgb(255,255,204);border:1px solid rgb(255,221,153);overflow:hidden}.picinfo{margin:10px 0;height:30px;line-height:30px}.atlas{float:left;margin-right:10px;margin-bottom:10px;width:220px;height:auto;background:#f5f5f5;text-align:center;border-radius:0.5rem}.atlas-head{height:120px}.atlas-head img{margin:0;max-width:220px;max-height:120px;border-radius:0.5rem 0.5rem 0 0!important}.atlas-input{width:220px}.atlas-box{margin:.5rem 0}.atlas-foot input[type=text]{border-radius:0 0 0.5rem 0.5rem!important} \ No newline at end of file diff --git a/src/admin/css/login.min.css b/src/admin/css/login.min.css index 9f60796a..cd6759ab 100644 --- a/src/admin/css/login.min.css +++ b/src/admin/css/login.min.css @@ -1 +1 @@ -body{line-height:1.6;letter-spacing:0.6px;font-size:14px;font-family:Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#f5f5f5}a{color:#545b62}a:hover{color:#ff8400;text-decoration:none}h2{line-height:1.2;font-size:24px;color:#393d49;font-weight:600}.btn,input,select{font-size:14px!important}.admin-head{padding:1rem 0;background:#fff}.admin-nav{height:36px;line-height:36px}.admin-nav-a{padding-right:30px}.dropdown-menu{min-width:8rem;font-size:14px}.dropdown-item{padding:0 1rem;height:30px;line-height:30px;font-size:14px;color:#545b62!important}.logo,.form-control{height:36px}.login-from{margin:5rem auto;width:500px}.login-box{padding:1.25rem;background:#fff}.login-box,.form-control,.btn-md,.alert,.rounded{border-radius:.5rem!important}.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label,.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label::after,.input-group:not(.has-validation)>.custom-select:not(:last-child),.input-group:not(.has-validation)>.form-control:not(:last-child){border-top-right-radius:0!important;border-bottom-right-radius:0!important}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0!important;border-bottom-left-radius:0!important}#validateimg{border-radius:0 .5rem .5rem 0;cursor:pointer}#browsehappy{padding:1rem 30px;font-size:14px;color:#856404;background:#fff3cd}.browsehappy-close{float:right;font-size:14px;cursor:pointer}@media (max-width:760px){.admin-head{padding:1rem 15px}.admin-nav-a{display:none!important}.login-from{width:100%}} \ No newline at end of file +body{line-height:1.6;letter-spacing:0.5px;font-size:14px;font-family:Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#f5f5f5}a{color:#545b62}a:hover{color:#ff8400;text-decoration:none}h2{line-height:1.2;font-size:24px;color:#393d49;font-weight:600}.btn,input,select{font-size:14px!important}.admin-head{padding:1rem 0;background:#fff}.admin-nav{height:36px;line-height:36px}.admin-nav-a{padding-right:30px}.dropdown-menu{min-width:8rem;font-size:14px}.dropdown-item{padding:0 1rem;height:30px;line-height:30px;font-size:14px;color:#545b62!important}.logo,.form-control{height:36px}.login-from{margin:5rem auto;width:500px}.login-box{padding:1.25rem;background:#fff}.login-box,.form-control,.btn-md,.alert,.rounded{border-radius:0.5rem!important}.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label,.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label::after,.input-group:not(.has-validation)>.custom-select:not(:last-child),.input-group:not(.has-validation)>.form-control:not(:last-child){border-top-right-radius:0!important;border-bottom-right-radius:0!important}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0!important;border-bottom-left-radius:0!important}#validateimg{border-radius:0 0.5rem 0.5rem 0;cursor:pointer}#browsehappy{padding:1rem 30px;font-size:14px;color:#856404;background:#fff3cd}.browsehappy-close{float:right;font-size:14px;cursor:pointer}@media (max-width:760px){.admin-head{padding:1rem 15px}.admin-nav-a{display:none!important}.login-from{width:100%}} \ No newline at end of file diff --git a/src/admin/dialog/select_mimages.php b/src/admin/dialog/select_mimages.php index 1f1c1de1..f98eed5e 100644 --- a/src/admin/dialog/select_mimages.php +++ b/src/admin/dialog/select_mimages.php @@ -15,7 +15,7 @@ include(DEDEDATA.'/mark/inc_photowatermark_config.php'); - +
diff --git a/src/admin/templets/ad_add.htm b/src/admin/templets/ad_add.htm index 2c9dfb8d..bfbf4230 100644 --- a/src/admin/templets/ad_add.htm +++ b/src/admin/templets/ad_add.htm @@ -11,7 +11,7 @@ - +
diff --git a/src/install/install.html b/src/install/install.html index f5220152..def0ddfa 100644 --- a/src/install/install.html +++ b/src/install/install.html @@ -10,7 +10,7 @@ - +
diff --git a/src/static/ckeditor/contents.css b/src/static/ckeditor/contents.css index 4c45dee8..b8f5e825 100644 --- a/src/static/ckeditor/contents.css +++ b/src/static/ckeditor/contents.css @@ -21,7 +21,7 @@ ol,ul,dl { } h1,h2,h3,h4,h5,h6 { font-weight:600; - line-height:1.6 + line-height:1.2 } hr { border:0px; @@ -49,7 +49,7 @@ figure > figcaption { display:block } img { - border-radius:.5rem + border-radius:0.5rem } a > img { padding:1px; diff --git a/src/static/ckeditor/plugins/codesnippetgeshi/plugin.js b/src/static/ckeditor/plugins/codesnippetgeshi/plugin.js deleted file mode 100755 index 1e7aa557..00000000 --- a/src/static/ckeditor/plugins/codesnippetgeshi/plugin.js +++ /dev/null @@ -1,10 +0,0 @@ -/* - Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. - For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license -*/ -(function(){CKEDITOR.plugins.add("codesnippetgeshi",{requires:"ajax,codesnippet",init:function(c){var d=new CKEDITOR.htmlParser.basicWriter,f=new CKEDITOR.plugins.codesnippet.highlighter({languages:a,highlighter:function(b,a,e){b=JSON.stringify({lang:a,html:b});CKEDITOR.ajax.post(CKEDITOR.getUrl(c.config.codeSnippetGeshi_url||""),b,"application/json",function(a){a?(CKEDITOR.htmlParser.fragment.fromHtml(a||"").children[0].writeChildrenHtml(d),e(d.getHtml(!0))):e("")})}});c.plugins.codesnippet.setHighlighter(f)}}); -var a={abap:"ABAP",actionscript:"ActionScript",ada:"Ada",apache:"Apache Configuration",applescript:"AppleScript",asm:"Assembly",asp:"Active Server Pages (ASP)",autoit:"AutoIt",bash:"Bash",basic4gl:"Basic4GL",bf:"Brainfuck",blitzbasic:"Blitz BASIC",bnf:"Backus-Naur Form",c:"C",c_mac:"C (Mac)",caddcl:"AutoCAD DCL",cadlisp:"AutoLISP",cfdg:"CFDG",cfm:"ColdFusion Markup Language",cil:"Common Intermediate Language (CIL)",cobol:"COBOL","cpp-qt":"C++ (Qt toolkit)",cpp:"C++",csharp:"C#",css:"Cascading Style Sheets (CSS)", -d:"D",delphi:"Delphi",diff:"Diff",div:"DIV",dos:"DOS batch file",dot:"DOT",eiffel:"Eiffel",fortran:"Fortran",freebasic:"FreeBASIC",gambas:"Gambas",genero:"Genero",gettext:"GNU internationalization (i18n) library",glsl:"OpenGL Shading Language (GLSL)",gml:"Game Maker Language (GML)",gnuplot:"gnuplot",groovy:"Groovy",haskell:"Haskell",hq9plus:"HQ9+",html4strict:"HTML",html5:"HTML5",idl:"Uno IDL",ini:"INI",inno:"Inno",intercal:"INTERCAL",io:"Io",java:"Java",java5:"Java(TM) 2 Platform Standard Edition 5.0", -javascript:"JavaScript",kixtart:"KiXtart",klonec:"Klone C",klonecpp:"Klone C++",latex:"LaTeX",lisp:"Lisp",lolcode:"LOLCODE",lotusscript:"LotusScript",lua:"Lua",Code:"Language",m68k:"Motorola 68000 Assembler",make:"make",matlab:"MATLAB M",mirc:"mIRC scripting language",mxml:"MXML",mpasm:"Microchip Assembler",mysql:"MySQL",nsis:"Nullsoft Scriptable Install System (NSIS)",objc:"Objective-C","ocaml-brief":"OCaml",ocaml:"OCaml",oobas:"OpenOffice.org Basic",oracle8:"Oracle 8 SQL",oracle11:"Oracle 11 SQL", -pascal:"Pascal",per:"per",perl:"Perl","php-brief":"PHP",php:"PHP",pixelbender:"Pixel Bender",plsql:"PL/SQL",povray:"Persistence of Vision Raytracer",powershell:"Windows PowerShell",progress:"OpenEdge Advanced Business Language",prolog:"Prolog",providex:"ProvideX",python:"Python",qbasic:"QBasic/QuickBASIC",rails:"Rails",reg:"Windows Registry",robots:"robots.txt",rsplus:"R",ruby:"Ruby",sas:"SAS",scala:"Scala",scheme:"Scheme",scilab:"Scilab",sdlbasic:"SdlBasic",smalltalk:"Smalltalk",smarty:"Smarty", -sql:"SQL",tcl:"Tcl",teraterm:"Tera Term",text:"Plain text",thinbasic:"thinBasic",tsql:"Transact-SQL",typoscript:"TypoScript",vala:"Vala",vb:"Visual Basic",vbnet:"Visual Basic .NET",verilog:"Verilog",vhdl:"VHDL",vim:"Vimscript",visualfoxpro:"Visual FoxPro",visualprolog:"Visual Prolog",whitespace:"Whitespace",winbatch:"Winbatch",xml:"XML",xorg_conf:"Xorg.conf",xpp:"X++",z80:"ZiLOG Z80 Assembler"}})(); \ No newline at end of file diff --git a/src/static/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png b/src/static/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..4a8d2bfdabcc7271dde74ba441d11deb5adc5663 GIT binary patch literal 176 zcmeAS@N?(olHy`uVBq!ia0vp^LO?9S!VDyfb{13uDbWC*5LY1m9|L%t&t(Bhu$2V) z1v7m9_51I?Q~B(yKoJ*D7sn8e>&XFui49F#OeC~TM2>NBAD(jbywmmB4AXs^Hw!g3 zrKK6vW(G_+FkzM$n~Q^*56=n#HEv_kCE{7?J&c=}8RCPb`s%g^=>g4S@O1TaS?83{ F1OV9DKgIw6 literal 0 HcmV?d00001 diff --git a/src/static/ckeditor/plugins/magicline/images/hidpi/icon.png b/src/static/ckeditor/plugins/magicline/images/hidpi/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..b981bb5c6c40ef143fbd1dbd92e17c3471a6e635 GIT binary patch literal 199 zcmeAS@N?(olHy`uVBq!ia0vp^LO?9S!VDyfb{13uDTx4|5LY1m9~)4vn;Q?5V=oEv z3ua*W{OkAMe;?PrIs+66_jGX#;kaJgvr+JX0T0vtsZoZl?5FrnGTCjcQM%Pf)^OZeA b(rxbAsq!4pRQ+B7tzhtU^>bP0l+XkKZctCS literal 0 HcmV?d00001 diff --git a/src/static/ckeditor/plugins/magicline/images/icon-rtl.png b/src/static/ckeditor/plugins/magicline/images/icon-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..55b5b5f949a60c8fabc63867fd7827fe33d0ab71 GIT binary patch literal 138 zcmeAS@N?(olHy`uVBq!ia0vp^oIuRQ!3HGLSWET+sX$K`#}En0)_zAW1_cfl(^voJ zzZIFXGf`1QjpGte_M{Gzw|n- mC^o0`vu%>-E46n=xrM(kReto&cQ&R(y%F4>B zs;Uq!kbwq_7Top+>f$X4@(X6LuyOG4sc+bE;L!1t|K@(+14@K=x;Tb#Tu;8Rb9cks z#J94nZHsw$wz2W7VVBS|FgP>!0K<|7o;WsvWX2Z8B?>%jY}0rZj)}3g-PxTm;lP0# v3__VH4l5d8H_c`?|H*MfZyGa?!EHvRt#Zd+?pApQG@rrK)z4*}Q$iB}(WFB8 literal 0 HcmV?d00001 diff --git a/src/system/common.func.php b/src/system/common.func.php index 6983c969..e90b3636 100755 --- a/src/system/common.func.php +++ b/src/system/common.func.php @@ -18,7 +18,7 @@ define('ALERT_WARNING', 5); define('ALERT_INFO', 6); define('ALERT_LIGHT', 7); define('ALERT_DARK', 8); -define("ALERT_TPL", '
~content~
'); +define("ALERT_TPL", '
~content~
'); //$content:文档,$type:alert类型 function DedeAlert($content, $type = ALERT_PRIMARY, $isHTML = false) { diff --git a/src/system/helpers/code.helper.php b/src/system/helpers/code.helper.php index 87c63ff2..61f77f9b 100644 --- a/src/system/helpers/code.helper.php +++ b/src/system/helpers/code.helper.php @@ -437,7 +437,7 @@ function checkCode($code) function htmlErrors($errors = null) { if ($errors) { - $errorsHTML = "
"; + $errorsHTML = "
"; $errorsHTML .= '内嵌脚本缺失,请添加该函数:'; $errorsHTML .= '
'; foreach ($errors as $error) { diff --git a/src/system/inc/inc_fun_funAdmin.php b/src/system/inc/inc_fun_funAdmin.php index 9589bfec..ceea8e77 100755 --- a/src/system/inc/inc_fun_funAdmin.php +++ b/src/system/inc/inc_fun_funAdmin.php @@ -152,8 +152,8 @@ function SpGetEditor($fname, $fvalue, $nheight = "350", $etype = "Basic", $gtype $addConfig = ",{filebrowserImageUploadUrl:'api.php?action=upload&type=litpic&ck=1',filebrowserUploadUrl:'api.php?action=upload&type=media&ck=1',extraPlugins:'html5video,html5audio,textindent',filebrowserImageBrowseDisabled:true}"; } $code = << + EOT; if ($gtype == "print") { diff --git a/src/user/edit_baseinfo.php b/src/user/edit_baseinfo.php index 10cf30d6..d4c3629d 100755 --- a/src/user/edit_baseinfo.php +++ b/src/user/edit_baseinfo.php @@ -19,17 +19,6 @@ $newface = isset($newface)? $newface : ''; if ($dopost == 'save') { //校验CSRF CheckCSRF(); - if (function_exists('password_hash') && !empty($row['pwd_new'])) { - if (!is_array($row) || !password_verify($oldpwd, $row['pwd_new'])) { - ShowMsg('您输入的旧密码错误或没填写,修改资料失败', 'edit_baseinfo.php'); - exit(); - } - } else { - if (!is_array($row) || $row['pwd'] != md5($oldpwd)) { - ShowMsg('您输入的旧密码错误或没填写,修改资料失败', 'edit_baseinfo.php'); - exit(); - } - } if ($userpwd != $userpwdok) { ShowMsg('您两次输入的新密码不一致', 'edit_baseinfo.php'); exit(); diff --git a/src/user/templets/edit_baseinfo.htm b/src/user/templets/edit_baseinfo.htm index 0822b6ca..7002e8c0 100755 --- a/src/user/templets/edit_baseinfo.htm +++ b/src/user/templets/edit_baseinfo.htm @@ -24,18 +24,13 @@ -
-
-
会员资料修改需要验证密码才能修改
-
-
M_LoginID;?>
-
+
@@ -45,42 +40,34 @@ 修改
-
- -
-
-
+
-
+
- -
+ +
- -
+ +
- -
+ +
- -
+ +
-
- - 修改 -
- +
@@ -121,28 +108,11 @@ return false; } } - -