isAdmin($user_id); if (!$isAdmin) { echo "
Access Denied: Admin privileges required.
Retry provisioning succeeded for order #{$retry_id}.
Retry provisioning for order #{$retry_id} did not succeed. See details below.
" . "" . htmlspecialchars($retryResult['output']) . "
Retry provisioning for order #{$retry_id}: no result returned. Check server logs.
Bulk action completed for ".count((array)$selected)." order(s).
No orders found matching your filters.
| Status | Count | Total Value |
|---|---|---|
| ".$stat['status']." | "; echo "".$stat['count']." | "; echo "$".number_format($stat['total'], 2)." | "; echo "
Billing orders that reference a home_id which no longer exists in server_homes. ";
echo "These orders will not show an expiration date on the game monitor. ";
echo "Reset home_id to 0 and use the Retry Provisioning button to re-provision them. ";
echo "Run normalize_billing_order_status.sql to standardize any legacy status values.
✓ No orphaned billing orders found.
"; } else { echo "| Order ID | User ID | Server Name | home_id (missing) | Status | End Date |
|---|---|---|---|---|---|
| ".intval($row['order_id'])." | "; echo "".intval($row['user_id'])." | "; echo "".htmlspecialchars($row['home_name'] ?? '')." | "; echo "".htmlspecialchars($row['home_id'] ?? '')." | "; echo "".htmlspecialchars($row['status'] ?? '')." | "; echo "".htmlspecialchars($row['end_date'] ?? 'NULL')." | "; echo "
✓ No provisioning errors recorded.
"; } else { echo "| Time | Order ID | User | Server Name | Remote Srv | IP ID | Port | Mod | Message |
|---|---|---|---|---|---|---|---|---|
| ".htmlspecialchars($er['created_at'])." | "; echo "".intval($er['billing_order_id'])." | "; echo "".htmlspecialchars($er['users_login'] ?? ('uid:'.intval($er['user_id'])))." | "; echo "".htmlspecialchars($er['home_name'] ?? '')." | "; echo "".intval($er['remote_server_id'])." | "; echo "".intval($er['ip_id'])." | "; echo "".intval($er['attempted_port'])." | "; echo "".intval($er['mod_cfg_id'])." | "; echo "".htmlspecialchars($er['failure_message'])." | "; echo "