Pl4tform_website/hotgluecode.php
2025-02-03 19:29:59 +01:00

35 lines
No EOL
1 KiB
PHP

<?php
$directoryPath = "/var/www/pleintompete.org/content/pl4tformcarte/auto-20240404221108/";
$files = scandir($directoryPath);
foreach($files as $file) {
$filePath = $directoryPath . $file;
foreach(file($filePath) as $line) {
$line;
$lineSplit = preg_split("/[:]+/", $line);
$title = $lineSplit[0];
$content = $lineSplit[1];
$objectData[$title] = $content;
}
$height = $objectData['object-height'];
$width = $objectData['object-width'];
$left = $objectData['object-left'];
$top = $objectData['object-top'];
$link = $objectData['object-link'];
$path = "https://pleintompete.org/content/pl4tformcarte/shared/" . $objectData['image-resized-file'];
echo "
<div id='$link' class='image
btn_load_screen' style='height: $height; left: $left; position: absolute; top: $top; width: $width; z-index: 100;'>
<img src='$path' style='border: 0px; height: 100%; margin: 0px; padding: 0px; width: 100%;'>
</div>";
};