晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
Server : Apache System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64 User : rainic ( 1014) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /proc/self/root/home/stando/www/wp-content/plugins/really-simple-ssl-pro/js/ |
Upload File : |
jQuery(document).ready(function ($) {
'use strict';
var rsssl_interval = 3000;
var progress = rsssl_ajax.progress;
var progressBar = $('#rsssl-scan-list').find('.progress-bar');
progressBar.css({width: progress + '%'});
setup_scan();
function setup_scan() {
get_scan_progress();
window.setInterval(function () {
get_scan_progress()
}, rsssl_interval);
}
function get_scan_progress() {
if (progress >= 100) return;
progressBar.removeClass('progress-bar-success');
$('#rsssl-scan-output').html("");
$.post(
rsssl_ajax.ajaxurl,
{
action: 'get_scan_progress'
},
function (response) {
var obj;
if (response) {
obj = jQuery.parseJSON(response);
progress = parseInt(obj['progress']);
// var getPercent = progress / 100;
// var getProgressWrapWidth = $('#rsssl-scan-list').width();
// var progressTotal = getPercent * getProgressWrapWidth;
if (progress >= 100) {
progressBar.html(obj['action']);
progressBar.css({width: progress + '%'});
progressBar.addClass('progress-bar-success');
$('#rsssl-scan-output').html(obj['output']);
} else {
progressBar.html(obj['action']);
progressBar.css({width: progress + '%'});
//rssslAnimateProgress(progress, obj['action'])
}
}
}
);
}
$(document).on('click', '.glyphdown', function () {
var panel = $(this).closest(".blockedurls").find(".panel-body");
var icon = $(this).find(".glyphicon");
if (panel.is(':visible')) {
icon.removeClass("glyphicon-menu-up");
icon.addClass("glyphicon-menu-down");
panel.slideUp();
} else {
icon.removeClass("glyphicon-menu-down");
icon.addClass("glyphicon-menu-up");
panel.slideDown();
}
});
/*tooltips*/
$("body").tooltip({
selector: '.tooltip',
placement: 'bottom',
});
$('#fix-post-modal').on('show.bs.modal', function (e) {
$(this).find("#start-fix-post").data('id', $(e.relatedTarget).data('id'));
$(this).find("#start-fix-post").data('url', $(e.relatedTarget).data('url'));
$(this).find("#start-fix-post").data('path', $(e.relatedTarget).data('path'));
});
$('#fix-postmeta-modal').on('show.bs.modal', function (e) {
$(this).find("#start-fix-postmeta").data('id', $(e.relatedTarget).data('id'));
$(this).find("#start-fix-postmeta").data('url', $(e.relatedTarget).data('url'));
$(this).find("#start-fix-postmeta").data('path', $(e.relatedTarget).data('path'));
});
$('#fix-file-modal').on('show.bs.modal', function (e) {
$(this).find("#start-fix-file").data('id', $(e.relatedTarget).data('id'));
$(this).find("#start-fix-file").data('url', $(e.relatedTarget).data('url'));
$(this).find("#start-fix-file").data('path', $(e.relatedTarget).data('path'));
});
$('#ignore-url-modal').on('show.bs.modal', function (e) {
$(this).find("#start-ignore-url").data('url', $(e.relatedTarget).data('url'));
$(this).find("#start-ignore-url").data('id', $(e.relatedTarget).data('id'));
$(this).find("#start-ignore-url").data('path', $(e.relatedTarget).data('path'));
});
$('#fix-widget-modal').on('show.bs.modal', function (e) {
$(this).find("#start-fix-widget").data('id', $(e.relatedTarget).data('id'));
$(this).find("#start-fix-widget").data('url', $(e.relatedTarget).data('url'));
$(this).find("#start-fix-widget").data('path', $(e.relatedTarget).data('path'));
});
/* Start fix post */
$(document).on('click', "#start-fix-post", function (e) {
/*Show loader css after clicking fix button*/
var btn = $(this);
var btnContent = btn.html();
btn.html('<div class="rsssl-loader"><div class="rect1"></div><div class="rect2"></div><div class="rect3"></div><div class="rect4"></div><div class="rect5"></div></div>');
btn.prop('disabled', true);
var post_id = $(this).data('id');
var path = $(this).data('path');
var url = $(this).data('url');
var action = 'fix_post';
var token = $(this).data("token");
$.post(
rsssl_ajax.ajaxurl,
{
action: action,
token: token,
url: url,
path: path,
post_id: post_id,
},
function (response) {
btn.html(btnContent);
btn.prop('disabled', false);
if (response.success) {
rsssl_remove_from_results(url, path, post_id);
$("#fix-post-modal").modal('hide');
} else {
$("#fix-post-modal").find(".modal-body").prepend(response.error);
}
});
});
$(document).on('click', "#start-fix-postmeta", function (e) {
/*Show loader css after clicking fix button*/
var btn = $(this);
var btnContent = btn.html();
btn.html('<div class="rsssl-loader"><div class="rect1"></div><div class="rect2"></div><div class="rect3"></div><div class="rect4"></div><div class="rect5"></div></div>');
btn.prop('disabled', true);
var post_id = $(this).data('id');
var path = $(this).data('path');
var url = $(this).data('url');
var action = 'fix_postmeta';
var token = $(this).data("token");
$.post(
rsssl_ajax.ajaxurl,
{
action: action,
token: token,
url: url,
path: path,
post_id: post_id,
},
function (response) {
btn.html(btnContent);
btn.prop('disabled', false);
if (response.success) {
rsssl_remove_from_results(url, path, post_id);
$("#fix-postmeta-modal").modal('hide');
} else {
$("#fix-postmeta-modal").find(".modal-body").prepend(response.error);
}
}
);
});
$(document).on('click', "#start-fix-file", function (e) {
/*Show loader css after clicking fix button*/
var btn = $(this);
var btnContent = btn.html();
btn.html('<div class="rsssl-loader"><div class="rect1"></div><div class="rect2"></div><div class="rect3"></div><div class="rect4"></div><div class="rect5"></div></div>');
btn.prop('disabled', true);
var post_id = $(this).data('id');
var path = $(this).data('path');
var url = $(this).data('url');
var action = 'fix_file';
var token = $(this).data("token");
$.post(
rsssl_ajax.ajaxurl,
{
action: action,
post_id: post_id,
token: token,
url: url,
path: path,
},
function (response) {
btn.html(btnContent);
btn.prop('disabled', false);
if (response.success) {
rsssl_remove_from_results(url, path, post_id);
$("#fix-file-modal").modal('hide');
} else {
$("#fix-file-modal").find(".modal-body").prepend(response.error);
}
}
);
});
$(document).on('click', "#start-ignore-url", function (e) {
/*Show loader css after clicking fix button*/
var btn = $(this);
var btnContent = btn.html();
btn.html('<div class="rsssl-loader"><div class="rect1"></div><div class="rect2"></div><div class="rect3"></div><div class="rect4"></div><div class="rect5"></div></div>');
btn.prop('disabled', true);
var post_id = $(this).data('id');
var path = $(this).data('path');
var action = 'ignore_url';
var url = $(this).data('url');
var token = $(this).data("token");
$.post(
rsssl_ajax.ajaxurl,
{
action: action,
path: path,
token: token,
url: url,
post_id: post_id,
},
function (response) {
btn.html(btnContent);
btn.prop('disabled', false);
if (response.success) {
rsssl_remove_from_results(url, path, post_id);
$("#ignore-url-modal").modal('hide');
} else {
$("#ignore-url-modal").find(".modal-body").prepend(response.error);
}
}
);
});
$(document).on('click', "#start-fix-widget", function (e) {
/*Show loader css after clicking fix button*/
var btn = $(this);
var btnContent = btn.html();
btn.html('<div class="rsssl-loader"><div class="rect1"></div><div class="rect2"></div><div class="rect3"></div><div class="rect4"></div><div class="rect5"></div></div>');
btn.prop('disabled', true);
var widget_id = $(this).data('id');
var path = $(this).data('path');
var url = $(this).data('url');
var action = 'fix_widget';
var token = $(this).data("token");
$.post(
rsssl_ajax.ajaxurl,
{
action: action,
//post_id: post_id,
token: token,
url: url,
path: path,
widget_id: widget_id,
},
function (response) {
btn.html(btnContent);
btn.prop('disabled', false);
if (response.success) {
rsssl_remove_from_results(url, path, widget_id);
$("#fix-widget-modal").modal('hide');
} else {
$("#fix-widget-modal").find(".modal-body").prepend(response.error);
}
}
);
$(this).prop('disabled', false);
});
//Content Security Policy
$(document).on("click", "#start-add-to-csp", function () {
/*Show loader css after clicking fix button*/
var btn = $(this);
var id = btn.attr('data-id');
var btnContent = btn.html();
btn.html('<div class="rsssl-loader"><div class="rect1"></div><div class="rect2"></div><div class="rect3"></div><div class="rect4"></div><div class="rect5"></div></div>');
btn.prop('disabled', true);
var action = 'update_in_policy_value';
var token = $(this).data("token");
$.post(
rsssl_ajax.ajaxurl,
{
action: action,
token: token,
id: id,
},
function (response) {
btn.closest('tr').remove();
}
);
//$(this).prop('disabled', false);
});
//remove alerts after closing
$("#fix-file-modal").on("hidden.bs.modal", function () {
$("#fix-file-modal").find("#rsssl-alert").remove();
});
//remove alerts after closing
$("#fix-post-modal").on("hidden.bs.modal", function () {
$("#fix-post-modal").find("#rsssl-alert").remove();
});
//remove alerts after closing
$("#fix-postmeta-modal").on("hidden.bs.modal", function () {
$("#fix-postmeta-modal").find("#rsssl-alert").remove();
});
//remove alerts after closing
$("#fix-widget-modal").on("hidden.bs.modal", function () {
$("#fix-widget-modal").find("#rsssl-alert").remove();
});
$(document).on('click', "#start-roll-back", function (e) {
$(this).prop('disabled', true);
var token = $(this).data("token");
$.post(
rsssl_ajax.ajaxurl,
{
action: 'roll_back',
token: token,
},
function (response) {
$("#roll-back-modal").find(".modal-body").prepend(response.error);
}
);
$(this).prop('disabled', false);
});
$("#roll-back-modal").on("hidden.bs.modal", function () {
$("#roll-back-modal").find("#rsssl-alert").remove();
});
$('#fix-cssjs-modal').on('show.bs.modal', function (e) {
$(this).find("#start-fix-cssjs").data('url', $(e.relatedTarget).data('url'));
$(this).find("#start-fix-cssjs").data('path', $(e.relatedTarget).data('path'));
});
$('#editor-modal').on('show.bs.modal', function (e) {
if ($(e.relatedTarget).data('url') == 'FILE_EDIT_BLOCKED' || $(e.relatedTarget).data('url') == '') {
$(this).find('#edit-files-blocked').show();
$(this).find('#edit-files').hide();
$(this).find("#open-editor").attr("disabled", true);
} else {
$(this).find("#open-editor").data('url', $(e.relatedTarget).data('url'));
}
});
$("#open-editor").click(function (e) {
window.location.href = $("#open-editor").data('url');
$('#editor-modal').modal('hide');
});
$("#start-fix-cssjs").click(function (e) {
$(this).prop('disabled', true);
var path = $(this).data('path');
var url = $(this).data('url');
var token = $(this).data("token");
$.post(
rsssl_ajax.ajaxurl,
{
action: 'fix_cssjs',
token: token,
url: url,
path: path,
},
function (response) {
if (response.success) {
rsssl_remove_from_results(url, path);
//$('a[data-url="'+url+'"][data-path="'+path+'"]').closest(".rsssl-files").remove();
$("#fix-cssjs-modal").modal('hide');
} else {
$("#fix-cssjs-modal").find(".modal-body").prepend(response.error);
}
}
);
$(this).prop('disabled', false);
});
$("#fix-cssjs-modal").on("hidden.bs.modal", function () {
$("#fix-cssjs-modal").find("#rsssl-alert").remove();
});
//show the 'advanced settings' in 'scan for issues'.
$("#rsssl-more-options-btn").click(function (e) {
e.preventDefault();
var panel = $("#rsssl-more-options-container");
var icon = $(this).find(".glyphicon");
if (panel.is(':visible')) {
panel.slideUp();
} else {
panel.slideDown();
}
});
function rsssl_remove_from_results(url, path, post_id = 0) {
var btn;
if (post_id != 0) {
btn = $('a[data-url="' + url + '"][data-id="' + post_id + '"]');
} else {
btn = $('a[data-url="' + url + '"][data-path="' + path + '"]');
}
var nr_of_results = btn.closest(".blockedurls").find(".rsssl-files").length;
if (nr_of_results <= 1) {
var img_src = btn.closest(".blockedurls").find(".panel-heading .panel-title img").attr('src');
img_src = img_src.replace('cross', 'check');
btn.closest(".blockedurls").find(".panel-heading .panel-title img").attr('src', img_src);
}
btn.closest(".rsssl-files").remove();
}
/*handle options change in advance field*/
$(document).on('change', '#rsssl_show_ignore_urls', function () {
$("#rsssl_scan_form").append('<input type="hidden" name="rsssl_no_scan" value="rsssl_no_scan" />');
$("#rsssl_scan_form").submit();
});
});