39414-vm/patch_display_w100.php
2026-04-02 15:30:48 +00:00

13 lines
523 B
PHP

<?php
$content = file_get_contents('display.php');
$search = '<div class="card-body text-center p-2 d-flex flex-column align-items-center justify-content-center">';
$replace = '<div class="card-body w-100 text-center p-2 d-flex flex-column align-items-center justify-content-center">';
$newContent = str_replace($search, $replace, $content);
if ($newContent !== $content) {
file_put_contents('display.php', $newContent);
echo "Added w-100 to card-body\n";
} else {
echo "w-100 already added or not found\n";
}