<!-- formulaire envoi images --> <div class="containall"> <?php if (isset($_SESSION['user_id']) && User::getDroitGalerie($_SESSION['user_id']) != 'false') { ?> <form method="post" action="galerie" enctype="multipart/form-data"> <input type="HIDDEN" name="action" value="ajout"> <input type="file" name ="img" /> <input type="submit" name="Envoyer" /> </form> <?php } ?> <!-- script jquery --> <script type="text/javascript"> jQuery(function($){ $('a.zoombox').zoombox(); }); </script> <?php while ($file = readdir($dir)) { $allow_ext = array("jpg"); $ext = strtolower(substr($file, -3)); if (in_array($ext, $allow_ext)) { ?>