HEX
Server: Apache/2.4.65 (Debian)
System: Linux srv39710 6.1.0-41-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
User: root (0)
PHP: 8.4.11
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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,
Upload Files
File: /var/www/www-root/data/www/NEWs/news.automoon.click/actions/admin_cloak_save.php
<?php
include('../inc/conf.php');
crabs_token_check($_POST['token']);
crabs_adm_check();

$id = intval($_POST['id']);
$n1 = intval($_POST['ncl1']);
$n2 = intval($_POST['ncl2']);

if ($n1 == $n2) { exit('0'); }

$nowc = mysqli_fetch_assoc(mysqli_query($connect_db, "SELECT id,nfrom FROM `t_cloak` WHERE id = '$id' LIMIT 1"));

if ($nowc['nfrom'] != $n1) {
$how = mysqli_num_rows(mysqli_query($connect_db, "SELECT id FROM `t_cloak` WHERE `nfrom` = '$n1' LIMIT 1"));
if ($how > 0) { exit('2'); }
}

mysqli_query($connect_db, "UPDATE `t_cloak` SET `nfrom` = '$n1', `nto` = '$n2' WHERE id = '$id' LIMIT 1");

exit('1');
?>