<?php 
require_once 'functions.php'; 
checkAuth();
require 'header.php'; 
$cfg = cfg();
?>
<h2 style="margin-top:0;">Twoje foldery</h2>
<div class="main-folders">
    <?php foreach($cfg['allowedFolders'] as $name => $path): ?>
        <a href="folder.php?folder=<?=urlencode($name)?>" class="folder-card">
            <div class="folder-icon">&#128193;</div>
            <div class="folder-name"><?=htmlspecialchars($name)?></div>
        </a>
    <?php endforeach; ?>
</div>
</div> </body></html>
