38676-vm/patch_table_v2.php
Flatlogic Bot 12241ba85d Alpha V1.4
2026-02-26 08:28:54 +00:00

17 lines
784 B
PHP

<?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";
?>