<?php
$file = 'admin.php';
$content = file_get_contents($file);

$oldTable = '                                                if($r[\'orbital_dominance\']) $conds[] = "Orbital Dom: " . $r[\'orbital_dominance\'];
                                                if($r[\'terrestrial_dominance\']) $conds[] = "Ground Dom: " . $r[\'terrestrial_dominance\'];';

$newTable = '                                                if($r[\'orbital_dominance\']) $conds[] = "Orbital IN (" . $r[\'orbital_dominance\'] . ")";
                                                if($r[\'terrestrial_dominance\']) $conds[] = "Ground IN (" . $r[\'terrestrial_dominance\'] . ")";';

$content = str_replace($oldTable, $newTable, $content);

file_put_contents($file, $content);
echo "Table display patched";
?>

