HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,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,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/tixing.xxlht.com/js/qq.php
<?php
$data = file_get_contents("js/data.dat");
$data = json_decode($data);
$data_online_arr = array();
$data_online_display_arr = array();
foreach ($data as $k => $v) {
    if ($v->status == 1) {
        $data_online_arr[] = $v;
        $data_online_display_arr[] = $v->show;
    }
}
 
    $min_val_key = array_search(min($data_online_display_arr), $data_online_display_arr);
    if (false !== $min_val_key) {
        $kf = $data_online_arr[$min_val_key];
        $wx =  $kf->wx;
        $id =  $kf->id;
        $js_url = $kf->link;
        
        
        
      
        
        if (isset($_POST['action'])) {
          $datatemp = file_get_contents("js/data.dat");
  $datatemp = json_decode($datatemp);
  $id=$_POST['id'];
  $editid = $id;
  foreach ($datatemp as $item) {
    if ($item->id == $editid) {
      $item->click = $item->click+1; 
    }
  }
  $datatemp = json_encode($datatemp);
  file_put_contents("js/data.dat", $datatemp);
        }
        else {
            $kf->show =  $kf->show + 1;
        $kf->totalshow =  $kf->totalshow + 1;
        $data = json_encode($data);
        $file = fopen('js/log.txt', 'w');
        if (flock($file, LOCK_EX)) {
            file_put_contents("js/data.dat", $data);
            flock($file, LOCK_UN);
            fclose($file);
        }
        }
        
        
        
        
    }
 

















echo "var js_url = '{$js_url}';var id = '{$id}';var stxlwx = '{$wx}';document.querySelectorAll(\"[name='notweixin']\").forEach((el)=>{ el.innerHTML = '{$wx}'; })";
?>