Revert "added the Uzbek language я исправил потвердите (#3306)"

This reverts commit d3b911d249.
This commit is contained in:
longpanda
2025-12-21 20:33:25 +08:00
parent f6c248e983
commit f68d4a8076
9 changed files with 66 additions and 177 deletions

View File

@@ -7977,26 +7977,28 @@ delete_file(struct mg_connection *conn, const char *path)
}
/* This is an existing file (not a directory).
* Try to delete the file directly. */
* Check if write permission is granted. */
if (access(path, W_OK) != 0) {
/* File is read only */
send_http_error(
conn,
403,
"Error: Delete not possible\nDeleting %s is not allowed",
path);
return;
}
/* Try to delete it. */
if (mg_remove(conn, path) == 0) {
/* Delete was successful: Return 204 without content. */
send_http_error(conn, 204, "%s", "");
} else {
/* Check if the error is a permission error. */
if (ERRNO == EACCES || ERRNO == EPERM) {
send_http_error(
conn,
403,
"Error: Delete not possible\nDeleting %s is not allowed",
path);
} else {
/* Delete not successful (file locked or other error). */
send_http_error(conn,
423,
"Error: Cannot delete file\nremove(%s): %s",
path,
strerror(ERRNO));
}
/* Delete not successful (file locked). */
send_http_error(conn,
423,
"Error: Cannot delete file\nremove(%s): %s",
path,
strerror(ERRNO));
}
}
#endif /* !NO_FILES */

View File

@@ -109,12 +109,11 @@ if (typeof jQuery === 'undefined') {
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
}
var $parent;
if (selector && selector.charAt(0) === '#' && /^[#A-Za-z0-9\-_:.]+$/.test(selector)) {
// Only allow ID selectors
var el = document.getElementById(selector.slice(1));
$parent = $(el);
} else {
var $parent = $(selector)
if (e) e.preventDefault()
if (!$parent.length) {
$parent = $this.closest('.alert')
}
@@ -503,14 +502,7 @@ if (typeof jQuery === 'undefined') {
var clickHandler = function (e) {
var href
var $this = $(this)
var targetSelector = $this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, ''); // strip for ie7
// Only allow ID selectors (starting with # and containing valid characters)
var $target = null;
if (targetSelector && /^#[A-Za-z0-9\-_:.]+$/.test(targetSelector)) {
$target = $(document).find(targetSelector);
} else {
return;
}
var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7
if (!$target.hasClass('carousel')) return
var options = $.extend({}, $target.data(), $this.data())
var slideIndex = $this.attr('data-slide-to')
@@ -699,7 +691,7 @@ if (typeof jQuery === 'undefined') {
var target = $trigger.attr('data-target')
|| (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7
return $(document).find(target)
return $(target)
}
@@ -781,9 +773,7 @@ if (typeof jQuery === 'undefined') {
selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
}
// Only allow selector if it is a safe CSS selector (starts with # or . and does not contain '<')
var isSafeSelector = selector && (/^#[\w-]+$/.test(selector) || (/^\.[\w-]+$/.test(selector))) && selector.indexOf('<') === -1;
var $parent = isSafeSelector ? $(document).find(selector) : $this.parent();
var $parent = selector && $(selector)
return $parent && $parent.length ? $parent : $this.parent()
}
@@ -1240,8 +1230,7 @@ if (typeof jQuery === 'undefined') {
$(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
var $this = $(this)
var href = $this.attr('href')
var selector = $this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, '')); // strip for ie7
var $target = $(document).find(selector);
var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7
var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
if ($this.is('a')) e.preventDefault()
@@ -1310,13 +1299,7 @@ if (typeof jQuery === 'undefined') {
this.type = type
this.$element = $(element)
this.options = this.getOptions(options)
var viewportOption = $.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : (this.options.viewport.selector || this.options.viewport);
if (typeof viewportOption === 'string') {
// Use find to ensure only CSS selectors are accepted, not HTML
this.$viewport = $(document).find(viewportOption);
} else {
this.$viewport = $(viewportOption);
}
this.$viewport = this.options.viewport && $($.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : (this.options.viewport.selector || this.options.viewport))
this.inState = { click: false, hover: false, focus: false }
if (this.$element[0] instanceof document.constructor && !this.options.selector) {
@@ -1571,7 +1554,7 @@ if (typeof jQuery === 'undefined') {
var $tip = this.tip()
var title = this.getTitle()
$tip.find('.tooltip-inner').text(title)
$tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)
$tip.removeClass('fade in top bottom left right')
}
@@ -2234,7 +2217,7 @@ if (typeof jQuery === 'undefined') {
var Affix = function (element, options) {
this.options = $.extend({}, Affix.DEFAULTS, options)
this.$target = $(document).find(this.options.target)
this.$target = $(this.options.target)
.on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))
.on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this))