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/www.xxlht.com/application/admin/template/custom/复制号.php
<?php
include 'conn.php';

$fz=$_POST['fz'];
if($fz=='fz'){
    
    $aid=$_POST['aid'];
 $aid2=$_POST['aid2'];//这个复制到下面的
 
//   echo $aid2;
 $sql2 = "SELECT * from  houtai_archives where aid ='".$_POST['aid2']."' and channel=10";

$result2 = $conn->query($sql2);
 
if ($result2->num_rows > 0) {
    // 输出数据
    while($row2 = $result2->fetch_assoc()) {
        // echo 'kefu"' . $row2["kefu"]. '" lianjie: ' . $row2["kflj"]. '<br>';
        
        $kefu=$row2["kefu"];
        $kflj=$row2["kflj"];
    }
} else {
    echo "0 结果";
}



 foreach($aid as $key => $idid){
   $ididdd= $idid;//输出姓名id  插入xg_recommend_setting 表的字段 id_user  
     echo $ididdd;
     echo '<br>';
      
$mysqli->query("UPDATE `houtai_archives` SET  `kefu` = '" . $kefu . "' ,`kflj` = '" . $kflj . "'  WHERE `aid` = " . $ididdd . "");
echo "<script>alert('修改成功');location.href='/m.php?m=admin&c=Archives&a=index_archives&typeid=72&lang=cn';</script>";

     
   
 }

 
    
    
    
}



?>




<form action="" method="POST" id="form" >

<?php


$aid2=$_GET['aid'];
$admin_id=$_GET['admin_id'];

// echo $aid2;
// echo '<br>';
// echo $admin_id;

$sql = "SELECT * from  houtai_archives where admin_id ='".$_GET['admin_id']."' and channel=10 ";

 
 
 
 
$result = $conn->query($sql);
 
if ($result->num_rows > 0) {
    // 输出数据
    while($row = $result->fetch_assoc()) {
        echo '<input type="checkbox" name="aid[]" value="' . $row["aid"]. '" />复制到这个链接: ' . $row["title"]. '<br>';
    }
} else {
    echo "0 结果";
}
$conn->close();



?>

<input  type="hidden" name="fz" value="fz">  

<input type="hidden" name="aid2" id="" value="<?php echo $aid2 ;?>" />
<input type="submit" name="" id="" value="提交" />
</form>