Your IP : 3.139.237.190


Current Path : /data/web/virtuals/51568/virtual/www/www/
Upload File :
Current File : /data/web/virtuals/51568/virtual/www/www/casopiscislo.php

<?php

$path = '../www/ftp/casopis/';
$cislo = $_GET['c'];
$files = scandir($path . $cislo);
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') {$url = 'https://';   }   
else {$url = 'http://';}  
$url .= $_SERVER['HTTP_HOST']."/ftp/casopis/" . $cislo . '/';  

$html = <<<HTML
    <div class="h5 article-nadpis border-bottom pb-2">REpublika ŽIJE: {$cislo}</div>
    <div class="casopis-height overflow-auto">
HTML;
foreach ($files as $file) {
    if (($file !== '.') && ($file !== '..'))
    {
        $src = $url . $file;
        $html .= <<<HTML
        <div style="max-width: 97%"><img class="w-100 " src="{$src}"></div>
HTML;
        }
    }
    $html .= <<<HTML
    </div>
HTML;


echo $html;