<?php
$xml = new SimpleXmlElement(<<<XML
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE yml_catalog SYSTEM "shops.dtd">
<yml_catalog>
</yml_catalog>
XML
);
$xml->addAttribute('date', (new DateTimeImmutable())->format('Y-m-d H:i'));
print $xml->asXML();
// <?xml version="1.0" encoding="utf-8"?>
// <!DOCTYPE yml_catalog SYSTEM "shops.dtd">
// <yml_catalog date="2024-01-24 16:42">
// </yml_catalog>- $result = $connect->query($sql);
- $rows = $result->fetch();	
- if($rows != 0)
- {
-   for ($i = 0;$i < $rows;$i ++)
-   {
-     $result->data_seek($i);
-     $map = $result->fetch_assoc();
+ foreach ($connect->query($sql) as $map) {
- }
- $result->close();- if($x > 0) $left = (3000 + abs($x))/5.3;
- else $left = (3000 - abs($x))/5.3;
+ $left = (3000 + $x)/5.3;
- if($y > 0) $top = (3000 - abs($y))/5.3;
- else $top = (3000 + abs($y))/5.3;
+ $top = (3000 - $y)/5.3;- $newwidth = $height * $rate;
+ $newwidth = round($height * $rate);
- $newheight = $width / $rate;
+ $newheight = round($width / $rate);$needleRight = constant("{$rightsManager}::TASK_{$rightType}");$myPost = [];
foreach ($_POST as $name => $value) {
    $myPost[str_replace('_', ' ', $name)] = $value;
}