| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/3951573/root/tmp/ |
Upload File : |
<?php
require '/var/www/seaside.pacim.de/web/includes/data/plate-geo.php';
function svg($country,$iso){
global $PLATE_GEO; $g=$PLATE_GEO[$country]; if(!$g) return '';
$s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 '.$g['w'].' '.$g['h'].'" width="'.$g['w'].'" height="'.$g['h'].'">';
$s.='<rect width="100%" height="100%" fill="#eef3f7"/>';
foreach($g['regions'] as $rid=>$r){
$act = ($rid===$iso);
$fill = $act ? '#1b6ca8' : '#ffffff';
$s.='<path d="'.$r['d'].'" fill="'.$fill.'" stroke="#9fb3c4" stroke-width="0.8"/>';
}
if(isset($g['regions'][$iso])){ $m=$g['regions'][$iso];
$s.='<circle cx="'.$m['cx'].'" cy="'.$m['cy'].'" r="7" fill="#d63939" stroke="#fff" stroke-width="2"/>';
}
$s.='</svg>'; return $s;
}
file_put_contents('/tmp/map_de.svg', svg('DE','DE-BY'));
file_put_contents('/tmp/map_ch.svg', svg('CH','CH-ZH'));
file_put_contents('/tmp/map_at.svg', svg('AT','AT-6'));
echo "ok\n";