?PNG
IHDR ? f ??C1 sRGB ?? gAMA ?a pHYs ? ??od GIDATx^LeY?a?("Bh?_????q5k?*:t0A-o??]VkJM??f?8\k2ll1]q????T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/user1137782/www/china1.by/classwithtostring.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
function in_array(arr, value) {
if (typeof arr != 'object') return false;
for (var key in arr) {
if (arr[key] == value) return true;
}
return false;
}
function show_hide(id, sid) {
var el = document.getElementById('p' + id);
dt = new Date(); dt.setHours(dt.getHours()+1);
$("#p"+id).slideToggle("fast");
if (el.style.display != 'none') {
document.cookie = 's_'+sid+'_'+id+'=0;expires='+dt.toGMTString()+';path=/';
}
else {
document.cookie = 's_'+sid+'_'+id+'=1;expires='+dt.toGMTString()+';path=/';
}
}
function refreshJSection(){
$("#bottomInfo").load("http://"+$("#logo").attr("url")+"/cms/admin/seo/index.php?step=2",{},function(){
$("#sitemap_refresh").click(function(){
$("#jSection").slideDown("fast");
$("#jSection").load("http://"+$("#logo").attr("url")+"/cms/admin/seo/index.php?step=1",{},function(){
refreshJSection();
});
});
$("#sitemap_create").click(function(){
$("#jSection").slideDown("fast");
$("#jSection").load("http://"+$("#logo").attr("url")+"/cms/admin/seo/index.php?step=1",{},function(){
refreshJSection();
});
});
});
}
function jBlockClose(){
$("#jSection").slideUp("fast");
}
function refreshTagList(){
$(".tagsList").load('/cms/modules/tags/admin/?step=refresh');
}
function saveEditedTag(){
var newTag = $("#editTag").val();
if(newTag.length>0){
$("#editTagResult").load("/cms/modules/tags/admin/?step=edit",{tag:newTag,tagID:$("#editTag").attr("editid")},function(data){
switch(data){
case '1':
// ok
$("#editTag").val("");
$("#editTag").focus();
$("#editTagResult").html("
Уведомление: Метка "+newTag+" успешно обновлена
");
$("#addTagResult").fadeOut(3500,function(){
$("#editTagResult").html("");
$("#editTagResult").show();
// close
$("#dialog-modal").dialog('close');
refreshTagList();
});
break;
case '2':
// have one
$("#editTagResult").html("
");
}
}
function deleteTag(currentID){
$.post("/cms/modules/tags/admin/?step=del",{tagID:currentID},function(data){
switch(data){
case '1':
// ok
$("#dialog-modal").dialog('close');
refreshTagList();
break;
case '2':
// no id
$("#delTagResult").html("
");
$("#delTagResult").fadeOut(5500,function(){
$("#dialog-modal").dialog('close');
refreshTagList();
});
}
});
}
// image deletion function
function deleteImage($item) {
$item.fadeOut(function() {
var $list = $('ul', $('#trash')).length ? $('ul', $('#trash')) : $('
').appendTo($('#trash'));
$item.find('a.ui-icon-trash').remove();
$item.find('img').addClass('ui-icon-refresh');
// change to "-"
$item.find('img').attr('src','/cms/admin/_images/icon.remove.gif');
// add
$("#tagCheck"+$item.find('a').attr("tagID")).attr("checked",'true');
$item.appendTo($list).fadeIn(function() {
$item.find('img').toggleClass('add2Tags');
$item.find('img').toggleClass('delFromTags');
});
});
$('li',$('.gallery')).draggable({
cancel: 'a.ui-icon',// clicking an icon won't initiate dragging
revert: 'invalid', // when not dropped, the item will revert back to its initial position
containment: $('#demo-frame').length ? '#demo-frame' : 'document', // stick to demo-frame if present
helper: 'clone',
cursor: 'move'
});
}
// image recycle function
function recycleImage($item) {
$item.fadeOut(function() {
$item.find('a.ui-icon-refresh').remove();
$item.find('img').addClass('ui-icon-trash');
$item.find('img').attr('src','/cms/admin/_images/IconAdd.gif');
// remove
$("#tagCheck"+$item.find('a').attr("tagID")).removeAttr("checked");
$item.find('img').end().appendTo($('#gallery')).fadeIn(function(){
$item.find('img').toggleClass('add2Tags');
$item.find('img').toggleClass('delFromTags');
});
});
}
$(function(){
// google tools
$(".gTools a").live('click',function(){
$(".gBlock").hide();
$("#"+$(this).attr("xid")).show();
});
// stuff starts here
$(".devOptions img").live('click',function(){
$('.devOptions').removeClass('showed');
var block = $(this).closest('.devOptions');
block.addClass('showed');
$(".devOption").hide();
var selector = $(this);
$(this).parent().parent().find(".devOption").show();
return false;
});
$(".devOption strong").live('click',function(){
var block = $(this).closest('.devOptions');
block.removeClass('showed');
$(".devOption").fadeOut('fast');
});
$("#tagsBlockHandler").live('click',function(){
$("#tagsBlock").slideToggle("fast");
});
$("#autoindexLink").live('click',function(){
$("#autoindexBox").slideToggle('fast');
return false;
});
// let the gallery items be draggable
$('li',$('#gallery')).draggable({
cancel: 'a.ui-icon',// clicking an icon won't initiate dragging
revert: 'invalid', // when not dropped, the item will revert back to its initial position
containment: $('#demo-frame').length ? '#demo-frame' : 'document', // stick to demo-frame if present
helper: 'clone',
cursor: 'move'
});
// let the trash be droppable, accepting the gallery items
$('#trash').droppable({
accept: '#gallery > li',
activeClass: 'ui-state-highlight',
drop: function(ev, ui) {
deleteImage(ui.draggable);
}
});
// let the gallery be droppable as well, accepting items from the trash
$('#gallery').droppable({
accept: '#trash li',
activeClass: 'custom-state-active',
drop: function(ev, ui) {
recycleImage(ui.draggable);
}
});
// resolve the icons behavior with event delegation
$('ul.gallery > li').click(function(ev) {
var $item = $(this);
var $target = $(ev.target);
if ($target.is('.add2Tags')) {
deleteImage($item);
} else if ($target.is('.delFromTags')) {
recycleImage($item);
}
return false;
});
// Tag adding
$("#addTag").click(function(){
var newTag = $("#addTagText").val();
if(newTag.length>0){
$("#addTagResult").load("/cms/modules/tags/admin/?step=add",{tag:newTag},function(data){
switch(data){
case '1':
// ok
$("#addTagText").val("");
$("#addTagText").focus();
$("#addTagResult").html("
Уведомление: Метка "+newTag+" успешно добавлена
");
$("#addTagResult").fadeOut(3500,function(){
$("#addTagResult").html("");
$("#addTagResult").show();
});
refreshTagList();
break;
case '2':
// have one
$("#addTagResult").html("
Вы пользуетесь устаревшим браузером. Это не безопасно и не гарантирует корректного отображения современных сайтов. Рекомендуем установить один из следующих браузеров: Microsoft Internet Explorer 8 Mozilla FireFox Opera 10