diff --git a/upload/source/function/function_blog.php b/upload/source/function/function_blog.php index 3badf5acbcd8addf8016b15817a8a3dfa050466a..72bc584557acc13db1f55730beb37d96959c04a1 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 1640f97d7ab6558c2e9d92244c260fdeb4c63258..0ca4426588d466b5d29ea5b58011543c923237da 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)) { @@ -347,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; @@ -782,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; diff --git a/upload/static/js/home_blog.js b/upload/static/js/home_blog.js index 2c9ae208845904c5d9917d4d3267e3383893be3d..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 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 11c45194d97ff10503dfa9e29269c0d72af5bf3f..318f3e77461a555dbbcad1c6f3874225c0ffee18 100644 --- a/upload/template/default/home/spacecp_blog.htm +++ b/upload/template/default/home/spacecp_blog.htm @@ -91,7 +91,6 @@
-