<aside id="aside">
    <?php if ($user_data != 0) { ?>

        <form method="post" action="#aside" enctype="multipart/form-data">

            <h2> Przesyłanie zdjec</h2>

            <div class="folds">

                <select name="namefold">

                    <option class="option_fold" value="">Wybierz folder</option>

                    <?php include("../../assets/script/file/manipulationfile.php"); ?>
                    <?php include("../../assets/script/file/script.php"); ?>

                    <?php foreach ($fold_list as $dir) { ?>

                        <option class="option_fold" value="<?php echo $dir["name_fold"] ?>"><?php echo $dir['name_fold'] ?></option>

                    <?php } ?>

                    <option class="option_fold" value="other">utwórz folder</option>

                </select>

                <input name="namefolduser" class="userop" type="text" placeholder="nazwa folderu" />

            </div>

            <input type="file" name="files[]" multiple>
            <button type="submit" name="upload">dodaj pliki </button>

        </form>

        <ul>

            <?php echo $messageout ?>

        </ul>

        <script src="../../assets/js/folder.js"></script>

    <?php } else {
        include("../../assets/script/login/login.php");
    ?>

        <form method="post">

            <h2>Zaloguj się</h2>
            <input type="text" name="user_name" placeholder="nazwa użytkownika" value=<?php echo $user_name ?>>
            <input type="password" name="password" placeholder="hasło">
            <button type="submit" name="login">zaloguj</button>

        </form>

        <a href="../login/signup.php">Kliknij aby się zarejestrować</a>

    <?php } ?>

</aside>