uawdijnntqw1x1x1
IP : 216.73.216.26
Hostname : server.wtmmart.in
Kernel : Linux server.wtmmart.in 4.18.0-553.45.1.el8_10.x86_64 #1 SMP Wed Mar 19 09:44:46 EDT 2025 x86_64
Disable Function : exec,passthru,shell_exec,system
OS : Linux
PATH:
/
home2
/
wtmwscom
/
public_html
/
cgi-bin
/
..
/
lib
/
..
/
admin
/
cron_binary_type_update.php
/
/
<?php include '../connection.php'; include '../function_lib.php'; $datetime = date('Y-m-d H:i:s'); $result = mysqli_query($connection, "SELECT uid, type FROM user WHERE reg_date <= '$datetime' AND type=0 ORDER BY recid ASC "); while($row = mysqli_fetch_object($result)) { $uid = $row->uid; $type = $row->type; $childs_left = get_child_levels(get_child_ids_by_reg_date($uid, 'L', $datetime)); $childs_right = get_child_levels(get_child_ids_by_reg_date($uid, 'R', $datetime)); $n_of_i_left = count($childs_left); $n_of_i_right = count($childs_right); if($type == 0) { if ( ($n_of_i_left >=2 && $n_of_i_right >=1) || ($n_of_i_left >=1 && $n_of_i_right >=2) ) { mysqli_query($connection, "UPDATE user SET type = '1', type_update_datetime='" . $datetime . "' WHERE uid = '$uid' "); //echo " uid: $uid , "; } } } ?>
/home2/wtmwscom/public_html/cgi-bin/../lib/../admin/cron_binary_type_update.php