HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux bsx-1-dev 6.8.0-101-generic #101-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb 9 10:15:05 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/bsx/ass/tools/pop-rel.php
<?php




function mt($id) {

    $cmps = get_posts(
        array(
            'post_type' => 'campaign',
            'posts_per_page' => -1,
            'fields' => 'ids')
    );

    $df = [];
    foreach($cmps as $cid) {
        $cass = get_field('cassandra',$cid);
        $df[] = [$cid,$cass[0]->ID];
    }

    global $scdb;

    foreach($df as $row) {
        $scdb->query($scdb->prepare(
            'insert into x_rel select %s , %s', $row[0],$row[1])
        );
    }
    
    error_log(print_r($df,true));

    wp_die();
}