From 8fd5828a91d8481ee9b36543b60cb87368270fe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=91=A8=E9=83=A8=E8=90=BD?= Date: Fri, 19 Jul 2019 15:12:35 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=8F=90=E4=BA=A4=E9=93=BE=E6=8E=A5=E5=87=BA?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/function/function_blog.php | 2 +- upload/static/js/home.js | 21 -------- upload/static/js/home_blog.js | 53 ------------------- upload/template/default/home/spacecp_blog.htm | 1 - 4 files changed, 1 insertion(+), 76 deletions(-) diff --git a/upload/source/function/function_blog.php b/upload/source/function/function_blog.php index 3badf5acb..72bc58455 100644 --- a/upload/source/function/function_blog.php +++ b/upload/source/function/function_blog.php @@ -72,7 +72,7 @@ function blog_post($POST, $olds=array()) { $POST['message'] = getstr($POST['message'], 0, 0, 0, 0, 1); $POST['message'] = censor($POST['message']); $POST['message'] = preg_replace("/\\<\/div\>/i", '', $POST['message']); - $POST['message'] = preg_replace_callback("/\]+?)\"\>/i", 'blog_post_callback_blog_check_url_1', $POST['message']); + $POST['message'] = preg_replace_callback("//is", 'blog_post_callback_blog_check_url_1', $POST['message']); } $message = $POST['message']; if(censormod($message) || censormod($POST['subject']) || $_G['group']['allowblogmod']) { diff --git a/upload/static/js/home.js b/upload/static/js/home.js index 1640f97d7..3486cf5b3 100644 --- a/upload/static/js/home.js +++ b/upload/static/js/home.js @@ -219,27 +219,6 @@ function checkImage(url) { return url.match(re); } -function quick_validate(obj) { - if($('seccode')) { - var code = $('seccode').value; - var x = new Ajax(); - x.get('cp.php?ac=common&op=seccode&code=' + code, function(s){ - s = trim(s); - if(s != 'succeed') { - alert(s); - $('seccode').focus(); - return false; - } else { - obj.form.submit(); - return true; - } - }); - } else { - obj.form.submit(); - return true; - } -} - function stopMusic(preID, playerID) { var musicFlash = preID.toString() + '_' + playerID.toString(); if($(musicFlash)) { diff --git a/upload/static/js/home_blog.js b/upload/static/js/home_blog.js index 2c9ae2088..e69de29bb 100644 --- a/upload/static/js/home_blog.js +++ b/upload/static/js/home_blog.js @@ -1,53 +0,0 @@ -/* - [Discuz!] (C)2001-2099 Comsenz Inc. - This is NOT a freeware, use is subject to license terms - - $Id: home_blog.js 23838 2011-08-11 06:51:58Z monkey $ -*/ - -function validate_ajax(obj) { - var subject = $('subject'); - if (subject) { - var slen = strlen(subject.value); - if (slen < 1 || slen > 80) { - alert("标题长度(1~80字符)不符合要求"); - subject.focus(); - return false; - } - } - if($('seccode')) { - var code = $('seccode').value; - var x = new Ajax(); - x.get('cp.php?ac=common&op=seccode&code=' + code, function(s){ - s = trim(s); - if(s.indexOf('succeed') == -1) { - alert(s); - $('seccode').focus(); - return false; - } else { - edit_save(); - obj.form.submit(); - return true; - } - }); - } else { - edit_save(); - obj.form.submit(); - return true; - } -} - -function edit_album_show(id) { - var obj = $('uchome-edit-'+id); - if(id == 'album') { - $('uchome-edit-pic').style.display = 'none'; - } - if(id == 'pic') { - $('uchome-edit-album').style.display = 'none'; - } - if(obj.style.display == '') { - obj.style.display = 'none'; - } else { - obj.style.display = ''; - } -} \ No newline at end of file diff --git a/upload/template/default/home/spacecp_blog.htm b/upload/template/default/home/spacecp_blog.htm index 11c45194d..318f3e774 100644 --- a/upload/template/default/home/spacecp_blog.htm +++ b/upload/template/default/home/spacecp_blog.htm @@ -91,7 +91,6 @@
-
-- Gitee From c3de1819408938d126703b11d344224089a5fc61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=91=A8=E9=83=A8=E8=90=BD?= Date: Fri, 19 Jul 2019 15:30:35 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=8E=BB=E9=99=A4Many?= =?UTF-8?q?ou=E6=AE=8B=E4=BD=99=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/static/js/home.js | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/upload/static/js/home.js b/upload/static/js/home.js index 3486cf5b3..74c9d2614 100644 --- a/upload/static/js/home.js +++ b/upload/static/js/home.js @@ -326,30 +326,6 @@ function showFlash(host, flashvar, obj, shareid) { } } -function userapp_open() { - var x = new Ajax(); - x.get('home.php?mod=spacecp&ac=common&op=getuserapp&inajax=1', function(s){ - $('my_userapp').innerHTML = s; - $('a_app_more').className = 'fold'; - $('a_app_more').innerHTML = '收起'; - $('a_app_more').onclick = function() { - userapp_close(); - }; - }); -} - -function userapp_close() { - var x = new Ajax(); - x.get('home.php?mod=spacecp&ac=common&op=getuserapp&subop=off&inajax=1', function(s){ - $('my_userapp').innerHTML = s; - $('a_app_more').className = 'unfold'; - $('a_app_more').innerHTML = '展开'; - $('a_app_more').onclick = function() { - userapp_open(); - }; - }); -} - function startMarquee(h, speed, delay, sid) { var t = null; var p = false; -- Gitee From 34877beeb308e7dd0112ec90ded55ba27c2901b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=91=A8=E9=83=A8=E8=90=BD?= Date: Sat, 20 Jul 2019 08:59:45 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=8E=BB=E9=99=A4Many?= =?UTF-8?q?ou=E6=AE=8B=E4=BD=99=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/static/js/home.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/upload/static/js/home.js b/upload/static/js/home.js index 74c9d2614..0ca442658 100644 --- a/upload/static/js/home.js +++ b/upload/static/js/home.js @@ -737,14 +737,6 @@ function resend_mail(mid) { } } -function userapp_delete(id, result) { - if(result) { - var ids = explode('_', id); - var appid = ids[1]; - $('space_app_'+appid).style.display = "none"; - } -} - function docomment_get(doid, key) { var showid = key + '_' + doid; var opid = key + '_do_a_op_'+doid; -- Gitee