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zfoPoHto1yV3Z+/40kKS7NIKB/ZNsXNiDCkl31+J8/7Hn9Pe0YavO0A+l4qn498NK9VAAri7Is8ZncHx/PJt1swCZz95h8PTB0inF0nMJ5l+6hFmPjtDrVJlJZtB7/Bva+uJHltfXRAYm8qFJ/crPCPqyPHTava364r2MYUeUxgxhXtY/fDTr+r42x8o2oZV/459qnf7HkvIpmapOT2jdoervVIp4Wxzcc/IIHueeAmkIBy7i2A0jNvn5bHp1+jv68Hj20KlUsbuMJo1vX1S2h2uqJBNpBIpjr5wkIGtfdQqNQYG+rmVzKCEYDW/xo1LlxkZjPD6K4dIJVIgBHbNOSAFSIGgXigSDvqh0eC9t45w7dynjA1FWMvleObxh7n3oSk0rZm7I300CqW/z5dNQspWozN0UNNbiF+7zhdfn6NSb/DAfRPYbTZq1RofnT6GAp49fILzP16lKiWa1sJq+vdTAmjyj03lHXpba3bxNmahhO5sxdfhoVavU65WSSbSPLr3fkYHI7x69CSR0RhWqcitn790SqCez/zxprA5MJyt9NyxBd3pILWwCEDozi6e3P8gZ954mcXcCna9FWF3kl+4cUo16sV/BWn3Td3rD1pmDoSgWCwRCfWyfXiAraEAX81c4OzMBaLbRjCzqUxy9psgKOsfgJDS0z2466LuDUSrJRNUjUKxRH6tQKlQRHd7CPT2YWaT86mrM5ONejW9WZmkxx876eoMPm1zGIYQ8i9VNaiWCyVzae7D5cTsi0D5f9u4/h1Xi8u706Y5w4CoWcWbZTN7XjXqyxu9fwLT7T4N+2iLSgAAAABJRU5ErkJggg==, что бы потом можно было загрузить его через
<img src="/api/get-icon.php?id=...">?
<?php
$icons=array(
'icon1' => 'iVBORw0KGgoAAAANSU==....',
'icon2' =>'kakffdjgjfhgkjhasjkghfs==...');
if(isset($_GET['icon']))
{
header ('Content-Type: image/png');
switch($_GET['icon'])
{
case "icon1":
print base64_decode($icons['icon1']);
die();
case "icon2":
print base64_decode($icons['icon2']);
die();
}
}
///ну а тут уже любой другой код
<?php
if (array_key_exists('$_GET['icon'], $icons)) {
}?>