isAdmin($user_id); if (!$isAdmin) { echo "
Access Denied: Admin privileges required.
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 gsp_server_homes. ";
echo "These orders will not show an expiration date on the game monitor. ";
echo "Reset home_id to 0 or re-provision these orders to fix 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 "