X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/4b21db92773d4b8ea47d24ef95eba462d0094c8d..b112c67eb60567b7043f8a26f4778bf6bb562dc4:/edit/index.php diff --git a/edit/index.php b/edit/index.php index 5c5ee3d..6f4dc4d 100644 --- a/edit/index.php +++ b/edit/index.php @@ -13,6 +13,7 @@ if ($_FILES) { throw new Exception('bestand niet goed ontvangen: '.$img['error']); $datadir = implode('/', ['data', date('Y')]); + if ($Args) $datadir .= $Args; if (!file_exists($datadir) and !@mkdir($datadir, 0777, TRUE)) { throw new Exception("bestand kon niet geplaatst worden in $datadir"); }